I have an MBOX file created by dragging a folder from Outlook (For Mac v.16) into Finder (because the Export wizard in Outlook For Mac only generates OLM files).
I can look at the MBOX contents as plain text, and it looks sane. I would like to verify the number of messages contained. But mailx doesn't seem to see any messages:
% mailx -f archive.mbox
Mail version 8.1 6/6/93. Type ? for help.
"archive.mbox": 0 messages
? f
No applicable messages
? h
No applicable messages
?
I realize it's a very old version of mailx, but that is what shipped with the Mac.
How does mailx expect messages to be delimited in the MBOX file? Could I fix this with a simple find-replace?
sed $'s/\\\r/\\\n/g' archive.mbox > fixed-archive.mbox
– wemily Oct 19 '18 at 20:34