A mail formatter.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Damien Goutte-Gattat 02e8878d5f Fix man page header.
The .TH command expects the section number before the date.
3 years ago
lib Update the sbuffer module. 4 years ago
m4 Add replacement function for asprintf 12 years ago
man Fix man page header. 3 years ago
src Exit upon failure to open attachment. 4 years ago
.gitignore Initial commit 12 years ago
AUTHORS Prepare point release. 5 years ago
COPYING Initial commit 12 years ago
Makefile.am Prepare next release. 5 years ago
NEWS Prepare 0.2.1 release. 4 years ago
README.md Prepare 0.2.0 release. 4 years ago
configure.ac Prepare 0.2.1 release. 4 years ago


fmail - Incenp.orgs mail formatter


Fmail is a mail formatter. It reads a draft message on its standard input and writes to its standard output a suitably formatted message ready to be sent to a mail submission agent.

The name “fmail” stands for something like “Formatting MAIL”.

The main feature of Fmail is its ability to add attachments to the input message and to sign and/or encrypt the whole message (including attachments) using PGP/MIME.

The signing feature makes Fmail usable as a “signing filter”, taking a complete (but unsigned) mail on its standard input and emitting a PGP/MIME-signed message on its standard output (ready to be sent to a mail submission agent such as /usr/sbin/sendmail).


Fmail depends on the following libraries:

  • libgpgme, to sign and encrypt messages.

  • libmagic, to guess file type and encoding of attachments.

I expect Fmail to compile cleanly (and behave correctly) on most POSIX systems, although I have only tested it on my GNU/Linux box. Should you find a portability issue on your system, please let me know.

Run the provided configure script to prepare the sources for build; run configure --help to know the available configuration parameters. Then run make to effectively build the program, and make install to install it on your system.


Fmail is distributed under the terms of the GNU General Public License, version 3 or higher. The full text of the license is included in the COPYING file of the source distribution.

Homepage and repository

The project is located at https://incenp.org/dvlpt/fmail.html. The latest source code is available at https://git.incenp.org/damien/fmail.