summaryrefslogtreecommitdiff
path: root/program/lib
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/lib
parent47369b290e171b003e08aa24bcf3c0320e1b3487 (diff)
- Use SORT for searching on servers with SORT capability
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/imap.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 24abd697d..8cbb0e02b 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -838,7 +838,7 @@ function iil_C_CheckForRecent(&$conn, $mailbox) {
function iil_C_CountMessages(&$conn, $mailbox, $refresh = false) {
if ($refresh) {
- $conn->selected= '';
+ $conn->selected = '';
}
iil_C_Select($conn, $mailbox);
@@ -926,10 +926,10 @@ function iil_C_Sort(&$conn, $mailbox, $field, $add='', $is_uid=FALSE,
$fp = $conn->fp;
$command = 's ' . $is_uid . 'SORT (' . $field . ') ';
- $command .= $encoding . ' ALL' . $add;
+ $command .= $encoding . ' ALL ' . $add;
$line = $data = '';
- if (!iil_PutLine($fp, $command)) {
+ if (!iil_PutLineC($fp, $command)) {
return false;
}
do {