LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-29-2003, 07:36 PM   #1
mfeat
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Fedora Core 3
Posts: 185

Rep: Reputation: 30
Ximian filters don't work


I've set up a dozen filters in Ximian to try to cut down on the horrendous amount of spam that I get and while a few emails get routed to the spam folder that I set up, most don't. I go down through the emails in my inbox and find many contain the keywords that I've set up filters for (using the message body option).

Does Ximian just not work in this regard, or is there something else I need to do to get results? One thought I had was that it's case-sensitive but it would be pretty ridiculous to have to put in all the possible upper/lowercase combinations for each keyword.

I've just started looking at the option "Pipe Message to Shell Command", if I could do my own filtering with a shell script that would be just perfect. Not finding much documentation on this subject. I'm guessing that the script gets called for each incoming email and Ximian processes the return code to determine what to do with the message. Has anyone done this or know where the documentation is? I see lot's of doc for spam-assasin but I'd rather use my own shell script if possible.

Also, if anyone knows how to do it, it would be much easier testing filters if there was a way to run a new filter against messages already sitting in the inbox. Otherwise you have to wait until the next day for a new flock of spam to see if the new filters worked. Not very conducive to solving the spam problem in a timely manner.
 
Old 11-30-2003, 03:32 PM   #2
mfeat
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Fedora Core 3
Posts: 185

Original Poster
Rep: Reputation: 30
Looks like my guess was correct about the shell script. I just set up a filter using option "Pipe Message to Shell Command" to reference the following:

Code:
#!/bin/bash

SPAM_WORDS="spam1|spam2|spam3"

cat | egrep -i "$SPAM_WORDS" 2>&1 >> /dev/null

if [ $? -eq 0 ]; then
	exit 1
else
	exit 0
fi
To test I sent myself some email messages and if they contained any of the defined spam words they went to my spam folder otherwise to inbox. Now the only question is whether this will work any better than the regular filters on real spam emails. I'll post a followup after I get the next round of spam.
 
Old 12-03-2003, 11:32 AM   #3
mfeat
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Fedora Core 3
Posts: 185

Original Poster
Rep: Reputation: 30
Well, that was enlightenting. I see that spammers are putting html tags in the middle of every word in the message to avoid being detected by simple filters. Now I see the need for spamassasin which I am currently installing.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "Run Filters on Folder" does not work automatically in Thunderbird Bruce Hill Slackware 8 10-10-2006 02:54 PM
Has anyone got Ximian 2.0 to compile & work? winsnomore Linux - Software 4 12-14-2004 05:31 PM
Kmail filters - do they work?! DiBosco Linux - Software 13 06-28-2003 07:28 AM
Ximian Evolution Filters (problem) CRego3D Linux - Software 4 02-07-2003 09:00 AM
Ximian Evolution wont apply rules/filters!! newbie2002 Linux - General 2 12-05-2002 10:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration