<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-crea="font-wrapper" style="font-family: Tahoma; font-size: 16px; direction: ltr"><div style="font-family: Tahoma; font-size: 16px"></div>Why do you use regex ?<br><br>You can just use matches: <a href="https://p5r.uk/blog/2011/sieve-tutorial.html#matchtype">https://p5r.uk/blog/2011/sieve-tutorial.html#matchtype</a><div><br></div><div><br><br><div></div><br><br><div data-anchor="reply-title">On Wed, Feb 20, 2019 at 03:31 AM, subin ks via dovecot <dovecot@dovecot.org> wrote:</div><blockquote><div><div>
<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">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:</div><div dir="ltr"><br></div><div dir="ltr">require ["regex"];<br></div><div dir="ltr"><div dir="ltr"># rule:[test]</div><div dir="ltr">if header :regex "from" "info$"</div><div dir="ltr">{</div><div dir="ltr"><span style="white-space: pre">    </span>redirect "<a href="mailto:subbs@domain.com" target="_blank" tabindex="-1" rel="external">subbs@domain.com</a>";</div><div dir="ltr">}</div><div dir="ltr"><br></div><div>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.</div><div><br></div><div>Thanks.</div><div><br></div></div></div></div></div>
</div></div></blockquote></div></div></body></html>