Commit 0eac2dc0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add debug support

parent a727867e
......@@ -50,6 +50,7 @@ QVector<DKIMCheckSignatureJob::CheckSignatureResult> DKIMAuthenticationStatusInf
for (const DKIMAuthenticationStatusInfo::AuthStatusInfo &info : lstInfo) {
DKIMCheckSignatureJob::CheckSignatureResult convertedResult;
const QString &method = info.method;
convertedResult.authenticationResult.methodStr = method;
qDebug() << " method" << method;
const QString &infoResult = info.result;
if (infoResult == QLatin1String("none")) {
......
......@@ -677,5 +677,13 @@ QDebug operator <<(QDebug d, const DKIMCheckSignatureJob::CheckSignatureResult &
d << "signedBy " << t.sdid;
d << "fromEmail " << t.fromEmail;
d << "auid " << t.auid;
d << "authenticationResult " << t.authenticationResult;
return d;
}
QDebug operator <<(QDebug d, const DKIMCheckSignatureJob::CheckSignatureResult::AuthenticationResult &t)
{
d << "method " << t.methodStr;
d << "errorStr " << t.errorStr;
return d;
}
......@@ -162,5 +162,6 @@ private:
};
}
MESSAGEVIEWER_EXPORT QDebug operator <<(QDebug d, const MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult &t);
MESSAGEVIEWER_EXPORT QDebug operator <<(QDebug d, const MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult::AuthenticationResult &t);
Q_DECLARE_METATYPE(MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult)
#endif // DKIMCHECKSIGNATUREJOB_H
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