[Mimedefang] [semi-OT] mailbox cleaning tool?

-ray ray at ops.selu.edu
Tue Jan 27 10:31:48 EST 2004


On Tue, 27 Jan 2004, Ole Craig wrote:

> 
> 	I just ran the updated clamscan on my /var/spool/mail
> directory, and came up with several dozen mailboxes that are infected.
> Anyone know of a command-line tool I could use that would properly
> lock said spools, scan each message within, delete those with viruses,
> and then rebuild the spools in standard mbox format? I can probably
> write such a thing, but it seems such an obvious Perl hack that I'm
> thinking someone *must* have done it already and I hate reinventing
> wheels (maybe because mine never seem to be quite round... :-)

Look at the perl manpages for Mail::Box and Mail::Box::Manager.  That's 
what we use for stuff like that.  It is pretty simple to use, even if you 
don't know perl that well.

ray
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ray DeJean  				       	 http://www.r-a-y.org
Systems Engineer                    Southeastern Louisiana University
IBM Certified Specialist  	      AIX Administration, AIX Support
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=




More information about the MIMEDefang mailing list