pub struct EmailConfig {Show 21 fields
pub enabled: bool,
pub consent_granted: bool,
pub imap_host: String,
pub imap_port: u16,
pub imap_username: String,
pub imap_password: SecretString,
pub imap_mailbox: String,
pub imap_use_ssl: bool,
pub smtp_host: String,
pub smtp_port: u16,
pub smtp_username: String,
pub smtp_password: SecretString,
pub smtp_use_tls: bool,
pub smtp_use_ssl: bool,
pub from_address: String,
pub auto_reply_enabled: bool,
pub poll_interval_seconds: u32,
pub mark_seen: bool,
pub max_body_chars: u32,
pub subject_prefix: String,
pub allow_from: Vec<String>,
}Expand description
Email channel configuration (IMAP inbound + SMTP outbound).
Fields§
§enabled: boolWhether this channel is enabled.
consent_granted: boolExplicit owner permission to access mailbox data.
imap_host: StringIMAP server hostname.
imap_port: u16IMAP server port.
imap_username: StringIMAP username.
imap_password: SecretStringIMAP password.
imap_mailbox: StringIMAP mailbox to watch.
imap_use_ssl: boolUse SSL for IMAP.
smtp_host: StringSMTP server hostname.
smtp_port: u16SMTP server port.
smtp_username: StringSMTP username.
smtp_password: SecretStringSMTP password.
smtp_use_tls: boolUse STARTTLS for SMTP.
smtp_use_ssl: boolUse implicit SSL for SMTP.
from_address: StringFrom address for outgoing emails.
auto_reply_enabled: boolIf false, inbound email is read but no automatic reply is sent.
poll_interval_seconds: u32Polling interval in seconds.
mark_seen: boolMark messages as seen after processing.
max_body_chars: u32Maximum email body characters to process.
subject_prefix: StringPrefix for reply subjects.
allow_from: Vec<String>Allowed sender email addresses. Empty = allow all.
Trait Implementations§
Source§impl Clone for EmailConfig
impl Clone for EmailConfig
Source§fn clone(&self) -> EmailConfig
fn clone(&self) -> EmailConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmailConfig
impl Debug for EmailConfig
Source§impl Default for EmailConfig
impl Default for EmailConfig
Source§impl<'de> Deserialize<'de> for EmailConfig
impl<'de> Deserialize<'de> for EmailConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EmailConfig
impl RefUnwindSafe for EmailConfig
impl Send for EmailConfig
impl Sync for EmailConfig
impl Unpin for EmailConfig
impl UnsafeUnpin for EmailConfig
impl UnwindSafe for EmailConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more