diff options
Diffstat (limited to 'src/core/smtp/MCSMTPSession.cpp')
-rw-r--r-- | src/core/smtp/MCSMTPSession.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/smtp/MCSMTPSession.cpp b/src/core/smtp/MCSMTPSession.cpp index 4875d3b4..29df6460 100644 --- a/src/core/smtp/MCSMTPSession.cpp +++ b/src/core/smtp/MCSMTPSession.cpp @@ -644,7 +644,12 @@ void SMTPSession::login(ErrorCode * pError) return; } else if (r != MAILSMTP_NO_ERROR) { - * pError = ErrorAuthentication; + if(mSmtp->response_code == 535 + && strstr(mSmtp->response_buffer->str, "your password is too simple") != NULL) { + * pError = ErrorTiscaliSimplePassword; + } else { + * pError = ErrorAuthentication; + } return; } |