Follow CNAME chains only one step. Bug 2264
[exim.git] / test / aux-var-src / 0184.filter
CommitLineData
afda344b
PH
1# Exim filter
2
3if error_message or not first_delivery then finish endif
4
5logfile DIR/test-stdout
6
7logwrite "To: contains\n$h_to:\n"
8
9if
10 $header_to is $header_from or
11 "${lookup{$h_to:}lsearch{DIR/aux-fixed/0184.lsearch}{$value}}" is y or
12 "${lookup{${local_part:$h_to:}}lsearch{DIR/aux-fixed/0184.lsearch}{$value}}" is y
13then
14 logwrite "yyyyyy"
15else
16 logwrite "nnnnnn"
17endif
18
19mail to "$h_to:\nrhubarb"
20
21seen finish