7#include "dkimcheckauthenticationstatusjob.h"
8#include "dkimauthenticationstatusinfo.h"
9#include "messageviewer_dkimcheckerdebug.h"
10#include <KMime/Message>
11using namespace MessageViewer;
13DKIMCheckAuthenticationStatusJob::DKIMCheckAuthenticationStatusJob(
QObject *parent)
18DKIMCheckAuthenticationStatusJob::~DKIMCheckAuthenticationStatusJob() =
default;
20void DKIMCheckAuthenticationStatusJob::start()
23 qCWarning(MESSAGEVIEWER_DKIMCHECKER_LOG) <<
"Impossible to start job";
29 const QString strAuthenticationHeader = QStringLiteral(
"authentication-results");
30 QString str = mHeaderParser.headerType(strAuthenticationHeader);
31 DKIMAuthenticationStatusInfo info;
33 if (!info.parseAuthenticationStatus(str, mUseRelaxedParsing)) {
36 str = mHeaderParser.headerType(strAuthenticationHeader);
44bool DKIMCheckAuthenticationStatusJob::canStart()
const
46 return mHeaderParser.wasAlreadyParsed();
49void DKIMCheckAuthenticationStatusJob::setHeaderParser(
const DKIMHeaderParser &headerParser)
51 mHeaderParser = headerParser;
54bool DKIMCheckAuthenticationStatusJob::useRelaxedParsing()
const
56 return mUseRelaxedParsing;
59void DKIMCheckAuthenticationStatusJob::setUseRelaxedParsing(
bool useRelaxedParsing)
61 mUseRelaxedParsing = useRelaxedParsing;
64#include "moc_dkimcheckauthenticationstatusjob.cpp"
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.