[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: w3 under development or not?

From: Ted Zlatanov
Subject: Re: w3 under development or not?
Date: Fri, 14 Nov 2003 11:09:29 -0500
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v)

On Fri, 14 Nov 2003, 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 I just call with no arg for
> preview: 'perl', and 'perl 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*)$

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]