File: condredirect.1

package info (click to toggle)
qmail 1.01-5
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 2,188 kB
  • ctags: 1,711
  • sloc: ansic: 13,993; makefile: 1,914; perl: 448; sh: 377
file content (54 lines) | stat: -rw-r--r-- 804 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.TH condredirect 1
.SH NAME
condredirect \- perhaps redirect mail to another address
.SH SYNOPSIS
in
.BR .qmail :
.B |condredirect
.I newaddress
.I program
[
.I arg ...
]
.SH DESCRIPTION
.B condredirect
feeds each new mail message to
.I program
with the given arguments.
If
.I program
exits 0,
.B condredirect
forwards the mail message to
.IR newaddress ,
and then exits 99,
so further commands in
.B .qmail
are ignored.

If
.I program
exits 111,
.B condredirect
exits 111,
so delivery will be retried later.

If
.I program
exits anything else
(or does not exist),
.B condredirect
exits 0,
so the rest of
.B .qmail
will be processed as usual.

Note that
it is not safe for
.I program
to fork a child that
reads the message in the background.
.SH "SEE ALSO"
dot-qmail(5),
qmail-command(8),
qmail-queue(8)