Commit 5ab77fc2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix another check error

parent 4d05fdcb
Pipeline #52924 canceled with stage
in 8 minutes and 6 seconds
......@@ -132,6 +132,11 @@ void DKIMCheckSignatureJob::start()
mBodyCanonizationResult.replace(QStringLiteral(" This is a multi-part message in MIME format"),
QStringLiteral("This is a multi-part message in MIME format"));
}
// It seems that kmail add a space before this line => it breaks check
if (mBodyCanonizationResult.startsWith(QLatin1String(" This is a cryptographically signed message in MIME format."))) { // Remove it from start
mBodyCanonizationResult.replace(QStringLiteral(" This is a cryptographically signed message in MIME format."),
QStringLiteral("This is a cryptographically signed message in MIME format."));
}
#ifdef DEBUG_SIGNATURE_DKIM
QFile caFile(QStringLiteral("/tmp/bodycanon-kmail.txt"));
caFile.open(QIODevice::WriteOnly | QIODevice::Text);
......
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