Question: how to transfer all emails from one mac to another?
Answer: In the Mail app on your Mac, choose File > Import Mailboxes. Select a source in the list, read the information that appears below the list, then click Continue. If you're importing a mailbox exported from Mail or a folder in the ~/Library/Mail/V7 folder on another Mac, select Apple Mail.