Skip to content

Commit

Permalink
[qmf] Send correct smtp command when auth is not required(SmtpConfigu…
Browse files Browse the repository at this point in the history
…ration::Auth_NONE)
  • Loading branch information
Valerio Valerio committed Dec 18, 2013
1 parent 9c56bca commit 586c02a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions qmf/src/plugins/messageservices/smtp/smtpclient.cpp
Expand Up @@ -618,8 +618,13 @@ void SmtpClient::nextAction(const QString &response)
} else {
if (!ssoSessionManager->waitForSso()) {
QByteArray authCmd(SmtpAuthenticator::getAuthentication(config.serviceConfiguration("smtp"), capabilities, ssoLogin));
sendCommand(authCmd);
status = Authenticating;
if (!authCmd.isEmpty()) {
sendCommand(authCmd);
status = Authenticating;
} else {
status = Authenticated;
nextAction(QString());
}
} else {
sendLogin = true;
}
Expand Down Expand Up @@ -1113,8 +1118,13 @@ void SmtpClient::onSsoSessionResponse(const QList<QByteArray> &ssoCredentials)
if (sendLogin) {
sendLogin = false;
QByteArray authCmd(SmtpAuthenticator::getAuthentication(config.serviceConfiguration("smtp"), capabilities, ssoLogin));
sendCommand(authCmd);
status = Authenticating;
if (!authCmd.isEmpty()) {
sendCommand(authCmd);
status = Authenticating;
} else {
status = Authenticated;
nextAction(QString());
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion rpm/qmf-qt5.spec
@@ -1,6 +1,6 @@
Name: qmf-qt5
Summary: Qt Messaging Framework (QMF) Qt5
Version: 4.0.4
Version: 4.0.4+git2
Release: 1
Group: System/Libraries
License: LGPLv2.1 with exception or GPLv3
Expand Down

0 comments on commit 586c02a

Please sign in to comment.