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.
512 513 514 |
# File 'lib/net/imap.rb', line 512 def subscribe(mailbox) send_command("SUBSCRIBE", mailbox) end |