filterto(1)

NAME

filterto - conditionally forward a filtered message

SYNOPSIS

In .qmail:

    | filterto _address_ _prog_

where _address_ is an email address, and _prog_ is one or more arguments specifying a program to run for each message.

DESCRIPTION

The filterto program runs _prog_ with a message on standard input. If _prog_ exits 0, filterto forwards the standard output from _prog_ to _address_, and then exits 99. If _prog_ exits 111, filterto exits 111. If _prog_ exits with any other exit code, or does not exist, filterto exits 0.

NB : It is not safe for _prog_ to fork a child that reads the message in the background.

NB : If you use filterto in a .qmail file, make sure to add a line specifying delivery to your normal mailbox.

AUTHOR

William Baxter <sst@superscript.com>

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