6.0.0-beta1
9/23/25

[#1178] Dates from old IMP versions not parsed correctly in inbox
Summary Dates from old IMP versions not parsed correctly in inbox
Queue IMP
Queue Version 4.0.1
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester cfs (at) nova (dot) es
Created 01/16/2005 (7555 days ago)
Due
Updated 01/26/2005 (7545 days ago)
Assigned 01/16/2005 (7555 days ago)
Resolved 01/26/2005 (7545 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/26/2005 08:45:11 AM Jan Schneider Comment #6
State ⇒ Not A Bug
Reply to this comment
I can't reproduce this with PHP4, either. I don't know if PHP has its 
own strtotime implementation or uses one from the system's libraries. 
We can't do anything about this anyway. If the IMP2 installation that 
sends these date headers is yours, change it to not include the 
timezone.
01/26/2005 12:00:41 AM vic (at) vianet (dot) ca Comment #5 Reply to this comment
I'm having the same problem with "Unknown Date".



Examples:



Tue, 25 Jan 2005 18:00:06 -0500 (EST)  - displays "Unknown Date"



Tue, 25 Jan 2005 16:18:41 -0500 (Eastern Standard Time)  - displays 
"Unknown Date"



This displays correctly:



Tue, 25 Jan 2005 18:00:06 -0500







PHP 4.3.10
01/20/2005 08:16:46 PM Chuck Hagenbuch Comment #4 Reply to this comment
I can't reproduce this in either HEAD or FRAMEWORK_3. The date shows 
correctly in the inbox in both.
01/16/2005 06:22:55 PM cfs (at) nova (dot) es Comment #3
New Attachment: dates_bug.zip Download
Reply to this comment
I'm including the same email in two formats, EML as requested and the 
original Qmail (Maildir) file.



I fixed the problem myself by adding a few lines in mailbox.php that 
remove the last word in the date line if the word is all chars (which 
would be it's a timezone). Probably a bad idea (Ithat's why I'm not 
bothering with a patch) but will do for me for a few days.






01/16/2005 05:40:55 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Please upload the full source of a message that reproduces this 
problem (a .eml file).
01/16/2005 05:37:59 PM cfs (at) nova (dot) es Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Dates from old IMP versions not parsed correctly in inbox
Queue ⇒ IMP
Reply to this comment
Old versions of IMP (such as 2.2) used to write the message date with 
timezone, such as



Sun, 16 Jan 2005 18:06:55 +0100 CET



these dates show as "Unknown date" in the folder view (they are 
correctly parsed in the message view, though).



I've looked into this a bit, and the problem is that 
strtotime($h->date, $curr_time) (for $h->date = any date with the 
format shown above) returns -1. I'm using PHP 5.0.3.




Saved Queries