Calendar replies are sent from wrong account

Number:rdar://30310439 Date Originated:01-Feb-2017 07:34 PM
Status:Duplicate/3397857/Open Resolved:
Product:macOS + SDK Product Version:10.12.3 (16D32)
Classification:Other Bug Reproducible:Always
Calendar invitation reply emails are not sent from the correct account but from an arbitrary email account.

Steps to Reproduce:
- A Google Calendar invitation is received on a (non-Google) IMAP based email account, e.g. with the address
- The (first) ICS Attachment of the invitation is double clicked and opened in the Calendar app.
- The calendar is changed from the default Local calendar to an iCloud based calendar (this step doesn't actually make a difference).
- The event is accepted.

Expected Results:
The reply email should be sent from an email account with the From address, if available.
Alternatively, it would be fine also if the reply email would be sent from the iCloud server side, the same way as iCloud calendar invites are sent. 

Actual Results:
The reply email is sent from an arbitrary email account with a completely different From address.

It looks like macOS selects the last account in the list of accounts to send the reply email. When I disable the wrongly selected account, macOS selects the next activated account from the bottom.

This used to work. I checked my Sent folder and the last correct reply was sent in August 2015 (from the then-current Mac OS X).

See also:
rdar://30309747 Calendar replies contain "(null)"


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!