Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.6.0
-
None
Description
What happened ?
Loan, from Linagora Vietnam QA team, reported that several copies of the same draft were present in JMAP, but not in IMAP. This happends when she updated several time the same draft. Other IMAP clients displayed the draft well.
The two uploaded pictures shows pieces of evidence.
Compacting the folder (right click in thunderbird) do actually removes the redundant past drafts from the JMAP view.
Explanations
IMAP is based on an expunge model, which means the messages are flagged as `\Deleted` before actually removing messages. The actual deletion requires an EXPUNGE call.
Of course, other IMAP clients do not display `\Deleted` emails while I do think JMAP do!
Right click on Draft folder + compact does actually do the Expunge, and the extra mails disapear from JMAP.
Proposed fix
So the way to fix it could be to have `Email/query` not returning `\Deleted` messages. This could be done:
- By customizing the search before backend search
- Maintaining EmailQueryView via the listener to NOT include `\Deleted` messages.