Hi

I'am reposting to myself. Yesterday i made a question of the subject, i felt
really bad when someone respond me the answer was in the faq. 

I felt with the responsability to build a solution without resorting to
mailbox conversions. I developped a simple tool that using clamd, is able to
do the job of directly removing just the infected emails in mbox files.

I've been all this day building and testing, finally, i run the tool against a
production server with 4500 mailboxes in 7 GB of email. Performance was great
and there was no trouble.

At this time, it's in my personal site it anyone is interested.

http://hans.opensource.cl/cleanmbox.pl

Due to the modifications realized by the program, please make a good backup
before running.

Basically it's a little perl script that mix the job of two libraries: the
mbox parser Mail::Box::Manager, and the clamd access File::Scan::ClamAV.

Hans

On Wed, 13 Apr 2005 09:07:48 +0200, Tomasz Papszun wrote
> On Wed, 13 Apr 2005 at  1:21:57 -0400, Hans Poo wrote:
> > 
> > I've just installed clamav in a Linux server (mbox format). Is all fine with
> > clamd, sendmail+milter, and clamav-milter.
> > 
> > I have history and need to clean the already existing mailbox files.
> > 
> > When clamscan finds a virus, it removes the entire mailbox file, i need it 
> > to
> > remove: Just The Infected Email From The Mailbox. I've not found a way to 
> > tell
> > clamscan to do this ?
> > 
> > I supossed this to be a very common problem, but i didn't found info about 
> > it.
> >
> 
> http://www.clamav.net/faq.html ; entry 32.
> 
> -- 
>  Tomasz Papszun    SysAdm @ TP S.A. Lodz, Poland    | And it's only
>  tomek at lodz.tpsa.pl http://www.lodz.tpsa.pl/iso/ | ones and zeros.
>  tomek at clamav.net   http://www.ClamAV.net/   A GPL virus scanner
> _______________________________________________
> http://lurker.clamav.net/list/clamav-users.html


------------------------------------------------------------------------
El problema de fondo es dise�ar soluciones elegantes e inteligentes, las 
herramientas s�lo son las herramientas.

Hans Poo, http://hans.opensource.cl, [EMAIL PROTECTED], F: 09-319.93.05
Consultor Linux, Desarrollo Web OpenSource.
Santiago, Chile

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to