Edward Hibbert wrote: > I have a query on how untagged responses should work. I can't see > discussion of this in 2180 or 2060; apologies if I've missed it. > > Suppose: > - You have a mailbox selected on one session containing 2 messages. > - 3 messages are APPENDed, and 1 of them expunged by another session. > - The first session issues a NOOP. > > What notifications should it get back? I can think of a number of choices, > doubtless not all valid. > > * 3 EXPUNGE > * 4 EXISTS > > (javamail doesn't like this one)
because it thinks there are only 2 messages in the mailbox when it receives "* 3 EXPUNGE" > or > > * 5 EXISTS > * 3 EXPUNGE > > (this is the one I like best) This one is fine. > or > > * 4 EXISTS > * 3 EXPUNGE This says that there are only 3 messages at the end (initial 4 minus 1 expunged), which is not what you want. > or > > * 5 EXISTS > * 3 EXPUNGE > * 4 EXISTS The last EXISTS response should not be sent in this case, as it doesn't change the number of messages. Cheers, Alexey __________________________________________ Home Page: http://orthanc.ab.ca/mel IETF standard related pages: http://orthanc.ab.ca/mel/devel/Links.html __________________________________________
