I think that in case the value of $h_X-Spam_score_int is undefined, the filter can not work. I did a test with this rule has proved correct
# Exim filter if 40 is above 70 then save Maildir/.junkmail/ finish endif So if a mail came from the local area there is no value in the variable. It should therefore that I can write a rule saying that if the header exists X-Spam_score_int, then I apply the rules 2010/3/23 laurent ducos <laurentdu...@gmail.com> > Hello. > I'm french user of exim4 and i apologize for my bad English. > I configured exim4 with clamav and spamassassin on Debian. > Clamav : > > deny > malware = * > message = This message was detected as possible malware ($malware_name). > > And Spamassassin : > > accept > condition = ${if >={$message_size}{500k}{yes}{no}} > > warn > spam = nobody:true > message = X-Spam_score: $spam_score\n\ > X-Spam_score_int: $spam_score_int\n\ > X-Spam_bar: $spam_bar\n\ > X-Spam_report: $spam_report > > deny > message = This message scored $spam_score spam points. > spam = nobody:true > condition = ${if >{$spam_score_int}{120}{1}{0}} > > I'm doing tests with viruses, and spam testing and everything works well. > The problem is with the .forward > > # Exim filter > if error_message then > finish > endif > > if $h_X-Spam_score_int is above 50 then > save Maildir/.junkmail/ > > finish > endif > finish > > The problem is with the .forward. When I receive a local mail or mail with > attachments, I get a *Mail Delivery System, > * > > An error has been found in your .forward file. > > > If someone knows the solution to this problem > > -- Laurent Ducos 57 rue Tillet 33000 Bordeaux 06 50 02 56 03 -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/