Have you tried csplit(1) - set pattern to '^From ' and stand back. You'll have to deal with an empty file before the first item.
You say they're sequential so no further processing is required to separate old ones. Note that many spams have crazy Date values. Jim Donovan >I have a mailbox with approximately 50,000 emails; > >when I tried to age the emails with archivemail, archivemail or some part >of it couldn't quite cope with size/volume/some unknown aspect, and, >'crashed' on this mailbox > >perhaps as a result of that, I now have some 50,000 email files >sequentaily date/time stamped, some, there is no way of sorting on file >date/time stamp (that I can see) > >I think... that failed procedure might have also duplicated? triplicated? >quadrupled? mail volume... > >the mail headers do have correct date/time > >how can I copy say the last 7 days worth of emails from the files? > >like, "if date in the header=last 7 days, copy this file from here to there" > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
