diff options
author | alecpl <alec@alec.pl> | 2008-11-12 09:28:12 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-11-12 09:28:12 +0000 |
commit | 0803fb007eae33c43446460e25fdc40f6c550423 (patch) | |
tree | 0c58f549279ce0f5ed23c8127cf3acd407508516 /program/steps | |
parent | 47369b290e171b003e08aa24bcf3c0320e1b3487 (diff) |
- Use SORT for searching on servers with SORT capability
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/mail/search.inc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/program/steps/mail/search.inc b/program/steps/mail/search.inc index 44f58b1e1..6f3676891 100644 --- a/program/steps/mail/search.inc +++ b/program/steps/mail/search.inc @@ -69,16 +69,15 @@ else $search = trim($str); } - // execute IMAP search -$result = $IMAP->search($mbox, $subject, $search, $imap_charset); +$result = $IMAP->search($mbox, $subject, $search, $imap_charset, $_SESSION['sort_col']); $count = 0; - + // Make sure our $result is legit.. if (is_array($result) && $result[0] != '') { // Get the headers - $result_h = $IMAP->list_header_set($mbox, $result, 1, $_SESSION['sort_col'], $_SESSION['sort_order']); + $result_h = $IMAP->list_headers($mbox, 1, $_SESSION['sort_col'], $_SESSION['sort_order']); $count = $IMAP->messagecount(); // save search results in session |