Gmail – How to Filter Autoreplies

gmailgmail-filters

I would like to filter my incoming Gmail messages and exclude messages that are auto-replies. I was hoping to search against for "does not have the words" X-Autoreply: yes, referencing the email header, but it seems like Gmail doesn't compare against that header.

Is there another way to accomplish this?

Best Answer

It looks like there isn't any way to filter message headers using normal Gmail headers. However, since I'm using a Google Apps account, I was able to implement the filter through the Google Apps Control Panel using the Content Compliance feature:

  1. I created a new sub-organization
  2. I added the email account I want this filter to apply to into that organization
  3. I created a Content Compliance setting that checked for the header X-Autoresponse: yes and changed the routing accordingly.