PATH=/bin:/usr/bin:/usr/local/bin SHELL=/bin/bash MAILDIR=$HOME/mail DEFAULT=$MAILDIR/inbox # # this line runs the spam classifier # :0 YAY=| dbacl -T email -c $HOME/.dbacl/spam -c $HOME/.dbacl/notspam -v | tr -d '\n' # # 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