pub struct ImapSessionOpenOptions {
pub starttls: bool,
pub auto_id: Option<Vec<(IString<'static>, NString<'static>)>>,
pub sasl_ir: Option<bool>,
}Expand description
Provider-quirk and policy options for ImapSessionOpen::new.
The default upgrades nothing, sends no ID and follows the server’s
advertised capabilities.
Fields§
§starttls: boolWhether to upgrade the connection with STARTTLS after the
greeting. Only valid on a cleartext transport, since
ImapSessionTransport::Tls is already encrypted.
auto_id: Option<Vec<(IString<'static>, NString<'static>)>>ID parameters consumed by the authentication step, required by a few providers (mail.qq.com, Fastmail).
None skips, Some(empty) sends ID NIL, Some(params) sends
ID (k v ...).
sasl_ir: Option<bool>Forces the RFC 4959 SASL-IR initial response on or off.
Some(true) inlines it with the AUTHENTICATE command,
Some(false) waits for the server’s continuation request, and
None follows the advertised SASL-IR capability. Coremail
(126.com, 163.com) advertises it falsely, and no capability
inspection can predict that.
Trait Implementations§
Source§impl Clone for ImapSessionOpenOptions
impl Clone for ImapSessionOpenOptions
Source§fn clone(&self) -> ImapSessionOpenOptions
fn clone(&self) -> ImapSessionOpenOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more