Fix: Messages shown with bad times in message list due to misinterpreted UW IMAP...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 9 Nov 2004 20:04:10 +0000 (20:04 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 9 Nov 2004 20:04:10 +0000 (20:04 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8356 7612ce4b-ef26-0410-bec9-ea0150e637f0

ChangeLog
functions/imap_messages.php

index e515dabd7881ad12677b32f80519ffc92a1150dc..ba2241d13b85ea665c423b0c5dfdc101854500f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -147,6 +147,8 @@ Version 1.5.1 -- CVS
   - Global file based address book is controled in configuration. Removed
     global_file address book backend (use 'local_file' instead). 
   - Added Net-Style theme by Gabriele Maidecchi. Closes patch #1041323.
+  - Fix: Messages shown with bad times in message list due to misinterpreted 
+    UW IMAP internal date
 
 Version 1.5.0
 --------------------
index de96678592661fd5836e610c212b5124d0f78021..27eab41b45da6ff7c3f4bf26699113975e16b884 100755 (executable)
@@ -687,7 +687,7 @@ function parseFetch($aResponse,$aMessageList = array()) {
             case 'BODYSTRUCTURE':
                 break;
             case 'INTERNALDATE':
-                $msg['INTERNALDATE'] = str_replace('  ', ' ',parseString($read,$i));
+                $msg['INTERNALDATE'] = trim(str_replace('  ', ' ',parseString($read,$i)));
                 break;
             case 'BODY.PEEK[HEADER.FIELDS':
             case 'BODY[HEADER.FIELDS':
@@ -956,4 +956,4 @@ function sqimap_get_small_header($imap_stream, $id, $sent) {
     return $res[0];
 }
 
-?>
\ No newline at end of file
+?>