Mail 9.0 configuration - in El Capitan 10.11 (15A178w)

Hi,


it seems that the new Mail.app 9.0 in El Capitan 10.11 (15A178w) has now integrated full support to System Preferences - Internetaccounts.

The ~/Library/Mail/V2 changed to ~/Library/Mail/V3 and the Accounts.plist of ./MailData/ seems to stay empty in case of configured accounts.

The Accounts.framework does not allow to read out any mail accounts.


Our apps worked fine with the Accounts.plist. It was the best way to read/write accounts from Mail, which is not possible anymore.


We did some research and come across using Apple Script reading out accounts, and it worked well.

BUT there is no way to configure the accounts within Apple Script. We changed some simple data, like server port or uses ssl.

Mail showed the changes in the configuration dialog and we were happy again, but then we closed Mail and opened it again.

Mail did not override the settings on application quit.


Here is same Apple Script:

try
  tell application id "com.apple.mail"
       set should_close_application to not running  
       set the_account to account "***"
       if not (the_account is equal to account "***") then
            error "Account not found" number -22011
       end if          
       set name of the_account to "YYY"
       set uses ssl of the_account to true
       set port of the_account to 995
       if should_close_application then
            do shell script "killall 'Mail'"
       end if
       return mail_objects
  end tell
on error errMessage number errNumber
  error errMessage number errNumber
end try


Is anyone out there that can help us?


Thx