use anyhow::Result; use pimalaya_toolbox::stream::jmap::JmapSession; use crate::{account::Account, config::JmapConfig}; pub type JmapAccount = Account; impl JmapAccount { pub fn new_jmap_session(&self) -> Result { JmapSession::new( self.backend.server.clone(), self.backend.tls.clone().try_into()?, self.backend.auth.clone().try_into()?, ) } }