Method: Net::IMAP#subscribe
- Defined in:
- lib/net/imap.rb
#subscribe(mailbox) ⇒ Object
Sends a SUBSCRIBE command to add the specified mailbox name to the server’s set of “active” or “subscribed” mailboxes as returned by #lsub().
A Net::IMAP::NoResponseError is raised if mailbox cannot be subscribed to, for instance because it does not exist.
443 444 445 |
# File 'lib/net/imap.rb', line 443 def subscribe(mailbox) send_command("SUBSCRIBE", mailbox) end |