Sieve_before

Sean Kamath kamath at moltingpenguin.com
Sat Oct 24 02:29:59 EEST 2020



> On Oct 23, 2020, at 04:20, @lbutlr <kremels at kreme.com> wrote:
>> Does you To or CC address end with a .?
> 
> No, what I am trying to get is "user" and "example" in "user at example.com <mailto:user at example.com>"

The question was meant to elucidate that the ‘match’ string ended with a ‘.’.  I understand what you’re trying to do.

> That would break many things, but I will look into it. What I have done for now and is working is a much more complicated process where I am manually removing the '@' myself:

Perhaps (I am not sure if pigeonhole has it) the regex extension would be helpful: https://tools.ietf.org/id/draft-ietf-sieve-regex-01.html <https://tools.ietf.org/id/draft-ietf-sieve-regex-01.html>

>> if address :matches ["To", "Cc"] ["*@*.*"] {
> 
> Thanks for the advice, I will definitely give that a go,

I’m unclear if the match line I supposed would set 1, 2 and 3, and you can ignore 3. 

Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20201023/2f8e338e/attachment.html>


More information about the dovecot mailing list