Summary: | Akonadi IMAP shows duplicate emails that were uploaded [Exchange Server] | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Thiago Macieira <thiago> |
Component: | IMAP resource | Assignee: | Kevin Ottens <ervin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kdepim-bugs, vkrause |
Priority: | NOR | ||
Version: | 1.4.80 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Bug Depends on: | 259214 | ||
Bug Blocks: |
Description
Thiago Macieira
2011-01-25 17:19:55 UTC
Note that I can reproduce this with any email uploaded to the IMAP server, provided I sent it. It seems to be related to the $SENT flag. If I move an email that I didn't send from another IMAP server onto any folder in the Exchange server, it works as expected. If I move an email that I did send from another IMAP server's "sent-mail" folder onto the Exchange server, it gets duplicated in the view. Again: the email is NOT duplicated in the server, just in the view and Akonadi DB. Probably caused by bug 259214. Probably depends on bug 259214 I guess the duplication is not cleaned up by the next sync? Could you check (with akonadiconsole for example) if one of the duplicated mails has no remote identifier? That would explain the behavior and bug 259214 contains a possible server response to indeed cause an empty RID. Possible workaround for these cases (IMAP UID not obtainable from the server) might be to assign a random RID instead of an empty one. Items with empty RIDs are protected during syncing as they are considered newly added locally and not yet stored on the server. It's a safety feature, but prevents recovery in this case. One of the duplicated emails does not have a remote ID. Note this happens in one of my Exchange account configs, but not on another (same akonadi, same account) See https://git.reviewboard.kde.org/r/101147/ for a possible fix. Duplication has disappeared after the fix. I take that back, there is one duplication left: an email I sent with attachment. The duplication is not visibile on the webmail interface. Running akonadi enterprise5.0-20110117-20-gfc57f8c, kdepimlibs 7899ee6ce68052d82b610319987f21fc176ba93c, kdepim-runtime v4.6beta5-23-gda482c4, kdepim v4.6beta5-119-ge30055a. I haven't been able to reproduce the issue while sending the same attachment again. It might be related to sending an email while the IMAP agent is stalled (bug 270691). OK, marking that one fixed (bug 270691 still being open). |