3 # Test per-user filter with privilege
5 logfile DIR/test-stderr
8 logwrite "$message_id \"$h_subject:\" first delivery\n"
10 logwrite "$message_id \"$h_subject:\" not first delivery\n"
13 if error_message or $local_part is usery then finish endif
15 if $h_subject IS NOT "Fail This" then
16 logwrite "$message_id subject is not \"Fail This\""
19 if $h_subject contains "fail this" then
20 mail to usery text "failing $local_part@$domain"
21 subject "auto fail message"
22 fail text "subject was \"$h_subject:\" (filter fail)"
25 if $h_subject contains "freeze this" then
26 mail to usery text "freezing $local_part@$domain"
27 subject "auto freeze message"
28 freeze "subject was \"$h_subject:\""
31 if $h_subject matches ^reply then
33 subject "An auto reply: qualify_domain=$qualify_domain"
34 text "This is a text line"