aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 9630def2df..a4748e35e5 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -896,7 +896,10 @@ static void check_service_check(struct _mail_msg *mm)
service = camel_session_get_service (session, m->url, m->type, &mm->ex);
if (!service)
return;
- *m->authtypes = camel_service_query_auth_types (service, m->connect, &mm->ex);
+ if (m->connect)
+ *m->authtypes = camel_service_query_auth_types (service, &mm->ex);
+ else
+ *m->authtypes = g_list_copy (service->provider->authtypes);
} else if (m->connect) {
service = camel_session_get_service_connected (session, m->url, m->type, &mm->ex);
}