Is there a way via the address pattern to state .*@example\.com is good, except [email protected] and [email protected] ?

If you can describe it with a regular expression, then you can put it in. For example, you might be able to do something along the lines of:

    .*(?<!dad|wife)@example\.com

For people not used to regular expressions, this uses so-called negative lookbehind (if you want to google it). It is also possible to use negative lookahead:

        (?!(dad|wife)@).*@example\.com

That is (perhaps) a bit easier to read in this case. (I have not tested it.)

mailmate uses PCRE-like syntax for its regular expression, right ? then regextester.com is a nice tool for testing.

Then yours seems faulty: https://www.regextester.com/?fam=105641 (still matches dad and wife).

but Davids (https://www.regextester.com/?fam=105642) seems more precise (and actually seem to work for me in mailmate)

In any case thanks for both answers - it worked ;)
/max
_______________________________________________
mailmate mailing list
[email protected]
https://lists.freron.com/listinfo/mailmate

Reply via email to