In case it's useful for anyone, I've written a Google Apps Script that allows me to filter notification emails based on X-GitLab headers. It's available here (https://github.com/mattst88/gmail-gitlab-filtering) and I'd be happy to hear if it's useful for you. Thanks, Matt