supplementary patch for bug 99048: Automatically mark newsgroup read [when
leaving folder] patch by Karsten Düsterloh <mnyromyr@tprac.de> r=bienvenu sr=neil git-svn-id: svn://10.0.0.236/trunk@167617 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fbfa50db9d
commit
9fdd2a68b8
@ -1154,10 +1154,12 @@ function OnLeavingFolder(aFolder)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (gPrefBranch.getBoolPref("mailnews.mark_message_read." + aFolder.server.type))
|
||||
// Mark all messages of aFolder as read:
|
||||
// We can't use the command controller, because it is already tuned in to the
|
||||
// new folder, so we just mimic its behaviour wrt goDoCommand('cmd_markAllRead').
|
||||
if (gDBView && gPrefBranch.getBoolPref("mailnews.mark_message_read." + aFolder.server.type))
|
||||
{
|
||||
// mark all messages of aFolder as read
|
||||
goDoCommand('cmd_markAllRead');
|
||||
gDBView.doCommand(nsMsgViewCommandType.markAllRead);
|
||||
}
|
||||
}
|
||||
catch(e){/* ignore */}
|
||||
|
||||
@ -1193,10 +1193,12 @@ function OnLeavingFolder(aFolder)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (gPrefBranch.getBoolPref("mailnews.mark_message_read." + aFolder.server.type))
|
||||
// Mark all messages of aFolder as read:
|
||||
// We can't use the command controller, because it is already tuned in to the
|
||||
// new folder, so we just mimic its behaviour wrt goDoCommand('cmd_markAllRead').
|
||||
if (gDBView && gPrefBranch.getBoolPref("mailnews.mark_message_read." + aFolder.server.type))
|
||||
{
|
||||
// mark all messages of aFolder as read
|
||||
goDoCommand('cmd_markAllRead');
|
||||
gDBView.doCommand(nsMsgViewCommandType.markAllRead);
|
||||
}
|
||||
}
|
||||
catch(e){/* ignore */}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user