{"id":3061,"date":"2014-12-17T14:30:48","date_gmt":"2014-12-17T03:30:48","guid":{"rendered":"http:\/\/blog.mozilla.org\/nnethercote\/?p=3061"},"modified":"2014-12-17T14:49:33","modified_gmt":"2014-12-17T03:49:33","slug":"using-gmail-filters-to-identify-important-bugzilla-mail-in-2014","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/nnethercote\/2014\/12\/17\/using-gmail-filters-to-identify-important-bugzilla-mail-in-2014\/","title":{"rendered":"Using Gmail filters to identify important Bugzilla mail in 2014"},"content":{"rendered":"<p>Many email filtering systems are designed to siphon each email into a single destination folder. Usually you have a list of rules which get applied in order, and as soon as one matches an email the matching process ends.<\/p>\n<p>Gmail&#8217;s filtering system is different; it&#8217;s designed to add any number of labels to each email, and the rules don&#8217;t get applied in any particular order. Sometimes it&#8217;s really useful to be able to apply multiple labels to an email, but if you just want to apply one in a fashion that emulates folders, it can be tricky.<\/p>\n<p>So here&#8217;s a non-trivial example of how I filter bugmail into two &#8220;folders&#8221;. The first &#8220;folder&#8221; contains high-priority bugmail.<\/p>\n<ul>\n<li>Review\/feedback\/needinfo notifications.<\/li>\n<li>Comments in bugs that I filed or am assigned to or am CC&#8217;d to.<\/li>\n<li>Comment in secure bugs.<\/li>\n<li>Comments in bugs in the DMD and about:memory components.<\/li>\n<\/ul>\n<p>For the high priority bugmail, on Gmail\u2019s \u201cCreate a Filter\u201d screen, in the \u201cFrom:\u201d field I put:<\/p>\n<blockquote><p>bugzilla-daemon@mozilla.org<\/p><\/blockquote>\n<p>and in the \u201cHas the words:\u201d field I put:<\/p>\n<blockquote><p>&#8220;you are the assignee&#8221; OR &#8220;you reported&#8221; OR &#8220;you are on the CC list&#8221; OR subject:&#8221;granted:&#8221; OR subject:&#8221;requested:&#8221; OR subject:&#8221;canceled:&#8221; OR subject:&#8221;Secure bug&#8221; OR &#8220;Product\/Component: Core :: DMD&#8221; OR &#8220;Product\/Component: Toolkit :: about:memory&#8221; OR &#8220;Your Outstanding Requests&#8221;<\/p><\/blockquote>\n<p>For the low priority bugmail, on Gmail\u2019s \u201cCreate a Filter\u201d screen, in the \u201cFrom:\u201d field put:<\/p>\n<blockquote><p>bugzilla-daemon@mozilla.org<\/p><\/blockquote>\n<p>and in the \u201cDoesn\u2019t have:\u201d field put:<\/p>\n<blockquote><p>(&#8220;you are the assignee&#8221; OR &#8220;you reported&#8221; OR &#8220;you are on the CC list&#8221; OR subject:&#8221;granted:&#8221; OR subject:&#8221;requested:&#8221; OR subject:&#8221;canceled:&#8221; OR subject:&#8221;Secure bug&#8221; OR &#8220;Product\/Component: Core :: DMD&#8221; OR &#8220;Product\/Component: Toolkit :: about:memory&#8221; OR &#8220;Your Outstanding Requests&#8221;)<\/p><\/blockquote>\n<p>(I&#8217;m not certain if the parentheses are needed here. It&#8217;s otherwise identical to the contents in the previous case.)<\/p>\n<p>I\u2019ve modified them a few times and they work very well for me. Everyone else will have different needs, but this might be a useful starting point.<\/p>\n<p>This is just one way to do it. See <a href=\"https:\/\/wiki.mozilla.org\/Bugzilla:FAQ:Filtering_Bugzilla_Email_In_Gmail\">here<\/a> for an alternative way. (Update: Byron Jones pointed out that my approach assumes that the wording used in email bodies won&#8217;t change, and so the alternative is more robust.)<\/p>\n<p>Finally, if you&#8217;re wondering about the &#8220;in 2014&#8221; in the title of this post, it&#8217;s because I wrote a <a href=\"https:\/\/blog.mozilla.org\/nnethercote\/2010\/09\/16\/using-gmail-filters-to-identify-important-bugzilla-mail\/\">very similar post<\/a> four years ago, and my filters have evolved slightly since then.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many email filtering systems are designed to siphon each email into a single destination folder. Usually you have a list of rules which get applied in order, and as soon as one matches an email the matching process ends. Gmail&#8217;s filtering system is different; it&#8217;s designed to add any number of labels to each email, [&hellip;]<\/p>\n","protected":false},"author":139,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[142,919],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/3061"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/users\/139"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/comments?post=3061"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/3061\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/media?parent=3061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/categories?post=3061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/tags?post=3061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}