diff options
Diffstat (limited to 'camel/providers/nntp/camel-nntp-store.c')
-rw-r--r-- | camel/providers/nntp/camel-nntp-store.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c index d72db9b6b3..084fbaa582 100644 --- a/camel/providers/nntp/camel-nntp-store.c +++ b/camel/providers/nntp/camel-nntp-store.c @@ -234,8 +234,12 @@ nntp_store_connect (CamelService *service, CamelException *ex) return FALSE; } - /* check if posting is allowed. */ resp_code = atoi (buf); + /* Check to see if we have any permissions on this server. */ + if (resp_code == NNTP_NO_PERMISSION) + return FALSE; + + /* check if posting is allowed. */ if (resp_code == NNTP_GREETING_POSTING_OK) { g_print ("posting allowed\n"); store->posting_allowed = TRUE; |