summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-11-12 09:28:12 +0000
committeralecpl <alec@alec.pl>2008-11-12 09:28:12 +0000
commit0803fb007eae33c43446460e25fdc40f6c550423 (patch)
tree0c58f549279ce0f5ed23c8127cf3acd407508516 /program/steps/mail
parent47369b290e171b003e08aa24bcf3c0320e1b3487 (diff)
- Use SORT for searching on servers with SORT capability
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/search.inc7
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