Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Does anyone fathom how to setup a Gmail/Google Apps Mail filter that catches ALL destinations to a particular domain?

I've tried

deliveredto:*@mydomain.com

and

deliveredto:@mydomain.com

in the "Has the words" field but neither work.

Similar to this question except not specific to any complete address (only the domain is constant in my case, the user/account part before the @ is unpredictable): Is it possible to create a Gmail filter that works on headers other than From, To, Subject?

I already have another filter setup to catch and forward *@mydomain.com in the To: field; that works fine.

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

deliveredto:"@mydomain.com"

Not sure why this works when the others don’t, but the quotes act as some kind of delimiter.

share|improve this answer
    
Haven't tried it but thanks. Parens worked for me. –  Marcos Apr 25 '12 at 12:31
add comment

Using parens seems to do the trick:

deliveredto:(*@mydomain.com)

Also figured out how to negate properly (placement of hyphen):

-to:(*@mydomain.com)

Combined:

deliveredto:(*@mydomain.com)  AND  -to:(*@mydomain.com)  AND -cc:(*@mydomain.com)
share|improve this answer
add comment

Your Answer

 
discard

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.