Custom date formats in message list depending of mail received date

NEW
Unassigned

Status

Thunderbird
Folder and Message Lists
--
enhancement
10 years ago
6 years ago

People

(Reporter: Ashok, Unassigned)

Tracking

Bug Flags:
wanted-thunderbird3 -

Firefox Tracking Flags

(Not tracked)

Details

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

Attachments

(1 obsolete attachment)

(Reporter)

Description

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:
1.
2.
3.
(Reporter)

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 messenger.properties. MsgDBView checks gets the date formats, checks message date and applies a suitable date format.

Updated

10 years ago
Flags: wanted-thunderbird3?
(Reporter)

Updated

10 years ago
Version: unspecified → Trunk

Comment 2

10 years ago
You shouldn't couple the build locale with the system time settings (no time formatting in the properties files), see also http://kb.mozillazine.org/Change_the_Date_Format
Assignee: nobody → gashok

Comment 3

10 years ago
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 http://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree
Flags: wanted-thunderbird3? → wanted-thunderbird3-

Comment 4

8 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]

Comment 5

8 years ago
-> 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/messenger.properties
Hunk #1 FAILED at 451.
1 out of 1 hunk FAILED -- saving rejects to file mail/locales/en-US/chrome/messenger/messenger.properties.rej
Attachment #338852 - Attachment is obsolete: true
-> New, though I haven't checked for a dupe.
Status: UNCONFIRMED → NEW
Ever confirmed: true

Updated

6 years ago
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.