MessageForwardCommand (message/forward.rs)

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

CLI command to forward an email message with optional attachments.

// 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 forward
//!
//! The `message forward` command, composing a forward of a fetched
//! message.

use std::path::PathBuf;

use anyhow::Result;
use clap::Parser;
use pimalaya_cli::printer::Printer;

use crate::{
    account::context::Account,
    config::PostingStyle,
    email::flag::{Flag, FlagOp, IanaFlag},
    shared::{
        client::EmailClient,
        mailbox::arg::MailboxArg,
        message::{
            builder::{self, BuilderArgs, SourceArgs, SourceMode},
            handler,
        },
    },
};

/// Forward a message from flags.
///
/// The source is fetched to pre-fill the `Fwd

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

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

Get a free API key