From 40e87e0c828e236103f124793263d6d91cf8a2c7 Mon Sep 17 00:00:00 2001 From: "jaggernaut%netscape.com" Date: Sat, 8 Sep 2001 01:47:44 +0000 Subject: [PATCH] Removing newlines (^M) to fix bustage. --- mailnews/imap/src/nsImapService.cpp | 60 ++++++++++++++--------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/mailnews/imap/src/nsImapService.cpp b/mailnews/imap/src/nsImapService.cpp index 2a3de2eb52c4..10143389198a 100644 --- a/mailnews/imap/src/nsImapService.cpp +++ b/mailnews/imap/src/nsImapService.cpp @@ -1931,15 +1931,15 @@ nsImapService::DiscoverChildren(nsIEventQueue* aClientEventQueue, // mscott - this cast to a char * is okay...there's a bug in the XPIDL // compiler that is preventing in string parameters from showing up as // const char *. hopefully they will fix it soon. - rv = uri->SetSpec(urlSpec.get()); - - // Make sure the uri has the same hierarchy separator as the one in msg folder - // obj if it's not kOnlineHierarchySeparatorUnknown (ie, '^'). - char uriDelimiter; - nsresult rv1 = aImapUrl->GetOnlineSubDirSeparator(&uriDelimiter); - if (NS_SUCCEEDED (rv1) && hierarchySeparator != kOnlineHierarchySeparatorUnknown && - uriDelimiter != hierarchySeparator) - aImapUrl->SetOnlineSubDirSeparator((char)hierarchySeparator); + rv = uri->SetSpec(urlSpec.get()); + + // Make sure the uri has the same hierarchy separator as the one in msg folder + // obj if it's not kOnlineHierarchySeparatorUnknown (ie, '^'). + char uriDelimiter; + nsresult rv1 = aImapUrl->GetOnlineSubDirSeparator(&uriDelimiter); + if (NS_SUCCEEDED (rv1) && hierarchySeparator != kOnlineHierarchySeparatorUnknown && + uriDelimiter != hierarchySeparator) + aImapUrl->SetOnlineSubDirSeparator((char)hierarchySeparator); if (NS_SUCCEEDED(rv)) rv = GetImapConnectionAndLoadUrl(aClientEventQueue, @@ -3481,27 +3481,27 @@ nsImapService::GetListOfFoldersWithPath(nsIImapIncomingServer *aServer, nsIMsgWi nsCOMPtr msgFolder; nsCOMPtr subFolder; if (rootMsgFolder && folderPath && (*folderPath)) - { - // If the folder path contains 'INBOX' of any forms, we need to convert it to uppercase - // before finding it under the root folder. We do the same in PossibleImapMailbox(). - nsCAutoString tempFolderName(folderPath); - nsCAutoString tokenStr, remStr, changedStr; - PRInt32 slashPos = tempFolderName.FindChar('/'); - if (slashPos > 0) - { - tempFolderName.Left(tokenStr,slashPos); - tempFolderName.Right(remStr, tempFolderName.Length()-slashPos); - } - else - tokenStr.Assign(tempFolderName); - - if ((nsCRT::strcasecmp(tokenStr.get(), "INBOX")==0) && (nsCRT::strcmp(tokenStr.get(), "INBOX") != 0)) - changedStr.Append("INBOX"); - else - changedStr.Append(tokenStr); - - if (slashPos > 0 ) - changedStr.Append(remStr); + { + // If the folder path contains 'INBOX' of any forms, we need to convert it to uppercase + // before finding it under the root folder. We do the same in PossibleImapMailbox(). + nsCAutoString tempFolderName(folderPath); + nsCAutoString tokenStr, remStr, changedStr; + PRInt32 slashPos = tempFolderName.FindChar('/'); + if (slashPos > 0) + { + tempFolderName.Left(tokenStr,slashPos); + tempFolderName.Right(remStr, tempFolderName.Length()-slashPos); + } + else + tokenStr.Assign(tempFolderName); + + if ((nsCRT::strcasecmp(tokenStr.get(), "INBOX")==0) && (nsCRT::strcmp(tokenStr.get(), "INBOX") != 0)) + changedStr.Append("INBOX"); + else + changedStr.Append(tokenStr); + + if (slashPos > 0 ) + changedStr.Append(remStr); rv = rootMsgFolder->FindSubFolder(changedStr.get(), getter_AddRefs(subFolder)); if (NS_SUCCEEDED(rv))