Messagelib
7 #include "dkimcheckauthenticationstatusjob.h"
8 #include "dkimauthenticationstatusinfo.h"
9 #include "messageviewer_dkimcheckerdebug.h"
10 #include <KMime/Message>
11 using namespace MessageViewer;
13 DKIMCheckAuthenticationStatusJob::DKIMCheckAuthenticationStatusJob(
QObject *parent)
18 DKIMCheckAuthenticationStatusJob::~DKIMCheckAuthenticationStatusJob() =
default;
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);
44 bool DKIMCheckAuthenticationStatusJob::canStart()
const
46 return mHeaderParser.wasAlreadyParsed();
49 void DKIMCheckAuthenticationStatusJob::setHeaderParser(
const DKIMHeaderParser &headerParser)
51 mHeaderParser = headerParser;
54 bool DKIMCheckAuthenticationStatusJob::useRelaxedParsing()
const
56 return mUseRelaxedParsing;
59 void DKIMCheckAuthenticationStatusJob::setUseRelaxedParsing(
bool useRelaxedParsing)
61 mUseRelaxedParsing = useRelaxedParsing;
Q_SCRIPTABLE Q_NOREPLY void start()
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:11 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.