himalaya 1.2.0

CLI to manage emails
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod body;

use clap::Parser;

/// The raw template argument parser.
#[derive(Debug, Parser)]
pub struct TemplateRawArg {
    /// The raw template, including headers and MML body.
    #[arg(trailing_var_arg = true)]
    #[arg(name = "template_raw", value_name = "TEMPLATE")]
    pub raw: Vec<String>,
}

impl TemplateRawArg {
    pub fn raw(self) -> String {
        self.raw.join(" ").replace('\r', "")
    }
}