Sieve_before
Sean Kamath
kamath at moltingpenguin.com
Fri Oct 23 03:22:24 EEST 2020
> On Oct 22, 2020, at 15:58, @lbutlr <kremels at kreme.com> wrote:
>
> On 22 Oct 2020, at 15:46, @lbutlr <kremels at kreme.com> wrote:
>> And it doesn't explain why "if address :matches ["To", "Cc"] ["*@*."] {" also failed to match despite also showing the email address.
>>
>>> “kremels at kreme.com” does not have a :detail part (https://wiki2.dovecot.org/Pigeonhole/Sieve/Examples talks about this).
>>
>> And I am not asking for :detail
>
> OK, fair enough. I looked at that line many times for some reason.
> But the first point still stand.
Does you To or CC address end with a .?
One problem I had with :matches (if I recall correctly, I can’t find where I ran into this) is that :matches has an implicit “^” and “$” wrapped around what you’re looking for.
“some random string”
then trying to :match “random” won’t match that string. “*random*” *will* match (as will “some*” and “*string”).
Like I said, I’m not 100% sure, but I suspect if you add * to the end:
if address :matches ["To", "Cc"] ["*@*.*"] {
It might work.
Sean
More information about the dovecot
mailing list