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.

I've forwarded one of my really old email addresses to Gmail. I'd like to create a filter so that any mail to that old address is always labeled properly in Gmail.

I can create a Gmail filter with the "To: " containing that address, but that doesn't catch all mails to that address, only the ones that are explicitly addressed. Often, there is spam where somebody else is the explicit recipient, and my old address was simply Bcc'd. The "To: " filter doesn't work.

What I'd like to do is filter on the "Delivered-To:" header. Is that possible with Gmail or am I stuck with the three standard options of From, To, Subject?

share|improve this question
1  
Not being able to filter by any arbitrary header has been a pain for me for quite a long time. That's why I've decided to develop FilterMyGmail, an extension that will address this and other related issues. –  jcollado Jan 25 at 23:13
add comment

2 Answers 2

Yes, you can filter by delivered-to. Just create a new filter with deliveredto:youremail@address.com in the has the words field.

share|improve this answer
    
Not very intuitive, but yes. I think most to: should be deliveredto: actually, to support BCCs. –  lapo Apr 2 '12 at 16:42
    
Has this worked with wildcards too, for example, using a catch-all email address in deliveredto:*@mydomain.com? I am trying it but will take time to test. –  Marcos Apr 24 '12 at 12:08
    
It seems to work for me. I never thought it wouldn't, so I haven't tested it exhaustively, but I haven't noticed any missing messages in the 3+ years that I've been using such filters. –  mvime Apr 24 '12 at 17:17
    
Marcos, I replied to your question you posted. Try adding quotes around the "@domain.com" in your search. –  JonathanMumm Apr 25 '12 at 2:13
    
Note that you can use the search bar at the top of GMail to construct your advanced search, then click the arrow at the end of the search bar and select "Create filter with this search." –  Feckmore Apr 3 '13 at 21:17
show 1 more comment

Here is a list of all the advanced operators:

share|improve this answer
    
Thanks. Even their pages make it difficult to determine if a NOT operator - would work on wildcard addresses, eg: -*@mydomain.com in the To: field –  Marcos Apr 24 '12 at 12:10
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.