From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: w3 under development or not? Date: Fri, 14 Nov 2003 11:09:29 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <4nr80b2apy.fsf@lockgroove.bwh.harvard.edu> References: <878ymm6d18.fsf@lucien.dreaming> <87brrf2wsu.fsf@yahoo.co.uk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1068826620 20453 80.91.224.253 (14 Nov 2003 16:17:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Nov 2003 16:17:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 14 17:16:57 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AKgcz-00034H-00 for ; Fri, 14 Nov 2003 17:16:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AKhYs-0002sN-On for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Nov 2003 12:16:46 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!lockgroove.bwh.harvard.EDU!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 52 Original-NNTP-Posting-Host: lockgroove.bwh.harvard.edu (134.174.9.133) Original-X-Trace: news.uni-berlin.de 1068826231 54511879 134.174.9.133 (16 [177066]) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v) Cancel-Lock: sha1:Yw+0pbVABRPtC88FKRaEpSFWStI= Original-Xref: shelby.stanford.edu gnu.emacs.help:118245 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14185 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14185 On Fri, 14 Nov 2003, pete_lee@swbell.net wrote: > I was getting about 50-80 of those a day myself for a while... I > wrote a perl script to parse a .spam file containing one regex per > line. If any of the regexes in the .spam file match the author or > subject in the mail on the server, it's deleted on the server. I > mainly just focused on the service packs as they took so long to > download. I'm a perl novice, so I'm sure this code could be reduced > to about 10 lines by someone that knows the language better. > > Here's a snippet from my .spam: > > critical.*update > critical.*upgrade > customer.*bulletin > public.*assistanc > internet.*system > security.*pack > security.*update > security.*patch > delivery.*system > microsoft > > And the script (I called pop-spam.pl) I just call with no arg for > preview: 'perl pop-spam.pl', and 'perl pop-spam.pl delete' when I'm > certain of my regexes. This is a really dangerous recommendation. If you just want to eliminate executable attachments, which you seem to be trying to do, use something like this Procmail recipe: :0 H * ^Content-Type: multipart # check body for executable filenames { :0 B * name=.*\.(exe|bat|pif|com|lnk|scr|vbs)(")?(\ *|\t*)$ { :0 /wherever/spam } } or install a program designed for that purpose, e.g. SpamAssassin. Matching regular expressions against the subject is risky - are you sure you will never want to find out about security packages, or receive mail from people at Microsoft? It's even riskier to delete message you haven't seen, but that's your choice. Ted