Hi, Jon. :-)

On Fri, 12 Sep 2003, Jon Atkins wrote:
>Additional SUBSCRIBE commands in the same session don't add more duplicates.
>Logging in again and issueing a new SUBSCRIBE causes all current entries to
>be duplicated.

There was actually a discussion on the IMAP protocol mailing list some
while ago about duplicate entries in the LSUB response. Here's Mark
Crispin's (protocol author) response:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg00758.html

In short the protocol (as of rfc2060 6.3.6) states that the SUBSCRIBE
command should add entries to the list of subscriptions. Crispin complains
that Cyrus, Courier-IMAP and Communigate Pro rather insert-or-replace,
which is not the same as an "add" and therefore wrong.

The client that does an LSUB on an entry that is already subscribed to is
the peer with the bug. The server does what it is supposed to, and since
the client's request is silly, the server's response may seem silly too.

Now you _have_ discovered a bug in SUBSCRIBE/LSUB/UNSUBSCRIBE which I will
fix. But this is the fact that subscribing to multiple mailboxes within
the same session doesn't quite work, and that unsubscribing to such
mailboxes also fails (within the same session).

But the behavior of allowing duplicate entries is something I have allowed 
by design. :-)

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