Custom date formats in message list depending of mail received date



10 years ago
7 years ago


(Reporter: gashok, Unassigned)


Bug Flags:
wanted-thunderbird3 -

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [patchlove][has draft patch])


(1 obsolete attachment)



10 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008052912 Firefox/3.0
Build Identifier: version 3.0a1pre (2008021403)

Currently there are two ways to showing mail received date in the mail listing. If the mail is received today just time is shown. Otherwise, the complete date and time is shown.

It would be nice to have a different date format depending on whether mail is received today, yesterday, this week and so on. Say, for mails received yesterday the date column can show "Yesterday, 1:30 PM" for mails in this week, it could show "Wed, 12 Sep" etc.

This formats can be locale dependent.

Reproducible: Always

Steps to Reproduce:

Comment 1

10 years ago
Created attachment 338852 [details] [diff] [review]
Initial patch to that adds support in nsMsgDBView

Approach: The date formats are defined in MsgDBView checks gets the date formats, checks message date and applies a suitable date format.


10 years ago
Flags: wanted-thunderbird3?


10 years ago
Version: unspecified → Trunk
You shouldn't couple the build locale with the system time settings (no time formatting in the properties files), see also
Assignee: nobody → gashok
Using "Today", "Yesterday" could potentially be nice, but coupling date formatting to local wouldn't. (Also, the LL_ macros aren't needed anymore.)

If you come up with a patch along those lines, see
Flags: wanted-thunderbird3? → wanted-thunderbird3-

Comment 4

9 years ago
magnus, should this be ENH or bug=normal?
Assignee: gashok → nobody
Component: Mail Window Front End → Folder and Message Lists
Keywords: helpwanted
QA Contact: front-end → folders-message-lists
Whiteboard: [patchlove][has draft patch]
-> enh
Severity: normal → enhancement
Keywords: helpwanted
Comment on attachment 338852 [details] [diff] [review]
Initial patch to that adds support in nsMsgDBView

Patch has obsoleted. Ashok, up for a new patch? :)

$ patch -p0 --dry-run < ~/Desktop/p455498.diff 
patching file mailnews/base/src/nsMsgDBView.cpp
Hunk #1 FAILED at 66.
Hunk #2 FAILED at 109.
Hunk #3 FAILED at 223.
Hunk #4 FAILED at 287.
Hunk #5 succeeded at 542 (offset 31 lines).
Hunk #6 FAILED at 592.
5 out of 6 hunks FAILED -- saving rejects to file mailnews/base/src/nsMsgDBView.cpp.rej
patching file mailnews/base/src/nsMsgDBView.h
Hunk #1 succeeded at 176 (offset 23 lines).
patching file mail/locales/en-US/chrome/messenger/
Hunk #1 FAILED at 451.
1 out of 1 hunk FAILED -- saving rejects to file mail/locales/en-US/chrome/messenger/
Attachment #338852 - Attachment is obsolete: true
-> New, though I haven't checked for a dupe.
Ever confirmed: true
Summary: Custom date formats in mail listing depending of mail received date → Custom date formats in message list depending of mail received date
You need to log in before you can comment on or make changes to this bug.