Comment 6 for bug 631644

Revision history for this message
Richard Klein (kleinric) wrote :

I'm sorry, I don't mean to spam the wall. I find that if I add the following code then it fixes the notification problem. The issue is that "important" doesn't come through in the labels, but rather ^im (I think). So just adding that check in the same way you already add the inbox tag... In settings I then 'Ignore Inbox' so that it only shows important stuff. It still works if inbox is enabled.

Note that it just shows unread, important messages - it doesn't matter if the important message is in the inbox or not.

I hope this is useful and that I haven't wasted your time.

Thanks,
Richard

Edit the lines close to the top so that they read:
         MAILBOXES_NAMES = { "inbox" : _("Inbox"), "important" : _("Priority Messages")}
         MAILBOXES_URLS = { "inbox":"inbox" , "important":"mbox"}

By "#Retrieve the mailbox we're gonna check" add the following line above the one that adds the inbox. If you don't want to check priority inbox just skip this line.
        self.mailboxes.insert(0,"important")
So it should read:
        self.mailboxes.insert(0,"important")
        self.mailboxes.insert(0,"inbox")

in def new_mail(self, mails): change
                if label == u"^i": label = "inbox"
to
                if label == u"^i": label = "inbox"
                elif label == u"^im": label = "important"