K-9: Notification count incorrect.

Created on 31 Jan 2017  路  3Comments  路  Source: k9mail/k-9

Whilst running in the background, K9 checks or receives (PUSH) new mail and displays the count in the notification area. In that area, it used to say the exact number of NEW emails received since the last active user check was performed.

Expected behavior

Notification shows exact number.

eg, It says (for example) 9 NEW MESSAGES and when tapping to display them within K9, 9 new messages would show.

Actual behavior

This X NEW MESSAGES number often doesnt correspond to the _actual_ number of new messages. I have noticed this almost every day and carefully applied a test to prove it. See the following screenshots:

This shows a Thunderbird email client proving how many emails are to be expected on the phone (the test was started at 16:00)

image

This is the notification as it appears. Despite there being 9 new messages, it actually says only 5:

image

Tapping the notification to display the new messages does show the expected 9 (matching that as reported by Thunderbird):

The first (most recent) 6:

image

and a scroll down to display the other 3 (below the 17:33 timed email):

image

Steps to reproduce

  1. Look at k9 - take note of your last email, then leave it alone (running in background/service)
  2. Wait for a number of emails to come in.
  3. After a while, check your phone and see the notifications say X NEW MESSAGES but upon entering you see X+MORE actual new messages have arrived.

NOTE: This did not happen in version 5.200.

Environment

K-9 Mail version: 5.203

Android version: 4.2.1

Account type (IMAP, POP3, WebDAV/Exchange): IMAP

bug

All 3 comments

As means of extra proof, I waited for the usual incorrect notification to occur overnight (as they do). The following screen shots once again demonstrate.

Note: the last MANUAL CHECK in K9 was at midnight. So all new incoming emails since midnight should then show in the notification count.

So, at 8:19 I check the phone. These are the notifications. Note they say just 1 single email has come in for each of the 3 accounts (Im going to show the first 2 accounts):

image

Account 1 - 6 new emails (despite notifications saying and displaying the LAST 1.

image

Account 2 - also 6 new emails . Again, the notification shows only the last email. INTERESTINGLY - as with the other, the TIME displayed in the notification ("6:51") is not the same time as the actual last email ("6:50"). This time is more likely the 'incoming time' rather than the actual email date/time as displayed in the email.

image

This is most likely because the K-9 Mail process is killed at some point and we lose track of which messages are "new".

It certainly isnt being killed by me or any 'process killers' on my phone. So yes it is definitely a bug. (It didnt happen in 5.200)

If it helps there are other erroneous 'notification' problems that happen too. I will log them separately.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

digitalcraftsman picture digitalcraftsman  路  3Comments

asbach2 picture asbach2  路  3Comments

D0ve picture D0ve  路  3Comments

BerndErnst picture BerndErnst  路  3Comments

Agno94 picture Agno94  路  3Comments