mailtrainer.crm - bugfix in case of :validate: regex
"Ger Hobbelt" <[email protected]>
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Message-ID | <[email protected]> |
Statistics for spams are the wrong way around for the validation run
in mailtrainer.crm:
~ line 1200:
output /\n:*:spamdir::*:filename: G (:*:spampassed:) :*:pr: /
^^^^ exactly same line as for ham.
Should be instead - to make a difference:
output /\n:*:spamdir::*:filename: S (:*:spampassed:) :*:pr: /
alternatively (which has my preference!) we might do within the
sign-swapping in there and hence write the spam code bit like this
instead:
(commented lines are changes)
{
# eval (:pr:) /:@: 0 - :*:pr: :/ <-- discard sign removal
eval (:spamtested:) /:@: :*:spamtested: + 1 :/
eval (:spampassed:) /:@: :*:spampassed: + ( :*:pr: < 0
) :/ # flip > to < here
}
output /\n:*:spamdir::*:filename: S (:*:spampassed:) :*:pr: /
--
Met vriendelijke groeten / Best regards,
Ger Hobbelt
--------------------------------------------------
web: http://www.hobbelt.com/
http://www.hebbut.net/
mail: [email protected]
mobile: +31-6-11 120 978
--------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/