Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a set of filters that auto add emails sent within a particular domain as 'internal'

e.g. if me@example.com sends an email to boss@example.com, it is tagged internal

The problem is, my filter is not truely internal, because say I send an email to person@example2.com and CC boss@example.com, it picks the latter up and flags it internal, but this is not an internal email.

I need to filter emails sent to a particular domain, and only that domain.

share|improve this question
I'm afraid that Gmail's filters aren't sophisticated enough for that. – Al E. Sep 7 '11 at 13:12
Add that comment as an answer and Ill accept ( it appears so =[ ) – Tom J Nowell Sep 9 '11 at 9:56
Okay, done. – Al E. Sep 9 '11 at 12:47
up vote 0 down vote accepted

(Converting my comment to an answer, as requested.)

I'm afraid that Gmail's filters aren't sophisticated enough for that.

share|improve this answer

The To: filter appears to pick up cc: as well (and bcc:?). In the advanced search the to: operator does the same (which is user friendly to the masses, but not so helpful when you want more control), but there is also a cc: operator. You seem to be able to use this in the search filter as well. eg:

To: @example.com -cc:@example.com

Which appears to create a filter of the form... to:(@example.com -cc:@example.com). Although the syntax looks a bit wrong, it does appear to filter all the emails that contain an @example.com address in the to: field but not in the cc: field.

However, this is not really a solution since it excludes emails that are sent to @example.com in both the to: and cc: fields. But may be something to work with?


You can perhaps combine the condition when the address appears in both the to: and cc: fields by using/appending something like:

... OR (to:@example.com cc:@example.com)

Although I'm not sure if this can be successfully combined with the above rule?

share|improve this answer
experiments adding -cc did and its variants did not meet with success. It then leads tot he problem of "I want it to flag mails CC'ed to example.com and ONLY example.com", it also removed some legitimate internal emails from the filter ( false negatives ), and brought in emails that were sent itnernally but CC'ed external people ( false positives ) – Tom J Nowell Sep 7 '11 at 11:38
Keep in mind that when adding a filter, one can't just have the query as a single string in a textbox, the to and from fields etc are separate boxes – Tom J Nowell Sep 9 '11 at 9:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.