Sieve script to filter today's MS annoyances

[ Available lists | Index of freebsd-stable | Month of Sep 2003 | Week of 18 Sep 2003 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Kirk Strauser <kirk@strauser.com>
Date
18 Sep 2003 20:33:30
Subject
Sieve script to filter today's MS annoyances
Message-ID
87fzitqwop.fsf@strauser.com


[ Hide this part ]
I don't know what's going on, but I've been getting literally hundreds of
virus/worm-looking emails per hour all day today. I grew tired of it and
wrote the following Sieve script to filter my mail on the server.

The pseudo-bounce messages were particularly annoying; they're close enough
to the real bounce messages that I *want* to keep that they justified a
little closer examination. I'll probably tighten the other message type to
also examine the sender, but I doubt I'll be getting any legitimate mails
that look like:

Subject: latest security patch

in the near future. Anyway, enjoy as you see fit.


############################################################

#### Virus detection
# 2003-09-18: Something stupid and Microsofty
if anyof(
# This one is super-annoying; it mimics real bounce messages
allof(
header :matches "From" [
"email*",
"internet*",
"microsoft*",
"ms*" ],
header :matches "From" [
"*service",
"*system"
],
header :is "Subject" [
"abort advice",
"abort letter",
"Error Notice",
"mail: user unknown",
"Returned Mail",
"returned message" ]
),
# "Current Security Pack", "New Security Update", etc.
allof(
header :matches "Subject" [
"current*",
"last*",
"latest*",
"microsoft*",
"new*",
"newest*" ],
header :matches "Subject" [
"*upgrade",
"*update",
"*pack",
"*patch" ]
)
)
{
fileinto "INBOX.virus.2003-09-18";
}

############################################################


--
Kirk Strauser
The Strauser Group
Open. Solutions. Simple.
http://www.strausergroup.com/



[ Show this part (application/pgp-signature) ]

Elapsed time: 0.101 seconds