#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):

 The sorting issue and underlying problem will be fixed by upgrading to at
 least 1.6.0, (which has the fix for #3798).

 The patch I'm about to commit just addresses the bug that
 mutt_read_rfc822_header() leaves the hdr->received less than 0, and then
 mutt has checks for (!hdr->received) everywhere.  The patch simply resets
 it back to 0 if it's invalid before exiting mutt_read_rfc822_header().
 Then the
 code, such as in _maildir_commit_message(), won't create an invalid mtime
 when copying the message to another folder.

 Unfortunately, this won't fix the mtimes of all those emails, but I
 appreciate you taking the time to create a ticket about this.

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3878#comment:3>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to