webmail: for domain in From address, show if domain is dmarc(-like) validated

i'm not sure this is good enough.
this is based on field MsgFromValidation, but it doesn't hold the full DMARC information.
we also don't know mailing list-status for all historic messages.
so the red underline can occur too often.
This commit is contained in:
Mechiel Lukkien
2023-11-27 12:11:05 +01:00
parent 2ff87a0f9c
commit fb81effe45
5 changed files with 264 additions and 10 deletions

View File

@ -1289,13 +1289,13 @@ const compose = (opts: ComposeOptions) => {
const color = (v: api.SecurityResult) => {
if (v === api.SecurityResult.SecurityResultYes) {
return '#50c40f'
return underlineGreen
} else if (v === api.SecurityResult.SecurityResultNo) {
return '#e15d1c'
return underlineRed
} else if (v === api.SecurityResult.SecurityResultUnknown) {
return 'white'
}
return '#aaa'
return underlineGrey
}
const setBar = (c0: string, c1: string, c2: string, c3: string, c4: string) => {
const stops = [