4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] mail list filtering p...
FromSent OnAttachments
john gennardApr 8, 2004 2:51 am 
Jeremy KitchenApr 8, 2004 8:12 am 
Jim HornerApr 8, 2004 9:01 am 
Casey Allen ShobeApr 9, 2004 5:20 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] mail list filtering problemsActions...
From:Casey Allen Shobe (csh@osss.net)
Date:Apr 9, 2004 5:20:40 pm
List:net.sourceforge.lists.courier-maildrop

if (^To | Cc:.*hopalongcassidy\.com$/) to Mail/hopalong/

You need a .* before the $. You're currently saying that the line MUST end in .com, which doesn't allow for any characters after the 'm', such as '>', hence the wildcard.

That being said, filtering based on recipient addresses is one of the worst ways to filter mail (second only to Subject filtering, which is pure evil). If the list uses Mailing-List, X-Mailing-List, or any List-* headers, use those instead. If the list doesn't have any proper mailing list headers, the Reply To is still a more reliable way of filtering if the list uses that.

You must consider the following: * If a mail is delivered to the list, via To, or CC, it should be filtered. You've got that now. * If a mail is delivered to both you and the list, the list copy should be filtered and the copy delivered to you directly should not. You haven't got that now. * If a mail is delivered to the list via BCC, it should be filtered. You haven't got that now. * Somebody might send one post to multiple lists you're on. Each copy should go to the right place. With your current rule, whatever rule matches first wins, and they all go to the same folder.

Without taking the above considerations into account, you'll get some private mail filtered, and some mailing list mail not filtered, and some mailing list mail filtered into the wrong mailing list folder.

I order my .mailfilter file by quality of the rule, with the most popular rules listed first, for maximal efficiency and minimized risk of the wrong filter catching something first.

In my situation, this means: 1. X-Spam-Level - set by spamassassin, I want any spam to be filtered before anything else, even if it's sent to a mailing list. 2. Received - I fetch mail from a couple old accounts on remote servers that I want to just go into a dedicated folder. 3. Mailing-List, X-Mailing-List, List-Id - present on most mailing lists, the biggest lists come first, the smallest last. 4. From - For a few people whose mail I like to arrive in special folders.

Best of luck,