diff options
author | Dan Winship <danw@src.gnome.org> | 2001-09-07 03:09:57 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-09-07 03:09:57 +0800 |
commit | b5e4fe865ef94a8dd1988302fdbe61275a0d2f03 (patch) | |
tree | fe41198fc9f68d7c7481a20a0f69d107f2801859 /camel/providers/pop3/camel-pop3-store.c | |
parent | c52dd7369063653732d49a3701e4e6cba40d1a25 (diff) | |
download | gsoc2013-evolution-b5e4fe865ef94a8dd1988302fdbe61275a0d2f03.tar.gz gsoc2013-evolution-b5e4fe865ef94a8dd1988302fdbe61275a0d2f03.tar.zst gsoc2013-evolution-b5e4fe865ef94a8dd1988302fdbe61275a0d2f03.zip |
Fix this to always set an exception if it returns POP3_FAIL, as
* providers/pop3/camel-pop3-store.c (pop3_get_response): Fix this
to always set an exception if it returns POP3_FAIL, as documented.
* providers/pop3/camel-pop3-folder.c (pop3_get_message_stream):
Revert.
svn path=/trunk/; revision=12654
Diffstat (limited to 'camel/providers/pop3/camel-pop3-store.c')
-rw-r--r-- | camel/providers/pop3/camel-pop3-store.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/providers/pop3/camel-pop3-store.c b/camel/providers/pop3/camel-pop3-store.c index 8a0f8b6cc9..e5f6144ea6 100644 --- a/camel/providers/pop3/camel-pop3-store.c +++ b/camel/providers/pop3/camel-pop3-store.c @@ -561,8 +561,12 @@ pop3_get_response (CamelPop3Store *store, char **ret, CamelException *ex) status = CAMEL_POP3_OK; else if (!strncmp (respbuf, "-ERR", 4)) status = CAMEL_POP3_ERR; - else + else { status = CAMEL_POP3_FAIL; + camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, + _("Unexpected response from POP server: %s"), + respbuf); + } if (ret) { if (status != CAMEL_POP3_FAIL) { |