Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

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

(Not a dup: this very similar question really asks about the DeliveredTo header).

Bugzilla provides a number of headers telling you why you received a mail, such as X-Bugzilla-Reason. How can I filter on arbitrary tags such as this one in Gmail?

share|improve this question
I'm offering a bounty; I really need this. (Bugzilla is my use case, too.) – Dan Fabulich Apr 26 '11 at 0:57
I want this for paypal's email-xclick-payment-notification header, delivered in the header X-MaxCode-Template. Sigh. – Bryce Jul 29 '12 at 14:47
Not being able to filter by a custom header has been pain for me for a long time. That's why I've decided to develop FilterMyGmail, an application that will address this and other related issues. – jcollado Jan 26 '14 at 0:48
@dnozay appears to have answered this in the following post in a similar topic: webapps.stackexchange.com/a/73544/97407 I have not verified if it works, and it does involve writing some code. But if it works, it should help this situation. – Bryce Jul 7 '15 at 14:13

Gmail doesn't do this. But if the emails do have text in the message, it can do it.

share|improve this answer
Bugzilla only adds custom headers; it doesn't modify the body of the message. :-( – Dan Fabulich May 2 '11 at 4:05
Sad. I'd love to be able to do this. Looks like I'd need a bot. – cwallenpoole Jun 19 at 4:09

I agree with @Andrew - Gmail won't handle this on its own.

However, you could use an intermediary running procmail1, preprocess the mail and add something to the subject, or change its sender, so that it can be filtered secondarily in Gmail.

share|improve this answer

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.