Ville Herva wrote:
> In mutt I use
> 
>  macro pager S ":set wait_key=no\n|~/script/spam-report\n:set wait_key=yes\nd"
>  macro index S ":set wait_key=no\n|~/script/spam-report\n:set wait_key=yes\nd"
> 
> Has anyone come up with a more elegant solution?

Could you tag all of the spam messages and then ;| them (tag-prefix
pipe-message) them to a script such as 'formail' which would pick them
apart?  That would batch them all up.  One caveat is that tag piping
does not make a strict mbox format message (in my version of mutt) and
might be a problem for some tools.  Try ;| a set of mesages to less
(e.g. ";|less") and browsing the raw format and you will see what I
mean.

Bob

Reply via email to