shumingch/gnome-email-notifications

Error 403 when opening clicking on notification

Closed this issue · 5 comments

I am using Ubuntu Gnome 17.04. With firefox as the default browser (distro default browser).

The extension works as expected, receiving all notifications on top panel, but when I click on an received e-mail notification, it tries to open in browser but I get a page with the error:

`
Forbidden

Error 403
`

The generated link when i clicked was:
https://mail.google.com/mail/u/0?account_id=myEmail@gmail.com&message_id=0123456789ABCDEF&view=conv&extsrc=atom

Edit: Make sure you aren't logged in as another user. You should be logged in to the same Gmail account in Firefox and in Gnome.

Hey @shumingch

I am logged in. I've made a few tests and found out whats happening!

I'm using two google accounts. On is my personal, and the second one my professional one. The messages that i tested and was getting FORBIDDEN was on my second account (the professional).
The link has an /mail/u/0 if i change it to /mail/u/1it refers the right account and there is no FORBIDDEN error.

I've made a fast research on google, and this guy had exactly the same problem in another application. On this link they show how to refer the right account without using this numeric reference.
https://productforums.google.com/forum/#!topic/gmail/2hEi6wcgW8M

I looks simple. Maybe it's just the URI generation. I think I can try to make a Pull Request for that :)

Ok, after trying it out, it actually worked as you said. If you want you can do a pull request, but i'm working on adding Outlook support now.

Reopening issue. I tried to use https://accounts.google.com/AccountChooser/signinchooser? instead of https://accounts.google.com/AccountChooser? so that the user doesn't have to choose the account every time, but that didn't work.