You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Kevin A. McGrail" <KM...@PCCC.com> on 2012/03/03 16:43:45 UTC

Tool to rescan mbox with SA and retag subject if now spam under updated rules

Anyone know if there is a tool or a good solution to rescan an mbox 
format file with any number of emails with SA and change subject/move to 
another file/delete if SA considers spam?

Regards,
KAM

Re: Tool to rescan mbox with SA and retag subject if now spam under updated rules

Posted by Dave Funk <db...@engineering.uiowa.edu>.
On Sat, 3 Mar 2012, Kevin A. McGrail wrote:

> Anyone know if there is a tool or a good solution to rescan an mbox format 
> file with any number of emails with SA and change subject/move to another 
> file/delete if SA considers spam?
>
> Regards,
> KAM

A bit clunky but, assuming you've got your SA/spamd/spamc configured to do
what you want WRT tagging & subject munging, you could:

  formail -Y -s spamc < mbox > mbox-retagged

if you don't use spamd/spamc & have lots of time/CPU:

  formail -Y -s spamassassin  < mbox > mbox-retagged

that would get things re-tagged. You'd then need to use something else to
do the deletion/move. (procmail?)

-- 
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{