Wrong number of unread messages #4

Open
cowst opened this Issue Oct 1, 2011 · 11 comments

Comments

Projects
None yet
4 participants

cowst commented Oct 1, 2011

I have 3 accounts, and even though I read all mails I have sometimes 1 unread message. I looked through all views of folders but it is all read. So I tried to exclude Local folders from accounts and it disappeared. Unfortunately it came back, so I re-included Local folders and the counter went back to 0.
I think there must be some weird counter somewhere and I "reset" it by enabling/disabling Local Folders (or perhaps any account).

Owner

foudfou commented Oct 2, 2011

Hi, would it be possible to narrow down the problem ? Is there a reproductible situation where you read the last unread message, and the count doesn't get to zero ?
Also do you see any errors in the console (Tools > Error console) ?
Do you have pop3 accounts ?

cowst commented Oct 2, 2011

Thanks for the reply.
First of all, I tried with to toggle any other account and it removes the "extra" unread message as well.
It did not happen anymore though, and I cannot reproduce it.
My accounts are all IMAP.
If it happens again, I will check the error console.

cowst closed this Oct 2, 2011

cowst reopened this Oct 4, 2011

cowst commented Oct 4, 2011

hi, i just had it again.
2 messages in the gmail inbox, they normally are unread also in Archives->account name (equivalent to Gmail All mails) and recently also Important folder.
however, when you read them in the inbox, they get read also in other folders.
so, i read the 2 messages in the inbox, but 2 were unread in Archives. i went into the folder and they got read, but i still have the counter at 2, and i cannot see unread messages anywhere.
if i (de)select any account, the counter resets to 0.

In error console i have errors, but are mostly of this kind:
Warning: Error in parsing value for 'background'. Declaration dropped.
Source File: https://a248.e.akamai.net/assets.github.com/stylesheets/bundle_github.css?99766cdb718bb9086adb2a9afccc6a0e735e5f3b
Line: 1

I can confirm the same behaviour. Sometimes I have no unread messages, but the counter shows 1 or 2 unread messages. The counter drops back to 0 when I get a new message and this message get read.

Owner

foudfou commented Nov 28, 2011

Hi, I tried the following scenario:

  1. declare in TB a Gmail account with:
  2. set Imap server directory (server settings > advanced) to "[Gmail]"
  3. subscribe to the "Important" folder
  4. send 2 message to this account
  5. I see 2 unread messages in "Inbox" and "Important", Firetray v0.4.0a5 (with default preferences) displays "4"
  6. I read both in "Inbox". Firetray displays "2"
  7. I switch to the "Important" folder. Msg1 is displayed as read, msg2 is displayed as unread. Firetray displays "1" (as TB does for the "Important" folder)
  8. I "read" msg2 in "Important". TB and Firetray display "0".

I can't seem to reproduce the bug. Could you provide a list of steps so I can reproduce the bug ?
I also tried to play with the mail.imap.use_status_for_biff (general config) and Use IDLE command (advanced server config), without luck. I found this thread interesting:
http://forums.mozillazine.org/viewtopic.php?t=659463

Owner

foudfou commented Nov 28, 2011

Would the folder option "When getting new messages from this account, always check this folder" help in your situation ?
Check also mail.check_all_imap_folders_for_new and mail.server.default.check_all_folders_for_new (https://bugzilla.mozilla.org/show_bug.cgi?id=289208).
Please note also that, by default, Firetray-0.4.0a5 skips folder of type "Archive" when counting unread messages.

In the 0.3.5 version which I downloaded, I've had a similar issue show. When adding an imap account from Gmail, TB 9 automatically subscribed to the Account>Gmail>Spam folder. The add-on automatically counted the emails in this folder even though the option to not count "Spam" folder emails was checked. I won't file a separate bug report because I can easily work around by unsubscribing the Spam folder and I am otherwise thrilled with the functionality of this extension, but I wonder if what I noticed may not somehow be related to the reported issue.

kxenator commented Feb 2, 2012

OK, I checked what shoalcreek5 wrote and it seems that my problem with wrong number of unread messages is also connected with the Spam folder of my Gmail account. Messages in the Spam folder are counted even if it's not set to include this folder in the settings of the add-on.

@ghost

ghost commented Mar 25, 2012

I think I have a similar issue, might even be the same. I don't really see an unread count, but my tray icon remains indicating I have unread messages and the "title" of the icon says "New messages !". I do have both POP3 (2) and IMAP (1) accounts, my only Junk folder is empty, and the Error panel of the console is empty. (Warnings have all sorts of CSS warnings, nothing seemingly serious.)

OS is Ubuntu 11.10, 64 bit, Thunderbird is 11.0, Firetray is version 0.4.1

kxenator commented Apr 9, 2012

How to reproduce it:

  1. add a Gmail account to TB
    (DON'T set Imap server directory (server settings > advanced) to "[Gmail]")
    So you have the following folders: Inbox, Drafts, ... and also [Gmail]/Inbox, ..., [Gmail]/Spam and so on
  2. "send" 2 messages to your Spam folder in Gmail account (for example through web interface)
  3. You should have indicated 2 unread messages
  4. read them
  5. still 2 unread messages indicated

Workaround: do what foudfou suggested -> 2. set Imap server directory (server settings > advanced) to "[Gmail]". Now it behaves as expected. Unread messages in Spam folder are not even indicated.

Owner

foudfou commented Sep 11, 2012

Is this issue still occurring with the last builds (say 1ec5ccf) ?

@kxenator, I tried to reproduce your scenario, but it doesn't occur for me. For point 2., on the web interface, I signal as spam some new unread messages in my Inbox, so they are sent to the [Gmail]/Spam folder. But I don"t get additional unread messages in the tray icon count. Did I miss something ?

First of all, TB recognizes [Gmail]/Spam as a junk folder, so Firetray doesn't count new/unread messages in it, unless you have selected Junk in the Included special folders option. Then this [Gmail]/Spam folder is for me relatively well in sync with the IMAP server.

I suspect Gmail's special folders like Important, All messages, Professional could be somehow related to the issue. But I need a reproducible scenario...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment