Re: script for an mbox

2008-05-11 Thread Dr.Ruud
"Tony Heal" schreef: > I need to remove all messages older than X from a gigabyte size mbox. > Anyone got a script for this? You can use formail to split up the mbox, see `man formail`. Then check the date in the postmark line (always the first line, the one that starts with From). That date loo

Re: script for an mbox

2008-05-10 Thread Gunnar Hjalmarsson
Tony Heal wrote: I need to remove all messages older than X from a gigabyte size mbox. Anyone got a script for this? Here is a quick-and-dirty script to start with: use Date::Parse; sub isOld { my $date = shift; my $time = str2time($date); my $cmptime = '121037

script for an mbox

2008-05-09 Thread Tony Heal
I need to remove all messages older than X from a gigabyte size mbox. Anyone got a script for this? Tony Heal Pace Systems Group, Inc. 800-624-5999 x9317