Commit 6d335446 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add info about "none" info

parent 5b4618b2
......@@ -214,6 +214,21 @@ void DKIMWidgetInfo::updateToolTip()
for (const DKIMCheckSignatureJob::DKIMCheckSignatureAuthenticationResult &result : qAsConst(mResult.listSignatureAuthenticationResult)) {
switch (result.status) {
case DKIMCheckSignatureJob::DKIMStatus::EmailNotSigned:
switch(result.method) {
case DKIMCheckSignatureJob::AuthenticationMethod::Unknown: {
break;
}
case DKIMCheckSignatureJob::AuthenticationMethod::Spf:
case DKIMCheckSignatureJob::AuthenticationMethod::Dkim:
case DKIMCheckSignatureJob::AuthenticationMethod::Dmarc:
case DKIMCheckSignatureJob::AuthenticationMethod::Dkimatps: {
tooltip += (tooltip.isEmpty() ? QChar() : QLatin1Char('\n'))
+ i18n("%1: None", MessageViewer::DKIMUtil::convertAuthenticationMethodEnumToString(result.method));
break;
}
}
break;
case DKIMCheckSignatureJob::DKIMStatus::Valid:
switch(result.method) {
case DKIMCheckSignatureJob::AuthenticationMethod::Unknown: {
......@@ -243,6 +258,7 @@ void DKIMWidgetInfo::updateToolTip()
default:
;
}
break;
default:
//TODO
;
......
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