Re: Extract last email from an email file (mbox format)
Xu Wang <[email protected]> Sun, 29 May 2016 17:59:41 -0400
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <CAJhTkNih_egu24EafmHrDp0=4j-vChcaOj5QdG5pegshFOWGRg@mail.gmail.com> |
On Sun, May 29, 2016 at 5:12 PM, Patrick Shanahan <[email protected]> wrote: > * Xu Wang <[email protected]> [01-01-70 12:34]: > [...] >> As mentioned, my file is huge: >> $ wc -l theBigBox >> 2171183 theBigBox >> >> And it will get huger. THe main thing though is I would like to >> eventually make my script open source and help others and want to >> allow them to have huge files as well. >> >> I would like use this in script and use it often so 24 seconds is too >> much for me. > > You have control. Divide the *hugh* file into smaller segments perhaps by > date. You surly have some criteria by which you need to access particular > files/msgs. Yes for me that is fine, but my wish is to provide a script that is useful for more users (the script is part of a bigger project I work on). If needs to be I will warn user to make a smaller file, but ideally I think it is still feasible to somehow come up with an efficient (e.g. 1 second even for big big file) way. Kind regards, Xu