RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Third Party Contributions > Plug-Ins

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 10-05-2007, 07:40 PM
Registered User
 
Join Date: Oct 2007
Posts: 7
Downloads: 0
Uploads: 0
Default Easy SpamAssassin Filtering

Hi everyone. We use Roundcube for our companies webmail solution. Unfortunately, we get tons of SPAM- somewhere in the range of about 5/minute. Our MTA filters most of them out and the few that get through are processed by SpamAssassin. Our SpamAssassin setup appends "*****SPAM*****" to the subject line of the email but doesn't remove them from the inbox. This can be a real pain with webmail because the spam emails still clog up your inbox.

So, to combat this situation I wrote up a very simple patch today. It moves all of the email with a specified string into the junk folder, automatically. It's customizable so whatever your email system uses to mark spam- "[SPAM]", "*****SPAM*****", whatever, it can work. It's also very easy to install, you only need to replace one file and add a single configuration option into your main.inc.php file.

You can view the patch here:

http://fusionreactions.com/pages/rcmail

Hope it can be useful to everyone. If you have any questions post them here and I'll try to help you. Also, if you're interested in any custom patches please use the contact form on our website. We'd be glad to discuss any opportunities with you.

Enjoy,

Steve Corona
Web Director
Fusion Reactions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 10-08-2007, 08:27 AM
Super Moderator
 
Join Date: Jun 2006
Posts: 431
Downloads: 0
Uploads: 0
Send a message via ICQ to skaero Send a message via AIM to skaero Send a message via MSN to skaero Send a message via Yahoo to skaero
Default Re: Easy SpamAssassin Filtering

Thanks for the post!
__________________
[size=8pt]SKaero.com <br />&nbsp; [/size]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 10-11-2007, 02:55 PM
Registered User
 
Join Date: Oct 2007
Posts: 7
Downloads: 0
Uploads: 0
Default Re: Easy SpamAssassin Filtering

There is a bug that I missed- SPAM filtering doesn't happen when you login, you need to click on the Inbox after logging in to remove the SPAM.

I'm currently working on a general filtering plug-in right now. I'm thinking a configuration page where you can setup rules to move mail to an arbitrary folder depending on the subject/sender/body/date/etc.

Cheers

Steve Corona
Web Director
http://www.fusionreactions.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 10-20-2007, 04:56 PM
Registered User
 
Join Date: Oct 2006
Posts: 84
Downloads: 0
Uploads: 0
Default Re: Easy SpamAssassin Filtering


Nice addition.

It would be nice if one could set the parameter in GLOBAL and this is inherited to user config. The user can then set the string in preferences (by adding label en input field)?

Would it not be nice to add the check for the SPAM string to the beginning of the loop? or add a separate loop before the column format algorithm?

Does the SPAM string need some checking against illegal characters?

regards, Sean
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 10-23-2007, 08:11 AM
Registered User
 
Join Date: Feb 2007
Posts: 16
Downloads: 0
Uploads: 0
Default Re: Easy SpamAssassin Filtering

Does this filter subject only? or will it also filter by header info?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 10-23-2007, 07:43 PM
Registered User
 
Join Date: Oct 2007
Posts: 1
Downloads: 0
Uploads: 0
Default Re: Easy SpamAssassin Filtering

I haven't been able to get this to work with version 0.1-rc2. Can anyone else confirm this?

I get a blank page after trying to log in...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 10-25-2007, 03:49 PM
Registered User
 
Join Date: Oct 2007
Posts: 7
Downloads: 0
Uploads: 0
Default Re: Easy SpamAssassin Filtering

Hi,

@seansan

What do you mean set the param in GLOBAL? The param is set in the config file to change the subject it filters.

@mrjaguar

It only filters the subject. I'd like to eventually add header filtering but I don't have the time yet.

@thetimp2003

I havn't tested it in RC2 yet. I am still running RC1, I'll let you know what changes need to be made if I get time to update our companies roundcube installation today.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 10-25-2007, 07:34 PM
Registered User
 
Join Date: Oct 2006
Posts: 84
Downloads: 0
Uploads: 0
Default Re: Easy SpamAssassin Filtering


I mean that a user can set the string in the CONFIG (actually the admin). This variable is then set as default on the user level. I can imagine that different users (maybe not on your system) have different SPAM strings in the attachment. The variable is then also accesible via the preferences window - where a user can override the default value.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 10-26-2007, 03:05 PM
Registered User
 
Join Date: Oct 2007
Posts: 7
Downloads: 0
Uploads: 0
Default Re: Easy SpamAssassin Filtering

Quote:
Originally Posted by seansan

I mean that a user can set the string in the CONFIG (actually the admin). This variable is then set as default on the user level. I can imagine that different users (maybe not on your system) have different SPAM strings in the attachment. The variable is then also accesible via the preferences window - where a user can override the default value.
Ah- so you are saying, a per user spam string rather than a global one? When I get some time I'd like to improve this script, we'll see what I'm up to this weekend.

Steve Corona
Web Director
Fusion Reactions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 11-02-2007, 03:03 PM
Registered User
 
Join Date: Oct 2007
Posts: 7
Downloads: 0
Uploads: 0
Default Re: Easy SpamAssassin Filtering

This patch is broken in RC2. I'm going to have a fix out today
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 04:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community