i am trying to setup exim system filter, it should be skipped for certain recipients, but condition always fails:
Filter looks like:
# Exim filter
if foranyaddress $h_to: ( $thisaddress contains "lists.example.loc" )
then
finish
elif $h_X-SIGN-ADDED: is not contains "yes"
then
headers add "X-SIGN-ADDED: yes"
seen pipe "/etc/mailsystem/sign/sign.py $sender_address $recipients"
endif
my test.msg is
Message-ID: <[email protected]>
Date: Mon, 25 Jun 2012 12:39:18 +0400
From: Hikaru <[email protected]>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0
MIME-Version: 1.0
To: <[email protected]>
Subject: 1
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
1
And command to run testing is:
exim -bF exim.filter -f [email protected] -bfd lists.example.loc <test.msg
Why it always runs pipe to script? Thanks in advance