formail
formail [options
]
Formats a mail message on standard input according to the options,
placing the new message on standard output (where it can be appended
to a file, piped to sendmail -t -oi
, etc.).
-r
Generate a reply, deleting existing headers and body.
-X
|
-x
header
Retain/just extract the named message header (can be used more than once).
-k
Keep the message body when using -r
or
-x
.
-a
header
:
text
Append the specified header if it is not already present
(-A
appends unconditionally).
-I
header
:
text
Replace the existing header line (-i
renames the
current one).
-z
Clean up header formatting.