{ for (i = 0 ; i < Context->vcount ; i++) { if (Context->hdrs[Context->v2r[i]]->tagged) { mutt_message_hook (Context, Context->hdrs[Context->v2r[i]], M_MESSAGEHOOK); print_msg (fp, Context, Context->hdrs[Context->v2r[i]]);  fputc ('\f', fp); count++; } } } fclose (fp); if (mutt_wait_filter (thepid) || option (OPTWAITKEY)) mutt_any_key_to_continue (NULL); mutt_message ((count > 1) ? _("Message printed") : _("Messages printed"));
mutt_message (h ? _("Message could not be printed") : _("Messages could not be printed"));
void mutt_print_message (HEADER *h){  int i, count = 0;  pid_t thepid;  FILE *fp;    if (query_quadoption (OPT_PRINT,			h ? _("Print message?") : _("Print tagged messages?"))		  	!= M_YES)    return;  endwin ();  if ((thepid = mutt_create_filter (NONULL(PrintCmd), &fp, NULL, NULL)) == -1)    return;  if (h)  {    mutt_message_hook (Context, h, M_MESSAGEHOOK);    print_msg (fp, Context, h);    count++;  }  else  {    for (i = 0 ; i < Context->vcount ; i++)    {      if (Context->hdrs[Context->v2r[i]]->tagged)      {	mutt_message_hook (Context, Context->hdrs[Context->v2r[i]], M_MESSAGEHOOK);	print_msg (fp, Context, Context->hdrs[Context->v2r[i]]);	/* add a formfeed */	fputc ('\f', fp);	count++;      }    }  }  fclose (fp);  if (mutt_wait_filter (thepid) || option (OPTWAITKEY))    mutt_any_key_to_continue (NULL);  mutt_message ((count > 1) ? _("Message printed") : _("Messages printed"));}