From: Thomas Roessler Date: Tue, 8 Dec 1998 19:28:23 +0000 (+0000) Subject: Work around sendmail 8.9.1a invalidating PGP/MIME signatures by X-Git-Tag: mutt-0-95-rel~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=816b783b4b6deaaeb042460e7f3b482b65227e4e;p=mutt Work around sendmail 8.9.1a invalidating PGP/MIME signatures by re-ordering MIME headers in the way sendmail does. --- diff --git a/sendlib.c b/sendlib.c index 4602728a..f8626cd4 100644 --- a/sendlib.c +++ b/sendlib.c @@ -424,9 +424,6 @@ int mutt_write_mime_header (BODY *a, FILE *f) fputc ('\n', f); - if (a->encoding != ENC7BIT) - fprintf(f, "Content-Transfer-Encoding: %s\n", ENCODING (a->encoding)); - if (a->description) fprintf(f, "Content-Description: %s\n", a->description); @@ -453,6 +450,9 @@ int mutt_write_mime_header (BODY *a, FILE *f) fputc ('\n', f); } + if (a->encoding != ENC7BIT) + fprintf(f, "Content-Transfer-Encoding: %s\n", ENCODING (a->encoding)); + /* Do NOT add the terminator here!!! */ return (ferror (f) ? -1 : 0); }