On 9/3/2014 5:14 PM, Karsten Bräckelmann wrote:
The specified criteria are trivial, and can be easily translated into
rules. Reading the SA conf docs and maybe some of the rule-writing wiki
docs should enable the reader to do exactly that. (Hint: meta rules)
Oh well, here goes. Untested.
header __PHIL_TO To:addr =~ /phil\@example.com/i
header __PHIL_SUBJ Subject =~ /\b(cv|curriculum)\b/i
meta PHIL_CURRICULUM __PHIL_TO && __PHIL_SUBJ
describe PHIL_CURRICULUM CV for Phil
score PHIL_CURRICULUM -2
meta PHIL_NOT_CURRICULUM __PHIL_TO && !__PHIL_SUBJ
describe PHIL_NOT_CURRICULUM Not a CV for Phil
score PHIL_NOT_CURRICULUM 1
Do note though, that this approach is NOT fool-proof. Messages
containing a CV still can end up classified spam for various reasons.
It appears I did not email the list my response but should provide an
interesting exercise if only to see how similar our approach was:
Luciano,
Something like this untested example should get you started:
header __KAM_PHIL1 To =~ /phil\@example\.com/i
header __KAM_PHIL2 Subject =~ /(?:CV|Curriculum)/i
meta KAM_PHIL_GOOD (__KAM_PHIL1 + __KAM_PHIL2 >= 2)
score KAM_PHIL_GOOD -9
meta KAM_PHIL_BAD (__KAM_PHIL1 && !__KAM_PHIL2)
score KAM_PHIL_BAD 7
Regards,
KAM