[ { type: install message: <>$MAILDIR/spam ### begin sample two ### # Invoke bmf as a filter :0 fw | bmf -p # Filter spam :0: ^X-Spam-Status: Yes $MAILDIR/spam If you put bmf in your maildrop or procmail scripts as suggested above, it will always register an email as either spam or non-spam. To reverse this registration and train bmf, the following mutt macros may be useful: macro index \ed "unset wait_key\nbmf -S\nset wait_key\n=spam\n" "Tags a given message as SPAM" macro index \et "bmf -t\nset wait_key\n" "Tests a given message to see if it is SPAM" macro index \eu "bmf -N\nset wait_key\n=inbox\n" "Untags a given message as SPAM" These will override these commands: d = de-register as non-spam, register as spam, and move to spam folder. t = test for spamicity. u = de-register as spam, register as non-spam, and move to inbox folder. Please see the ${PREFIX}/share/bmf/README for further details. EOM } ]