Roundcube Community Forum

 

How to filter mgs based on subject ?

Started by mysticav, November 18, 2008, 06:40:52 PM

Previous topic - Next topic

mysticav

I have spamassassin.

It marks spam with ****SPAM**** legend on the Email subject.

I just need a way to tell roundcube to send all those messages with that legend to the junk folder automatically.

It has to be a very simple job. Just to search the Spam string with some regular expression and if its true, put it in the junk, or trash.

I was expecting this functionality as part of the software. Horde has it.

Any Idea ?

mysticav

I found this.

Roundcube Subject Filtering - Fusion Reactions - Web Design Rochester NY

The patch does notr work with 0.2, So

I modified the file to work with version 0.2 (download attachment and change extension to .inc)

ZoukLover

Hi!

That patch seams interesting

But when the message is moved to JUnk folder it is not downloaded from pop3 clients like outlook.

Is there a way to display the email without moving it?

Thanx

nhomauhoaphuong

so after uploaded that .inc file up, do i have to follow this step here?

 Instructions
Step One: Download and unzip the patch.
Step Two: Replace the func.inc in /program/steps/mail with the included file.
Step Three: Open up /config/main.inc.php. Add the following line:

$rcmail_config['spam_subject'] = 'SPAM';Step Four: Change SPAM to whatever subject string you want to filter out.