himalaya 1.0.0-beta

CLI to manage emails
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Module related to IMAP handling.
//!
//! This module gathers all IMAP handlers triggered by the CLI.

use anyhow::Result;

pub async fn notify(imap: &mut ImapBackend, folder: &str, keepalive: u64) -> Result<()> {
    imap.notify(keepalive, folder).await?;
    Ok(())
}

pub async fn watch(imap: &mut ImapBackend, folder: &str, keepalive: u64) -> Result<()> {
    imap.watch(keepalive, folder).await?;
    Ok(())
}