Dispatches IMAP subcommands to an account’s IMAP session.
// Source: https://github.com/pimalaya/himalaya | License: Apache-2.0 | Copyright 2022-2026 soywod <pimalaya.org@posteo.net>
// Provided via justclaw.it.com; keep this notice with the code.
//! # IMAP command
//!
//! The `imap` command, dispatching onto its subcommands.
use anyhow::Result;
use clap::Subcommand;
use pimalaya_cli::printer::Printer;
use crate::{
account::context::Account,
imap::{
client::ImapClient,
envelope::{
search::ImapEnvelopeSearchCommand, sort::ImapEnvelopeSortCommand,
thread::ImapEnvelopeThreadCommand,
},
fetch::ImapFetchCommand,
flag::{list::ImapFlagListCommand, store::ImapStoreCommand},
id::ImapIdCommand,
mailbox::{
close::ImapMailboxCloseCommand, create::ImapMailbo
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key