Changeset 975
- Timestamp:
- 06/10/09 17:17:42 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r972 r975 1662 1662 $num_msgs = imap_num_msg($this->mbox); 1663 1663 if ($offsetEnd > $num_msgs) {$offsetEnd = $num_msgs;} 1664 if ($sort_box_type == "SORTARRIVAL") 1665 { 1666 // If I'm looking for arrival order we doesn't need to see all imap box 1667 if ($sort_box_reverse) 1668 { 1669 $numBegin = $num_msgs - $offsetEnd; 1670 if ($numBegin < 0) $numBegin=0; 1671 $numEnd = $num_msgs - ($offsetBegin-1); 1672 } 1673 else 1674 { 1675 $numBegin = ($offsetBegin-1); 1676 $numEnd = $offsetEnd; 1677 } 1678 $slice_array = false; 1679 } 1680 else 1681 { 1682 // If I'm looking for a specific type of email I have to see entire imap box 1683 $numBegin = 0; 1684 $numEnd = $num_msgs; 1685 $slice_array = true; 1686 } 1687 for ($i=$numBegin+1; $i<=$numEnd; $i++) 1664 $slice_array = true; 1665 1666 for ($i=1; $i<=$num_msgs; $i++) 1688 1667 { 1689 1668 $iuid = @imap_uid($this->mbox,$i);
Note: See TracChangeset
for help on using the changeset viewer.