Username Post: spamfilter assistant        (Topic#6845)
amidatrust 
addict

Posts: 497
25/10/04 05:28 PM - Post#6845    



I made the attached Spam filter assistant for Pop3 in-mail methods

I have an ISP that uses Spamschield(Pro)

At the ISP side i can select a trigger level at witch level the ISP
puts a spamscore header in the email
(How higher the score how bigger the conclusion that it is really spam)

The problem of a low trigger is that there are many false positives
(emails that were not spam but were marked as spam)
The problem of a high trigger is that there are many good negatives
(emails that were spam but were not marked as spam)

The conclusion: we need two spam triggerlevels.

A second problem was that i wanted the whitelisting in my own hands

In the downloadrules i do the redirection and whitelisting:

+<Whitelist
From: aaa@bbb.cc
From: ddd@bbb.cc
From: eee@fff.gg
From: jjj.com
#
+>spam%Redirect spamshield into the 'spam' mailbox
X-SpamShield: Yes


The Lua program puts above the high level (4 in the program) SPAM in the subjectline

Result
ALL spam goes to the Spam mailbox.
I download it with Outlook express
in outlook express i have rules that filter the emails that have spam in the subjectheader to seperate folders
And i only habe to look at the emails that stay in the inbox

The program should be easy addaptable for spampal or other programs that put spamscores in headers

Thanks to Paul Smith for the help
   Attachment
 
amidatrust 
addict

Posts: 497
17/11/04 05:25 PM - Post#7243    


    In response to amidatrust

Found a little error in my script

the first couple of lines should be

if string.lower(RecipientList[1]) ~= "spam" then
return Actions, "OK"
end

(a couple of spaces before the return is nicer but the forum does not allow that)

the sting.lower function is to make the mailbox case insensitive.
The return line should contain Actions, "OK"

Vpop3 doesn't give errors about the wrong return , so i am not sure if it is really nessesary but just in case.

Is the Lua help to be included in the Vpop3online help?

I am still missing a list of all possible actions in lua.
(how do i add a new header to an email?)
<img src="/images/graemlins/jump.gif" alt="" /> server Windows98, Vpop3 2.3.15 ent
<img src="/images/graemlins/computer.gif" alt="" /> client Windows98, OE6 , IE6


 
Paul_Smith 
Administrator

Posts: 6279
Paul_Smith
19/11/04 02:28 PM - Post#7268    


    In response to amidatrust

Quote:

Is the Lua help to be included in the Vpop3online help?



Not sure - probably not, because it may confuse novices, and it has a different style from the rest of it, but we are going to put more about it on the website.

Quote:

I am still missing a list of all possible actions in lua.
(how do i add a new header to an email?)




Code:
table.insert(Actions.HeaderModifiers, "x-newheader: data")

Paul Smith PSCS Technical Support


 
amidatrust 
addict

Posts: 497
19/11/04 06:23 PM - Post#7274    


    In response to Paul_Smith

Thanks
looks so simple

About the wrong return

Can that not give a error or warning in LUAerror.log??
<img src="/images/graemlins/jump.gif" alt="" /> server Windows98, Vpop3 2.3.15 ent
<img src="/images/graemlins/computer.gif" alt="" /> client Windows98, OE6 , IE6


 
Paul_Smith 
Administrator

Posts: 6279
Paul_Smith
22/11/04 11:49 AM - Post#7292    


    In response to amidatrust

It's not an illegal return, it's just not what you wanted to do. It's valid not to return anything.
Paul Smith PSCS Technical Support


 
amidatrust 
addict

Posts: 497
22/11/04 04:18 PM - Post#7298    


    In response to Paul_Smith

You are right (like allways) but i was more thinking about a warning than a error.
(Just to let me think twice about it)
 
Icon Legend Permissions & Sharing Options Topic Options
Print Topic


4284 Views
FusionBB™ Version 3.1 Final | ©2003-2020 InteractivePHP, Inc.
Execution time: 0.291 seconds.   Total Queries: 86   Zlib Compression is on.
All times are (GMT+1). Current time is 11:01 AM
Top