After updating to Firefox 43 the Gmail script has begun to malfunction

Hi,

after updating Firefox to latest version 43 the Gmail script has begun to malfunction.

I manage many Gmail accounts with X-notifier and now for many of them the corresponding icon looks like there is no new mail, but is wrong.

I click on the icon, it correctly opens the corresponding Gmail account showing the unread mails.

Someone else has seen this same behavior?

timelesspa's picture

thanks for the fix, l can finally see new messages again.. on another note l have gmail accounts using both labels as well as not and for me at least l can confirm that they work as its reading all inbox categories on all my emails that use them.

jeroen's picture

I will send the fix to admin.

In the meantime you can use the GmailX script following my former instruction:
http://xnotifier.tobwithu.com/dp/comment/10320#comment-10320

Spitt's picture

Your GMailX script does not appear to work with the Opera version of the XNotifier addon. For this reason, I can assume it won't also work with Chrome, since Opera is loosely based on it.

jeroen's picture

Ok, he said carefully. I think I got it correct now.
Can you guys test it for me?
I was cheering to early before...

Tests to perform:

  1. [X] Notify inbox only checked (with/without spam)
  2. [X] Notify inbox only unchecked (with/without spam)
    A. With unread messages in Categories (Social . Promotions, etc)
    B. With unresd messages in Custom Labels
         - used with Mail Filters (with/without skip inbox option)

GmailX script:  https://db.tt/JsDbu1Dh  (Right-click: Save link as...)

Instructions: http://xnotifier.tobwithu.com/dp/comment/10320#comment-10320

Spitt's picture

Ok, I did not have it notify previously for inbox only. Once I set it (for each account) to "Notify Inbox Only" (leaving off the option to check for spam), then the script did work in Opera. 

Thank you for your hard work on getting this figured out. I would recommend also posting to the various XNotifier addon download locations to let people know that a fix is up.

I have 7 accounts running the GmailX script currently. Some are Inbox only ON and some are Inbox only OFF.

("Include spam" is off on all my accounts)
One has Inbox Only OFF, no spam and working unread count.
One has Inbox Only OFF, bunch of spam and working unread count
One has Inbox Only ON, bunch of spam and working unread count
One has Inbox Only OFF, 3 unread emails, all 3 are archived and under a custom Label. Shows 2 unread emails. Seems to be reading the count PER label wrong on SOME of them. Some lables it changes the overall unread count correctly, some it just shows 1 regardless of how many are undread.

I will see how it works with my custom labels via Skip inbox which most of mine are and report back if things don't seem to work correctly otherwise I will likely forget to check back. However from prelimenary tests most things seem to be working fine. The version of your script I am using is the 2015-12-29 one.

jeroen's picture

I'll report back later.

Latest version (29/12) seems to handle custom labeled archived (=skip inbox) messages correct (was brainbreaker indeed). Also in chrome. I also got an uncounted message for a label at times, but that could (I hope) be a testing glitch.... (perhaps related to XN caching or clicking Check now before the  webserver really completed synchronizing)

Gianni1962's picture

Hi jeroen,

thanks for your work!

It looks like you are subtracting to the unread mail count the emails in labels instead to adding them.

jeroen's picture

Hi Gianni,

You mean "Looks like" when experiencing/testing the X-notifier unread notification, yes?
Or are you looking at my script code?

At this moment my tests are consistently correct.

So you have XN option 'Notify inbox only' off (unchecked) and you are not talking about Gmail Categories (also a Label). And you yourself or your Gmail Filter "moves" an unread Inbox message to a Custom Label.
Definition of Inbox is different:

  • Gmail: All used Inbox Categories
  • X-notifier: Only the Primary Inbox Category

So you say these "moved" labelized or archived (all labels removed, but for Gmail in fact also a label) unread messages do no get notified and you are using the latest (2nd) version of the GmailX script, dated 2015-12-29 in XN Option Scripts?

jeroen's picture

