fix aviary build bustage

git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@158390 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bienvenu%nventure.com
2004-06-23 23:03:22 +00:00
parent 376e7fe08b
commit 783e36163c

View File

@@ -3762,8 +3762,10 @@ nsImapIncomingServer::GetUriWithNamespacePrefixIfNecessary(PRInt32 namespaceType
// it may be the case that this is the INBOX uri, in which case
// we don't want to prepend the namespace. In that case, the uri ends with "INBOX",
// but the namespace is "INBOX/", so they don't match.
nsCAutoString leafName;
resultUri.Right(leafName, resultUri.Length() - index - 1);
if (resultUri.Find(namespacePrefix.get(), PR_FALSE, index+1) != index+1
&& !Substring(resultUri, index + 1, resultUri.Length() - index - 1).LowerCaseEqualsLiteral("inbox"))
&& !leafName.EqualsIgnoreCase("inbox"))
resultUri.Insert(namespacePrefix, index+1); // insert namespace prefix
*convertedUri = nsCRT::strdup(resultUri.get());
}