+ to = notmuch_message_get_header (message, "bcc");
+ if (to) {
+ printf ("%s%s",
+ has_recipient ? ", " : " ", to);
+ has_recipient = 1;
+ }
+
+ printf ("\n");
+
+ if (strncasecmp (subject, "Re:", 3))
+ subject = talloc_asprintf (ctx, "Re: %s", subject);
+ printf ("Subject: %s\n", subject);
+
+ printf ("In-Reply-To: <%s>\n",
+ notmuch_message_get_message_id (message));
+
+ /* XXX: Should fold long references lists. */
+ references = notmuch_message_get_header (message, "references");
+ printf ("References: %s <%s>\n",
+ references ? references : "",
+ notmuch_message_get_message_id (message));
+
+ printf ("--text follows this line--\n");