if(!charset) return PR_TRUE; rv = prefs->GetBoolPref("mailnews.disable_format_flowed_for_cjk", &disableForCertainCharsets); if (NS_SUCCEEDED(rv) && !disableForCertainCharsets) return PR_TRUE; } else {  return PR_FALSE; }
if(!charset) return PR_TRUE; rv = prefs->GetBoolPref("mailnews.disable_format_flowed_for_cjk", &disableForCertainCharsets); if (NS_SUCCEEDED(rv) && !disableForCertainCharsets) return PR_TRUE;
PRBool UseFormatFlowed(const char *charset){  // Add format=flowed as in RFC 2646 unless asked to not do that.  PRBool sendFlowed = PR_TRUE;  PRBool disableForCertainCharsets = PR_TRUE;  nsresult rv;  nsCOMPtr<nsIPref> prefs(do_GetService(kPrefCID, &rv));  if (NS_FAILED(rv))    return PR_FALSE;  if(prefs)  {        rv = prefs->GetBoolPref("mailnews.send_plaintext_flowed", &sendFlowed);    if (NS_SUCCEEDED(rv) && !sendFlowed)      return PR_FALSE;    // If we shouldn't care about charset, then we are finished    // checking and can go on using format=flowed    if(!charset)      return PR_TRUE;    rv = prefs->GetBoolPref("mailnews.disable_format_flowed_for_cjk",                            &disableForCertainCharsets);    if (NS_SUCCEEDED(rv) && !disableForCertainCharsets)      return PR_TRUE;  }  else  {    // No prefs service. Be careful. Don't use format=flowed.    return PR_FALSE;  }  // Just the check for charset left.  // This is a raw check and might include charsets which could  // use format=flowed and might exclude charsets which couldn't  // use format=flowed.  //  // The problem is the SPACE format=flowed inserts at the end of  // the line. Not all charsets like that.  if( nsCRT::strcasecmp(charset, "UTF-8") &&      nsMsgI18Nmultibyte_charset(charset))    return PR_FALSE;  return PR_TRUE;  }