MacOS – How to export all emails from a mailbox in Apple Mail

emailmacmacosmail.app

I'm trying to export all emails from an account I have setup and mapped to Apple mail on my computer. There are 1200 emails. The account is no longer active so i'm trying to export all the emails in the mailbox in apple mail to an .mbox file that I can import somewhere else.

The problem is when I do an export of the mailbox and then import it somewhere, there are only 88 emails when there should be 1200+.

Why is this only exporting some of the emails and how can I make it so it exports all of them?

Best Answer

I couldn't get my export working even with a mailbox rebuild. However, my goal was simply to archive my old mail, and not necessarily to do so in the mbox format, so copying the raw mailbox with 'mv' was adequate for my purposes.

After some trial and error, I found the path was ~/Library/Mail/V3/IMAP-<account-name>/. Sharing it here in case anyone anyone else is in the same boat.