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

"John Levine" <[email protected]> 25 May 2016 22:02:01 -0000
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
>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.