Removing newlines (^M) to fix bustage.

This commit is contained in:
jaggernaut%netscape.com 2001-09-08 01:47:44 +00:00
Родитель d0787367b1
Коммит 40e87e0c82
1 изменённых файлов: 30 добавлений и 30 удалений

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

@ -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<nsIMsgFolder> msgFolder;
nsCOMPtr<nsIFolder> 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))