MessageCopyCommand (message/copy.rs)

himalaya · src/shared/message/copy.rs · rust · Apache-2.0
email

CLI command to copy emails between mailboxes in same account.

// 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.
//! # Message copy
//!
//! The `message copy` command, copying messages between two mailboxes of
//! one account.

use anyhow::{Result, bail};
use clap::Parser;
use pimalaya_cli::printer::{Message, Printer};

use crate::{
    account::context::Account,
    shared::{
        client::EmailClient, flag::arg::MessageIdsArg, mailbox::arg::resolve_mailbox_or_default,
    },
};

/// Copy messages from one mailbox to another within the active account.
///
/// Both mailboxes are resolved through the account's aliases. Copying
/// across accounts or backends is out of scope.
#[derive(Debug, Parser)]
pub struct Me

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key