зеркало из https://github.com/mozilla/pjs.git
try again to disable namespace stuff
This commit is contained in:
Родитель
bccec3190b
Коммит
7aadd79495
|
@ -4179,7 +4179,6 @@ void nsImapProtocol::DiscoverMailboxList()
|
||||||
PRUint32 count = 0;
|
PRUint32 count = 0;
|
||||||
m_hostSessionList->GetNumberOfNamespacesForHost(GetImapHostName(),
|
m_hostSessionList->GetNumberOfNamespacesForHost(GetImapHostName(),
|
||||||
GetImapUserName(), count);
|
GetImapUserName(), count);
|
||||||
#ifdef NOT_YET
|
|
||||||
for (PRUint32 i = 0; i < count; i++ )
|
for (PRUint32 i = 0; i < count; i++ )
|
||||||
{
|
{
|
||||||
nsIMAPNamespace * ns = nsnull;
|
nsIMAPNamespace * ns = nsnull;
|
||||||
|
@ -4189,11 +4188,17 @@ void nsImapProtocol::DiscoverMailboxList()
|
||||||
const char *prefix = ns->GetPrefix();
|
const char *prefix = ns->GetPrefix();
|
||||||
if (prefix)
|
if (prefix)
|
||||||
{
|
{
|
||||||
// mscott -> WARNING!!! i where are we going to get this global variable for unusued name spaces from??? *wince*
|
// mscott -> WARNING!!! i where are we going to get this
|
||||||
if (/* !gHideUnusedNamespaces && */ *prefix && PL_strcasecmp(prefix, "INBOX.")) // only do it for non-empty namespace prefixes, and for non-INBOX prefix
|
// global variable for unusued name spaces from??? *wince*
|
||||||
|
#ifdef NOT_YET
|
||||||
|
if (/* !gHideUnusedNamespaces && */ *prefix &&
|
||||||
|
PL_strcasecmp(prefix, "INBOX.")) // only do it for
|
||||||
|
// non-empty namespace prefixes, and for non-INBOX prefix
|
||||||
{
|
{
|
||||||
// Explicitly discover each Namespace, so that we can create subfolders of them,
|
// Explicitly discover each Namespace, so that we can
|
||||||
mailbox_spec *boxSpec = (mailbox_spec *) PR_CALLOC(sizeof(mailbox_spec));
|
// create subfolders of them,
|
||||||
|
mailbox_spec *boxSpec = (mailbox_spec *)
|
||||||
|
PR_CALLOC(sizeof(mailbox_spec));
|
||||||
if (boxSpec)
|
if (boxSpec)
|
||||||
{
|
{
|
||||||
boxSpec->folderSelected = PR_FALSE;
|
boxSpec->folderSelected = PR_FALSE;
|
||||||
|
@ -4204,7 +4209,9 @@ void nsImapProtocol::DiscoverMailboxList()
|
||||||
boxSpec->onlineVerified = PR_TRUE;
|
boxSpec->onlineVerified = PR_TRUE;
|
||||||
boxSpec->box_flags = kNoselect;
|
boxSpec->box_flags = kNoselect;
|
||||||
boxSpec->hierarchySeparator = ns->GetDelimiter();
|
boxSpec->hierarchySeparator = ns->GetDelimiter();
|
||||||
m_runningUrl->AllocateCanonicalPath(ns->GetPrefix(), ns->GetDelimiter(), &boxSpec->allocatedPathName);
|
m_runningUrl->AllocateCanonicalPath(
|
||||||
|
ns->GetPrefix(), ns->GetDelimiter(),
|
||||||
|
&boxSpec->allocatedPathName);
|
||||||
boxSpec->namespaceForFolder = ns;
|
boxSpec->namespaceForFolder = ns;
|
||||||
boxSpec->folderIsNamespace = PR_TRUE;
|
boxSpec->folderIsNamespace = PR_TRUE;
|
||||||
|
|
||||||
|
@ -4228,6 +4235,7 @@ void nsImapProtocol::DiscoverMailboxList()
|
||||||
else
|
else
|
||||||
HandleMemoryFailure();
|
HandleMemoryFailure();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// now do the folders within this namespace
|
// now do the folders within this namespace
|
||||||
nsString2 pattern("",eOneByte);
|
nsString2 pattern("",eOneByte);
|
||||||
|
@ -4265,7 +4273,6 @@ void nsImapProtocol::DiscoverMailboxList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
// explicitly LIST the INBOX if (a) we're not using subscription, or (b) we are using subscription and
|
// explicitly LIST the INBOX if (a) we're not using subscription, or (b) we are using subscription and
|
||||||
// the user wants us to always show the INBOX.
|
// the user wants us to always show the INBOX.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче