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.
Damien Goutte-Gattat dbeacdc211
Tag fmail-0.1.1.
4 years ago
lib Add die-on-error version of asprintf 10 years ago
m4 Add replacement function for asprintf 10 years ago
man Update copyright notices. 4 years ago
src Catch GpgME error when signing. 4 years ago
.gitignore Initial commit 11 years ago
AUTHORS Initial commit 11 years ago
COPYING Initial commit 11 years ago
Makefile.am Prepare next release. 4 years ago
NEWS Prepare next release. 4 years ago
README.md Prepare next release. 4 years ago
configure.ac Prepare next release. 4 years ago


fmail - Incenp.org’s 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 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 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 in a Git repository at git://git.incenp.org/fmail.git and may also be browsed at https://incenp.org/gitweb/?p=fmail.git;a=summary.