Re: script for an mbox

[email protected] ("Dr.Ruud")
Newsgroups perl.beginners
Organization Chaos rules.
Message-ID <[email protected]>
"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<space>).
That date looks like this: Tue Oct 26 21:44:31 1999, so you should
convert to something like 1999-10-26T21:44:31 to make it string
comparable.

-- 
Affijn, Ruud

"Gewoon is een tijger."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.