we need to show local folders in the JMC now, for several reasons.
r/sr=bienvenu, a=sspitzer
This commit is contained in:
sspitzer%netscape.com 2003-05-15 02:02:34 +00:00
Родитель 4a9194ee22
Коммит a914291cf4
2 изменённых файлов: 6 добавлений и 5 удалений

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

@ -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"