Closed Bug 858899 Opened 11 years ago Closed 8 years ago

[Email] Unread message count is not displayed on each folder on the folder list card

Categories

(Firefox OS Graveyard :: Gaia::E-Mail, defect)

ARM
Gonk (Firefox OS)
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: psingapati, Unassigned)

References

Details

(Keywords: feature, foxfood, Whiteboard: [TD-9393])

Attachments

(2 files)

1. Title : Unread message count is not displayed next to Inbox in Message cards and folder cards view
2. Precondition : Email should be working and should have unread messages
3. Tester's Action : Email -> Inbox -> and List Menu Icon click
4. Detailed Symptom (ENG.) :Unread message count is not displayed
5. Expected : For example if Unread message count is 2 , it should display Inbox(2) in Folder cards view and Message cards view as per the interaction design document.
6.Reproducibility: Y
1)Frequency Rate : 100%
7. User Impact: It will be good for the user to know number unread messages in the Inbox.
8.Gaia Revision: d2a68bc3c26312bbd70c926aedbdef0fc972805e
Hi Andrew 

Is there any mail api to directly get the number of unread messages instead of counting them while parsing at the message-cards.js?

Please let us know?

Thanks,
Praveen.
Flags: needinfo?(bugmail)
blocking-b2g: --- → leo?
This was dropped for v1.0 if I recall correctly.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Josh, can you confirm if this should be part of implementation?

Leaving leo? for later decision base on UX feedback.
Flags: needinfo?(jcarpenter)
Bug 821839 is already filed about the message list card, so morphing this to just be about the folder list display.  I'm also clearing the leo? since I think showing the unread counts in the folder list is a much less clear-cut decision than in the message list because we don't automatically update those numbers.  I'm also clearing Josh's feedback request; Casey is the person to ask, and probably on that bug.

(In reply to leo.bugzilla.gaia from comment #1)
> Is there any mail api to directly get the number of unread messages instead
> of counting them while parsing at the message-cards.js?

Not currently, but the plan for implementing the unread count has been to maintain an appropriate new/unread count statistic maintained in the database at an addMessageHeader/updateMessageHeader granularity (which will require hinting by callers).
blocking-b2g: leo? → ---
Flags: needinfo?(jcarpenter)
Flags: needinfo?(bugmail)
Summary: [Email] Unread message count is not displayed next to Inbox in Message cards and folder cards view → [Email] Unread message count is not displayed on each folder on the folder list card
Whiteboard: [TD-9393]
Target Milestone: --- → Leo QE1 (5may)
This is an enhancement request, so it would need to be brought up with our product team along with the other requested enhancements.
Target Milestone: Leo QE1 (5may) → ---
Priority: -- → P1
Keywords: feature
Priority: P1 → --
Back-end notes on getting the number of unread messages in a folder:

- IMAP: We can use STATUS to get the total number of UNSEEN messages.  Modern servers will optimize this.  Very old/crappy servers will not optimize this and will get sad.  (NB: "UNSEEN" when performing "SELECT"/"EXAMINE" is not the same as it is for "STATUS"; that's just the sequence number of the first UNSEEN message.)

- POP3: The server has no concept of read, so this would just be our locally maintained unread count/statistic.

- ActiveSync: I checked with :squib and he is not aware of and could not find any easy way to retrieve such a statistic.  We believe if there's a way to do it in would involve doing a Search, limiting the number of responses, and depending on the spec calling for a "Total" to still be returned.  It is not clear if this would be optimized by the server or not.  We both generally think that it would be preferable to just treat ActiveSync like POP3 for this case.  As long as our sync mechanism continues to use the general "Sync" mechanism, this seems like a rational decision since it would be arguably confusing to the user to tell them about unread messages that they cannot see.
See Also: → 800402
See Also: → 995172
Keywords: foxfood
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: