Geary.RFC822.Message: Simplier regex for dkim/dmarc match
Previous regex was working with Google, Microsoft and OpenDKIM but fails with Rspamd. Using a simplier regex is safe enough.
This commit is contained in:
parent
9f893adc47
commit
ef41ed374d
1 changed files with 2 additions and 2 deletions
|
|
@ -631,13 +631,13 @@ public class Geary.RFC822.AuthenticationResults :
|
|||
* Returns the authentication result for dkim.
|
||||
*/
|
||||
public bool is_dkim_valid() {
|
||||
return /^.*;[ ]*dkim=pass.*$/i.match(this.value);
|
||||
return /^.*dkim=pass.*$/i.match(this.value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the authentication result for dmarc.
|
||||
*/
|
||||
public bool is_dmarc_valid() {
|
||||
return /^.*;[ ]*dmarc=pass.*$/i.match(this.value);
|
||||
return /^.*dmarc=pass.*$/i.match(this.value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue