<<< Date Index >>>     <<< Thread Index >>>

[Mutt] #3424: Mutt falsely detects its own mbox writes as new mail.



#3424: Mutt falsely detects its own mbox writes as new mail.
----------------------------------+-----------------------------------------
 Reporter:  dvalin                |       Owner:  mutt-dev
     Type:  defect                |      Status:  new     
 Priority:  major                 |   Milestone:          
Component:  mutt                  |     Version:  1.5.20  
 Keywords:  false mail detection  |  
----------------------------------+-----------------------------------------
 Whether check_mbox_size is set or not, immediate new mail detection occurs
 on copying an email the same mailbox, or saving it to another mailbox. To
 replicate, just copy an email within an mbox which is listed as a mailbox
 in .muttrc.

 Proposed fix for the immediate status line misreporting:
    Check the mbox ctime and size before writing to it, not after, since
 real "Newness" has been corrupted by mutt's write.

 Proposed fix for subsequent erroneous detection of the mutt write as new
 mail:
    When mutt transfers a read mail, perform the mbox write, then update
 mutt's ctime and file size tidemarks. New mail will then only be detected
 when an outside agency changes either.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3424>
Mutt <http://www.mutt.org/>
The Mutt mail user agent