procmail
[Top] [All Lists]

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

2016-05-29 16:59:50
On Sun, May 29, 2016 at 5:12 PM, Patrick Shanahan 
<ptilopteri(_at_)gmail(_dot_)com> wrote:
* Xu Wang <xuwang762(_at_)gmail(_dot_)com> [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
____________________________________________________________
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