open the mailbox in default browser

Asked by Alican Kaylan

Hi,

It might be useful if there is a quick way to open the mail in the browser. It is very useful as it is. it notifies instantly as a new mail comes and you can check your recent mails without the necessity of opening the browser. But if there is an important mail i have to open the browser, type the mailbox address, browse through the mailbox and open the mail. It would be nice if there had been a way to open your mailbox easily.

Question information

Language:
English Edit question
Status:
Solved
For:
Gmail Watcher Edit question
Assignee:
No assignee Edit question
Solved by:
Owais Lone
Solved:
Last query:
Last reply:
Revision history for this message
Best Owais Lone (loneowais) said :
#1

Hello Alican,

Unfortunately, this is not as simple as it sounds. People use evolution, thunderbird, postler, gmail.com as clients. I've tried nailing this in the past versions and have succeeded but one thing remains and that is multiple accounts. How can gmailwatcher tell the browser to open the inbox of a particular account? One way would be to set cookies of the browser but then their are multiple browsers. In short, this creates more issues than it solves. It's better to have less perfectly working features than to have loads of half baked ones. I'm sorry, but this is not on the radar. Thanks for getting involved.

Cheers!

Revision history for this message
Alican Kaylan (alicankaylan) said :
#2

Hi again,

I have thought something simple like typing in the terminal xdg-open https://mail.google.com/mail/username
In my case, i am always signed in to the account then it opens my inbox. Gmailwatcher knows the user account so I thought i would be useful to have a shortcut to the mailbox from the gmailwatcher. i guess xdg-open solves the multiple browser problem but i don't know the technical difficulties here.
Thanks for the reply.

Cheers,
Alican Kalan

Revision history for this message
Owais Lone (loneowais) said :
#3

Multiple browsers is not the problem at all. It can easily be tackled using the webbrowser python module. The problem is opening a particular account in gmail. It doesn't work well with 'https://mail.google.com/mail/username'. Only way is to manually edit browsers cookies to change the current session so it logs into the correct account but that is too much of a hack + different browser will need different code for changing cookies, that's what I meant by different browser issue.

Revision history for this message
Alican Kaylan (alicankaylan) said :
#4

Thank you again for the explanation.
Cheers

Revision history for this message
Onno Steenbergen (osteenbergen) said :
#5

Google supports multiple mail accounts now only not by name (as far as i know) but by number:
https://mail.google.com/mail/u/0 is my personal mail while
https://mail.google.com/mail/u/1 is my google apps account

Adding a field where the user can input the number would for now fix this issue.