condtomaildir(1)

NAME

condtomaildir - conditionally deliver a message to a maildir

SYNOPSIS

In .qmail:

    | condtomaildir _dir_ _prog_

DESCRIPTION

The condtomaildir runs the program _prog_ with an email message on standard input. It expects _dir_ to be a Maildir-format directory.

If _prog_ exits 0, condtomaildir writes the email message to the maildir _dir_, and then exits 99. If _prog_ exits 111, condtomaildir exits 111. If _prog_ exits anything else, or does not exist, condtomaildir exits 0.

EXIT STATUS

If it encounters a permanent error in handling a message, condtomaildir exits 100. If it encounters a temporary error in handling a message, condtomaildir exits 111.

AUTHOR

William Baxter <sst@superscript.com>

Version 0.56
Last updated 2015-08-23 23:24:43 CDT