Closed Bug 1225122 Opened 9 years ago Closed 9 years ago

Notification for emails with no subject shows 'Undefined'

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aryx, Assigned: jrburke)

References

Details

Attachments

(1 file)

B2G 2.6 20151115150212 on Flame

If Email checks for new messages in the background and finds a new one with no subject, it will show 'Undefined' as subject.

Steps to reproduce:
1. Set up new mail account.
2. Configure account to check every 5 minutes for mail (or more often after enabling developer mode).
3. Send a mail with no subject to that account (body I used 'test 2'). Disable after programs which that account if necessary.
4. Keep screen turned on and wait for the mail to get fetched by Email.

There is a l10n string which should be used in that case: notification-no-subject
Thanks for the bug.  Can you indicate what type of account is this?  (Specifically IMAP/POP3/ActiveSync, see https://wiki.mozilla.org/Gaia/Email/RequiredBugInfo for more details.)

This is likely a UI regression, because we had a bug like this before for ActiveSync and maybe others and I thought we locked things down at that point, at least in the back-end.
Flags: needinfo?(aryx.bugmail)
I believe this is a regression from bug 1223275, looks like I missed in review taking a slightly different path for the no subject case. Working up a fix now.
Assignee: nobody → jrburke
Status: NEW → ASSIGNED
Flags: needinfo?(aryx.bugmail)
Comment on attachment 8688216 [details] [review]
[gaia] jrburke:bug1225122-email-notification-no-subject > mozilla-b2g:master

Notes in the pull request, fairly straightforward change.
Attachment #8688216 - Flags: review?(bugmail)
Depends on: 1223275
Comment on attachment 8688216 [details] [review]
[gaia] jrburke:bug1225122-email-notification-no-subject > mozilla-b2g:master

Looks good.  And restating my understanding of the problem; the pre-patch state used "titleL10n = titleL10n || 'notification-no-subject';" which did not work because titleL10n was an object of the form { raw: undefined } and by definition truthy on its own.
Attachment #8688216 - Flags: review?(bugmail) → review+
You are correct in your restatement of the core problem.

Merged in master:
https://github.com/mozilla-b2g/gaia/commit/6d68dfb8823d6b5f3cbed8af803c2f107680b62a
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: