(Cc'ed to the imap list again.) At 2003-07-01 22:01:33 -0700, [EMAIL PROTECTED] wrote: > > How could a client know about the server stratagy by seeing server > response.
What does it need to know, and why? > If i get any resopnse form server like > > Ex: > C:a001 DELETE Foo > Possible responses form server are > S: a001 NO mailbox Foo is in use by another user. > S: a001 NO mailbox does not exist. > > In this case, have i need to parse the string "mailbox foo is in use > by antoher user" to know the reason? No. There are three possible responses: OK, NO, and BAD. Their meaning is defined in RFC 3501, �6.3.4. Servers may send arbitrary explanatory text along with the response; as far as the client is concerned, there is no difference between the two NO results above. As an IMAP client, you must not make any assumptions about the content or structure of resp-text (except, unfortunately, as far as required by the RFC via resp-text-codes). -- ams
