How can I filter messages in Gmail using boolean
OR conditions? For example, I can specify addresses in the
From: fields, but this only matches emails that meet both criteria. How can I match emails that meet one or both criteria?
Type into the search field of Gmail:
see also here.
to make a filter (and apply actions to that filter) from that search: click the little down arrow on the right side of the search field and then click
Gmail accepts several syntaxes:
Personally, I like to use the curly braces because it is nice and concise. The following are all equivalent:
To my surprise, the solution to me was using the vertical bar
The search box would look like:
I got a popup message from Gmail saying that using special characters may give unexpected results. Just clicked on continue and it worked perfectly.
If you are talking about searching, then @akira's question is correct. However, it sounds like you are asking about how to use this condition in a filter.
The trick is that you can put whatever search criteria you want in the filter's Has the words field. For any other field it will prefix your criteria with the field name. For example, if you type
This is also the place to put any other attributes you want to match (e.g.
This will also work in the Show search options page, however it's easier to just use a normal search instead.