2023-12-04 21:26:49 +00:00
|
|
|
#[cfg(feature = "imap")]
|
|
|
|
use email::imap::config::ImapConfig;
|
|
|
|
#[cfg(feature = "notmuch")]
|
|
|
|
use email::notmuch::config::NotmuchConfig;
|
|
|
|
#[cfg(feature = "smtp")]
|
|
|
|
use email::smtp::config::SmtpConfig;
|
|
|
|
use email::{maildir::config::MaildirConfig, sendmail::config::SendmailConfig};
|
2023-12-03 21:31:43 +00:00
|
|
|
|
|
|
|
#[derive(Clone, Debug, Eq, PartialEq)]
|
|
|
|
pub enum BackendConfig {
|
|
|
|
Maildir(MaildirConfig),
|
2023-12-04 21:26:49 +00:00
|
|
|
#[cfg(feature = "imap")]
|
2023-12-03 21:31:43 +00:00
|
|
|
Imap(ImapConfig),
|
2023-12-04 21:26:49 +00:00
|
|
|
#[cfg(feature = "notmuch")]
|
2023-12-03 21:31:43 +00:00
|
|
|
Notmuch(NotmuchConfig),
|
2023-12-04 21:26:49 +00:00
|
|
|
#[cfg(feature = "smtp")]
|
2023-12-03 21:31:43 +00:00
|
|
|
Smtp(SmtpConfig),
|
|
|
|
Sendmail(SendmailConfig),
|
|
|
|
}
|