mirror of
https://github.com/soywod/himalaya.git
synced 2024-09-06 02:41:12 +00:00
20 lines
567 B
Rust
20 lines
567 B
Rust
|
#[cfg(feature = "imap-backend")]
|
||
|
use email::imap::ImapConfig;
|
||
|
#[cfg(feature = "notmuch-backend")]
|
||
|
use email::notmuch::NotmuchConfig;
|
||
|
#[cfg(feature = "smtp-sender")]
|
||
|
use email::smtp::SmtpConfig;
|
||
|
use email::{maildir::MaildirConfig, sendmail::SendmailConfig};
|
||
|
|
||
|
#[derive(Clone, Debug, Eq, PartialEq)]
|
||
|
pub enum BackendConfig {
|
||
|
Maildir(MaildirConfig),
|
||
|
#[cfg(feature = "imap-backend")]
|
||
|
Imap(ImapConfig),
|
||
|
#[cfg(feature = "notmuch-backend")]
|
||
|
Notmuch(NotmuchConfig),
|
||
|
#[cfg(feature = "smtp-sender")]
|
||
|
Smtp(SmtpConfig),
|
||
|
Sendmail(SendmailConfig),
|
||
|
}
|