[HCoop-Discuss] exim filter

Nathan Kennedy ntk at hcoop.net
Wed Apr 18 09:43:01 EDT 2007


Here's my .forward file:
# Exim filter

logfile $home/spamlog

if $header_subject contains "[HCoop"
then
    save $home/Maildir/.HCoop/
    fini
endif

if
    "${if def:h_X-Spam-Flag {def}{undef}}" is "def"
then
    save $home/Maildir/.Junk/
    finish
endif

The second "if" is straight from the Wiki.  I have gotten a couple of
false positives with one newsletter that is NOT being flagged by
Spamassassin, turns out it has the header "X-Spam-Flag: NO" in it,
probably added by AOL (it's an AOL.com address unfortunately).  This defs
X-Spam-Flag and has it junked.  The solution is to change the ifstatement
to match YES instead of just check if it is defined.

Anyone else have this issue, and any reason I shouldn't update the wiki
accordingly?

-ntk





More information about the HCoop-Discuss mailing list