Why do you use regex ?

You can just use matches: https://p5r.uk/blog/2011/sieve-tutorial.html#matchtype





On Wed, Feb 20, 2019 at 03:31 AM, subin ks via dovecot <dovecot@dovecot.org> wrote:
I've Dovecot and dovecot-sieve v 2.2.27 installed on a Debian 9.6. I'm trying to set a Sieve filter which will redirect all emails from `info` (i.e. .info) TLD to another email. This is the filter:

require ["regex"];
# rule:[test]
if header :regex "from" "info$"
{
redirect "subbs@domain.com";
}

It's not being honored; all emails from .info TLD ends up in the inbox and none are redirected. Let me know what I'm doing wrong.

Thanks.