Struct imap::client::Client [] [src]

pub struct Client<T> {
    pub debug: bool,
    // some fields omitted
}

Stream to interface with the IMAP server. This interface is only for the command stream.

Fields

Methods

impl Client<TcpStream>
[src]

Creates a new client.

This will upgrade a regular TCP connection to use SSL.

impl Client<SslStream<TcpStream>>
[src]

Creates a client with an SSL wrapper.

impl<T: Read + Write> Client<T>
[src]

Creates a new client with the underlying stream.

Authenticate will authenticate with the server, using the authenticator given.

Log in to the IMAP server.

Selects a mailbox

Examine is identical to Select, but the selected mailbox is identified as read-only

Fetch retreives data associated with a message in the mailbox.

Noop always succeeds, and it does nothing.

Logout informs the server that the client is done with the connection.

Create creates a mailbox with the given name.

Delete permanently removes the mailbox with the given name.

Rename changes the name of a mailbox.

Subscribe adds the specified mailbox name to the server's set of "active" or "subscribed" mailboxes as returned by the LSUB command.

Unsubscribe removes the specified mailbox name from the server's set of "active" or "subscribed" mailboxes as returned by the LSUB command.

Capability requests a listing of capabilities that the server supports.

Expunge permanently removes all messages that have the \Deleted flag set from the currently selected mailbox.

Check requests a checkpoint of the currently selected mailbox.

Close permanently removes all messages that have the \Deleted flag set from the currently selected mailbox, and returns to the authenticated state from the selected state.

Store alters data associated with a message in the mailbox.

Copy copies the specified message to the end of the specified destination mailbox.

The LIST command returns a subset of names from the complete set of all names available to the client.

The LSUB command returns a subset of names from the set of names that the user has declared as being "active" or "subscribed".

The STATUS command requests the status of the indicated mailbox.

Returns a handle that can be used to block until the state of the currently selected mailbox changes.

Runs a command and checks if it returns OK.

Runs any command passed to it.