use anyhow::Result;
use crate::{
config::{Account, Config},
domain::imap::ImapServiceInterface,
};
pub fn notify<'a, ImapService: ImapServiceInterface<'a>>(
keepalive: u64,
config: &Config,
imap: &mut ImapService,
) -> Result<()> {
imap.notify(config, keepalive)
}
pub fn watch<'a, ImapService: ImapServiceInterface<'a>>(
keepalive: u64,
account: &Account,
imap: &mut ImapService,
) -> Result<()> {
imap.watch(account, keepalive)
}