зеркало из https://github.com/mozilla/pjs.git
Bug 118899 Option to display original date in message headers p=ch.ey@gmx.net r=me sr=dmose
This commit is contained in:
Родитель
5144e761a9
Коммит
cce23256c7
|
@ -381,6 +381,7 @@ pref("mail.smtpserver.default.try_ssl", 0);
|
|||
pref("mail.display_glyph", true); // TXT->HTML :-) etc. in viewer
|
||||
pref("mail.display_struct", true); // TXT->HTML *bold* etc. in viewer; ditto
|
||||
pref("mail.send_struct", false); // HTML->HTML *bold* etc. during Send; ditto
|
||||
pref("mailnews.display.original_date", false); // display date string from mail headers without interpreting
|
||||
// For the next 4 prefs, see <http://www.bucksch.org/1/projects/mozilla/108153>
|
||||
pref("mailnews.display.prefer_plaintext", false); // Ignore HTML parts in multipart/alternative
|
||||
pref("mailnews.display.html_as", 0); // How to display HTML parts. 0 = Render the sender's HTML; 1 = HTML->TXT->HTML; 2 = Show HTML source; 3 = Sanitize HTML
|
||||
|
|
|
@ -207,7 +207,16 @@ NS_IMETHODIMP nsMimeHtmlDisplayEmitter::WriteHTMLHeaders()
|
|||
headerNames[numHeadersAdded] = headerInfo->name;
|
||||
|
||||
if (nsCRT::strcasecmp("Date", headerInfo->name) == 0)
|
||||
rv = GenerateDateString(headerInfo->value, &headerValues[numHeadersAdded]);
|
||||
{
|
||||
PRBool displayOriginalDate = PR_FALSE;
|
||||
if (prefs)
|
||||
prefs->GetBoolPref("mailnews.display.original_date", &displayOriginalDate);
|
||||
|
||||
if (displayOriginalDate)
|
||||
headerValues[numHeadersAdded] = ToNewUnicode(nsDependentCString(headerValue));
|
||||
else
|
||||
GenerateDateString(headerValue, &headerValues[numHeadersAdded]);
|
||||
}
|
||||
else
|
||||
{
|
||||
// optimization: if we aren't in view all header view mode, we only show a small set of the total # of headers.
|
||||
|
|
|
@ -381,6 +381,7 @@ pref("mail.smtpserver.default.try_ssl", 0);
|
|||
pref("mail.display_glyph", true); // TXT->HTML :-) etc. in viewer
|
||||
pref("mail.display_struct", true); // TXT->HTML *bold* etc. in viewer; ditto
|
||||
pref("mail.send_struct", false); // HTML->HTML *bold* etc. during Send; ditto
|
||||
pref("mailnews.display.original_date", false); // display date string from mail headers without interpreting
|
||||
// For the next 4 prefs, see <http://www.bucksch.org/1/projects/mozilla/108153>
|
||||
pref("mailnews.display.prefer_plaintext", false); // Ignore HTML parts in multipart/alternative
|
||||
pref("mailnews.display.html_as", 0); // How to display HTML parts. 0 = Render the sender's HTML; 1 = HTML->TXT->HTML; 2 = Show HTML source; 3 = Sanitize HTML
|
||||
|
|
Загрузка…
Ссылка в новой задаче