Matching regexps

2020-02-26 Thread Adam Shostack
Hi, I'm having some trouble with matching. The regexp in my dovecot.sieve file should match on email addresses, but does not. # The code: if header :matches "From" "<[a-z0-9-]*@[a-z0-9-.]*>" { set "sender" "${1}"; } if not execute "grepfrom" ["${sender}"] { if envelope :matches "from" "*" {

Re: Matching regexps

2020-02-26 Thread Oscar del Rio
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/

dovecot-uidlist....

2020-02-26 Thread Chi Min Wang
Hello Everyone:   Is it possible to direct dovecot to modify dovecot-uidlist automatically??  I have some user who use ancient MUA(i.e. Openwebmail) and IMAP/POP3. Since Openwebmail will insert "Status: R" in the eml file,the size of the eml file will increase by 10 bytes. If the user use Open