Adds raw RFC 5322 message to a mailbox via CLI, supporting flags and send option.
// 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 add
//!
//! The `message add` command, appending a raw RFC 5322 message to a
//! mailbox.
use std::fmt;
use anyhow::Result;
use clap::Parser;
use pimalaya_cli::printer::Printer;
use schemars::JsonSchema;
use serde::Serialize;
use crate::{
account::context::Account,
email::flag::Flag,
shared::{
client::EmailClient,
flag::arg::FlagArg,
message::{
arg::MessageArg,
handler::{self, Outcome},
},
},
};
/// Add a raw RFC 5322 message to a mailbox.
///
/// The message comes from a file path, an inline string or piped standa
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key