Question about Mutt macro and output

Alexander Wasmuth alexander at wasmuth.org
Wed Mar 19 17:38:38 CET 2003


daniel wrote:

> What would the Macro command for mutt be to correctly run bogofilter -vv
> in order to see this type of output for a message?
[...]
> Could anyone supply some more useful macro commands for Mutt so that
> we can see other interesting statistics and information about how the
> filter is working?

Don't know if my macros are especially useful to anybody, at least there
are for me ;)

I'm using bogofilter -u, so I want to correct any false classification
and move the spam or ham to the right mailbox (pipe_decode must be
unset):

macro index + "|bogofilter -Snl\ns+INBOX\n"  "--> INBOX (correct classification)"
macro pager + "|bogofilter -Snl\ns+INBOX\n"  "--> INBOX (correct classification)"
macro index - "|bogofilter -Nsl\ns+JUNK\n"   "--> JUNK (correct classification)"
macro pager - "|bogofilter -Nsl\ns+JUNK\n"   "--> JUNK (correct classification)"

And some macros for statistics (should answer your first question):

macro index B "|bogofilter -vvF|less -c\n"      "bogofilter analysis"
macro pager B "|bogofilter -vvF|less -c\n"      "bogofilter analysis"
macro index \cB "|bogofilter -vvvF|less -c\n"   "bogofilter extended analysis"
macro pager \cB "|bogofilter -vvvF|less -c\n"   "bogofilter extended analysis"


Alex
-- 
Alexander Wasmuth                        <http://alexander.wasmuth.org/>




More information about the Bogofilter mailing list