We have been running Dovecot 2.2.10 with a pair of CentOS 7 boxes with replications for the past year. We have been quite happy with the performance and reliability. Recently we received a report from an Android IMAP user that emails that he deleted without reading would often reappear in his INBOX. At first I thought it might be some quirky incompatibility with his email client, but I found that I could easily reproduce it in Roundcube by dragging an unread email to Trash. I have been monitoring this forum fairly religiously and don't recall seeing any similar reports. I plan to capture the IMAP wire interactions, but before doing that, I thought I would submit this to the IMAP gods to see if anyone had heard of this and/or if there is some newer version that might resolve the problem.
This particular customer contacted his email vendor and asked them to analyze the problem. The actual log data is gigantic, so I just pasted in the vendor's narrative below in case it helps. Otherwise, as I said, I will capture a similar interaction at the wire level and follow up here.
Vendor's narrative:
You had 8 messages in the Inbox, and moved two to Trash. The server notified the app on the push connection (for Inbox) that there are now 6 messages. By the time the app got around to catch up with that (it did the Trash folder first), the server said "oh wait, there are 8 messages, not 6" (in the Inbox), and so the app synced them in, just as reported.
app selecting the Inbox, server saying there are 8 messages there app moving UID 729 and 730 to Trash (push) server saying Trash now has 34 messages (push) server saying two messages gone from Inbox, 6 left (push) 6 messages left in Inbox becoming 8 (push) and here they are (the two new ones)
Thanks, Ron
On Fri 04 Mar 2016 at 08:37 -0600, Ron Cleven wrote:
Recently we received a report from an Android IMAP user that emails that he deleted without reading would often reappear in his INBOX.
I have encountered this problem too. Did you ever solve it?
Cheers // Fredrik Roubert
-- Forsterstrasse 64 | +41 78 8170377 CH-8044 Zürich | https://roubert.name/fredrik/
The dovecot version (2.2.10) we were running had a timing window problem in the context of replication (we use maildir on CentOS 7). After doing elaborate tests to isolate the problem, we wound up upgrading to 2.2.23. That fixed it, and that version has been very reliable.
Recently we received a report from an Android IMAP user that emails that he deleted without reading would often reappear in his INBOX. I have encountered this problem too. Did you ever solve it?
Cheers // Fredrik Roubert
On 17/01/2017 16:15, Ron Cleven wrote:
The dovecot version (2.2.10) we were running had a timing window problem in the context of replication (we use maildir on CentOS 7). After doing elaborate tests to isolate the problem, we wound up upgrading to 2.2.23. That fixed it, and that version has been very reliable.
Hi,
We are running Dovecot v2.2.27 here on CentOS 7 (replication and sdbox on both sides) and I have at least one user that reported me a similar issue. This seems to happen randomly.
Looking at the mail logs, it looks like the mail is reappearing from nowhere although the mail was copied from INBOX to another mailbox and was expunged by her MUA (Thunderbird) right after. She is not using SIEVE filtering and prefer having local filters. Each time this issue pops in, her MUA is running.
The pattern is the following:
- lmtp delivers a new mail to her INBOX
- Thunderbird, almost instantly, copies and expunges this mail
- The email is reappearing (with a new UID) in her INBOX
- GOTO 2 and repeat several times (she received one mail duplicated 6 times today)
Looks like a bug but I wasn't able to reproduce it by myself.
Regards, Gilles
participants (3)
-
Fredrik Roubert
-
Gilles Chauvin
-
Ron Cleven