Also be aware of the XN Options General tab setting 'Reset counter when opening messages', that I guess we all use. As soon as you click to open X-notifier caches the notifications, but they of course stay unread in Gmail...
What I do is keeping Gmail open and just rightclick XN icon and click Check Now.
Or you can uncheck 'Reset counter when opening messages' while testing.

jeroen's picture

I guess I have to swallow my criticism on XN's 'Notify inbox only' option. Gmail's Inbox notification number also presents the Primary Category only. So they are the same, notify-wise.

Gianni1962's picture

Hi jeroen,

I'm testing your latest script version.

Gmail account settings

Notify inbox only OFF

Include spam ON

General settings

Reset counter when opening messages OFF

The custom Label is simply applied, the messages are not "moved" out the Inbox.

Opening the Gmail page, Inbox bold counter says 372, the Label bold counter says 12 and no Spam, but the total unread mail by your XN says 360.

jeroen's picture

Replicating your scenario, I got alarm bells suggesting you are right. But then had to conclude there is another error in my code. Or more accurate, in the count I extract from the html to construct the unread "moved" out of inbox messages. (Those were originally included in the then from html available "all unread" count)

jeroen's picture

GmailX version 2015-12-30 should solve your miscount scenario, Gianni. Please verify!

GmailX script:  https://db.tt/JsDbu1Dh  (Right-click: Save link as...)

The error was and still is in constructing the count for unread skip inbox messages ("moved" / "Archived"). And yes, this resulted in subtracting from the correct unread  inbox count. I simply prevented this from happening.

The count I found in the html that also increases with unread messages that get removed from inbox also includes unread inbox messages, but sometimes not all of those. I located the missing messages, but the criteria for missing in this count are unclear to me. One I do know: The unread inbox Concepts.

jeroen's picture

  • Unread Inbox count should be correct, (Category) Labeled or not.
  • Unread Out of Inbox count stays untrustworthy (may be correct or not)

Hi Jeroen,

thank you for your hard work. I have 87 unread mails, but it only shows 17. I don't know how it counts the unread. But, anyway, at least it shows something. thank you again. 

i have created some labels in a label just for categorize

here is how my labels created. 

Bank

---> Amex

---> Chase

Shopping

---> Newegg

---> Amazon

Airline

CashBack

Google

Fitness

Social

---> Facebook

---> Linkedin

 

Maybe those 17 counts comes from airline, cashback, google, and fitness because they are root labels. 

jeroen's picture

Hi askanaa,

Are you using latest (3d) versiom 2015-12-30?

I understand you are sorting to folders by filters. I guess you then use the 'Skip inbox (Archive)' option for these filters, yes? If so, sorry for not being able to solve that. Any unsorted (not moved out of) inbox mail should get notified though...

Gianni1962's picture

Thanks jeroen, and thanks to anyone who has helped to sort out the Gmail thing!

I'm enough satisfied now!

I'm hoping for everyone a better 2016, a better future for everyone!

I'm also hoping tobwithu is ok!

Gianni

jeroen's picture

Nice words, Gianni!

I concur!

digideth's picture

Is it possible to get a new forum thread started with the lastest script download and instructions on how to get gmail working again?

Combing through all the comments is getting a little difficult to be sure I have the correct info.

Thanks again everyone!

 

 

jeroen's picture

The developer fixed the Gmail script in X-notifier version 3.5.19
So update and delete the GmailX script.

NB: Hidden option enableCategory proved obsolete since a long time.

Spitt's picture

Any new update for this latest bug? I installed the official version, rather then your fix, but it's still not checking any email, except for the default account.

rteegarden's picture

Agreed, mine is still not working and I am running 3.5.19

Tried deleting gmail account and adding again, still no go.  I do use 2 fator authentication, even tried generating a new app password - still no go

Same problem here.

In Chrome only the first Gmail account will report inbox while the rest will all other Gmail accounts will not read inbox and go red.

Pages