}
mutt_env_to_local(msg->env);
- mutt_rfc822_write_header(ofp, msg->env, NULL, 1, 0);
+ mutt_rfc822_write_header(ofp, msg->env, NULL, 1, false);
fputc('\n', ofp); /* tie off the header. */
/* now copy the body of the message. */
mutt_env_to_intl(msg->env, NULL, NULL);
}
- mutt_rfc822_write_header(fout, msg->env, msg->content, -1, 0);
+ mutt_rfc822_write_header(fout, msg->env, msg->content, -1, false);
if (ResumeEditedDraftFiles)
fprintf(fout, "X-Mutt-Resume-Draft: 1\n");
fputc('\n', fout);
int mutt_write_mime_header(struct Body *a, FILE *f);
int mutt_write_one_header(FILE *fp, const char *tag, const char *value,
const char *pfx, int wraplen, int flags);
-int mutt_rfc822_write_header(FILE *fp, struct Envelope *env, struct Body *attach, int mode, int privacy);
+int mutt_rfc822_write_header(FILE *fp, struct Envelope *env, struct Body *attach, int mode, bool privacy);
void mutt_write_references(const struct ListHead *r, FILE *f, size_t trim);
int mutt_yesorno(const char *msg, int def);
void mutt_set_header_color(struct Context *ctx, struct Header *curhdr);
mutt_rfc822_write_header(tempfp, msg->env, msg->content, 0, !STAILQ_EMPTY(&msg->chain));
#endif
#ifndef MIXMASTER
- mutt_rfc822_write_header(tempfp, msg->env, msg->content, 0, 0);
+ mutt_rfc822_write_header(tempfp, msg->env, msg->content, 0, false);
#endif
#ifdef USE_SMTP
if (old_write_bcc)
* mode == 0 => normal mode. write full header + MIME headers
* mode == -1 => write just the envelope info (used for postponing messages)
*
- * privacy != 0 => will omit any headers which may identify the user.
+ * privacy true => will omit any headers which may identify the user.
* Output generated is suitable for being sent through
* anonymous remailer chains.
*/
int mutt_rfc822_write_header(FILE *fp, struct Envelope *env,
- struct Body *attach, int mode, int privacy)
+ struct Body *attach, int mode, bool privacy)
{
char buffer[LONG_STRING];
char *p = NULL, *q = NULL;
/* post == 1 => postpone message. Set mode = -1 in mutt_rfc822_write_header()
* post == 0 => Normal mode. Set mode = 0 in mutt_rfc822_write_header()
* */
- mutt_rfc822_write_header(msg->fp, hdr->env, hdr->content, post ? -post : 0, 0);
+ mutt_rfc822_write_header(msg->fp, hdr->env, hdr->content, post ? -post : 0, false);
/* (postponement) if this was a reply of some sort, <msgid> contains the
* Message-ID: of message replied to. Save it using a special X-Mutt-