Username Post: Sorting spam into a user mail folder        (Topic#6932)
Paul_Smith 
Administrator

Posts: 6279
Paul_Smith
02/11/04 12:36 PM - Post#6932    



The attached script (POP3CLT.LUA) will sort messages containing the text ***SPAM*** in the subject line into a WebMail/IMAP4 folder called 'Spam' for each of the targeted recipients.

If you have incoming SMTP, rename it to SMTPSVR.LUA instead

Simply put the file into your VPOP3 folder for it to be used. (Make sure you don't overwrite a previously existing file with the same name!)
   Attachment
 
FredyGulzy 
newbie

Posts: 26
FredyGulzy
25/11/04 10:23 AM - Post#7351    


    In response to Paul_Smith

Hi Paul,

I was looking for this feature also , and i placed the lua files inside vpop3 folder, (with this change :
"%*%*SPAM%*%*" instead of "%*%*%*SPAM%*%*%*" because my tag looks like **SPAM**)

I unchecked "use download rules" in the inmail settings (because i had until now every **SPAM** redirected to a single Spam mailbox)
And the Spam are not placed inside a Spam folder.
So i created a Spam folder manually trough the webmail interface, but no change, all the mails appear in the Inbox.

What is wrong ?

Thank you

Fred
 
Paul_Smith 
Administrator

Posts: 6279
Paul_Smith
25/11/04 12:25 PM - Post#7352    


    In response to FredyGulzy

Is there anything in the 'LUAERRORS.LOG' file in the VPOP3 folder?
Paul Smith PSCS Technical Support


 
FredyGulzy 
newbie

Posts: 26
FredyGulzy
25/11/04 01:26 PM - Post#7362    


    In response to Paul_Smith

There is no file named LUAERRORS in Vpop folder.
I'm using version 2.1.0c
But i confirm that the Lua script is probably beeing used because i had a distribution list named "carto" to which all mails from an ISP box was directed to (there was no user attached to this box, only a the list).
And since i placed the lua file, i had this errors in VPOP3.LOG :
Code:
 25/11/2004 13:10:15.124 - [POP3 Client (0:CARTO)] - CRecipient::DistributeFile - User carto not found
25/11/2004 13:10:15.124 - [POP3 Client (0:CARTO)] - CRecipient::DistributeFile Process invalid user "carto"



So i for now renamed my list CARTO_LIST and i created a user CARTO. I do not have the error anymore but still the spam is in the inbox and not in the spam folder.

BTW, once it would work, would it still be possible to have the behavior i had with the use of download rules : mail detected as spam should be directly deleted from the isp server ?

(I guess it seems I'll have to invest some time to understand LUA... )
Fred
 
FredyGulzy 
newbie

Posts: 26
FredyGulzy
25/11/04 02:07 PM - Post#7363    


    In response to FredyGulzy

I just saw that once i made the modification explained in previous post, it is now working properly.

And the question concerning the deletion of the spam on the ISP server : Would it be solved by adding :
"action.delete = true" ?

Fred
 
Icon Legend Permissions & Sharing Options Topic Options
Print Topic


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