On Tue, Jun 05, 2001, Nadav Har'El wrote about "Re: Intresting Strange Address - Not
Linux Q":
> Actually, catching this case is trivial. Since nobody in their right mind
> (i.e., nobody except spammers) actually uses such a weird URL in an email,
> the mere presence of one indicates that this email is spam! So do something
> like this (this example is in procmailrc format):
>
> :0 BH:
> *(^|\<)http://[0-9][0-9][0-9][0-9]
> spam
Two people told me in private mail (one of them intended to have it appear
on the list, but as usual the reply setup of this list is confusing to new
users...) that this also means that this entire thread would be caught by
the spam filters. This is not so, as I replied to them:
"No it won't - spam filtering should come *after* the seperate mailing lists
are moved to seperate folders. Not only does this dramatically speed up the
mail server (95% of my mail is mailing lists, and the complicated spam
checking is saved on these messages), but it also prevents false-positives
like you talk about. If spam appears on a mailing list (it very very rarely
does), it should (and can) be dealt with in more centralized manner, by the
mailing list owner."
When you filter email, it is important to pay attention to the order in which
you apply the filters. Another person was bit earlier this week by the fact
that he removed duplicate emails before filtering the different mailing lists,
and so got a message intended for both linux-il and hackers-il (in that
example) only on linux-il, which meant that when he read hackers-il he did
not see all the messages. In this case too, it makes more sense to first
put mailing-list mail in seperate folders, and only remove duplicates from
what is left.
By the way, if anyone is contemplating filtering mailing-list email to
seperate folders, remember that you shouldn't filter according to the "To:"
line. This will give bad results for messages which are crossposted (which
you'll want to see in both mailing lists, in the correct position in each)
or posted to both a mailing list and personally to you. Instead you should
look for special mailing list headers like Sender:, Delivered-To:, X-List:
X-ML-Name:, X-Loop: and Resent-From:.
For example, here is what I use to filter linux-il to a seperate folder
(again, this is a procmail recipe):
:0:
*^X-list: linux-il$
linux-il
--
Nadav Har'El | Wednesday, Jun 6 2001, 15 Sivan 5761
[EMAIL PROTECTED] |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |Wear short sleeves! Support your right
http://nadav.harel.org.il |to bare arms!
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]