shumingch / gnome-email-notifications

Gnome Email Notifications
https://extensions.gnome.org/extension/1230/gmail-message-tray/
GNU General Public License v2.0
85 stars 18 forks source link

Don't reshow messages #5

Closed jcuenod closed 7 years ago

jcuenod commented 7 years ago

This PR hashes the message link and stores it in an array (messagesShown) to keep track of what notifications have already been seen.

It then filters out messages that have been seen before and doesn't produce notifications for them again.

shumingch commented 7 years ago

Merged. Made a few changes though. https://github.com/shumingch/GmailMessageTray/commit/5a5980c05893204fc2c32a2ee903efa416252b42

jcuenod commented 7 years ago

Awesome, thanks! I know it starts becoming a lot more complex but have you looked into using imap? I was just experimenting with node and I managed to get something similar to this extension pretty quickly...