]> granicus.if.org Git - neomutt/commitdiff
boolify encode descriptions
authorRichard Russon <rich@flatcap.org>
Wed, 18 Jul 2018 21:34:47 +0000 (22:34 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 19 Jul 2018 09:56:47 +0000 (10:56 +0100)
main.c
send.c
send.h

diff --git a/main.c b/main.c
index 84efb8bc7c20a022e362da7d69f1b80cd55f4433..22b45ffa869ee2239fee73e7f0fb78df5b33ec3f 100644 (file)
--- a/main.c
+++ b/main.c
@@ -969,7 +969,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_encode_descriptions(msg->content, true);
           mutt_prepare_envelope(msg->env, false);
           mutt_env_to_intl(msg->env, NULL, NULL);
         }
diff --git a/send.c b/send.c
index b2d9c6ecc8aca17bda14b599ed93aa45f80aea8b..c013e365b77810285c31e08bb095554cd7584151 100644 (file)
--- a/send.c
+++ b/send.c
@@ -1341,7 +1341,7 @@ static int send_message(struct Header *msg)
  * @param b       Body of email
  * @param recurse If true, encode children parts
  */
-void mutt_encode_descriptions(struct Body *b, short recurse)
+void mutt_encode_descriptions(struct Body *b, bool recurse)
 {
   for (struct Body *t = b; t; t = t->next)
   {
@@ -2111,7 +2111,7 @@ int ci_send_message(int flags, struct Header *msg, char *tempfile,
       msg->read = false;
       msg->old = false;
 
-      mutt_encode_descriptions(msg->content, 1);
+      mutt_encode_descriptions(msg->content, true);
       mutt_prepare_envelope(msg->env, false);
       mutt_env_to_intl(msg->env, NULL, NULL); /* Handle bad IDNAs the next time. */
 
@@ -2205,7 +2205,7 @@ int ci_send_message(int flags, struct Header *msg, char *tempfile,
    * in case of error.  Ugh.
    */
 
-  mutt_encode_descriptions(msg->content, 1);
+  mutt_encode_descriptions(msg->content, true);
 
   /* Make sure that clear_content and free_clear_content are
    * properly initialized -- we may visit this particular place in
@@ -2232,7 +2232,7 @@ int ci_send_message(int flags, struct Header *msg, char *tempfile,
         decode_descriptions(msg->content);
         goto main_loop;
       }
-      mutt_encode_descriptions(msg->content, 0);
+      mutt_encode_descriptions(msg->content, false);
     }
 
     /* at this point, msg->content is one of the following three things:
diff --git a/send.h b/send.h
index 35e8a7150a116517cdabcb5640817eb48f4d4c17..480dc1d3ecb6bd1181d01f8db67253de9610a350 100644 (file)
--- a/send.h
+++ b/send.h
@@ -97,7 +97,7 @@ int             ci_send_message(int flags, struct Header *msg, char *tempfile, s
 void            mutt_add_to_reference_headers(struct Envelope *env, struct Envelope *curenv);
 int             mutt_compose_to_sender(struct Header *hdr);
 struct Address *mutt_default_from(void);
-void            mutt_encode_descriptions(struct Body *b, short recurse);
+void            mutt_encode_descriptions(struct Body *b, bool recurse);
 int             mutt_fetch_recips(struct Envelope *out, struct Envelope *in, int flags);
 void            mutt_fix_reply_recipients(struct Envelope *env);
 void            mutt_forward_intro(struct Context *ctx, struct Header *cur, FILE *fp);