Advanced filter

333 views
Skip to first unread message

Michael Bierman

unread,
Oct 30, 2008, 11:04:38 PM10/30/08
to GMail Power Users
I'd like to create a filter like so:

{(to: OR from: OR cc:){*@abc.com us...@gmail.com *@def.com *@ghi.us
us...@comcast.net *@jkl.com us...@mindspring.com}
subject:favoritestring}

This works pretty well, but I get some false positives that I can't
explain. That is, they don't seem to match any of these rules but they
are included. Any suggestions on how to improve the filter?

--
Michael

Michael Bierman

unread,
Oct 30, 2008, 11:09:17 PM10/30/08
to GMail Power Users
I should also have included that if I separate out the list like so:

{to:{...@abc.com us...@gmail.com *...@def.com *...@ghi.us
us...@comcast.net *...@jkl.com us...@mindspring.com} from:{...@abc.com
us...@gmail.com *...@def.com *...@ghi.us us...@comcast.net
*...@jkl.com us...@mindspring.com}
cc:{...@abc.com us...@gmail.com *...@def.com *...@ghi.us
us...@comcast.net *...@jkl.com us...@mindspring.com}
subject:favoritestring}


Everything works great. The unfortunate part of this is more chance of
breaking something when I need to update the filter for some reason.

--
Michael



On Oct 30, 8:04 pm, Michael Bierman <michael.bier...@gmail.com> wrote:
> I'd like to create a filter like so:
>
> {(to: OR from: OR cc:){...@abc.com us...@gmail.com *...@def.com *...@ghi.us
> us...@comcast.net *...@jkl.com us...@mindspring.com}

^Doogie

unread,
Dec 14, 2008, 10:34:01 PM12/14/08
to GMail Power Users
Don't know if you're still looking for improvements or not, you might
give the following a try:

({{to: from: cc:}{bl...@abc.com bl...@gmail.com bl...@def.com
etcetc.com}} subject:favoritestring)

...note that the regular braces treat inner elements as AND and the
curly braces by default imply OR, thus this should find:

emails to:, from:, or cc: {list of addresses}
AND the subject line contains "favoritestring"

...Hope it helps some. Should mean you only have to maintain that list
one time versus specifying it each time for to: cc: from: etc. Let me
know!

Jase


On Oct 30, 9:04 pm, Michael Bierman <michael.bier...@gmail.com> wrote:
> I'd like to create a filter like so:
>
> {(to: OR from: OR cc:){...@abc.com us...@gmail.com *...@def.com *...@ghi.us
> us...@comcast.net *...@jkl.com us...@mindspring.com}

Michael Bierman

unread,
Jan 4, 2009, 9:39:56 PM1/4/09
to GMail Power Users
Hi Jase!

Thanks so much for your advice. I finally got around to trying it out
and didn't get what I expected.

For example,

{to: OR from: }{+linkedin +jott} is not the same as

({to: from: }{+linkedin +jott}

as I think gathered from your email.

For my limited tests, the first one comes closer to what I want.
Actually this was exactly what made me send my original question in
the first place. I agree as I understand gmail filters what you said
should work; it just doesn't. I think, although I haven't confirmed,
that in addition,

{to: OR from: }{+linkedin +jott} is also not the same as

{to:{+linkedin +jott} from:{+linkedin +jott}}

as I would expect it to be.

If any gmail filter experts out there have any ideas I would love to
hear them or if the Gmail team is paying attention I hope this gets
fixed if it is broken as i suspect.

On Dec 14 2008, 7:34 pm, "^Doogie" <telnetdoo...@gmail.com> wrote:
> Don't know if you're still looking for improvements or not, you might
> give the following a try:
>
> ({{to: from: cc:}{b...@abc.com b...@gmail.com b...@def.com
Reply all
Reply to author
Forward
0 new messages