From 1d11b74b25b888b74409380d588c5fdf14f65f1e Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Wed, 29 Nov 2006 02:16:30 +0100 Subject: [PATCH] post ? -post : 0 that was a good one --- sendlib.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sendlib.c b/sendlib.c index 6cd48b5..2f6c8d7 100644 --- a/sendlib.c +++ b/sendlib.c @@ -2153,8 +2153,7 @@ int mutt_write_fcc (const char *path, HEADER * hdr, const char *msgid, /* post == 1 => postpone message. Set mode = -1 in mutt_write_rfc822_header() * post == 0 => Normal mode. Set mode = 0 in mutt_write_rfc822_header() * */ - mutt_write_rfc822_header (msg->fp, hdr->env, hdr->content, post ? -post : 0, - 0); + mutt_write_rfc822_header(msg->fp, hdr->env, hdr->content, -post, 0); /* (postponment) if this was a reply of some sort, contians the * Message-ID: of message replied to. Save it using a special X-Mutt- @@ -2172,8 +2171,6 @@ int mutt_write_fcc (const char *path, HEADER * hdr, const char *msgid, fprintf (msg->fp, "X-Mutt-Fcc: %s\n", fcc); fprintf (msg->fp, "Status: RO\n"); - - /* (postponment) if the mail is to be signed or encrypted, save this info */ if (post && (hdr->security & APPLICATION_PGP)) { fputs ("X-Mutt-PGP: ", msg->fp); @@ -2261,8 +2258,7 @@ int mutt_write_fcc (const char *path, HEADER * hdr, const char *msgid, /* if there was an error, leave the temp version */ if (!r) unlink (tempfile); - } - else { + } else { fputc ('\n', msg->fp); /* finish off the header */ r = mutt_write_mime_body (hdr->content, msg->fp); } -- 2.20.1