Thanks!
That worked perfectly:
blacklist_subject test
On 02/01/2012 09:09 PM, Michael Parker wrote:
On Feb 1, 2012, at 10:37 AM, Miguel Fernandes wrote:
Hi!
I'm just wondering, is there a limitation on the type of rules that can be
added to the SpamassAssin rules table?
Because adding something like (subject scoring):
header TEST_SUBJECT Subject =~ /test/i (I've tried several combinations of fields:
preference& value, with no success)
score TEST_SUBJECT 30 (this one is possible)
Does not seem straightforward...
My goal is to be able to score subjects through sql rules.
Perhaps you can make use of
loadplugin Mail::SpamAssassin::Plugin::WhiteListSubject
blacklist_subject test
blacklist_subject This is a subject line I want to blacklist
That will cause the msg to get an extra 100 score.
You can of course also whitelist subjects as well, feel free to look over the
documentation.
whitelist_subject and blacklist_subject are not listed as admin commands so
they should work just fine in SQL. You won't be able regexes but you can use
glob type params.
Michael
--
Cumprimentos,
Miguel Fernandes