From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/11727 Path: main.gmane.org!not-for-mail From: Michael R Cook Newsgroups: gmane.emacs.gnus.general Subject: spam filtering on message-id (was: Hmm.. 2 q's) Date: 19 Jul 1997 12:14:06 -0400 Message-ID: References: <199707141819.LAA13825@knife.statsci.com> <8cd8olmp9e.fsf@gadget.cscaper.com> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035151392 32125 80.91.224.250 (20 Oct 2002 22:03:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:03:12 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.6/8.8.6) with ESMTP id JAA20899 for ; Sat, 19 Jul 1997 09:54:08 -0700 Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by xemacs.org (8.8.5/8.8.5) with SMTP id LAA21760 for ; Sat, 19 Jul 1997 11:50:28 -0500 (CDT) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Sat, 19 Jul 1997 18:14:38 +0200 Original-Received: (qmail 22612 invoked by uid 504); 19 Jul 1997 16:14:36 -0000 Original-Received: (qmail 22609 invoked from network); 19 Jul 1997 16:14:36 -0000 Original-Received: from cognex-bh.cognex.com (198.232.30.66) by claymore.vcinet.com with SMTP; 19 Jul 1997 16:14:35 -0000 Original-Received: (from uucp@localhost) by cognex-bh.cognex.com (8.6.12/8.6.11) id MAA20475 for ; Sat, 19 Jul 1997 12:13:49 -0400 Original-Received: from isys.com by cognex-bh.cognex.com via smap (3.2) id xma020473; Sat, 19 Jul 97 12:13:29 -0400 Original-Received: from erawan.cognex.com (erawan.cognex.com [10.10.1.80]) by cognex.cognex.com (8.8.5/8.8.5) with ESMTP id MAA15729 for ; Sat, 19 Jul 1997 12:14:09 -0400 (EDT) Original-Received: by erawan.cognex.com (8.6.12/8.6.12) id MAA09427; Sat, 19 Jul 1997 12:14:06 -0400 Original-To: ding@gnus.org In-Reply-To: Randal Schwartz's message of "14 Jul 1997 12:01:49 -0700" Original-Lines: 18 X-Mailer: Gnus v5.4.63/Emacs 19.34 Xref: main.gmane.org gmane.emacs.gnus.general:11727 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:11727 >>>>> "RS" == Randal Schwartz writes: RS> I know the *right* side (or rightmost side if multiple) of the @ RS> has to be a valid hostname, so you could filter on (perl regex): RS> Message-Id: !/\@([-a-zA-Z0-9]+\.)+[a-zA-Z]{2,3})$/ { DELETE; } RS> and be pretty close. (And yes, no _ in hostnames, please. :-) Unfortunately, I get a good amount of non-spam that has invalid message-ids. So much for standards. :-( This (perl) pattern seems to work quite well, though: /<\S+\@\S+>/ I grepped all my unexpired mail, and got only two false hits. It found many messages in my `spam' folder.