pub fn add_imap_account(path: &Path, account: &Account) -> Result<(), String>
Adds a mail account at the end of the configuration file, creating the file if needed.