Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Message List fills up with duplicate messages when checking for recent mails #2334
Reported by rosali on 14 Aug 2009 05:04 UTC as Trac ticket #1486044
Steps to reproduce:
-> Result: Message List is duplicated
IMAP-Server: hMail 5.2
This bug was reported in the Forum several times. But I never was able to reproduce until I noticed that this behaviour occurs only on folders other than INBOX.
Comment by rosali on 19 Aug 2009 08:47 UTC
Please review hMailServer Forum topic @ http://hmailserver.com/forum/viewtopic.php?f=7&t=15978&p=92443#p92443
hMailServer Developer claims that RoundCube method for checking for new messages is not fail safe.
Comment by knafve on 19 Aug 2009 14:24 UTC
.. for a bunch of different reasons.
In short, the IMAP RFC allows IMAP servers to set the \Recent flag on messages even if they are not recent. It's against the recommendation, but not forbidden. Hence, an IMAP client can't expect all \Recent messages to be recent. The client need to compare the UID's of the messages with the already received UID's as well, to prevent duplicates.
Second, the IMAP RFC does not explictly specify what "recent" means. It could mean a lot of different things.
Third, neither GMail nor Mercury32 seems to set the \Recent flag on new messages so in these the "Check for new mail" doesn't appear to work. MailEnable doesn't reset it when the client is logged out, so when using MailEnable duplicate messages will appear.