* On 21 Jul 2010, Roger wrote: 
> >> Since I'm always saving/moving email to $HOME/.maildir/.Spam... you
> >> would think Mutt would catch-on after the 10th email. ;-)
> >
> >I attach the following macros to the z key in my .muttrc
> >
> > macro index z "s=mutt/spam\n" "move message to spam"
> > macro pager z "s=mutt/spam\n" "move message to spam"
> >
> >And then i can just z(ap) any nasty spam.
> 
> Ah. Thanks Steve.  Wasn't going to get around to configuring save-hook for
> awhile, but since you mention this, I'll likely deploy it here. ;-)

I assume your goal in saving stuff you know is spam is to finely train
your spam analysis engine.  Consider using the spam directive with this.
For example:

  # SpamAssassin markup catcher.
  spam "X-Spam-Status: Yes, score=([^ ]+)" "SA:%1"
  # Add more patterns as needed for other spam engines you use.

  # Save known spam to spam folder for bayesian analysis.
  fcc-save-hook "~H ." =spam

  # Augment this with macros to save uncaught spam and false positives.
  # (I use ^S as a prefix for a variety of spam-related functions.)
  macro index \Css "<save-message>=spam<enter>" "message is spam"
  macro pager \Css "<save-message>=spam<enter><exit>" "message is spam"
  macro index \Csn "<save-message>=notspam<enter>" "message is not spam"
  macro pager \Csn "<save-message>=notspam<enter><exit>" "message is not spam"

If that's not your goal, I'm not sure why you're saving spam. :)

-- 
 -D.    [email protected]    IT Services    University of Chicago

Reply via email to