You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Norman Maurer (JIRA)" <se...@james.apache.org> on 2011/04/08 13:38:06 UTC
[jira] [Commented] (IMAP-267) Wrong unsolicited responses when more
then one email expunged
[ https://issues.apache.org/jira/browse/IMAP-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017408#comment-13017408 ]
Norman Maurer commented on IMAP-267:
------------------------------------
>From RFC 3501:
7.4.1. EXPUNGE Response
Contents: none
The EXPUNGE response reports that the specified message sequence
number has been permanently removed from the mailbox. The message
sequence number for each successive message in the mailbox is
immediately decremented by 1, and this decrement is reflected in
message sequence numbers in subsequent responses (including other
untagged EXPUNGE responses).
The EXPUNGE response also decrements the number of messages in the
mailbox; it is not necessary to send an EXISTS response with the
new value.
As a result of the immediate decrement rule, message sequence
numbers that appear in a set of successive EXPUNGE responses
depend upon whether the messages are removed starting from lower
numbers to higher numbers, or from higher numbers to lower
numbers. For example, if the last 5 messages in a 9-message
mailbox are expunged, a "lower to higher" server will send five
untagged EXPUNGE responses for message sequence number 5, whereas
a "higher to lower server" will send successive untagged EXPUNGE
responses for message sequence numbers 9, 8, 7, 6, and 5.
> Wrong unsolicited responses when more then one email expunged
> -------------------------------------------------------------
>
> Key: IMAP-267
> URL: https://issues.apache.org/jira/browse/IMAP-267
> Project: JAMES Imap
> Issue Type: Bug
> Reporter: Wojtek Strzalka
> Assignee: Norman Maurer
>
> When there are many messages deleted they are removed from the selected set in the same loop that we are computing messages offsets so the offsets can be repeated in the answer like:
> d FETCH 1 (UID)
> * 1 EXPUNGE
> * 3 EXPUNGE
> * 3 EXPUNGE
> d OK FETCH completed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org