Bug 465116 - Move to Trash now marks as read. Add pref mailnews.ui.deleteMarksRead to allow restoring old behavior. r=Mnyromyr sr=Neil

This commit is contained in:
Jens Hatlak 2010-09-02 16:58:35 +02:00
Родитель 475c85b984
Коммит c70225f2c2
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -309,6 +309,8 @@ pref("offline.download.download_messages", 0);
pref("browser.formfill.expire_days", 180);
pref("mailnews.ui.deleteMarksRead", true);
// -- folders (Mac: these are binary aliases.)
pref("mail.signature_file", "");
pref("mail.directory", "");

Просмотреть файл

@ -1045,10 +1045,12 @@ function MsgGetNextNMessages()
function MsgDeleteMessage(aReallyDelete)
{
// if the user deletes a message before its mark as read timer goes off,
// we should mark it as read this ensures that we clear the biff indicator
// from the system tray when the user deletes the new message
MarkSelectedMessagesRead(true);
// If the user deletes a message before its mark as read timer goes off,
// we should mark it as read (unless the user changed the pref). This
// ensures that we clear the biff indicator from the system tray when
// the user deletes the new message.
if (pref.getBoolPref("mailnews.ui.deleteMarksRead"))
MarkSelectedMessagesRead(true);
SetNextMessageAfterDelete();
// determine if we're using the IMAP delete model