From 35519cd747df4b5a7dbc1acecf21155cda905dd9 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 9 Nov 2004 20:04:10 +0000 Subject: [PATCH] Fix: Messages shown with bad times in message list due to misinterpreted UW IMAP internal date git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8356 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 2 ++ functions/imap_messages.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e515dabd..ba2241d1 100644 --- 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 -------------------- diff --git a/functions/imap_messages.php b/functions/imap_messages.php index de966785..27eab41b 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -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 +?> -- 2.25.1