for (; nReplyWithExtraLines > 0; nReplyWithExtraLines--) {
if (nReplyWithExtraLines) {
MimeHeaders_write_citation_headers (MimeHeaders *hdrs, MimeDisplayOptions *opt){  nsIPref *pref = GetPrefServiceManager(opt);   // Pref service manager  int status;  char *from = 0, *name = 0, *id = 0;  const char *fmt = 0;  char *converted = 0;  PRInt32 converted_length = 0;  PR_ASSERT(hdrs);  if (!hdrs) return -1;  if (!opt || !opt->output_fn)	return 0;  from = MimeHeaders_get(hdrs, HEADER_FROM, PR_FALSE, PR_FALSE);  if (!from)	from = MimeHeaders_get(hdrs, HEADER_SENDER, PR_FALSE, PR_FALSE);  if (!from)	from = PL_strdup("Unknown");  if (!from)	{	  status = MK_OUT_OF_MEMORY;	  goto FAIL;	}#if 0  id = MimeHeaders_get(hdrs, HEADER_MESSAGE_ID, PR_FALSE, PR_FALSE);#endif  name = MSG_ExtractRFC822AddressNames (from);  if (!name)	{	  name = from;	  from = 0;	}  PR_FREEIF(from);  fmt = (id		 ? XP_GetString(MK_MSG_IN_MSG_X_USER_WROTE)		 : XP_GetString(MK_MSG_USER_WROTE));  status = MimeHeaders_grow_obuffer (hdrs,									 PL_strlen(fmt) + PL_strlen(name) +									 (id ? PL_strlen(id) : 0) + 58);  if (status < 0) return status;  if (opt->nice_html_only_p) {	PRBool nReplyWithExtraLines = PR_FALSE, eReplyOnTop = PR_FALSE;	if (pref)  {    pref->GetBoolPref("mailnews.reply_with_extra_lines", &nReplyWithExtraLines);	  pref->GetBoolPref("mailnews.reply_on_top", &eReplyOnTop);  }	if (nReplyWithExtraLines && eReplyOnTop == 1) {	  for (; nReplyWithExtraLines > 0; nReplyWithExtraLines--) {		status = MimeHeaders_write(opt, "<BR>", 4);		if (status < 0) return status;	  }	}  }  if (id)	XP_SPRINTF(hdrs->obuffer, fmt, id, name);  else	XP_SPRINTF(hdrs->obuffer, fmt, name);  status = MimeHeaders_convert_rfc1522(opt, hdrs->obuffer,									   PL_strlen(hdrs->obuffer),									   &converted, &converted_length);  if (status < 0) return status;  if (converted)	{	  status = MimeHeaders_write(opt, converted, converted_length);	  if (status < 0) goto FAIL;	}  else	{	  status = MimeHeaders_write(opt, hdrs->obuffer, PL_strlen(hdrs->obuffer));	  if (status < 0) goto FAIL;	}#define MHTML_BLOCKQUOTE_BEGIN   "<BLOCKQUOTE TYPE=CITE>"  if (opt->nice_html_only_p) {	  char ptr[] = MHTML_BLOCKQUOTE_BEGIN;	  MimeHeaders_write(opt, ptr, PL_strlen(ptr));  } FAIL:  PR_FREEIF(from);  PR_FREEIF(name);  PR_FREEIF(id);  return (status < 0 ? status : 1);}