Re: Extract last email from an email file (mbox format)
"@lbutlr" <[email protected]> Sun, 29 May 2016 18:59:17 -0600
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
On Sun May 29 2016 14:11:24 Xu Wang <[email protected]> said: > >> 3. It is fast. > > Unfortunately not for me. > > time formail -s tee oneMessageOnly < theBigBox > > real 0m24.019s > user 0m3.376s > sys 0m4.484s > > As mentioned, my file is huge: > $ wc -l theBigBox > 2171183 theBigBox Well, 24 seconds to process 2 million lines of largely unstructured text is pretty fast. You could make it faster with a faster disk, of course. The REAL solution is not to have an mbox file with over 2 million lines. There is *no* reason to use mbox over maildir. It is inefficient and fragile. -- It was sad music. But it waved its sadness like a battle flag. It said the universe had done all it could, but you were still alive.