} Brock Rozen <brozen(_at_)netvoyage(_dot_)net> Answered my query thusly:
}
} My spam removal system:
}
} --------
}
} FROMZ="Brock Rozen's Spam Removal System <$COMSAT>"
} SPAMLOG=$PMDIR/log.spams
} SPAMCACHE=$PMDIR/cache.spams
} SPAMMATCH=`perl -p -0377 -e 's:\n*$::;s:\n+:|:g;s:\.:\\.:g' $SPAMCACHE`
}
} :0hc
} * !^X-Loop: $COMSAT
} * $ ? test -s $SPAMCACHE
} * $ ^From:.*(${SPAMMATCH})
} | ($FORMAILZ -I 'From ' \
} -I"From: $FROMZ" -r \
} -A"X-Loop: $COMSAT" \
} -A"Precedence: junk" \
} -I"Subject: Stop Spamming Me!";\
} cat $PMDIR/text.spams) | $SENDMAIL -oi -t
}
} :0A:
} | ( $FORMAILZ -XFrom: -XDate: -XSubject: ; echo ) >> $SPAMLOG
}
} ------
}
Excellent.
Now is there a simple way to add addresses (also Subjects, or parts of
subjects) directly from the mail client (I use elm)? Or must I cut
and paste manually? I am not lazy, I just go through so many messages
that to do it manually would be a real pain in the typing fingers?
Thanks for the recipe and for any further help on the adding of
criteria (email and/or Subject strings) to SPAMCACHE
William Pfeiffer
Moderator: rec.radio.broadcasting/AIRWAVES RADIO JOURNAL
wdp(_at_)airwaves(_dot_)com * wdp(_at_)wwa(_dot_)com *
airwaves(_at_)woodtech(_dot_)com
Web: http://radio.aiss.uiuc.edu/~rrb/