method

unsubscribe

v1_9_1_378 - Show latest stable - Class: Net::IMAP
unsubscribe(mailbox)
public

Sends a UNSUBSCRIBE command to remove the specified mailbox name from the server’s set of “active” or “subscribed” mailboxes.

A Net::IMAP::NoResponseError is raised if mailbox cannot be unsubscribed from, for instance because the client is not currently subscribed to it.