зеркало из https://github.com/mozilla/pjs.git
supplimental fix for bug #194273.
we need to show local folders in the JMC now, for several reasons. r/sr=bienvenu, a=sspitzer
This commit is contained in:
Родитель
4a9194ee22
Коммит
a914291cf4
|
@ -71,10 +71,8 @@ function setupForAccountFromFolder(aURI)
|
|||
var msgFolder = GetMsgFolderFromUri(aURI, false);
|
||||
gCurrentServer = msgFolder.server;
|
||||
|
||||
var protocolInfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + gCurrentServer.type];
|
||||
protocolInfo = protocolInfo.getService(Components.interfaces.nsIMsgProtocolInfo);
|
||||
if (!protocolInfo.canGetIncomingMessages)
|
||||
throw "this can happen if the selected folder (or account) doesn't have junk controls (like news or local folder)"
|
||||
if (gCurrentServer.type == "nntp")
|
||||
throw "this can happen if the selected folder (or account) doesn't have junk controls (news)"
|
||||
}
|
||||
catch (ex) {
|
||||
// get server for default account
|
||||
|
|
|
@ -70,7 +70,10 @@
|
|||
sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
|
||||
sortDirection="ascending" ref="msgaccounts:/">
|
||||
<template>
|
||||
<rule nc:CanGetIncomingMessages="true">
|
||||
<rule nc:IsServer="true" nc:ServerType="nntp">
|
||||
<!-- no support for news yet -->
|
||||
</rule>
|
||||
<rule nc:IsServer="true">
|
||||
<menuitem uri="..." value="..."
|
||||
class="folderMenuItem menuitem-iconic"
|
||||
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
|
||||
|
|
Загрузка…
Ссылка в новой задаче