Struct rust_inbox::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]

[src]

Creates a new client.

[src]

This will upgrade a regular TCP connection to use SSL.

Use the domain parameter for openssl's SNI and hostname verification.

impl Client<SslStream<TcpStream>>
[src]

[src]

Creates a client with an SSL wrapper.

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

[src]

Creates a new client with the underlying stream.

[src]

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

[src]

Log in to the IMAP server.

[src]

LIST mailboxs

[src]

Selects a mailbox

[src]

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

[src]

Fetch retreives data associated with a message in the mailbox.

[src]

[src]

Noop always succeeds, and it does nothing.

[src]

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

[src]

Create creates a mailbox with the given name.

[src]

Delete permanently removes the mailbox with the given name.

[src]

Rename changes the name of a mailbox.

[src]

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

[src]

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

[src]

Capability requests a listing of capabilities that the server supports.

[src]

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

[src]

Check requests a checkpoint of the currently selected mailbox.

[src]

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.

[src]

Store alters data associated with a message in the mailbox.

[src]

[src]

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

[src]

[src]

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

[src]

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

[src]

The STATUS command requests the status of the indicated mailbox.

[src]

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

[src]

The APPEND command adds a mail to a mailbox.

[src]

Runs a command and checks if it returns OK.

[src]

[src]

Runs any command passed to it.

[src]