[pmmail-list] A happy new year without spam!

Winfried Tilanus pmmail-list@blueprintsoftwareworks.com
Mon, 31 Dec 2001 17:13:05 +0100 (CET)


--_=_=_=IMA.BOUNDARY.GP8B1T138764=_=_=_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi!

A happy new year everybody!

I have been playing around a little with blacklists, like the one from
spamcop, and wrote a rexx-script for myself that checks if the mail
passed along a blacklisted server and, if so, it adds a spam-warning in
the header for each blacklist entry. I thought it might be nice to
share it with you, so here it is. I do not intend to maintain it, it is
mainly written for my own purpose.

I have set up a filter that executes the script on suspected mail (I
don't want it to process al the mailinglist traffic) and added a check
for h="X-Spam-Warning" to my spamfilter that is executed after it.


Best wishes,
Winfried

-- 
http://web.inter.NL.net/users/Winfried/

- pmmail-list - The PMMail Dicussion List ---------------------------
To POST to the list, send your message to:
pmmail-list@blueprintsoftwareworks.com

To UNSUBSCRIBE, send a message to mdaemon@bmtmicro.com with the first 
line of the message body being...
UNSUBSCRIBE pmmail-list@blueprintsoftwareworks.com
---------------------------------------------------------------------
--_=_=_=IMA.BOUNDARY.GP8B1T138764=_=_=_
Content-Type: application/octet-stream; name="spamcheck.cmd"
Content-Transfer-Encoding: base64

LyogUmV4eCBwcm9ncmFtICh3aGF0IGVsc2Ugc2hvdWxkIHRoaXMgYmUpIHRvIGNoZWNrIGlmIGEg
bWFpbCAqLw0KLyogcGFzc2VkIGEgaG9zdCBsaXN0ZWQgaW4gYSBETlMtYmFzZWQgYmxhY2tsaXN0
LiAgICAgICAgICAgICAqLw0KLyogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAqLw0KLyogdXNlcyBSZXh4VXRpbCBhbmQgUmV4eFNvY2sg
bGlicmFyaWVzICAgICAgICAgICAgICAgICAgICAgICAqLw0KLyogICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqLw0KLyogQ29we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YWwgaG9vayB3aXRoIGEgICAgICAqLw0KLyogbGlrZSBQ
TU1haWwgKHdoYXQgSSB1c2UpLiBJdCBhZGRzIHRoZSBmb2xsb3dpbmcgaGVhZGVyICAgICAqLw0K
LyogbGluZXMgaWYgb25lIG9mIHRoZSBzZXJ2ZXJzIHRoYXQgbWFpbCBwYXNlZCBhbG9uZyB3YXMg
ICAgICAqLw0KLyogYmxhY2tsaXN0ZWQ6ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAqLw0KLyogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAqLw0KLyogWC1TcGFtLVdhcm5pbmc6IFtmb2xsb3dlZCBi
eSBzb21lIGRldGFpbHNdICAgICAgICAgICAgICAgICAqLw0KLyogICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqLw0KLyogVGhpcyBsaW5l
IGNhbiBiZSB1c2VkIHRvIGZpbHRlciBvbiBpbiBhIGUtbWFpbCBwcm9ncmFtICAgICAqLw0KLyog
bGlrZSBQTU1haWwgKHdoYXQgSSBzdGlsbCB1c2UsIGp1c3QgbGlrZSBzb21lIG1pbnV0ZXMgICAg
ICAqLw0KLyogYmVmb3JlKS4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAqLw0KLyogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAqLw0KLyogVGhlIGxpc3Qgb2YgYmxhY2tsaXN0cyB0byB1c2Ug
Y2FuIGJlIGNoYW5nZWQgYmVsb3cuIFRoZSAgICAqLw0KLyogZmlyc3QgbGluZSAoYmxhY2tsaXN0
cy4wKSBpbmRpY2F0ZXMgdGhlIG51bWJlciBvZiAgICAgICAgICAqLw0KLyogYmxhY2tsaXN0cyB0
byB1c2UuIEFkZCBmb3IgZWF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