grep ^From /var/mail/MYUSERWhere MYUSER is a username. Its a property of the mbox format that each message starts with "From". For more fine processing you can use mbox packages in php, Python, perl.
Programming Tips - Linux: Quick scan of a mailbox file
Date: 2020apr7
OS: Linux
Language: bash
Q. Linux: Quick scan of a mailbox file
A. This works: