Merge lp:~jonas-drange/account-polld/missing-gmail-notifications into lp:~ubuntu-push-hackers/account-polld/trunk
Status: | Merged |
---|---|
Approved by: | Jonas G. Drange |
Approved revision: | no longer in the source branch. |
Merged at revision: | 152 |
Proposed branch: | lp:~jonas-drange/account-polld/missing-gmail-notifications |
Merge into: | lp:~ubuntu-push-hackers/account-polld/trunk |
Diff against target: |
40 lines (+11/-5) 1 file modified
plugins/gmail/gmail.go (+11/-5) |
To merge this branch: | bzr merge lp:~jonas-drange/account-polld/missing-gmail-notifications |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Niklas Wenzel (community) | Needs Fixing | ||
Bill Filler (community) | Needs Fixing | ||
PS Jenkins bot | continuous-integration | Approve | |
Ubuntu Push Hackers | Pending | ||
Review via email: mp+283820@code.launchpad.net |
Commit message
Drop filter on category, limit the query in time (the same day). Also, fix bug where emails violating rfc2047 would not produce notifications.
Description of the change
A bunch of people (both real and anecdotal) have reported missing gmail notifications, and the cause of this being the “category:personal” filter we use when downloading unread emails.
This change drops that filter, so that we ask for ALL unread email in the inbox. It also specifically asks for email newer than one week. The resulting query, which you can type into your gmail search field, becomes:
in:inbox is:unread newer_than:7d
compared to the existing one:
in:inbox is:unread category:personal
The problem “Getting too many email notifications” is easier to understand and address for users, rather than “getting an arbitrary amount of email notifications”. The former is easily configurable in gmail, the latter is less configurable and would require a dedicated UI for this in e.g. System Settings.
Please note that account-polld will keep tabs on what e-mails it has notified you about. In other words, even if the email is unread, is in the inbox and is newer than 7 days, you won't be notified about it multiple times.
PASSED: Continuous integration, rev:152 jenkins. qa.ubuntu. com/job/ account- polld-ci/ 96/ jenkins. qa.ubuntu. com/job/ account- polld-vivid- amd64-ci/ 11 jenkins. qa.ubuntu. com/job/ account- polld-vivid- armhf-ci/ 11 jenkins. qa.ubuntu. com/job/ account- polld-vivid- armhf-ci/ 11/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ account- polld-vivid- i386-ci/ 11
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/account- polld-ci/ 96/rebuild
http://