On Tue, 2001-12-04 at 18:04, Timothy Ball wrote:
> Hey how'd you do that? I've been meaning to put something like this for
> my lug list.
>
Since 3 people asked about this already I'm posting this to
the whole list.
Original article
http://www.unixreview.com/documents/s=1236/urm0104h/0104h.htm
script all typed up
http://www.kluge.net/mailfiltering/strip_html.txt
Also linux-xfs xfs was already running through procmail...
/etc/aliases:
#linux-xfs: "| wrapper resend -l linux-xfs linux-xfs-outgoing"
linux-xfs: "| procmail -m LIST='linux-xfs' /etc/mail/procmailrc.lists"
etc....
procmail.lists:
#VERBOSE=on
MAILDIR=$HOME/Mail
LOGFILE=majorlog
PATH=/usr/bin:/usr/local/bin:/bin
HOME=/etc/mail/prochome/
MAILDIR=$HOME
LOGFILE=$MAILDIR/majorlog-`date +%y%m`
JFDIR=/etc/mail/junkfilter/
:0 Whc: msgid.lock
| formail -D 8192 msgid.cache
:0 a:
duplicates-`date +%y%m`
# Call junkfilter
INCLUDERC=$JFDIR/junkfilter
# Take action if junkfilter caught a junkmail.
:0
* JFEXP ?? .
{
:0 f
* JFSTATUS ?? 1
| formail -i "X-junkfilter: $JFVERSION" -i "X-Spammer: $JFEXP"
:0 E :
| formail -i "X-junkfilter: $JFVERSION" -i "X-Spammer: $JFEXP" \
>> junkmail-`date +%y%m`
}
:0 fw
* ^Content-type:.*boundary
* <100000
|$HOME/strip_html.pl
:0
| /etc/smrsh/wrapper resend -l $LIST $LIST-outgoing
> --
> GPG key available on pgpkeys.mit.edu
> pub 1024D/511FBD54 2001-07-23 Timothy Lu Hu Ball <timball@xxxxxxx>
> Key fingerprint = B579 29B0 F6C8 C7AA 3840 E053 FE02 BB97 511F BD54
|