[ 
https://issues.apache.org/jira/browse/JAMES-3597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17361419#comment-17361419
 ] 

Benoit Tellier commented on JAMES-3597:
---------------------------------------

h3. And what does the spec says regarding this?

RFC-8621

`Any message with the \Deleted keyword MUST NOT be visible via JMAP`

> JMAP should not display message marked as deleted
> -------------------------------------------------
>
>                 Key: JAMES-3597
>                 URL: https://issues.apache.org/jira/browse/JAMES-3597
>             Project: James Server
>          Issue Type: Bug
>          Components: IMAPServer, JMAP
>    Affects Versions: 3.6.0
>            Reporter: Benoit Tellier
>            Assignee: Antoine Duprat
>            Priority: Minor
>             Fix For: 3.7.0
>
>
> h3. 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.
> h3. 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.
> h3. 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to