LinuxQuestions.org
Review your favorite Linux distribution.
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 10-09-2007, 02:44 AM   #1
Eric_Cartman
LQ Newbie
 
Registered: Jun 2007
Location: Sofia,Bulgaria
Distribution: Mandriva 2007
Posts: 23

Rep: Reputation: 15
Question How to create filter in KMail on "No Subject" messages


Hi all,
From some time I am having strange experience with my mail client.I am receiving messages with No Subject,date 1.1.1970,no sender,etc.Absolutely weird All of them are comming from my yahoo.com mail account.When I check the web based mail,the is empty box,and right after that when I check the same box with KMail I received those messages.

How I can get rid of them?How to create filter on No Subject or date?

Thanks in advance!

I am using Mandriva 2007.0,KMail 1.9.4.
 
Old 10-09-2007, 08:41 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
You have several options. To empty subjects try this

Code:
Subject matches regular expression   ^ *$
Don't forget the space between the ^ and the *. ^ means start of string, a space means a space. The * means the previous part (space) 0 or more times, and the $ means the end of the string. In short, match where the subject contains zero or more spaces.

For the date you could try
Code:
<age in days> is greater than 365
...which will zap anything older than a year. There shouldn't any new mail arriving dates more than that.

Either of those will do, or you could have an AND rule... depends what you want.
 
Old 10-10-2007, 11:11 AM   #3
Eric_Cartman
LQ Newbie
 
Registered: Jun 2007
Location: Sofia,Bulgaria
Distribution: Mandriva 2007
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks a lot,matthewg42!
I applied both filters and they seems working.I am wondering if the No subject filter will block useful mail,that have No subject or Space between words in subject title?
Thanks again
 
Old 10-10-2007, 11:50 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
Quote:
Originally Posted by Eric_Cartman View Post
Thanks a lot,matthewg42!
I applied both filters and they seems working.I am wondering if the No subject filter will block useful mail,that have No subject or Space between words in subject title?
Thanks again
If you have just the no subject filter, then it will catch all subjects with no subject. If you combine it with the two into one rule then it will only trigger when both conditions are met. See this screenshot, note the area I have highlighted in blue. You should fill in the action according to whenever you want to do to these messages, such as move them to a spam folder, or delete them or whatever.

The regular expression will not trigger when there are spaces and other characters in the subject - the ^ and $ mean th beginning and end of the field, and between then only are mentioned spaces (0 or more spaces) - if there are any other characters it will not match.
 
Old 10-11-2007, 12:59 AM   #5
Eric_Cartman
LQ Newbie
 
Registered: Jun 2007
Location: Sofia,Bulgaria
Distribution: Mandriva 2007
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks again!This is actually what I did.
Have a good one!

Georgi Stoynev
 
  


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
How do you create shortcuts to "folders" and "binaries" in GNOME? ebenh Linux - Desktop 5 01-21-2008 05:28 AM
How to modify the "Subject" in Sendmail munirfa Linux - General 5 03-06-2006 11:57 PM
How to change the subject line of Thread with "Solved" ? anindyanuri LQ Suggestions & Feedback 6 05-09-2005 12:57 PM
"cannot exec `as': ..." AND "C compiler cannot create ..." pr3st0 Linux - Software 0 10-15-2004 12:42 PM
Boot messages not the same as "dmesg" or "/var/log/messages"? massai Linux - General 5 03-10-2004 12:18 AM


All times are GMT -5. The time now is 09:53 AM.

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