Search code examples
objective-cmacososx-mavericks

How does one programmatically access email account settings of mail app in Mavericks?


I would like to access email account settings, such as username, password, port, ssl settings etc that are stored by the stock OSX Mail app, from my app. Where are these settings stored, and how does one read them ?


Solution

  • Passwords are usually stored in the keychain, if the user enabled storage of passwords. The other parameters are in the preference file.

    Before accessing them make sure the user gives its okay.