Commit a10ac095 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to implement check authentication

parent f2e9f59a
......@@ -24,6 +24,7 @@
#include "dkimstoreresultjob.h"
#include "dkimcheckpolicyjob.h"
#include "dkimgeneraterulejob.h"
#include "dkimcheckauthenticationstatusjob.h"
#include "settings/messageviewersettings.h"
#include <AkonadiCore/AttributeFactory>
using namespace MessageViewer;
......@@ -96,6 +97,13 @@ void DKIMManager::storeResult(const DKIMCheckSignatureJob::CheckSignatureResult
{
if (mCheckPolicy.useAuthenticationResults()) {
//TODO use authentication result;
//Check each authentication result header.
//TODO
#if 0
DKIMCheckAuthenticationStatusJob *job = new DKIMCheckAuthenticationStatusJob(job);
job->setAuthenticationResult(QStringLiteral("...."));
connect(job, &DKIMCheckAuthenticationStatusJob::result, this, &DKIMManager::slotCheckAuthenticationStatusResult);
#endif
}
if (mCheckPolicy.saveDkimResult()) {
if (checkResult.status == DKIMCheckSignatureJob::DKIMStatus::Valid
......
......@@ -65,7 +65,6 @@ void DKIMRule::setEnabled(bool enabled)
bool DKIMRule::isValid() const
{
//TODO improve it ?
return !mDomain.isEmpty() && !mFrom.isEmpty() && (mRuleType != DKIMRule::RuleType::Unknown);
}
......
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