“Export whole mailboxes from Webmail to mbox format and then import the mbox files to EagleFiler. For example, with Gmail you can export mailboxes using the Takeout feature”

Link. Useful when leaving Google Apps.