mutt/2177: Message copied from mbox to maildir has wrong mtime if DST
>Number: 2177
>Notify-List:
>Category: mutt
>Synopsis: Message copied from mbox to maildir has wrong mtime if DST
>Confidential: no
>Severity: minor
>Priority: low
>Responsible: mutt-dev
>State: open
>Keywords:
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 08 19:48:43 +0100 2006
>Originator: Jeff Miller
>Release:
>Organization:
>Environment:
Mutt 1.5.9i (2005-03-13) (Debian Sarge binary package)
>Description:
When copying a message from an mbox to a maildir folder, the message file's
mtime is set to the date on the mbox's From line in the current time zone.
However, if the message's date is not in the same DST phase as the current
date, the mtime of the file will be off by one hour.
>How-To-Repeat:
In PST:
Find a message stored in an mbox which was received during DST (May - Oct).
Copy it to a maildir, and compare the date in the mbox From line to the mtime
of the message file in the mdir.
>Fix:
When parsing the From date, use the system TZ settings to get the time zone
offset on that date, rather than the offset on the current date.
>Add-To-Audit-Trail:
>Unformatted: