On Thu, 1 Jul 2004, Kyle Wheeler wrote:
>> I'll see what I can find. But you're sure that the session was run with
>> the patched server, and not using an old connection?
>Yup. I'll copy up another strace next time it happens (it's happened a
>few times since).

I've successfully reproduced the problem a couple of times now, and am
closing in on a solution. The problem seems only to occur with concurrent
access to the same mailbox. With Pine, I've reproduced it by opening two
or more "pines" on the same mailbox, then deleting and expunging messages
simultaneously on the two. The error also seems to be more frequent if the
mailbox receives new messages right before the simultaneous expunge.

It works fine something like 9 out of 10 times, but then suddenly

00000040 STORE 5820 +Flags (\DELETED)
* 5820 FETCH (FLAGS (\Deleted))
00000040 OK STORE completed
00000041 SEARCH ALL 1:5738,5758:5814 DELETED
* SEARCH
00000041 OK SEARCH completed
00000042 EXPUNGE
* 5819 EXISTS
00000042 OK EXPUNGE completed

Pine aborts at this point, because it expects an untagged EXPUNGE on the
line before the * 5819 EXISTS message.

Hopefully I'll have a patch one of the following days that nails this bug
for good.

Andy :-)

--
Andreas Aardal Hanssen   | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP      |  "It is better not to do something
http://www.bincimap.org/ |        than to do it poorly."

Reply via email to