Matching regexps

Oscar del Rio delrio at mie.utoronto.ca
Wed Feb 26 18:56:28 EET 2020


On 2020-02-26 11:20 a.m., Adam Shostack wrote:
> if header :matches "From" "<[a-z0-9-]*@[a-z0-9-.]*>" {  set "sender" "${1}"; }
>

- you need :regex instead of :matches
- you need "require regex"
- there is nothing to match the variable ${1} in your regex. missing ()
See:
https://tools.ietf.org/id/draft-ietf-sieve-regex-01.html


More information about the dovecot mailing list