🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #34810

Re: To Mung or Not to Mung

#34810
From: Eli the Bearded
Date: Wed, 02 Jul 1997 00:00
75 lines
3529 bytes
Vikas Agnihotri <vikas@insight.att.com> wrote:
> On 01 Jul 1997 20:32:16 +0200, Hrvoje Niksic <hniksic@srce.hr> wrote: 
> >Eli the Bearded <usenet-tag@qz.little-neck.ny.us> writes:
> >> Most spam arrives Bcc'ed so if you can kill Bccs to the addresses
> >> exposed to Usenet you can kill a lot of spam.
> >been using for quite some time now -- so I simply filter out the mails 
> >that do not contain the keyword `hniksic' in To|Cc fields.  This
> Err.. I have seen that a lot of mail legitimately addressed to me has my
> name in the Original-To: or Original-Cc: header and not the To:|Cc: header.
> Must be a quirk of some MTA along the way, huh? 

Yup. Certainly is possible you have some quirky mail system.
Here are the To: and CC: header fields I would consider 'good':

	To:
	Cc:
	Resent-To:
	Resent-Cc:
	Original-To:
	Original-Cc:
	Original-Resent-To:
	Original-Resent-Cc:

Which can be matched by the RE

	(Original-)?(Resent-)?(To|Cc):

Note that this is less than the full range matched by procmail's
^TO and ^TO_ macros. Those also match:

	(Original-)?(Resent-)?(Bcc):
	(X-Envelope|Apparently(-Resent)?)-To):

which expand to:

	Bcc:
	Resent-Bcc:
	Original-Bcc:
	Original-Resent-Bcc:
	X-Envelope-To:
	Apparently-To:
	Apparently-Resent-To:

Very few mailers put a Bcc: header or its variants in. The others
are put in by some mailers when the To: header was missing in the
original mail. This happens sometimes on real mail but is quite
rare. (I've actually got a buggy remailer I wrote and use for myself
that does this. Now that I know perl better I should rewrite it.)

The procmail macros also have useful word boundry checks afterwards.
The ^TO has "(.*[^a-zA-Z])?" after the ":", the ^TO_ has
"(.*[^-a-zA-Z0-9_.])?" after the ":".

I have also seen, but never without one of the above, these, in
approximate order of frequency:

	X-VMS-To:
	X-VMS-Cc:
	Delivered-To:
	X-CoSy-To:
	X-CoSy-Cc:
	X-To:
	X-Apparently-To:
	ANON-To:
	ANON-Cc:
	ANON-Bcc:

I'd consider the first three of them to be legit.

Elijah
------
these all taken from mail recieved in the last two months

Technical Details
Message-ID: <5pdqe8$pam$1@news.netusa.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <5nue9s$i4s@ecuador.earthlink.net> <5pbepk$hk2$1@news.netusa.net> <kig67uu1v4f.fsf@jagor.srce.hr> <slrn5riptc.elh.vikas@joshua.insight.att.com>

Show Full Headers
Complete Article Headers
Message-ID: <5pdqe8$pam$1@news.netusa.net>
Subject: Re: To Mung or Not to Mung
Date: Wed, 02 Jul 1997 00:00:00 +0000
From: Eli the Bearded <usenet-tag@qz.little-neck.ny.us>
References: <5nue9s$i4s@ecuador.earthlink.net> <5pbepk$hk2$1@news.netusa.net> <kig67uu1v4f.fsf@jagor.srce.hr> <slrn5riptc.elh.vikas@joshua.insight.att.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 254074550
X-Save-Project-Gutenberg: <URL:http://www.promo.net/pg/nl/pgny_nov96.html>
X-From-Notes: This is sent from a valid but tagged return address. Failure to include an "Re:" in the subject may cause reply mail to bounce.
Organization: Some absurd concept
X-Files: Used for sharpening claws and teeth on your hawk and hacksaw
X-attribution: EtB
X-Acceptable-Email-Policy: for rules about sending mail to this account see: <URL:ftp://ftp.netusa.net/users/eli/email.txt> -- plain text; <URL:http://www.netusa.net/~eli/email.html> -- html format; or <URL:mailto:email-policy@qz.little-neck.ny.us> -- autoresponse
Newsgroups: news.software.readers,news.admin.net-abuse.email,alt.fan.e-t-b
X-US-Congress: Moronic Fucks.