My wife works in a workplace filled with drama. She wants to keep an archive of her work emails without forwarding them to herself.

She already has access to her work email (Exchange) from home, and we already know how to archive emails by exporting them from Apple Mail.

I have a Raspberry Pi 4 with Alpine Linux. Is there any command line utility that can connect to the email server as a regular client and manage archiving?