[ECollectionAccountWizard] Clear old results before starting any worker
I have an email server where usernames are just the local part (i.e. someuser, not someuser@domain.com).
When trying to add a "collection account", if I use the "SRV" and "CalDav/CardDAV" discovery options:
-
If I enter just the email address:
- It discovers all advertised SRV services (IMAP, SMTP submission, CalDAV, CardDAV)
- It attempts user@domain as a username (and fails since that's the wrong username)
- It doesn't then attempt the local part as username (which is a "SHOULD", per https://tools.ietf.org/html/rfc6186#section-4)
- It prompts for username/password. Correcting the username and entering the password doesn't work
- Looking in Accounts, it has created a "webdav" account, but with only an email sub-entry (no contacts, calendar, tasks or memos)
- Looking in sending settings for the account, the account has not been configured to require auth (!)
- Correcting the username in the account settings seems to fix IMAP auth.
-
If I enter the (correct) username and enter the server separately:
- It fails to discover the IMAP service per its SRV record, but finds the rest
- Attempting this breaks subsequent account addition attempts - trying from scratch again with user@domain with no separate server still results in no IMAP discovery (until at least an Evolution restart)!
Edited by Milan Crha