In an older episode (Thursday, 18. August 2005 21:42), ROY,RHETT G wrote: > After skimming the guide I'm having a go at writing some custom rules. Looks > like I'm stuck early on. ]-: > Say I have a rule that looks like this in my local.cf > > body TEST_RULE /test/ > score TEST_RULE .1 > > Doing the following produces no hits for TEST_RULE. > > echo 'test' > /tmp/test > spamassassin -t /tmp/test > > Any ideas what I'm doing wrong?
As Matt pointed out, there are no headers, thus no body either. Try echo -e "Subject: test\\n\\ntest" | spamassasin -t cheers, wolfgang