deny is header present

Joseph Kezar <[email protected]>
Newsgroups gmane.mail.exim.exiscan.user
Message-ID <[email protected]>
I want to deny all mail in an Exim ACL if the 'X-Spam-Warning:' header 
is present.

I currently have this acl:

check_recipient:
  deny  condition = ${if def:h_X-Spam-Warning:{1}{0}}
        logwrite = :main,reject: Rejected Spam
  blah....

But this seems to be ignored.  Any ideas?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.