I am the developer of piece of IMAP client software and one of my
users complained that new mail was not being detected correctly with
his Courier IMAP server.
Having reviewed the logs of my clients communications with his server
this seems to be a problem with the server.
To demonstrate what happens, here is what I get when I poll the
mailbox before any new mail arrives:
0024 STATUS "INBOX" (MESSAGES UIDNEXT)
* STATUS "INBOX" (MESSAGES 107 UIDNEXT 110)
0024 OK STATUS Completed.
At this point the mailbox contains 107 messages and the next message
to arrive will have a UID of 110. After the new message arrives, this
is what I get:
0007 STATUS "INBOX" (MESSAGES UIDNEXT)
* STATUS "INBOX" (MESSAGES 108 UIDNEXT 110)
0007 OK STATUS Completed.
Notice that although the message count has gone up, the UIDNEXT value
is still the same which can't be true, as the new message should have
been given that UID. Indeed when the mailbox is opened and I fetch a
list of message I get this:
* 108 FETCH (UID 110 RFC822.SIZE 690 ...
So there the new message does have a UID of 110 and STATUS was lying
to me, which seems to be in contravention of RFC 2060, which says:
UIDNEXT The next UID value that will be assigned to a new
message in the mailbox. It is guaranteed that this
value will not change unless new messages are added
to the mailbox; and that it will change when new
messages are added even if those new messages are
subsequently expunged.
So unless somebody can explain why I'm wrong I have to say that I think
this counts as a bug in the Courier IMAP server.
Tom
--
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users