AndersSahlin / MailCheckerPlus

Mail Checker Plus for Google Mail™ - Chrome Extension
https://chrome.google.com/extensions/detail/gffjhibehnempbkeheiccaincokdjbfe
GNU General Public License v3.0
100 stars 39 forks source link

Add ability to check for unread messages in #sent #8

Open avar opened 14 years ago

avar commented 14 years ago

I send a lot of messages to mailing lists, and the best way to monitor replies is to check the #sent label in GMail for unread messages.

Unfortunately no GMail checker that I can find provides this feature, since you already have a feature for monitoring #all this should presumably be easy, but with this monkeypatch:

diff --git a/src/mailaccount.class.js b/src/mailaccount.class.js
index d5f3192..d7c8ae8 100644
--- a/src/mailaccount.class.js
+++ b/src/mailaccount.class.js
@@ -39,6 +39,6 @@ function MailAccount(settingsObj) {
                atomLabel = "";
        } else {
-               inboxLabel = "#all";
-               unreadLabel = "#search/l:unread";
+               inboxLabel = "#sent";
+               unreadLabel = "#sent";
                atomLabel = "unread";
        }

It doesn't work as expected. Perhaps you could look into it? Maybe as part of a more general "monitor unread messages under a given label" feature?

AndersSahlin commented 14 years ago

The problem with your code snippet is that it is still monitoring the "unread" atom feed label. You need to find the atom label that corresponds with the #sent-label. Presumably this is "sent" - try it out and I think you'll find that it works. Better label functionality is one of the most requested features - I just haven't come up with a good design for it yet. :)