trnkill easily

J. Dashiell (dashiell@nadc.nadc.navy.mil)
Fri, 26 Apr 1996 14:14:27 -0400

Found that if I save the spam to a file in my directory say
called kf, and then do the following filtering on kf
it can make adding those entries to the kill file alot quicker.

I'll put this in a script file:

#!/bin/sh
tr -cs "[a-z][A-Z][0-9]" "[\12*]" < kf > kft
# that line should have placed one word per line in kft
rm kf
grep "\@" < kft >kf
rm kft
# those lines should have saved all email addresses to
# kf and deleted kft

I'll look at the killfile.faq before writing the rest of this script.
Eventual goal is to end a mail reading with a kf file that automatically
has addresses and probably subject headings and perhaps strings to search
for in bodies of messages later append the relevant kill files and
then clean up after itself.
One newsgroup I read had 214 articles in it with 91
of them classifiable as spam for one reason or another.

jude <dashiell@nadc.nadc.navy.mil>