#3878: mtime to -1 for about 1% of the mails -------------------------+------------------------- Reporter: uxmutt | Owner: mutt-dev Type: defect | Status: new Priority: major | Milestone: Component: maildir/mh | Version: Resolution: | Keywords: utime mtime -------------------------+-------------------------
Comment (by kevin8t8): Would you mind pasting the headers of one of the corrupted mtime emails? I wonder if this is related to #3798, where OpenSMTPD was generating an invalid Received line. _maildir_commit_message() sets the mtime to match the received, IF received != 0. However I see that mutt_parse_rfc822_line() calls mutt_parse_date() to set hdr->received, which will return -1 on a parse error! So I suspect this is the problem. The code is assuming !=0 means it's set, but it could be -1. I'll work on a patch for this later today. -- Ticket URL: <https://dev.mutt.org/trac/ticket/3878#comment:1> Mutt <http://www.mutt.org/> The Mutt mail user agent