40

(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
  • 4
    I'm offering a bounty; I really need this. (Bugzilla is my use case, too.) Commented 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
    Commented 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
    Commented Jul 7, 2015 at 14:13
  • GitLab notifications also have such headers. How is it possible that one of the most used email clients doesn't offer filtering beyond the absolutely basic functionality. It's frustrating when you know it can't possible be much work to implement either when the basic filter mechanism already exists.. googlecloudcommunity.com/gc/Workspace-Q-A/…
    – olejorgenb
    Commented Feb 3 at 21:59

2 Answers 2

8

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

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

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 you have read our privacy policy.

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