Author Topic: How to filter mgs based on subject ?  (Read 3872 times)

Offline mysticav

  • Newbie
  • *
  • Posts: 2
How to filter mgs based on subject ?
« on: November 18, 2008, 06:40:52 PM »
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 ?

Offline mysticav

  • Newbie
  • *
  • Posts: 2
How to filter mgs based on subject ?
« Reply #1 on: November 18, 2008, 11:26:07 PM »
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)

Offline ZoukLover

  • Newbie
  • *
  • Posts: 2
Don't move to another folder spam
« Reply #2 on: November 22, 2008, 06:26:36 AM »
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

Offline nhomauhoaphuong

  • Newbie
  • *
  • Posts: 9
How to filter mgs based on subject ?
« Reply #3 on: December 12, 2008, 12:03:17 PM »
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.