Kaynağa Gözat

Added TZ-fix for cyrus and mac os x mailserver aswell since these have been reported.

Pontus Ullgren 23 yıl önce
ebeveyn
işleme
6786ec6b9a
2 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 1 0
      config/conf.pl
  2. 3 1
      functions/imap_messages.php

+ 1 - 0
config/conf.pl

@@ -921,6 +921,7 @@ sub command19 {
     print "    uw         = University of Washington's IMAP server\n";
     print "    uw         = University of Washington's IMAP server\n";
     print "    exchange   = Microsoft Exchange IMAP server\n";
     print "    exchange   = Microsoft Exchange IMAP server\n";
     print "    courier    = Courier 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 "    other      = Not one of the above servers\n";
     print "[$WHT$imap_server_type$NRM]: $WHT";
     print "[$WHT$imap_server_type$NRM]: $WHT";
     $new_imap_server_type = <STDIN>;
     $new_imap_server_type = <STDIN>;

+ 3 - 1
functions/imap_messages.php

@@ -420,7 +420,9 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $issent) {
 	    if ($read_part{0} == '*') {
 	    if ($read_part{0} == '*') {
 	        if ($internaldate) {
 	        if ($internaldate) {
 		    if (preg_match ("/^.+INTERNALDATE\s+\"(.+)\".+/iUA",$read_part, $reg)) {
 		    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, 
                             /** If we use courier, 
                               *  We need to reformat the INTERNALDATE-string 
                               *  We need to reformat the INTERNALDATE-string 
                               **/
                               **/