GNOME Bugzilla – Bug 723539
Use SmtpAuth* properties from org.gnome.OnlineAccounts.Mail
Last modified: 2014-02-10 21:22:53 UTC
Since 3.11.5 gnome-online-accounts exports the SASL mechanism(s) used by the SMTP server over D-Bus. Currently it knows about LOGIN, PLAIN and XOAUTH2. Please read those properties instead of implicitly assuming PLAIN or XOAUTH2.
Is it guaranteed if the account exports an OAuth2Based interface that the SASL mechanism will be XOAUTH2? Just wondering whether the property or the interface is more authoritative.
I can imagine a pathological scenario where a provider might use OAuth2 tokens but does not use the XOAUTH2 SASL mechanism for its mail service. Maybe it has some other custom OAuth2 based SASL mechanism. It sounds silly but that is how it is for SMTP's PLAIN and LOGIN mechanisms.
I hear that. Okay, so I'll take the mechanism name as authoritative and trust that an OAuth2Based interface will always accompany XOAUTH2. That sounds more foolproof.
(In reply to comment #3) > I hear that. Okay, so I'll take the mechanism name as authoritative and trust > that an OAuth2Based interface will always accompany XOAUTH2. That sounds more > foolproof. Sure. That makes sense.
Support added for EDS 3.11.90: https://git.gnome.org/browse/evolution-data-server/commit/?id=e2bda892fd36b27c5401781f30745a9ff4fc1d31