#1267: mutt: mbox: From_ line inconsistent time ------------------------------------------------------+--------------------- Reporter: Eduardo PĂ©rez Ureta <epe...@it.uc3m.es> | Owner: mutt-dev Type: defect | Status: reopened Priority: trivial | Milestone: Component: mutt | Version: Resolution: | Keywords: ------------------------------------------------------+---------------------
Old description: > {{{ > Package: mutt > Version: 1.4i > Severity: wishlist > > There is a problem in the From line of mbox messages. > You are using ctime() and that function uses localtime without saving > the timezone. So you must use asctime (gmtime (&t)) for these dates to > have any meaning. > > It moves from localtime to gmtime. Because localtimes must > be accompanied with a timezone and rollback one hour once a year. > > There are two ways to close this bug: > - Applying the patch. > - Adding the timezone in the form +0100, but this would break the format > }}} New description: {{{ Package: mutt Version: 1.4i Severity: wishlist There is a problem in the From line of mbox messages. You are using ctime() and that function uses localtime without saving the timezone. So you must use asctime (gmtime (&t)) for these dates to have any meaning. It moves from localtime to gmtime. Because localtimes must be accompanied with a timezone and rollback one hour once a year. There are two ways to close this bug: - Applying the patch. - Adding the timezone in the form +0100, but this would break the format }}} -- Comment(by pdmef): Since there's no official mbox spec, I don't know really what to do. The change is trivial, qmail's mbox(5) manpage as well as other sources say UTC is to be used. On the other hand, popular tools like procmail use localtime. If we made this change, all mails written by procmail to mbox would be broken plus those written by mutt. -- Ticket URL: <http://dev.mutt.org/trac/ticket/1267#comment:7> Mutt <http://www.mutt.org/> The Mutt mail user agent