============================ === How to integrate bmf === ============================ For maildrop(1), use only one of the following examples. The first sample invokes bmf in its normal mode of operation and the second invokes bmf as a filter: ### Sample One # Invoke bmf and use return code to filter spam in one step exception { `bmf` if ( $RETURNCODE == 0 ) to $MAILDIR/spam } ### Sample Two # Invoke bmf as a filter exception { xfilter "bmf -p" if (/^X-Spam-Status: Yes/) to $MAILDIR/spam } For procmail(1), use only one of the following samples. SPAM will be filtered into $MAILDIR/spam. The first sample invokes bmf in its normal mode of operation and the second invokes bmf as a filter. ### begin sample one ### # Invoke bmf and use return code to filter spam in one step :0HB * ? bmf | formail -A"X-Spam-Status: Yes, tests=bmf" >>$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. git/cgit.cgi/freebsd-ports-graphics/'>summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoop Mast <kwm@rainbow-runner.nl>2016-12-10 23:29:02 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2016-12-10 23:29:02 +0800
commitb1001d70f01d51c768db3a1e8e00cd1b7a245440 (patch)
tree7268e086efcba602ca5f14534bce6f7075c92810 /devel/R-cran-evaluate
parent2c467c5afbd45537746e9d808e5e92481c8d28b9 (diff)
parent43ae45671e24ac2b498ed0e5af2e3d27383b4320 (diff)
downloadfreebsd-ports-graphics-mesa-next.tar.gz
freebsd-ports-graphics-mesa-next.tar.zst
freebsd-ports-graphics-mesa-next.zip
Merge branch 'master' into mesa-nextHEADmesa-next
Diffstat (limited to 'devel/R-cran-evaluate')