Added TZ-fix for cyrus and mac os x mailserver aswell since these have been reported.
[squirrelmail.git] / functions / imap_messages.php
index 39e0a7ed47daec1082c73903630e19e9806f9bfc..cfc49e00e796bbe1695feda2e51b62cbd6b242e8 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 
                               **/