blob: 3876981b15c984af2c31db16c0c1c5b960195d10 (
plain)
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
|
# Exim Filter
# Test per-user filter with privilege
logfile DIR/test-stderr
if first_delivery then
logwrite "$message_id \"$h_subject:\" first delivery\n"
else
logwrite "$message_id \"$h_subject:\" not first delivery\n"
endif
if error_message or $local_part is usery then finish endif
if $h_subject IS NOT "Fail This" then
logwrite "$message_id subject is not \"Fail This\""
endif
if $h_subject contains "fail this" then
mail to usery text "failing $local_part@$domain"
subject "auto fail message"
fail text "subject was \"$h_subject:\" (filter fail)"
endif
if $h_subject contains "freeze this" then
mail to usery text "freezing $local_part@$domain"
subject "auto freeze message"
freeze "subject was \"$h_subject:\""
else
if $h_subject matches ^reply then
mail to usery
subject "An auto reply: qualify_domain=$qualify_domain"
text "This is a text line"
endif
endif
|