Open Bug 228168 Opened 21 years ago Updated 2 years ago

Getting new mail notification with 0 mails when mail is filtered to local folder from IMAP ("<account> has 0 new messages")

Categories

(MailNews Core :: Filters, defect)

x86
Windows XP
defect

Tracking

(Not tracked)

People

(Reporter: harskouf, Unassigned)

References

(Depends on 1 open bug)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031208 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031208 I have an IMAP email acount. When I use filters to to move emails from INBOX to other folders (not Trash) I get a new mail notification saying: "My Account name" has 0 new mails This problems exist only in Mozila 1.6 (a and b).In Mozila 1.5 it works fine and new mail notification reports the actual number of new emails and then moves them to desired folder Reproducible: Always Steps to Reproduce: 1.Create filter for moving emails to a local folders folder using some critirias (Not Trash or Junk) 2.New mail that meets the criteria of filter arrives 3. Actual Results: New mail notification with 0 new emails pop up Expected Results: New mail notification with 1 new email should have been reported (Or the acutal number of new emails that have arrived, like previous versions of Mozila e.x 1.5)
Assignee: sspitzer → bienvenu
Summary: Getting new mail notification with 0 mails when mail is moved to another folder from Inbox usinf filter rules → Getting new mail notification with 0 mails when mail is moved to another folder from Inbox usinf filter rules
Reporter (harskouf): Is this bug still a problem for you? I am not seeing this symptom.
Summary: Getting new mail notification with 0 mails when mail is moved to another folder from Inbox usinf filter rules → Getting new mail notification with 0 mails when mail is moved to another folder from Inbox using filter rules
Reporter emailed: Yes the symptom still exist and in new version of Mozilla (1.7RC-2). I have an IMAP account and I am using a filter to move mails from a special address to a an other local folder. When I receive a new mails from the specified address it is moved correctly from the account to the specifeid folder, but the notification I get is: "(acount name) has 0 new mails". The correct should be: "(account name) has 1 new mails. Reporter: please respond by posting in this bug, rather than emailing. Regarding the filter you are using: is that filter defined in Mozilla (Tools | Message Filters), or are you running filtering on the server (e.g. with procmail)? When I use a Mozilla filter to move a message into a folder (on IMAP), the notification shows up as "1 new message" for me.
I get this problem when running a mozilla message filter to move files from my IMAP inbox to local folders on arrival. When mail is moved to one of these local folders, it pops up a message saying I have 0 new messages. I also have a couple of procmail rules to move mails around on the IMAP, and new mails on the IMAP server, that's not in the Inbox, gets a correct notification. Using mozilla 1.7, WinXP.
Thanks for comment 3 -- I have reproduced this problem. Appears to be IMAP specific; the same rule on a POP account generates "1 new message" in the notification. "0 new messages" also appears in the tooltip when hovering over the notification icon.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Getting new mail notification with 0 mails when mail is moved to another folder from Inbox using filter rules → Getting new mail notification with 0 mails when mail is filtered to local folder from IMAP
*** Bug 254057 has been marked as a duplicate of this bug. ***
*** Bug 230367 has been marked as a duplicate of this bug. ***
I did some in-depth testing of this bug. The baseline case I'm considering here is when all messages already in the account do not have any pending 'new' flags, and the newly arriving messages are all being filtered to a local folder (client-side filter), and NOT marked read. Testing with TB 0.7, Moz 1.7.2, Moz 1.8a3-0824; Win2K; IMAP account on fastmail.us (mail.messagingengine.com). Using the Remove Immediately and Move to Trash delete models, the "0 new messages" alert is consistent in TB 0.7, Moz 1.7 and Moz 1.8. Using the Mark as Deleted model, TB 0.7 continues the consistent behavior; but Moz 1.7 & 1.8 do not notify at all. In all the cases, if some older messages are still 'new', the notification will appear showing only the count of the previous 'new' messages. (With Mark as Deleted, this count may include deleted messages that remain in the Inbox.) If the filter also marks the message as Read, there is (correctly) no notification. Using Mark as Deleted, the filter works as expected; but with the other delete models, the message actually ends up Unread in the folder; this is bug 254589.
*** Bug 266086 has been marked as a duplicate of this bug. ***
Just to be sure that it is known, there are 3 symptoms that I am experiencing when using filters to move messages from IMAP to a local folder. 1. The notification shows an incorrect number of new messages (like "0 new messages"). 2. The IMAP account icon (in the left tree) has a "new messages" icon (little orange star) even though no IMAP folders have any new (or unread) messages. 3. After all messages in the local folder have been marked as read, the new messages icon in the system tray is still visible. The icon is only removed when a folder in the IMAP account is selected. I believe the first 2 symptoms are pertinent to this bug, while the third may be a separate bug but is so annoying that I want to stop using Thunderbird. Is there another bug for the third issue which I can't find? I'm using Thunderbird 0.9 release on WinXP.
(In reply to comment #10) > 2. The IMAP account icon (in the left tree) has a "new messages" icon (little > orange star) even though no IMAP folders have any new (or unread) messages. Bug 116181. > 3. After all messages in the local folder have been marked as read, the new > messages icon in the system tray is still visible. The icon is only removed > when a folder in the IMAP account is selected. Bug 222068. Note that when you select an IMAP folder to clear the tray icon, that also clears the 'new' flag on the account. Because of that, I believe those are both basically the same bug.
Product: MailNews → Core
*** Bug 278948 has been marked as a duplicate of this bug. ***
*** Bug 279033 has been marked as a duplicate of this bug. ***
Note that the duplicate has the same symptoms, but the filtering is occurring via the Junk Mail Controls rather than user-defined filters.
Summary: Getting new mail notification with 0 mails when mail is filtered to local folder from IMAP → Getting new mail notification with 0 mails when mail is filtered to local folder from IMAP ("<account> has 0 new messages")
*** Bug 282408 has been marked as a duplicate of this bug. ***
*** Bug 292772 has been marked as a duplicate of this bug. ***
*** Bug 302460 has been marked as a duplicate of this bug. ***
I experience a slight variation of this bug: I have a filter moving some new mails from one imap account (first) to another (second) I use as archive. points 1 and 2 from comment #10 apply here also, the first imap shows for unread mails, although there aren't any in the Inbox (after moving them to second). In the Dock (I use Mac, TB 1.5b2) a notification for 0 new messages appears. Additionally on the second imap the folder with the new mails is marked for unread mails, but the account itself doesn't get marked for new unread, so the mail moved here by the filter ist probably not recognized as new.
*** Bug 337817 has been marked as a duplicate of this bug. ***
*** Bug 291488 has been marked as a duplicate of this bug. ***
*** Bug 351206 has been marked as a duplicate of this bug. ***
*** Bug 350815 has been marked as a duplicate of this bug. ***
I have also had this problem for around two years, but never got round to reporting it. My IMAP server is running Exim, with a filter to reorganise my mails into folders. I also get an incorrect notification every time I receive a new mail in one of these folders (it says my account "has 0 new messages").
The behavior of this bug has changed, I believe due to the patch at bug 275561. Now, when a new message arrives for IMAP and is filtered to local folders (and assuming no other new mail) there is no notification popup. You still get the alert sound, if you have that turned on; and you get a tray icon unless you're using the 'Mark as Deleted' deletion model (xref comment 8). The tray's tooltip shows "0 new messages." In TB, clicking the tray icon (which would normally redisplay the alert box) does nothing. However, in the following sequence, you can still see the "0 new messages" alert box: - an ordinary new message arrives in the Inbox and stays there; alert is shown - user switches to Inbox -- tray icon & account New flag are cleared, but message & folder New flags persist - new filtered message arrives before existing New messages are read In this case, the alert box will show "0 new messages" -- but also (in TB) will list the existing New messages from the Inbox (xref bug 138631).
Assignee: bienvenu → nobody
QA Contact: laurel → filters
Product: Core → MailNews Core
Duped by bug 378582?
(In reply to comment #27) > Duped by bug 378582? Mike's comment 7 would indicate the new behavior, bug 378582, is a regression of bug 275561. However, it's unclear whether that regression has masked the behavior of this bug, or fixed it. So I'd say we need to see where fixing bug 378582 leads
Depends on: 378582

I have this problem too. Since the notification knows that there are 'zero' new mails, I do not see why the code for the notification cannot check that number and, if the number is indeed zero, abort.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.