* Kurt Lieber <[EMAIL PROTECTED]> [2002-10-08 12:11]:
> I tried this on last night's batch of received SPAM.
> I tagged three messages, then hit ;, then
> hit S to send them to the following macro:
>
>   macro index S    "| ssh -q my.imap.server \
>   ~/spamassassin/usr/bin/spamassassin -r<enter>d"
>
> (wrapped here for convenience -- it's on one line in my .muttrc)
>
> When the processing is done, only the first message
> gets deleted -- the other tagged messages are unaffected.
>
> What am I doing wrong?

you are explicitly piping/deleting the current message only.
but you are expecting mutt to apply the macro to all tagged messages.
you should use the tag-prefix command to work on all tagged messages:

  macro index S \
  "<tag-prefix><pipe-message>ssh -q my.imap.server \
  ~/spamassassin/usr/bin/spamassassin -r<enter>\
  <tag-prefix><save-message>+SPAM<enter>"

besides, "~/spamassassin/usr/bin/" is quite a long dirname.
i suggest you properly install spamassassin in your ~/bin
and make this the first entry in your $PATH.  then calling
on "spamassassin" should not require any directory name.
and if you still want to make sure that your personal "binary"
gets called then you might as well use "~/bin/spamassassin".

Sven

Reply via email to