if (*buffer == CR || *buffer == LF || *buffer == 0)
if (*buffer == nsCRT::CR || *buffer == nsCRT::LF || *buffer == 0)
nsMsgParseSubjectFromFile(nsFileSpec* fileSpec) {   nsIFileSpec   *tmpFileSpec = nsnull;  char          *subject = nsnull;  char          buffer[1024];  char          *ptr = &buffer[0];  NS_NewFileSpecWithSpec(*fileSpec, &tmpFileSpec);	if (!tmpFileSpec)    return nsnull;  if (NS_FAILED(tmpFileSpec->OpenStreamForReading()))    return nsnull;  PRBool eof = PR_FALSE;  while ( NS_SUCCEEDED(tmpFileSpec->Eof(&eof)) && (!eof) )  {    PRBool wasTruncated = PR_FALSE;    if (NS_FAILED(tmpFileSpec->ReadLine(&ptr, sizeof(buffer), &wasTruncated)))      break;    if (wasTruncated)      continue;    if (*buffer == CR || *buffer == LF || *buffer == 0)       break;     if ( !PL_strncasecmp(buffer, "Subject: ", 9) )    {       subject = nsCRT::strdup(buffer + 9);      break;    }   }   tmpFileSpec->CloseStream();  return subject; }