(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?

  • 4
    I'm offering a bounty; I really need this. (Bugzilla is my use case, too.) Apr 26, 2011 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, 2012 at 14:47
  • @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.
    – b-jazz
    Jul 7, 2015 at 14:13

2 Answers 2


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

  • 1
    Bugzilla only adds custom headers; it doesn't modify the body of the message. :-( May 2, 2011 at 4:05
  • 1
    Sad. I'd love to be able to do this. Looks like I'd need a bot. Jun 19, 2016 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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