From 616bebb2747ae17c2bd562aba59f60dfd920b89b Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Sat, 23 Jun 2018 01:51:58 +0100 Subject: [PATCH] mutt_prepare_envelope --- main.c | 2 +- protos.h | 2 +- send.c | 4 ++-- sendlib.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index eef4a3ed9..4f59f266a 100644 --- 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); } diff --git a/protos.h b/protos.h index afeb15776..b61f41eec 100644 --- 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 bad0035ba..b1c07fec8 100644 --- 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. */ diff --git a/sendlib.c b/sendlib.c index d97504ed4..98c03fee3 100644 --- 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) { -- 2.40.0