Commit a2dcfb5c authored by Laurent Montel's avatar Laurent Montel 😁

Fix api

parent 1fe389c9
......@@ -411,7 +411,7 @@ void EvolutionSettings::extractAccountInfo(const QString &info)
}
MailTransport::Transport *transport = createTransport();
transport->setType(MailTransport::Transport::EnumType::SMTP);
transport->setIdentifier(QStringLiteral("SMTP"));
for (QDomElement smtp = e.firstChildElement(); !smtp.isNull(); smtp = smtp.nextSiblingElement()) {
const QString smtpTag = smtp.tagName();
if (smtpTag == QLatin1String("url")) {
......
......@@ -500,7 +500,7 @@ QString SylpheedSettings::readTransport(const KConfigGroup &accountConfig)
if (!smtpserver.isEmpty()) {
MailTransport::Transport *mt = createTransport();
mt->setType(MailTransport::Transport::EnumType::SMTP);
mt->setIdentifier(QStringLiteral("SMTP"));
mt->setName(smtpserver);
mt->setHost(smtpserver);
int port = 0;
......
......@@ -803,7 +803,7 @@ void ThunderbirdSettings::readTransport()
for (const QString &smtp : smtpList) {
const QString smtpName = QStringLiteral("mail.smtpserver.%1").arg(smtp);
MailTransport::Transport *mt = createTransport();
mt->setType(MailTransport::Transport::EnumType::SMTP);
mt->setIdentifier(QStringLiteral("SMTP"));
const QString name = mHashConfig.value(smtpName + QStringLiteral(".description")).toString();
mt->setName(name);
const QString hostName = mHashConfig.value(smtpName + QStringLiteral(".hostname")).toString();
......
......@@ -139,7 +139,7 @@ void TrojitaSettings::readTransport()
mt->setEncryption(MailTransport::Transport::EnumEncryption::TLS);
}
}
mt->setType(MailTransport::Transport::EnumType::SMTP);
mt->setIdentifier(QStringLiteral("SMTP"));
} else {
qCWarning(TROJITAPLUGIN_LOG) << " smtpMethod unknown " << smtpMethod;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment