debian/rules: Use `git' potty wrapper.
[qmail] / condredirect.1
CommitLineData
2117e02e
MW
1.TH condredirect 1
2.SH NAME
3condredirect \- perhaps redirect mail to another address
4.SH SYNOPSIS
5in
6.BR .qmail :
7.B |condredirect
8.I newaddress
9.I program
10[
11.I arg ...
12]
13.SH DESCRIPTION
14.B condredirect
15feeds each new mail message to
16.I program
17with the given arguments.
18If
19.I program
20exits 0,
21.B condredirect
22forwards the mail message to
23.IR newaddress ,
24and then exits 99,
25so further commands in
26.B .qmail
27are ignored.
28
29If
30.I program
31exits 111,
32.B condredirect
33exits 111,
34so delivery will be retried later.
35
36If
37.I program
38exits anything else
39(or does not exist),
40.B condredirect
41exits 0,
42so the rest of
43.B .qmail
44will be processed as usual.
45
46Note that
47it is not safe for
48.I program
49to fork a child that
50reads the message in the background.
212b6f5d
MW
51
52.B WARNING:
53If you create a
54.B .qmail
55file to enable
56.BR condredirect ,
57make sure to also add a line specifying delivery to your normal mailbox.
2117e02e 58.SH "SEE ALSO"
212b6f5d
MW
59bouncesaying(1),
60except(1),
2117e02e
MW
61dot-qmail(5),
62qmail-command(8),
63qmail-queue(8)