[EMAIL PROTECTED] said: > since you're using mutt: > > macro index B "<pipe-entry>bogofilter -n\n" "non-spam" > macro pager B "<pipe-entry>bogofilter -n\n" "non-spam" > > macro index S "<pipe-entry>bogofilter -s\n" "spam" > macro pager S "<pipe-entry>bogofilter -s\n" "spam" > > those lines in your .muttrc let you control things nicely. > (choose different keys if those are already used, of course. :D)
Actually, it's not that simple. Using <pipe-entry>, mutt may filter out most of the mail's headers before piping to bogofilter. This depends on the "weed" setting. bogofilter will supposedly work better if given the entire mail to learn from, so you want to make sure mutt doesn't filter anything: macro index H "<enter-command>unset wait_key weed\n<pipe-entry>bogofilter -Sn\n<enter-command>\ set wait_key weed\n<save-message>!\n" "mark as non-spam and save to spool" macro index S "<enter-command>unset wait_key weed\n<pipe-entry>bogofilter -Ns\n<enter-command>set wait_key weed\n<save-message>=spam\ny" "mark as spam and save to =spam" These macros also temporarily disable wait_key so you don't have to press enter after using them. Jason -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

