PATH=/bin:/usr/bin:/usr/local/bin SHELL=/bin/bash MAILDIR=$HOME/mail DEFAULT=$MAILDIR/inbox # # this line runs the spam classifier # :0 c YAY=| dbacl -vT email -c $HOME/.dbacl/spam -c $HOME/.dbacl/notspam # # this line adds a custom header to the email # :0: * ? test -n "$YAY" # if you prefer to write the spam status in a header, # comment out the first line and uncomment the second $MAILDIR/$YAY #| formail -A "X-DBACL-Says: $YAY" >>$DEFAULT # # last rule: put mail into mailbox # :0: $DEFAULT