procmail
[Top] [All Lists]

Re: Extract last email from an email file (mbox format)

2016-05-29 19:59:38
On Sun May 29 2016 14:11:24 Xu Wang     <xuwang762(_at_)gmail(_dot_)com> 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.


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail