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

diff --git a/main.c b/main.c
index eef4a3ed9380297f3b4bdaa669635b0874cf1ae0..4f59f266a81efaa9da80c5970d4b1385254d3c4b 100644 (file)
--- a/main.c
+++ b/main.c
@@ -966,7 +966,7 @@ int main(int argc, char *argv[], char *envp[])
           if (msg->content->next)
             msg->content = mutt_make_multipart(msg->content);
           mutt_encode_descriptions(msg->content, 1);
-          mutt_prepare_envelope(msg->env, 0);
+          mutt_prepare_envelope(msg->env, false);
           mutt_env_to_intl(msg->env, NULL, NULL);
         }
 
index afeb1577650515250c4f3f41677f5b0be36371ca..b61f41eec09dc7fdaa53eacfe2b731832d9c4579 100644 (file)
--- a/protos.h
+++ b/protos.h
@@ -193,7 +193,7 @@ void mutt_paddstr(int n, const char *s);
 void mutt_parse_mime_message(struct Context *ctx, struct Header *cur);
 void mutt_parse_part(FILE *fp, struct Body *b);
 void mutt_perror_debug(const char *s);
-void mutt_prepare_envelope(struct Envelope *env, int final);
+void mutt_prepare_envelope(struct Envelope *env, bool final);
 void mutt_unprepare_envelope(struct Envelope *env);
 void mutt_pretty_mailbox(char *s, size_t buflen);
 void mutt_pipe_message(struct Header *h);
diff --git a/send.c b/send.c
index bad0035ba9bc669896ec53506dcd36e9cb848641..b1c07fec88d955cbf29f8e96715cc783379807be 100644 (file)
--- a/send.c
+++ b/send.c
@@ -1926,7 +1926,7 @@ int ci_send_message(int flags, struct Header *msg, char *tempfile,
       msg->old = false;
 
       mutt_encode_descriptions(msg->content, 1);
-      mutt_prepare_envelope(msg->env, 0);
+      mutt_prepare_envelope(msg->env, false);
       mutt_env_to_intl(msg->env, NULL, NULL); /* Handle bad IDNAs the next time. */
 
       if (!Postponed || mutt_write_fcc(NONULL(Postponed), msg,
@@ -2066,7 +2066,7 @@ int ci_send_message(int flags, struct Header *msg, char *tempfile,
   if (!OptNoCurses && !(flags & SENDMAILX))
     mutt_message(_("Sending message..."));
 
-  mutt_prepare_envelope(msg->env, 1);
+  mutt_prepare_envelope(msg->env, true);
 
   /* save a copy of the message, if necessary. */
 
index d97504ed4d080de858131dcfa5284686c78dc32e..98c03fee307830caa2f60e8bfacb3eaab6e23a94 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -2774,7 +2774,7 @@ int mutt_invoke_sendmail(struct Address *from, struct Address *to, struct Addres
  *
  * For postponing (!final) do the necessary encodings only
  */
-void mutt_prepare_envelope(struct Envelope *env, int final)
+void mutt_prepare_envelope(struct Envelope *env, bool final)
 {
   if (final)
   {