nsCOMPtr<nsIPref> prefs(do_GetService(kPrefCID, &rv)); if (NS_SUCCEEDED(rv) && prefs) { rv = prefs->GetBoolPref("mail.strictly_mime_headers", &mime_headers_use_quoted_printable_p);
nsCOMPtr<nsIPrefBranch> prefs(do_GetService(NS_PREFSERVICE_CONTRACTID, &rv)); if (NS_SUCCEEDED(rv)) { prefs->GetBoolPref("mail.strictly_mime_headers", &mime_headers_use_quoted_printable_p);
nsMsgMIMESetConformToStandard (PRBool conform_p){  /*   * If we are conforming to mime standard no matter what we set  * for the headers preference when generating mime headers we should   * also conform to the standard. Otherwise, depends the preference  * we set. For now, the headers preference is not accessible from UI.  */  if (conform_p)    mime_headers_use_quoted_printable_p = PR_TRUE;  else {    nsresult rv;    nsCOMPtr<nsIPref> prefs(do_GetService(kPrefCID, &rv));     if (NS_SUCCEEDED(rv) && prefs) {      rv = prefs->GetBoolPref("mail.strictly_mime_headers", &mime_headers_use_quoted_printable_p);    }  }}