User:Asasaki:ZimbraMailFilters: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 47: Line 47:
|-
|-
| bugmail - reporter || Header named "x-bugzilla-reason" contains "Reporter" || bugs/ || Bugs I've reported
| bugmail - reporter || Header named "x-bugzilla-reason" contains "Reporter" || bugs/ || Bugs I've reported
|-
| bugmail - request || Header named "x-bugzilla-type" is "request" || bugs/ || bug review requests
|-
|-
| bugzilla - cc || Header named "x-bugzilla-reason" is "CC" || bugs/ || Bugs I'm cc'ed on.  You may wish to filter this elsewhere.
| bugzilla - cc || Header named "x-bugzilla-reason" is "CC" || bugs/ || Bugs I'm cc'ed on.  You may wish to filter this elsewhere.

Revision as of 21:59, 5 December 2008

For reference. Perhaps other people will find it useful.

Thunderbird setup

First, and possibly most importantly, you need to change your Thunderbird prefs. By default Thunderbird will only check for new mail in your inbox, leaving filtered mail unread for hours until you click on that folder. To fix, Preferences -> Advanced -> General tab -> Config Editor. Change the mail.check_all_imap_folders_for_new to TRUE.

Filters

Nagios

Nagios is useful but only if the alerts are humanly parsable. I'd rather know about something than not know, but the deluge of emails is too much, causing me to want to just delete them all.

Instead, I'm filtering. All Nagios filters search on the From field for the string "nagios". I split these up into separate folders:

Name Additional filter rule Destination mail folder
nagios - netapp Subject contains "netapp" nagios/netapp/
nagios - xserve Subject contains "xserve" nagios/osx/
nagios - darwin Subject contains "darwin" nagios/osx/
nagios - mac Subject contains "-mac-" nagios/osx/
nagios - linux Subject contains "linux" nagios/linux/
nagios - win32 Subject contains "win32" nagios/win32/
nagios - surf Subject contains "surf" nagios/surf/
nagios - misc nagios/

Bugmail

It's good to keep up on others' bugs but not if it makes you lose your bugs. Fortunately, b.m.o sends X-headers in email so you can filter that way... allowing me to follow release@mozilla-org.bugs without going crazy.

All bugmail will be from bugzilla-daemon@mozilla.org. In addition,

Name Additional filter rule Destination mail folder Description
bugmail - mine Header named "x-bugzilla-assigned-to" is "aki@mozilla.com" bugs/ Bugs assigned to me
bugmail - reporter Header named "x-bugzilla-reason" contains "Reporter" bugs/ Bugs I've reported
bugmail - request Header named "x-bugzilla-type" is "request" bugs/ bug review requests
bugzilla - cc Header named "x-bugzilla-reason" is "CC" bugs/ Bugs I'm cc'ed on. You may wish to filter this elsewhere.
bugzilla - watch - release Header named "x-bugzilla-reason" is "None"
Header named "x-bugzilla-assigned-to" is "release@mozilla-org.bugs"
bugs/unassigned Bugs assigned to release@mozilla-org.bugs
bugzilla - watch - nobody Header named "x-bugzilla-reason" is "None"
Header named "x-bugzilla-assigned-to" is "nobody@mozilla.org"
bugs/unassigned Bugs release@mozilla-org.bugs gets emailed about, but are assigned to nobody
bugmail - other bugs/other Release bugs that are assigned to other group members.

build@m.o

After I subscribed to build@m.o I noticed just how much mail gets shunted to this alias. This helps parse it somewhat.

Everything going to build@m.o has [build] in the subject line.

Name Additional filter rule Destination mail folder Description
b@m.o - bootstrap "From" is "bootstrap@mozilla.org" build/bootstrap This seems to be very specific build@m.o email; put in own folder
b@m.o "To" does not contain "aki"
"Cc" does not contain "aki"
build/ Filter all other [build] mail unless someone specifically puts me in the To: or CC: fields.