Added TZ-fix for cyrus and mac os x mailserver aswell since these have been reported.
authorullgren <ullgren@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 23 May 2002 09:33:40 +0000 (09:33 +0000)
committerullgren <ullgren@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 23 May 2002 09:33:40 +0000 (09:33 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2852 7612ce4b-ef26-0410-bec9-ea0150e637f0

config/conf.pl
functions/imap_messages.php

index 1b7e276..7802bcf 100755 (executable)
@@ -921,6 +921,7 @@ sub command19 {
     print "    uw         = University of Washington's IMAP server\n";
     print "    exchange   = Microsoft Exchange IMAP server\n";
     print "    courier    = Courier IMAP server\n";
+    print "    macosx     = Mac OS X Mailserver\n";
     print "    other      = Not one of the above servers\n";
     print "[$WHT$imap_server_type$NRM]: $WHT";
     $new_imap_server_type = <STDIN>;
index 39e0a7e..cfc49e0 100755 (executable)
@@ -420,7 +420,9 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $issent) {
            if ($read_part{0} == '*') {
                if ($internaldate) {
                    if (preg_match ("/^.+INTERNALDATE\s+\"(.+)\".+/iUA",$read_part, $reg)) {
-                       if ($imap_server_type == 'courier') {
+                       if ( ($imap_server_type == 'courier')
+                           || ($imap_server_type == 'macosx')
+                           || ($imap_server_type == 'cyrus') ) {
                             /** If we use courier, 
                               *  We need to reformat the INTERNALDATE-string 
                               **/