pub struct SyncOptions {
pub local: String,
pub remote: String,
pub user: String,
pub password: String,
pub threads: u8,
pub unsafe_tls: bool,
pub disable_tls: bool,
pub list_mailbox_actions: bool,
pub include: Vec<String>,
pub exclude: Vec<String>,
pub force: bool,
}Expand description
A set of options to control the synchronization process
Fields§
§local: StringThe local maildir to sync to
remote: StringThe IMAPS URL to sync from
user: StringThe user for IMAP authentication
password: StringThe password for IMAP authentication
threads: u8The 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: boolDisable TLS certificate checks (e.g. for self-signed certs) (insecure)
disable_tls: boolCompletely disable TLS (very insecure)
list_mailbox_actions: boolOnly 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.
force: boolConfirm execution of potentially dangerous actions (e.g. deleting mailboxes)
Trait Implementations§
Source§impl Clone for SyncOptions
impl Clone for SyncOptions
Source§fn clone(&self) -> SyncOptions
fn clone(&self) -> SyncOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more