You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Ville Herva <vh...@viasys.com> on 2004/02/13 13:11:08 UTC

spamassassin --report and mutt?

When flushing spam in mutt, I'd like to pipe them through "spamassassin
--report". If I have 100 spams in the spam folder, and one spamassassin
--report run takes ~5 sec, I'd have to sit and wait for almost ten minutes
to flush the spam folder. And 100 spams is not much... 

Doing "| spamassassin --report" instead of "| spamassassin --report" obviously is not a good
solution.

The best I could think of this prototype script that puts the spams in a
spool directory and then feeds them through spamassassin --report one by
one:

  http://iki.fi/v/tmp/spam-report

(Sorry, it's ugly).

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?



-- v --

v@iki.fi

Re: spamassassin --report and mutt?

Posted by Ville Herva <vh...@viasys.com>.
On Fri, Feb 13, 2004 at 10:42:51AM -0700, you [Bob Proulx] wrote:
> 
> 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.

I will check the tag pipe approach (I didn't know such feature existed in
mutt :). Thanks.

But I'm not completely sure how this is better than the spool dir hack I
have, since I still need to feed the mail through formail to spamassassin. I
dunno. Perhaps it was naive to think there would be an easier way.


-- v --

v@iki.fi

Re: spamassassin --report and mutt?

Posted by Bob Proulx <bo...@proulx.com>.
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