aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_email/EMailHelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_email/EMailHelper.cpp')
-rw-r--r--src/m_email/EMailHelper.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/m_email/EMailHelper.cpp b/src/m_email/EMailHelper.cpp
index 1931032..d699d63 100644
--- a/src/m_email/EMailHelper.cpp
+++ b/src/m_email/EMailHelper.cpp
@@ -1230,6 +1230,8 @@ auto BadgeForValidity(int validity) -> EMailBadgeState {
case 3: // invalid
case 5: // signing key revoked
return EMailBadgeState::kSIGNED_BAD;
+ case 10: // valid, but the key is not authorized to sign
+ return EMailBadgeState::kSIGNED_UNAUTHORIZED_KEY;
default:
// -1 is the default in EMailSignatureResult, chosen so that an absent
// or unparseable field does not read as fully valid. Anything else is
@@ -1373,6 +1375,7 @@ auto ToneForBadge(EMailBadgeState state) -> EMailBadgeTone {
return EMailBadgeTone::kGOOD;
case EMailBadgeState::kSIGNED_BAD:
+ case EMailBadgeState::kSIGNED_UNAUTHORIZED_KEY:
case EMailBadgeState::kMALFORMED:
return EMailBadgeTone::kDANGER;