summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-08-27 09:22:34 +0000
committeralecpl <alec@alec.pl>2009-08-27 09:22:34 +0000
commit7e1542241608ab7f4b5329703507c578d81bf813 (patch)
treea98da1f0bdd114c9718115c5ddf2c99522d26036 /program
parent6c2d7ed24343e510c2e0bd3e754436c48a4623a8 (diff)
- Fix Date sorting problem with Courier IMAP server (#1486065)
Diffstat (limited to 'program')
-rw-r--r--program/lib/imap.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index f06767570..ce778b2b7 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -988,7 +988,7 @@ function iil_C_FetchHeaderIndex(&$conn, $mailbox, $message_set, $index_field='',
}
if ($mode == 1) {
- if (preg_match('/BODY\[HEADER\.FIELDS \((DATE|FROM|REPLY-TO|SENDER|TO|SUBJECT)\)\] (.*)/', $line, $matches)) {
+ if (preg_match('/BODY\[HEADER\.FIELDS \("?(DATE|FROM|REPLY-TO|SENDER|TO|SUBJECT)"?\)\] (.*)/', $line, $matches)) {
$value = preg_replace(array('/^"*[a-z]+:/i', '/\s+$/sm'), array('', ''), $matches[2]);
$value = trim($value);
if ($index_field == 'DATE') {