logs archiveIRC Archive / Freenode / #exim / 2009 / December / 26 / 1
neezer96
anyone here?
I have a question about an error that I'm getting.
cusco
hi
can exim have an if statement moving emails to junk folder that are marked as spam by spamassassin
trough the subjedc and/or header
Aprogas
If not, you can probably add procmail as a router to do that.
cusco
err
how?
Aprogas
Probably in a similar fashion as how you integrated spamassassin into exim/.
cusco
err.. I can't have if statements anywahyre in the conf file?
http://paste.debian.net/54952/
petemc
thats exim filter syntax
you can use condition with routers
cusco
ok just before that, I was looking at another example:
directory = "${if and { {def:h_X-Spam-Flag:} {eq {$h_X-Spam-Flag}{YES}}} {/home/mail/${domain}/${local_part}/.Junk/}{/home/mail/${domain}/${local_part}/} }"
would that work?
petemc
exim has good texting facilities, -be , -bh etc
testing, not texting
         

cusco
err... ok
Failed: each subcondition inside an "and{...}" condition must be in its own {}
:(
« prev next »