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

index 8522020d203585707e0921d1a581383b4f144a0c..d21106e89ec0a05ef4ce6c4cfcbdd69ca19fe8b4 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -1414,7 +1414,7 @@ int mutt_compose_menu(struct Header *msg, char *fcc, size_t fcclen,
             continue;
 
           new = (struct AttachPtr *) mutt_mem_calloc(1, sizeof(struct AttachPtr));
-          new->content = mutt_make_message_attach(Context, Context->hdrs[i], 1);
+          new->content = mutt_make_message_attach(Context, Context->hdrs[i], true);
           if (new->content != NULL)
             update_idx(menu, actx, new);
           else
index a6f9e0bd058212835d45f57f7a57deb733ba87be..c100591f068873c18ba7fc99c81043d7c53885be 100644 (file)
--- a/protos.h
+++ b/protos.h
@@ -106,7 +106,7 @@ struct Address *mutt_remove_xrefs(struct Address *a, struct Address *b);
 struct Address *mutt_addr_parse_list2(struct Address *p, const char *s);
 
 struct Body *mutt_make_file_attach(const char *path);
-struct Body *mutt_make_message_attach(struct Context *ctx, struct Header *hdr, int attach_msg);
+struct Body *mutt_make_message_attach(struct Context *ctx, struct Header *hdr, bool attach_msg);
 struct Body *mutt_remove_multipart(struct Body *b);
 struct Body *mutt_make_multipart(struct Body *b);
 struct Body *mutt_parse_multipart(FILE *fp, const char *boundary, LOFF_T end_off, bool digest);
diff --git a/send.c b/send.c
index d9057d0fc9b79d77fde626ffefa9fbed6ae6b064..cfe16e843e418431871522ac59a9da967a48eff7 100644 (file)
--- a/send.c
+++ b/send.c
@@ -896,7 +896,7 @@ static int generate_body(FILE *tempfp, struct Header *msg, int flags,
 
       if (cur)
       {
-        tmp = mutt_make_message_attach(ctx, cur, 0);
+        tmp = mutt_make_message_attach(ctx, cur, false);
         if (last)
           last->next = tmp;
         else
@@ -909,7 +909,7 @@ static int generate_body(FILE *tempfp, struct Header *msg, int flags,
           if (!message_is_tagged(ctx, i))
             continue;
 
-          tmp = mutt_make_message_attach(ctx, ctx->hdrs[i], 0);
+          tmp = mutt_make_message_attach(ctx, ctx->hdrs[i], false);
           if (last)
           {
             last->next = tmp;
index afbd48c565fbec052db65be92f6fa8b3ca9ce216..44331808edebbe24aabaf9c1b2f6527c87d8175a 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -1410,7 +1410,7 @@ void mutt_update_encoding(struct Body *a)
  * @retval ptr  Newly allocated Body
  * @retval NULL Error
  */
-struct Body *mutt_make_message_attach(struct Context *ctx, struct Header *hdr, int attach_msg)
+struct Body *mutt_make_message_attach(struct Context *ctx, struct Header *hdr, bool attach_msg)
 {
   char buffer[LONG_STRING];
   struct Body *body = NULL;