procmail
[Top] [All Lists]

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

2016-05-25 17:02:34
I wonder if the solutions that rely on regex match of "From:" are
robust.

They match on '^From ' which is a delimiter line in an mbox file.
Note the space rather than colon, and the ^ anchoring it to the
beginning of the line.

I still like the tail -r hack which is likely to be considerably faster
since it doesn't read through the whole file.

____________________________________________________________
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