I have an Office 365 account registered as a Gnome desktop account, and another mailbox in the same account, registered through Evolution directly, as a Microsoft365 account. When I try to create a meeting with the main Office 365 account, it always defaults to the organizer e-mail of the other mailbox, and saving the meeting then fails with an error message that I cannot create meetings for another user. How can I convince Evolution to use the e-mail of the actual Office 365 account when creating meetings on its calendar?
Hi,
try Edit->Preferences->Mail Accounts, select the Office 365 account,
click on the Default button.
Though these things should work on their own, the email address
associated with the Calendar should be preferred over the address for
the default mail account.
This is how it is already set up, I also switched the default to another mail account and back without a change in behavior. The meeting invites still default to the wrong e-mail address.
I generally have hte feeling that the Gnome account has more issues than the Microsoft 365 account setup through Evolution directly. E.g. the calendar seems to forget to get new authentication tokens. While I can read and write mail, after a few hours of Evolution running, I cannot use the calendar any more. Any attempt to create an appointment results in
Failed to create an event in the calendar “... : Calendar”
Cannot create calendar object: InvalidAuthenticationToken: Access token is empty.
or, when trying to accept an e-mail invite, in another error message about not being able to create a calendar entry for another user, or, when trying to import an invite from vcs or ical, in other errors. All those go away when I kill and restart Evolution
E.g. the calendar seems to forget to get new authentication tokens.
Hi,
if configured in the GNOME Online Accounts (GOA), then the auth tokens
are all managed in the GOA. The token might expire, but not being
refreshed. I do not see it with a Google account (they both use
OAuth2), which is kinda odd. I guess when this happens, right-clicking
the mail account in the folder list of the Mail view in the Evolution
and picking “Refresh”, will also refresh the token. It might be
propagated to the evolution-calendar-factory process too. I mean, maybe
there is a bug in the evolution-data-server code.
in another error message about not being able to create a calendar
entry for another user
That’s a limitation of the Microsoft Exchange protocols. The mail
account email is compared to the organizer email and if they do not
match, then this is shown. Does the GOA account Properties have the
email set properly? It’s on the Identity tab.
trying to import an invite from vcs or ical, in other errors
These also check for the organizer mail. There had been a bug in the
import, about not being able to import multiple events at once, but it
depends what error it says precisely. Better to use 3.54.3, which is
the latest stable series at the moment. Though if it’s a token-related
error, like the one you pasted above, then it makes sense, all these
actions talk to the evolution-calendar-factory process, using the same
calendar.
Thanks a lot @mcrha ! The calendar does not work while mail works, i.e. mail has a valid token, only a full restart of evolution with
evolution --force-shutdown
fixes this. This was not necessary when the same account was managed by Evolution instead of Gnome. I just needed the Gnome thing is because it also integrates OneDrive.
There is no identity tab in the GOA account properties settings, just a Sign In button that forwards to Microsoft’s OAuth2 sign in page, everything else, I assume, is inferred from there (which makes sense).
Hi,
in that case, only as a workaround, you can disable all but “Files”
parts in the GOA settings and configure the same account directly in
the Evolution.
I can give this a try, I hope I won’t forget. A bug at:
would help, with a detailed information about the versions and the
settings.