PRInt32     show_headers = 0; nsresult    res;
mime_insert_forwarded_message_headers(char            **body,                                       MimeHeaders     *headers,                                      MSG_ComposeFormat composeFormat,                                      char            *mailcharset){  if (body && *body && headers)  {    PRInt32     show_headers = 0;    nsresult    res;        // convert body from mail charset to UTF-8    char *utf8 = NULL;    nsAutoString ucs2;    if (NS_SUCCEEDED(nsMsgI18NConvertToUnicode(nsCAutoString(mailcharset), nsCAutoString(*body), ucs2))) {      utf8 = ToNewUTF8String(ucs2);      if (NULL != utf8) {        PR_Free(*body);        *body = utf8;      }    }    nsCOMPtr<nsIPref> prefs(do_GetService(kPrefCID, &res));     if (NS_SUCCEEDED(res) && prefs)      res = prefs->GetIntPref("mail.show_headers", &show_headers);    switch (show_headers)    {    case 0:      mime_insert_micro_headers(body, headers, composeFormat, mailcharset);      break;    default:    case 1:      mime_insert_normal_headers(body, headers, composeFormat, mailcharset);      break;    case 2:      mime_insert_all_headers(body, headers, composeFormat, mailcharset);      break;    }  }}