CLI command that builds and optionally sends an email message from flags.
// 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 compose
//!
//! The `message compose` command, assembling a new message from flags.
use std::path::PathBuf;
use anyhow::Result;
use clap::Parser;
use pimalaya_cli::printer::Printer;
use crate::{
account::context::Account,
shared::{
client::EmailClient,
message::{
builder::{self, BuilderArgs},
handler,
},
},
};
/// Compose a new message from flags.
///
/// The RFC 5322 bytes go to stdout, unless `--save` appends a copy to a
/// mailbox, `--send` pushes the message out, or both. With `--json` and
/// neither, the decoded fields
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key