himalaya 0.5.7

Command-line interface for email management
Documentation
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;

use crate::backends::ImapBackend;

pub fn notify(keepalive: u64, mbox: &str, imap: &mut ImapBackend) -> Result<()> {
    imap.notify(keepalive, mbox)
}

pub fn watch(keepalive: u64, mbox: &str, imap: &mut ImapBackend) -> Result<()> {
    imap.watch(keepalive, mbox)
}