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.
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.
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
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-
magnus, should this be ENH or bug=normal?
Assignee: gashok → nobody
Component: Mail Window Front End → Folder and Message Lists
QA Contact: front-end → folders-message-lists
Whiteboard: [patchlove][has draft patch]
Severity: normal → enhancement
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
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.