reload the message pane whenever we toggle a message as junk or not junk.

This commit is contained in:
scott%scott-macgregor.org 2003-07-02 00:17:15 +00:00
Родитель c1dedd6e7f
Коммит 05ca30b3cf
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -1928,9 +1928,10 @@ function HandleJunkStatusChanged(folder)
var sanitizeJunkMail = gPrefs.getBoolPref("mailnews.display.sanitizeJunkMail");
if (sanitizeJunkMail) // only bother doing this if we are modifying the html for junk mail....
{
var junkScore = msgHdr.getStringProperty("junkscore");
if ((junkScore == "") || (junkScore == "0"))
MsgReload();
// we used to only reload the message if we were toggling the message to NOT JUNK from junk
// but it can be useful to see the HTML in the message get converted to sanitized form when a message
// is marked as junk.
MsgReload();
}
}
}