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