User reports that the command

    curl --header "Authorization: Bearer
yaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXlpA"
https://www.googleapis.com/gmail/v1/users/me/messages?q=is%3Aunread+category%3Apersonal+in%3Ainbox

yields no emails, and that

    curl --header "Authorization: Bearer
yaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXlpA"
https://www.googleapis.com/gmail/v1/users/me/messages?q=is%3Aunread+in%3Ainbox

yields emails. The phone is making the former query, which is the cause
of this bug.

A suggested solution is to make this query instead:

    "in:inbox is:unread after:$last_check"

where $last_check is the timestamp of the last check.

The down side with this is that some inbox configurations can produce a
lot of notifications (of which at most 10 will be displayed in the
notification center at once). On the other hand, this will solve the bug
for the reporter, me, and many others.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1495904

Title:
  Account-polld reports no updates, so no gmail notifications

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1495904/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to