Improve reporting when an IMAP server is down
If Geary attempts to connect to an IMAP server but gets a network-level error (e.g. "Connection refused"), this is reported using the "Geary has encountered a problem" banner and error box, making it look like a bug in Geary itself, not a problem with the server.
This type of error should be reported with a dedicated banner that makes it clear that the problem is with the network.
- Geary version: (3.32.0)
- Installation method: Debian package
- Your desktop: GNOME
- Your operating system and version: Debian 'sid'
- Email provider: organizational IMAP server
Relevant logs and/or screenshots
Here's an example "error details" box:
Geary version: 3.32.0 GTK version: 3.24.11 Desktop: GNOME Account id: goa_account_1568053032_0 Account provider: GEARY_SERVICE_PROVIDER_OTHER Error type: GoaError 4 Message: GDBus.Error:org.gnome.OnlineAccounts.Error.NotAuthorized: Invalid imap-password with username “zackw” (goa-error-quark, 0): Could not connect to mailsrv.cs.umass.edu: Connection refused Back trace: - unknown - unknown - unknown - g_simple_proxy_resolver_set_uri_proxy - g_task_attach_source - unknown - g_simple_proxy_resolver_set_uri_proxy - g_simple_proxy_resolver_set_uri_proxy - g_main_context_dispatch - g_main_context_dispatch - g_main_context_iteration - g_application_run - unknown - __libc_start_main - unknown