Changeset 2879 in subversion for trunk/roundcubemail/program/lib/imap.inc


Ignore:
Timestamp:
Aug 27, 2009 5:22:34 AM (4 years ago)
Author:
alec
Message:
  • Fix Date sorting problem with Courier IMAP server (#1486065)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/lib/imap.inc

    r2826 r2879  
    989989 
    990990                        if ($mode == 1) { 
    991                                 if (preg_match('/BODY\[HEADER\.FIELDS \((DATE|FROM|REPLY-TO|SENDER|TO|SUBJECT)\)\] (.*)/', $line, $matches)) { 
     991                                if (preg_match('/BODY\[HEADER\.FIELDS \("?(DATE|FROM|REPLY-TO|SENDER|TO|SUBJECT)"?\)\] (.*)/', $line, $matches)) { 
    992992                                        $value = preg_replace(array('/^"*[a-z]+:/i', '/\s+$/sm'), array('', ''), $matches[2]); 
    993993                                        $value = trim($value); 
Note: See TracChangeset for help on using the changeset viewer.