- Fix issue where wrong message sequence range could be generated when it was build according to number of messages in a folder
| | |
| | | // I didn't found that SEARCH should return sorted IDs |
| | | if (is_array($a_index)) |
| | | sort($a_index); |
| | | } else if ($max = $this->_messagecount($mailbox)) { |
| | | } else if ($max = $this->_messagecount($mailbox, 'ALL', true, false)) { |
| | | $a_index = range(1, $max); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | if ($orig_criteria == 'ALL') { |
| | | $max = $this->_messagecount($mailbox); |
| | | $max = $this->_messagecount($mailbox, 'ALL', true, false); |
| | | $a_messages = $max ? range(1, $max) : array(); |
| | | } |
| | | else { |