Bug 1242541

Summary: Evolution doesn't honor google settings as defined in gnome-online-accounts
Product: [Fedora] Fedora Reporter: Peter Robinson <pbrobinson>
Component: evolutionAssignee: Milan Crha <mcrha>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: lucilanga, mbarnes, mcrha, tpopela
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: evolution-data-server-3.17.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-28 16:50:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Robinson 2015-07-13 14:23:17 UTC
I have a google enterprise account with just Google Calendar and Docs without Mail.

I've setup account in gnome-oling-accounts authenticating the account and explicitly turning off except Calendary and Documents within those settings without evolution running to try to ensure it doesn't get confused.

The calendar comes up as expected in Evolution but it also sets up mail and everytime it tries to access it I get the error:

"The reported error was "IMAP access is disabled for your domain. Please contact your domain administrator for questions about this feature. (Failure)".

At which point the calendar often disappears as well. If I remove the mail account from within Evolution preferences I lose the calendar and it actually generally screws up the gnome-online-account to the point I have to remove it all and reconfigure it from the beginning.

Evolution should not setup mail if it's disabled in the GOA google account settings.

Versions:
evolution-ews-3.17.3-1.fc23.x86_64
evolution-data-server-3.17.3-1.fc23.x86_64
evolution-help-3.17.3-1.fc23.noarch
evolution-3.17.3-1.fc23.x86_64
gnome-online-miners-3.14.3-3.fc23.x86_64
gnome-online-accounts-3.17.2-2.fc23.x86_64
gnome-calendar-3.17.3-1.fc23.x86_64

Comment 1 Milan Crha 2015-07-14 09:54:12 UTC
(In reply to Peter Robinson from comment #0)
> ...If I remove the mail account from within Evolution preferences...

Thanks for a bug report. GOA-defined mail accounts cannot be removed from within Evolution. Such accounts have a "plug-in" icon and the enable/disable checkbox is hidden for them. There is also a hint at the bottom of the Edit->preference-s>Mail Accounts that they are configured in Online Accounts and a button to open its preferences is offered.

In any way, I see some issues in propagating changes of enable state for Mail/Calendar/Contacts into the respective sources in rawhide. I made a change which will make it work.

Created commit dd82443 in eds master (3.17.4+)
Created commit c66b549 in eds gnome-3-16 (3.16.5+)

Comment 2 Peter Robinson 2015-07-23 15:05:37 UTC
Reopening, it appears that 3.17.4 is now trying to send all email via smtp.gmail.com so if anything it's now worse

Comment 3 Milan Crha 2015-07-23 15:50:57 UTC
I'm sorry, I do not follow. The smtp.gmail.com sounds correct to me. You might be able to disable the Mail part in the GOA and that will remove the Mail account from the evolution, thus you'll be able to use whichever account you've configured in the evolution, rather than the GOA-provided. That's what this bug was about, from my point of view.

Comment 4 Peter Robinson 2015-09-28 16:50:26 UTC
works for me in later releases of 3.17