Administrative Hinweise zu Qmail, Filter für .qmail

IFHEADER


NAME

ifheader -- check for a given header

SYNOPSIS

ifheader [-r] header

DESCRIPTION

ifheader tests if header is found in the headers of the email message in its standard input. If -r is given, header is interpreted as a regular expression in Perl. Following the qmail-command standard, ifheader exits
0
if header is found among the headers,
100
when header is not found, and
111
if the header argument is missing, indicating a temporary error.

EXAMPLE

Following entry in ~/.qmail forwards all emails from joe@example.com to me@example.net:

   |condredirect me@example.net ifheader -r 'From: .*<joe@example.com>'

Please note, however, that the execution of ~/.qmail is stopped as soon as condredirect has forwarded the message.

AUTHOR

Andreas Borchert
converted to HTML: 2006/03/29