Impersonate mailbox uses original user's connection
Hi, first of all thanks for this great Exchange integration!
Recently, I tried to open another mailbox "B" with the same credentials beside my normal mailbox "A" (I have access to both mailboxes with my credentials). So I created a new EWS account in Evolution with the option "Open Mailbox of other user". This seems to confuse Evolution: after that, folders and content of mailbox "A" were visible below mailbox "B" too.
A workaround is to use another username for authentication. This is possible because you can use "username@domain.com" or "DOMAIN\username" in Active Directory environments which reference the same account.
Example:
Not working constellation
Mailbox A
- Username: user@domain.com
- Open Mailbox of other user: (not set)
Mailbox B
- Username: user@domain.com
- Open Mailbox of other user: sharedmailbox@domain.com
Working constellation (workaround)
Mailbox A
- Username: user@domain.com
- Open Mailbox of other user: (not set)
Mailbox B
- Username: DOMAIN\user
- Open Mailbox of other user: sharedmailbox@domain.com
Tested on Ubuntu 22.04 with Evolution 3.44 and with version 3.50.4 from Flathub. Server is Exchange 2019.