LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-26-2003, 05:38 AM   #1
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mandriva, Mandriva, Mandriva. (Three different releases depending on the computer)
Posts: 708

Rep: Reputation: 35
Kmail filters - do they work?!


About 50-70% of my mail these days seems to be spam. On a friend's advice, when signing up for a couple of things I actually used a "false" address to see where this s**t might be coming from.

So, sure enough I signed up as mp3@apostrophe.co.uk (guess what that was for! ;-) and now I get huge amounts of spam for that address.

In K mail, I've gone to Settings|Configure POP filters and set upfilter criterea as follows:

Match Any Of The Following radio button is selected

The rule is:

To (Drop down box selected) Equals (Drop down box selected) mp3@apostrophe.co.uk (entered by myself)

The Filter action is set as Delete Mail From Server (radio button).

Looks fine, but does nothing at all in the way of filtering!

Is this down to a bug or have I missed something?

Cheers,

Rob.
 
Old 06-26-2003, 06:08 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
I don't like pop3, so never touch it, but pop3 downloads form the server and then normally removes the mail unless you explicitly tell it to leave it there, I would think that your filter is basically irrelevant, it doesn't say "delete locally" or "don't download"...
 
Old 06-26-2003, 06:25 AM   #3
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mandriva, Mandriva, Mandriva. (Three different releases depending on the computer)
Posts: 708

Original Poster
Rep: Reputation: 35
>> I don't like pop3, so never touch it, but pop3 downloads form the server and then normally removes the mail unless you explicitly tell it to leave it there, I would think that your filter is basically irrelevant, it doesn't say "delete locally" or "don't download"... <<

The filter says "Delete Mail From Server". To me that says, just delete it from the server, rather than download and then delete which is what it [kmail] would normally do.

What's not to like about POP3, btw?
 
Old 06-26-2003, 12:36 PM   #4
carlywarly
Member
 
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825

Rep: Reputation: 30
Mailfilter will do exactly what you want, if Kmail doesn't - http://freshmeat.net/releases/119414/
 
Old 06-26-2003, 12:47 PM   #5
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 70
I have used the filters in Kmail and they work great. I did it by email address. After a few days 99% of the spam was being sent to the deleted items folder.

"The filter says "Delete Mail From Server". To me that says, just delete it from the server, rather than download and then delete which is what it [kmail] would normally do. "

This means that it deletes the mail when it downloads it to your PC. If you uncheck it it will leave the mail on the mail server after to download it.
 
Old 06-26-2003, 02:12 PM   #6
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mandriva, Mandriva, Mandriva. (Three different releases depending on the computer)
Posts: 708

Original Poster
Rep: Reputation: 35
>> I have used the filters in Kmail and they work great. I did it by email address <<

I've kind of managed to do it using the filters rather than the POP3 filers. I can send mails to "mp3@apostrophe.co.uk" directly to the trash directory! I guess that'll do. :-)

Thanks to you all for your suggestions.
 
Old 06-26-2003, 11:58 PM   #7
carlywarly
Member
 
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825

Rep: Reputation: 30
Mailfilter deletes them from the server, directly, without downloading them first.
 
Old 06-27-2003, 12:53 AM   #8
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Rep: Reputation: 30
[root@localhost joe]# mailfilter
mailfilter: Error: The rcfile for preferences (usually $HOME/.mailfilterrc) could not be read.
[root@localhost joe]#


any ideas anyone,
thanks,
AD
 
Old 06-27-2003, 09:32 AM   #9
carlywarly
Member
 
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825

Rep: Reputation: 30
You need to create a .mailfilterrc file in your home directory, which has permissions set so that you can read it. There is a sample one included with the app.

( PS - is it a good idea to collect mail when logged in as root?)
 
Old 06-27-2003, 06:54 PM   #10
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Rep: Reputation: 30
duhhh the man file and faq was right infront of me.

thanks,
AD
 
Old 06-27-2003, 07:56 PM   #11
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Rep: Reputation: 30
since i am either to stupid or sleep deprivated to figure how to get cron to schedule mailfilter to run every hour i figured a way around it. i know its kinda cheezy but it works for me. here it goes for anyone that wants mailfinder to filter automatically for them:

something that is kinda cool i found that works with mailfilter is kappfinder. every time kappfinder checks for my mail on the remote server i specified my "mail fetch/check program" to be mailfinder. it shows for a few seconds though that i have 29 messages in my inbox but there really is none. it filters my mail every time i get a new message. damed this would be a great idea if gkrellm integrated something like mailfilter natively.

im a geniussss-thssssss so the "ice age" sloth said
 
Old 06-28-2003, 05:23 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
i don't like pop3 as it downloads all the emails to a local file, which sucks ass. it's good if you're conencting to a very remote server on a duff connection, but it doesn't compare to keeping all emails in once place on a single server like imap does.
 
Old 06-28-2003, 06:33 AM   #13
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mandriva, Mandriva, Mandriva. (Three different releases depending on the computer)
Posts: 708

Original Poster
Rep: Reputation: 35
>> i don't like pop3 as it downloads all the emails to a local file, which sucks ass. it's good if you're conencting to a very remote server on a duff connection, but it doesn't compare to keeping all emails in once place on a single server like imap does. <<

I don't follow, old boy. What's so bad about downloading all mails to a local file?

"Sucks ass"?! Wrapping my lips round long eared quadrupeds always works for me. ;-)
 
Old 06-28-2003, 07:28 AM   #14
davecs
Member
 
Registered: Feb 2003
Location: Dagenham, Essex, Britain
Distribution: PCLinuxOS
Posts: 485

Rep: Reputation: 31
As Kmail does not render HTML mails unless you ask it to, I found that you can filter the sites in the links the spammers put in. You'll find the same ones crop up time and again, despite all the different sender e-mails and new ways of spelling words they think of.

So if the raw html contains an address such as:www.pornpest.com then put in a filter for Message Contains pornpest.com and then set the actions to (1) bounce (2) move to trash.

You will also need to set up a filter so that if the Subject reads "mail failed, returning to sender" it will be passed to Trash, and under Options, apply it to Sent Messages only. This way your bounces won't end up in your Sent Items box.

The other thing is that you have to select files before applying any new filters you set up, which is done on a "per box" basis by simply pressing "K" before clicking on the Apply Filter icon.

DAVE
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Firefox, Mailto and Kmail won't work together Joe Bloggs Linux - Newbie 7 11-22-2005 02:14 PM
Can't get Kmail to work. HadesThunder Linux - Software 8 12-24-2004 04:28 PM
Ximian filters don't work mfeat Red Hat 2 12-03-2003 11:32 AM
kmail and filters thllgo Linux - Software 0 09-26-2003 09:00 AM


All times are GMT -5. The time now is 09:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration