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 b0cb062a32 Merge branch 'develop' 2 days ago
lib Update the sbuffer module. 1 month ago
m4 Add replacement function for asprintf 7 years ago
man Fix typo in manual page. 1 month ago
src Exit upon failure to open attachment. 2 days ago
.gitignore Initial commit 7 years ago
AUTHORS Prepare point release. 11 months ago
COPYING Initial commit 7 years ago
Makefile.am Prepare next release. 11 months ago
NEWS Prepare 0.2.1 release. 2 days ago
README.md Prepare 0.2.0 release. 1 month ago
configure.ac Prepare 0.2.1 release. 2 days 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 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.