Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: script for ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 11046 of 11531
Post > Topic >>

Re: script for an mbox

by rvtol+news@[EMAIL PROTECTED] (Dr.Ruud) May 11, 2008 at 12:47 PM

"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."
 




 3 Posts in Topic:
script for an mbox
theal@[EMAIL PROTECTED]   2008-05-09 12:59:25 
Re: script for an mbox
noreply@[EMAIL PROTECTED]  2008-05-10 15:50:52 
Re: script for an mbox
rvtol+news@[EMAIL PROTECT  2008-05-11 12:47:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:17:19 CDT 2008.