From: Richard Russon Date: Wed, 18 Jul 2018 21:34:47 +0000 (+0100) Subject: boolify encode descriptions X-Git-Tag: 2019-10-25~749^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7d6c8b56e665bd14da03ca9c0dcdd8403d348a0;p=neomutt boolify encode descriptions --- diff --git a/main.c b/main.c index 84efb8bc7..22b45ffa8 100644 --- 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 b2d9c6ecc..c013e365b 100644 --- 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 35e8a7150..480dc1d3e 100644 --- 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);