From c49c0b4a56f110c4f0782cb4c541be589e1c45a1 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 27 Feb 2018 15:14:29 +0100 Subject: mcom: revamp argument parsing, allow setting arbitrary headers from command line --- man/mcom.1 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'man/mcom.1') diff --git a/man/mcom.1 b/man/mcom.1 index d4b9267..17fd814 100644 --- a/man/mcom.1 +++ b/man/mcom.1 @@ -9,15 +9,19 @@ .Nd compose, reply, forward, bounce, send messages .Sh SYNOPSIS .Nm mcom +.Op Fl Ar header Ar values\ ... .Op Ar recipients\ ... .Nm mcom .Fl r Op draft .Nm mrep +.Op Fl Ar header Ar values\ ... Fl - .Ar msg .Nm mfwd .Op Fl r +.Op Fl Ar header Ar values\ ... Fl - .Op Ar msgs\ ... .Nm mbnc +.Op Fl Ar header Ar values\ ... Fl - .Ar msg .Sh DESCRIPTION .Nm mcom @@ -56,6 +60,30 @@ See .Xr mmsg 7 for the message argument syntax. .Pc +.Pp +All commands can take optional +.Ar header +flags +.Pq which consist of two or more characters +to prefill header fields, +e.g. you can use +.Sq Nm mcom Fl to No merrilyn Fl cc No elea becci Fl subject No 'Party invite' +to create a draft with the To, Cc and Subject fields already set. +Note that these flags apply to +.Em all +arguments after them +.Po e.g. +.Sq mcom Fl attach No *.c +works +.Pc , +so you +need to use +.Sq Fl - +when you want to use this feature together with +.Nm mrep , +.Nm mfwd , +or +.Nm mbnc . .Sh MENU COMMANDS .Bl -tag -width 2n .It Ic s -- cgit 1.4.1