I run a choir consisting of a few friends (12 to be precise) and we tend to communicate via mass email to each other.I want to set up a filter in GMail so that it will label all emails to do with the choir.My problem is that filtering based on a list of who the message was sent to doesn't work because each time exactly one name will be missing from the recipient list - the email sender!Can I set up a GMail filter that triggers if a list of addresses contains the sender and recipients?Edit:I could do this with a series of filters such as:  FROM: <Person1> TO: <Person2> .. <Person12>  FROM: <Person2> TO: <Person1>, <Person3> .. <Person12>  ...  FROM: <Person12> TO: <Person1> .. <Person11>But that seems overly laborious.
In Gmail can I set up a filter for all messages between a group of people?
gmail;gmail filters;gmail labels
Here's a bit of generalization for a real-world scenario that's likely to occur...I am a member in several groups that partially overlap.For some of those, setting up a Google group as suggested above is not applicable.Some mails do not involve all the members, so simply including everyone in the to: section will not work either.To differentiate and tag them I use filters with a disjunction of all group members in the from: section, and disjunction of partial-groups' conjunctions in the to: section, e.g:If a group includes members {a,b,c,me}, I'll use:  from:(a OR b OR c OR me) AND to:((a AND b) OR (a AND c) OR (a AND me) OR (b AND c) OR (b AND me) OR (c AND me))Or shorthand:  from:(a|b|c|me) to:((a b)|(a c)|(a me)|(b c)|(b me)|(c me))Notes:The space char, of course, defaults to AND, but for some reasonthe vertical bar (|) also works as OR, even though I found nodocumentation for it on Gmail.For large groups I don't include all subgroups (n choose k can become quite big here :) ...in such cases I suggest using the most likely sub-sub-groups:those that have a specific functionor are more likely to interact with each otheror key members within the group that appear in most/all mails...and then update your filter if you notice any mail that was not detected.In the specific case where all group members are included in every email, the only sub-group is the entire group... using the above example's definitions that would be: from:(a|b|c|me) to:(a b c me).Dropping the from: section altogether can be beneficial in cases where the group is contacted by outsiders, i.e.: consultants/contributors/sources/dependents/etc.. in a specific project, for example:The (group of) event organizers is likely to stay largely constant from one project to the next, while the sub-contractors employed in any specific event may change.A word of caution! dropping the from: section can also lead to (more) false positives.