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

We need to know why method we used

parent 2c13361b
......@@ -49,6 +49,8 @@ QVector<DKIMCheckSignatureJob::CheckSignatureResult> DKIMAuthenticationStatusInf
const QVector<DKIMAuthenticationStatusInfo::AuthStatusInfo> lstInfo = mStatusInfo.listAuthStatusInfo();
for (const DKIMAuthenticationStatusInfo::AuthStatusInfo &info : lstInfo) {
DKIMCheckSignatureJob::CheckSignatureResult convertedResult;
const QString &method = info.method;
qDebug() << " method" << method;
const QString &infoResult = info.result;
if (infoResult == QLatin1String("none")) {
convertedResult.status = DKIMCheckSignatureJob::DKIMStatus::EmailNotSigned;
......
......@@ -661,7 +661,8 @@ bool DKIMCheckSignatureJob::CheckSignatureResult::operator==(const DKIMCheckSign
&& fromEmail == other.fromEmail
&& auid == other.auid
&& sdid == other.sdid
&& errorStr == other.errorStr;
&& errorStr == other.errorStr
&& methodStr == other.methodStr;
}
bool DKIMCheckSignatureJob::CheckSignatureResult::operator!=(const DKIMCheckSignatureJob::CheckSignatureResult &other) const
......
......@@ -94,6 +94,7 @@ public:
QString auid; //DKIM MAY optionally provide a single responsible Agent or User Identifier (AUID).
QString fromEmail;
QString errorStr; //Use when we convert authentication result value
QString methodStr; //Use when we convert authentication method value : Use enum ?
};
explicit DKIMCheckSignatureJob(QObject *parent = nullptr);
......
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