diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-08-27 09:22:34 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-08-27 09:22:34 +0000 |
| commit | 86b1d640f8b55999aaaae0cc5473b8065563e759 (patch) | |
| tree | 591ec09e38de6478b2292ad68050a8cc41519fa6 /roundcubemail/program | |
| parent | 5dec5fa54379634625362aee86b927daacd09132 (diff) | |
- Fix Date sorting problem with Courier IMAP server (#1486065)
git-svn-id: https://svn.roundcube.net/trunk@2879 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/lib/imap.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc index f06767570..ce778b2b7 100644 --- a/roundcubemail/program/lib/imap.inc +++ b/roundcubemail/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') { |
