Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#290873 - 27/11/2006 13:43 mbox spliting tool ?
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5914
Loc: Wivenhoe, Essex, UK
Does anyone know of a tool/script for spliting large Unix mbox files up into smaller chunks ?

What I want is something that will take a large mbox file and split it into smaller ones based on some criteria (in most cases I probably want it split up by the year received, but in some cases I probably want it split down to the month level).

I'm sure there must be something like this out there already, though I haven't managed to find anything by Googling.
_________________________
Remind me to change my signature to something more interesting someday

Top
#290874 - 27/11/2006 13:56 Re: mbox spliting tool ? [Re: andy]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4172
Loc: Cambridge, England
Will grepmail do it?

Peter

Top
#290875 - 27/11/2006 14:15 Re: mbox spliting tool ? [Re: peter]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5914
Loc: Wivenhoe, Essex, UK
It might do, just jumping through a few CPAN hoops so that I can get it running...

It took nearly two hours of CPAN wrangling to get grepmail to finally build, but I managed it in the end.

It looks like it is just what I need (or nearly at least). I'll need to wrap it up in a few of my own scripts to get it to do just what I need.

Thanks Peter


Edited by andy (27/11/2006 16:02)
_________________________
Remind me to change my signature to something more interesting someday

Top