aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/pop3/camel-pop3-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/pop3/camel-pop3-store.c')
-rw-r--r--camel/providers/pop3/camel-pop3-store.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/camel/providers/pop3/camel-pop3-store.c b/camel/providers/pop3/camel-pop3-store.c
index b04817c74c..ff4ca265a1 100644
--- a/camel/providers/pop3/camel-pop3-store.c
+++ b/camel/providers/pop3/camel-pop3-store.c
@@ -227,6 +227,13 @@ query_auth_types (CamelService *service, CamelException *ex)
if (kpop)
ret = g_list_append (ret, &kpop_authtype);
#endif
+
+ if (!ret) {
+ camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE,
+ "Could not connect to POP server on "
+ "%s.", service->url->host);
+ }
+
return ret;
}