[Users] filtering rule
seelenhirt
seelenhirt at gmx.net
Tue Jul 17 18:39:41 CEST 2012
> > to matchcase "recipient at mail.tld" &
> > ~to regexpcase ".*@.*@.*" &
> > ~cc matchcase "@"
> >
>
> Ah, that's clever, I didn't think of checking for number of @s. My
> line of thinking was more along checking if there is a separator in To
> header. :)
>
Right. I could use the following too:
to matchcase "recipient at mail.tld" &
~cc matchcase "," &
~cc matchcase "@"
Problem is that "," and "@" can, under certain circumstances, be part
of the address. But I found the regexp that matches all email
addresses[1] :-)
Regards,
[1] http://code.iamcal.com/php/rfc822/full_regexp.txt
More information about the Users
mailing list