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>