spam.rc

[code]
# spam.rc
# -ifile: http://www.nongnu.org/ifile/
# in addition, I use Martin Macok's scripts for using ifile with procmail
# - http://xtrmntr.org/ORBman/ifile.procmail.html

# directories used
BINDIR=$HOME/usr/bin

# programs used
KSH=$BINDIR/ksh

# Insert ifile header info
# if you don't want to learn from new messages, use ifile.inject.header
:0 fBw
| $KSH $BINDIR/ifile.inject-learn.header

# and now we can sort the mail with the help of ifile hint
:0: ifile.lock
* ^X-Ifile-Hint:\ spam
| $RCVSTORE +spam
[/code]

Leave a Reply