Browse Source

Merge pull request #4 from sbigaret/bug/3391479_Handling_response_code_482

Bug/3391479 handling response code 482
dvh-chacham15-master
DINH Viêt Hoà 10 years ago
parent
commit
64ecbc48f5
3 changed files with 11 additions and 3 deletions
  1. +1
    -0
      src/driver/implementation/nntp/nntpdriver_tools.c
  2. +8
    -2
      src/low-level/nntp/newsnntp.c
  3. +2
    -1
      src/low-level/nntp/newsnntp_types.h

+ 1
- 0
src/driver/implementation/nntp/nntpdriver_tools.c View File

@ -111,6 +111,7 @@ int nntpdriver_nntp_error_to_mail_error(int error)
return MAIL_ERROR_LOGIN;
case NEWSNNTP_ERROR_BAD_STATE:
case NEWSNNTP_ERROR_AUTHENTICATION_OUT_OF_SEQUENCE:
return MAIL_ERROR_BAD_STATE;
case NEWSNNTP_ERROR_REQUEST_AUTHORIZATION_USERNAME:


+ 8
- 2
src/low-level/nntp/newsnntp.c View File

@ -604,9 +604,12 @@ int newsnntp_authinfo_username(newsnntp * f, const char * username)
case 480:
return NEWSNNTP_ERROR_REQUEST_AUTHORIZATION_USERNAME;
case 482:
case 481:
return NEWSNNTP_ERROR_AUTHENTICATION_REJECTED;
case 482:
return NEWSNNTP_ERROR_AUTHENTICATION_OUT_OF_SEQUENCE;
case 381:
return NEWSNNTP_WARNING_REQUEST_AUTHORIZATION_PASSWORD;
@ -639,9 +642,12 @@ int newsnntp_authinfo_password(newsnntp * f, const char * password)
case 480:
return NEWSNNTP_ERROR_REQUEST_AUTHORIZATION_USERNAME;
case 482:
case 481:
return NEWSNNTP_ERROR_AUTHENTICATION_REJECTED;
case 482:
return NEWSNNTP_ERROR_AUTHENTICATION_OUT_OF_SEQUENCE;
case 381:
return NEWSNNTP_WARNING_REQUEST_AUTHORIZATION_PASSWORD;


+ 2
- 1
src/low-level/nntp/newsnntp_types.h View File

@ -71,7 +71,8 @@ enum {
NEWSNNTP_ERROR_MEMORY,
NEWSNNTP_ERROR_AUTHENTICATION_REJECTED,
NEWSNNTP_ERROR_BAD_STATE,
NEWSNNTP_ERROR_SSL
NEWSNNTP_ERROR_SSL,
NEWSNNTP_ERROR_AUTHENTICATION_OUT_OF_SEQUENCE,
};
struct newsnntp


Loading…
Cancel
Save