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:
Cédric Bellegarde 2022-07-08 23:08:24 +02:00
parent 9f893adc47
commit ef41ed374d

View file

@ -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);
}
}