I am using Mail.app for email. I have to transition an account to a new machine and login account. Is there a way to read all my account information (username, ports, etc.) and set up a new Mail.app account on the new machine using the command line in Terminal.app?
ETA. Both machines are macOS High Sierra.