nsCString protocolString(GetServerCommandTag());  if (useUID) protocolString.Append(" uid"); protocolString.Append(" "); protocolString.Append(searchCriteria); protocolString.Append(CRLF);
nsString2 protocolString(GetServerCommandTag(), eOneByte);  if (useUID) protocolString.Append(" uid"); protocolString.Append(" "); protocolString.Append(searchCriteria); protocolString.Append(CRLF);;
void nsImapProtocol::Search(const char * searchCriteria,                             PRBool useUID,                             PRBool notifyHit /* PR_TRUE */){  m_notifySearchHit = notifyHit;  ProgressEventFunctionUsingId (IMAP_STATUS_SEARCH_MAILBOX);  IncrementCommandTagNumber();      nsCString protocolString(GetServerCommandTag());  // the searchCriteria string contains the 'search ....' string  if (useUID)     protocolString.Append(" uid");  protocolString.Append(" ");  protocolString.Append(searchCriteria);  protocolString.Append(CRLF);  nsresult rv = SendData(protocolString.get());  if (NS_SUCCEEDED(rv))     ParseIMAPandCheckForNewMail();}