summaryrefslogtreecommitdiffabout
path: root/libetpan/src/low-level/pop3
Side-by-side diff
Diffstat (limited to 'libetpan/src/low-level/pop3') (more/less context) (ignore whitespace changes)
-rw-r--r--libetpan/src/low-level/pop3/mailpop3.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libetpan/src/low-level/pop3/mailpop3.c b/libetpan/src/low-level/pop3/mailpop3.c
index 6f77a3a..bca62d5 100644
--- a/libetpan/src/low-level/pop3/mailpop3.c
+++ b/libetpan/src/low-level/pop3/mailpop3.c
@@ -507,10 +507,13 @@ int mailpop3_pass(mailpop3 * f, const char * password)
if (response == NULL)
return MAILPOP3_ERROR_STREAM;
r = parse_response(f, response);
- if (r != RESPONSE_OK)
- return MAILPOP3_ERROR_BAD_PASSWORD;
+ if (r != RESPONSE_OK) {
+ // LR
+ fprintf(stderr,"POP3 login error. Response from server:\n%s\n",response );
+ return MAILPOP3_ERROR_BAD_PASSWORD;
+ }
f->pop3_state = POP3_STATE_TRANSACTION;
return MAILPOP3_NO_ERROR;