close

close() Instance Public methods Sends a CLOSE command to close the currently selected mailbox. The CLOSE command permanently removes from the mailbox all messages that have the Deleted flag set.

copy

copy(set, mailbox) Instance Public methods Sends a COPY command to copy the specified message(s) to the end of the specified destination mailbox. The set parameter is a number or an array of numbers or a Range object. The number is a message sequence number.

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.

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.

disconnect

disconnect() Instance Public methods Disconnects from the server.

disconnected?

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

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.

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.

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

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.