summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-mail/src/ui.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-04-18 11:18:07 +0200
committerMatthias Beyer <mail@beyermatthias.de>2020-06-01 14:01:39 +0200
commit70f974ee7ab1d15a200d625878bd8b7db861bb98 (patch)
treeb6eca3d13c7f1f6223add6005a5c9c4f972ccf55 /bin/domain/imag-mail/src/ui.rs
parent908972af726bc46089b4f5d92a53ff206c088657 (diff)
Add implementation for crafting new mail
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'bin/domain/imag-mail/src/ui.rs')
-rw-r--r--bin/domain/imag-mail/src/ui.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/domain/imag-mail/src/ui.rs b/bin/domain/imag-mail/src/ui.rs
index 7ea993ab..3345a6aa 100644
--- a/bin/domain/imag-mail/src/ui.rs
+++ b/bin/domain/imag-mail/src/ui.rs
@@ -135,6 +135,20 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
.required(false)
.value_name("ADDRESS")
.help("The subject of the mail"))
+ .arg(Arg::with_name("date")
+ .long("date")
+ .takes_value(true)
+ .multiple(true)
+ .required(false)
+ .value_name("DATETIME")
+ .help("The date to put into the mail (defaults to now)"))
+ .arg(Arg::with_name("from")
+ .long("from")
+ .takes_value(true)
+ .multiple(true)
+ .required(false)
+ .value_name("FROM")
+ .help("The from address to put into the mail, defaults to configured value"))
.arg(Arg::with_name("in-reply-to")
.long("in-reply-to")
.short("r")