On Oct 23, 2020, at 04:20, @lbutlr <kremels@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@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

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