Skip to main content

6.3.8 UNSUBSCRIBE Command

Arguments: mailbox name

Responses: no specific responses for this command

Result:

  • OK - unsubscribe completed
  • NO - unsubscribe failure: can't unsubscribe that name
  • BAD - command unknown or arguments invalid

The UNSUBSCRIBE command removes the specified mailbox name from the server's set of "active" or "subscribed" mailboxes as returned by the LIST (SUBSCRIBED) command. This command returns a tagged OK response if the unsubscription is successful or if the mailbox is not subscribed.

Example:

C: A002 UNSUBSCRIBE #news.comp.mail.mime
S: A002 OK UNSUBSCRIBE completed