Hunny Software Library Reference

BadResponse Class

Class that represents an IMAP4 BAD response.

For a list of all members of this type, see BadResponse Members.

System.Object
   Response
      BaseStatusResponse
         BadResponse

[Visual Basic]
Public Class BadResponse
Inherits BaseStatusResponse
[C#]
public class BadResponse : BaseStatusResponse

Remarks

A BAD response indicates a negative result at the server. If the BAD response is tagged, it indicates that the client command with the same tag has failed. If the BAD response is untagged (that is, the tag is "*"), then it indicates an error for which there is no specific client command.

A NO response also indicates a negative result, but a BAD response and a NO response are not the same. A NO response indicates that the negative result occurred because of conditions at the server, such as an internal server error. A BAD response indicates a protocol error, such as a command that is not supported by the server or a syntax error in the command message.

When you receive a BadResponse following a client command, you should check the tag of the BadResponse by getting the inherited Tag property. If the tag is not "*", then this response indicates that the client command with the same tag has failed.

Typically, a BAD response contains human-readable text. You can get this text by getting the inherited ResponseText property.

Requirements

Namespace: Hunny.Mail

Assembly: Hunny.Mail (in Hunny.Mail.dll)

See Also

BadResponse Members | Hunny.Mail Namespace | BAD response in the IMAP4 specification