On Fri, 16 Jan 2004, Andreas Aardal Hanssen wrote:
> It's compliant with IMAP.

Indeed it is compliant, and it's necessary for the reasons that Andreas
and Timo gave.  But there's another point.

Even if there was no reason for the server to have sent extra data, it is
*always* compliant for the server to send unsolicited data.  The server
can send whatever it wants, for whatever reason it wants.

It can even choose to do so knowing that it will cause a poorly written
client to crash, with the evil intent of causing the users to switch to a
different client.  IMAP generally does not allow a server much discretion
in its behavior; but this area is one of the exceptions.

The moral of the story is that you must write your client program to
accept unsolicited data, otherwise it will encounter unpleasant surprises.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.

Reply via email to