Files
himalaya/src/jmap/account.rs
T
2026-05-20 00:53:24 +02:00

17 lines
432 B
Rust

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