ashchan / mail-notifr

Mail Notifr - Gmail Notifier for macOS
https://ashchan.com/projects/gmail-notifr
MIT License
210 stars 35 forks source link

Email opens inside "All mail" folder instead of "Inbox" folder #60

Open taras-mukin opened 3 years ago

taras-mukin commented 3 years ago

Clicking on an email in the menu bar dropdown opens the email inside the "All mail" folder, which then leads to some unusual behaviour -- archiving an email from Inbox throws you back into inbox (as email is no longer in this folder, I guess), while archiving in "All mail" doesn't do that, you stay with the same email opened on the screen.

ashchan commented 3 years ago

I'll see if this could be fixed. Thanks.

ashchan commented 3 years ago

I haven't found out the proper URL to construct the destination email address inside Inbox.

The current URL used is https://mail.google.com/mail/u/[email]?account_id=[email]&message_id=\(id)&view=conv&extsrc=atom which lands in All Mail. This address is also used in official gmail atom feed.

I tried Mimestream and it opens mails in Gmail in the All Mail folder as well.

Will spend some more time to experiment this.

annabarnes1138 commented 1 year ago

I might be oversimplifying things, but wouldn't it just be https://mail.google.com/mail/u/[email]/#inbox/(id)?