]> granicus.if.org Git - neomutt/commitdiff
mutt_rfc822_write_header
authorRichard Russon <rich@flatcap.org>
Sat, 23 Jun 2018 00:40:09 +0000 (01:40 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 23 Jun 2018 15:24:59 +0000 (16:24 +0100)
header.c
main.c
protos.h
send.c
sendlib.c

index 6fd5b89768b7c0932e57961bbe72628e3835e47f..2af55222a4e131e051b6dfa97d6ec7e9cfc8792a 100644 (file)
--- a/header.c
+++ b/header.c
@@ -59,7 +59,7 @@ void mutt_edit_headers(const char *editor, const char *body, struct Header *msg,
   }
 
   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. */
diff --git a/main.c b/main.c
index 6bca861c25cfeb456d7205249539da25762cb763..eef4a3ed9380297f3b4bdaa669635b0874cf1ae0 100644 (file)
--- a/main.c
+++ b/main.c
@@ -970,7 +970,7 @@ int main(int argc, char *argv[], char *envp[])
           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);
index c100591f068873c18ba7fc99c81043d7c53885be..b75bdf369b96c5d722c76374309ccb2bc13100c2 100644 (file)
--- a/protos.h
+++ b/protos.h
@@ -326,7 +326,7 @@ int mutt_write_mime_body(struct Body *a, FILE *f);
 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);
diff --git a/send.c b/send.c
index cfe16e843e418431871522ac59a9da967a48eff7..45cc8cdd7456e722799a247fcd18329ca395647d 100644 (file)
--- a/send.c
+++ b/send.c
@@ -1122,7 +1122,7 @@ static int send_message(struct Header *msg)
   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)
index 44331808edebbe24aabaf9c1b2f6527c87d8175a..16d17001df294e5dd3546b0be307b68c6fa87dc1 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -2099,12 +2099,12 @@ out:
  * 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;
@@ -3126,7 +3126,7 @@ int mutt_write_fcc(const char *path, struct Header *hdr, const char *msgid,
   /* 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-