[
https://issues.apache.org/jira/browse/IMAP-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benoit Tellier closed IMAP-383.
-------------------------------
Resolution: Duplicate
Hello,
Thanks for the report.
I encountered the very same bug in JAMES-3642 and it prevented me to use the
Samsung Android email client.
I fixed that by looking at the selected mailbox to return the UIDs that do not
exists (and thus likely were expunged.)
Here is a fix: https://github.com/apache/james-project/pull/629
> Incorrect list of UIDs in VANISHED (EARLIER) response
> -----------------------------------------------------
>
> Key: IMAP-383
> URL: https://issues.apache.org/jira/browse/IMAP-383
> Project: James Imap
> Issue Type: Bug
> Components: Protocol
> Affects Versions: 0.2
> Reporter: Pedro Martins
> Assignee: Eric Charles
> Priority: Major
>
> There two cases where the VANISHED (EARLIER) response is incorrect:
> * when the HIGHESTMODSEQ in the request is 1 and there are messages in the
> mailbox, the vanished response is returned with an empty list
> * when the HIGHESTMODSEQ is the request is above 2 and below the mailbox's
> HIGHESTMODSEQ, the list in the vanished response ranges from 1 to the
> mailbox's HIGHESTMODSEQ minus 1
>
> *Steps to reproduce:*
> *Step 1:* Connect, login, enable qresync and create test folder
> {code:java}
> C1 ENABLE QRESYNC
> C2 CREATE test/t1
> ...{code}
> *Step 2:* Append 5 messages
> *Step 3:* Select folder and take note of the UIDVALIDITY
> {code:java}
> C11 SELECT "test/t1"
> ...
> * OK [UIDVALIDITY XXXXXXXXXX] UIDs valid
> * OK [HIGHESTMODSEQ 5] Highest
> ...{code}
> *Step 4*: Select folder with qresync (use saved UIDVALIDITY and a
> HIGHESTMODSEQ 1)
> {code:java}
> C12 SELECT "test/t1" (QRESYNC (XXXXXXXXXX 1))
> ...
> * VANISHED (EARLIER)
> ...{code}
> *Step 5*: Select folder with qresync (use saved UIDVALIDITY and a
> HIGHESTMODSEQ lower than the current value)
> {code:java}
> C13 SELECT "test/t1" (QRESYNC (XXXXXXXXXX 4))
> ...
> * VANISHED (EARLIER) 1:3
> ...{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]