A mail formatter.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
2.4 KiB

.TH FMAIL 22/05/2011 "fmail @PACKAGE_VERSION@"
fmail \- mail formatter
.SY fmail
.RB [ \-h | --help ]
.RB [ \-v | --version ]
.RB [ \-a | --attach
.IR file ]
.RB [ \-s | --sign ]
.RB [ \-e | --edit ]
.RB [ \-f | --footer
.IR file ]
.RB [ \-H | --header
.IR header ]
.RB [ \-F | --from
.IR sender ]
.RB [ \-T | --to
.IR recipient ]
.RB [ \-C | --cc
.IR recipient ]
.RB [ \-S | --subject
.IR subject ]
.RB [ \-U | --user-agent ]
.RB [ \-D | --date ]
.B fmail
formats text read on standard input into a mail message
ready to be sent to a mail submission agent.
The formatting process includes: encoding the text body in
.I Quoted-Printable\fR;
creating appropriate MIME parts for attachments and
OpenPGP signature; encoding attachments (in
.I Base64
.I Quoted-Printable
depending on their type); adding appropriate mail headers.
The resulting message is printed on standard output and can
be piped directly to a program such as
.B sendmail(8)
to effectively send the message to a mail server.
The first lines of the input message, up to the first blank
line, are treated as mail headers; everything from the first
blank line to the end of file is treated as the mail body.
.BR -h ", " --help
Display the help message.
.BR -v ", " --version
Display the version message.
.BR -a ", " --attach " " \fIfile\fR
Attach the specified
.I file\fR.
.BR -s ", " --sign
Sign the message.
.BR -e ", " --edit
Fire an editor to type the mail body instead of
reading it from standard input.
.BR -f ", " --footer " " \fIfile\fR
Append the contents of the specified
.I file
as the mail footer.
.BR -H ", " --header " " \fIheader\fR
Add an arbitrary header.
.BR -F ", " --from " " \fIsender\fR
Set the
.B From:
.BR -T ", " --to " " \fIrecipient\fR
Add a
.B To:
.BR -C ", " --cc " " \fIrecipient\fR
Add a
.B Cc:
.BR -S ", " --subject " " \fIsubject\fR
Set the
.B Subject:
.BR -U ", " --user-agent
Add a
.B User-Agent:
.BR -D "; " --date
Add an automatically generated
.B Date:
header with the current date.
Report bugs to
Damien Goutte-Gattat
.ME .
.ad l
Copyright \(co 2011,2018 Damien Goutte-Gattat
This program is released under the GNU General Public License.
See the COPYING file in the source distribution or
.UR http://www.gnu.org/licenses/gpl.html
.UE .