getquotaroot

getquotaroot(mailbox) Instance Public methods Sends the GETQUOTAROOT command along with specified mailbox. This command is generally available to both admin and user. If mailbox exists, returns an array containing objects of Net::IMAP::MailboxQuotaRoot and Net::IMAP::MailboxQuota.

getquota

getquota(mailbox) Instance Public methods Sends the GETQUOTA command along with specified mailbox. If this mailbox exists, then an array containing a Net::IMAP::MailboxQuota object is returned. This command generally is only available to server admin.

getacl

getacl(mailbox) Instance Public methods Send the GETACL command along with specified mailbox. If this mailbox exists, an array containing objects of Net::IMAP::MailboxACLItem will be returned.

fetch

fetch(set, attr) Instance Public methods Sends a FETCH command to retrieve data associated with a message in the mailbox. The set parameter is a number or an array of numbers or a Range object. The number is a message sequence number. attr is a list of attributes to fetch; see the documentation for Net::IMAP::FetchData for a list of valid attributes. The return value is an array of Net::IMAP::FetchData. For example: p imap.fetch(6..8, "UID") #=> [#<Net::IMAP::FetchData seqno

expunge

expunge() Instance Public methods Sends a EXPUNGE command to permanently remove from the currently selected mailbox all messages that have the Deleted flag set.

examine

examine(mailbox) Instance Public methods Sends a EXAMINE command to select a mailbox so that messages in the mailbox can be accessed. Behaves the same as select(), except that the selected mailbox is identified as read-only. A Net::IMAP::NoResponseError is raised if the mailbox does not exist or is for some reason non-examinable.

disconnected?

disconnected?() Instance Public methods Returns true if disconnected from the server.

disconnect

disconnect() Instance Public methods Disconnects from the server.

delete

delete(mailbox) Instance Public methods Sends a DELETE command to remove the mailbox. A Net::IMAP::NoResponseError is raised if a mailbox with that name cannot be deleted, either because it does not exist or because the client does not have permission to delete it.

create

create(mailbox) Instance Public methods Sends a CREATE command to create a new mailbox. A Net::IMAP::NoResponseError is raised if a mailbox with that name cannot be created.