Missed a spot, now the date is also extracted from the header
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 17 May 2003 17:00:54 +0000 (17:00 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 17 May 2003 17:00:54 +0000 (17:00 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4873 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_messages.php

index 227bd1e..5df9ad3 100755 (executable)
@@ -587,12 +587,12 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $show_num=false)
                 
                 break;
             case 'INTERNALDATE':
-                $tmpdate = parseString($read,$i);
-                if ($tmpdate === false) break 3;
-                $tmpdate = str_replace('  ',' ',$tmpdate);
-                $tmpdate = explode(' ',$tmpdate);
-                $date = str_replace('-',' ',$tmpdate[0]) . " " . 
-                                            $tmpdate[1] . ' ' . $tmpdate[2];
+                $date = parseString($read,$i);
+                //if ($tmpdate === false) break 3;
+                //$tmpdate = str_replace('  ',' ',$tmpdate);
+                //$tmpdate = explode(' ',$tmpdate);
+                //$date = str_replace('-',' ',$tmpdate[0]) . " " . 
+                //                            $tmpdate[1] . ' ' . $tmpdate[2];
                 break;
             case 'BODY.PEEK[HEADER.FIELDS':
             case 'BODY[HEADER.FIELDS':
@@ -615,7 +615,7 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $show_num=false)
                             case 'to': $to = $value; break;
                             case 'cc': $cc = $value; break;
                             case 'from': $from = $value; break;
-                            case 'date':
+                            case 'date': $date = $value; break;
                             case 'x-priority': $priority = $value; break;
                             case 'subject':
                                 $subject = $value;