sieve filter not working -- matchtype
Martin Johannes Dauser
mdauser at cs.sbg.ac.at
Wed Feb 20 12:53:52 EET 2019
Scott, you are right. And I guess it's computed faster too.
# rule:[test]
if header :matches "from" "*.info"
{
redirect "subbs at domain.com";
}
Even a TLD like "*.superinfos" may be included:
"*@*.*info*"
Greetings
Martin
On Wed, 2019-02-20 at 08:47 +0000, Scott M. via dovecot wrote:
> Why do you use regex ?
>
> You can just use matches: https://p5r.uk/blog/2011/sieve-tutorial.htm
> l#matchtype
>
>
>
>
>
> On Wed, Feb 20, 2019 at 03:31 AM, subin ks via dovecot <dovecot at dovec
> ot.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 at 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.
>
More information about the dovecot
mailing list