himalaya 0.7.0

Command-line interface for email management.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Module related to IMAP handling.
//!
//! This module gathers all IMAP handlers triggered by the CLI.

use anyhow::{Context, Result};
use himalaya_lib::ImapBackend;

pub fn notify(imap: &ImapBackend, folder: &str, keepalive: u64) -> Result<()> {
    imap.notify(keepalive, folder).context("cannot imap notify")
}

pub fn watch(imap: &ImapBackend, folder: &str, keepalive: u64) -> Result<()> {
    imap.watch(keepalive, folder).context("cannot imap watch")
}