Struct vomit_sync::SyncOptions

source ·
pub struct SyncOptions {
    pub local: String,
    pub remote: String,
    pub user: String,
    pub password: String,
    pub threads: u8,
    pub unsafe_tls: bool,
    pub list_mailbox_actions: bool,
    pub include: Vec<String>,
    pub exclude: Vec<String>,
}
Expand description

A set of options to control the synchronization process

Fields

local: String

The local maildir to sync to

remote: String

The IMAPS URL to sync from

user: String

The user for IMAP authentication

password: String

The password for IMAP authentication

threads: u8

The number of threads to use

Each thread will use it’s own IMAP session, so this must not be greater than the number of concurrent user sessions allowed by the IMAP server.

unsafe_tls: bool

Disable TLS certificate checks (e.g. for self-signed certs)

list_mailbox_actions: bool

Only log with info level what actions (sync, create, delete) would be taken on which mailboxes (taking include/exclude into account), then exit.

include: Vec<String>

A list of wildcard patterns to include only folders that match any of them.

The wildcard pattern only supports ? and * and must match the full mailbox name.

exclude: Vec<String>

A list of wildcard patterns to exclude all folders that match any of them.

The wildcard pattern only supports ? and * and must match the full mailbox name. If used together with include and both match, exclude takes precedence.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.