]> granicus.if.org Git - mutt/commitdiff
Work around sendmail 8.9.1a invalidating PGP/MIME signatures by
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 8 Dec 1998 19:28:23 +0000 (19:28 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 8 Dec 1998 19:28:23 +0000 (19:28 +0000)
re-ordering MIME headers in the way sendmail does.

sendlib.c

index 4602728a20ab6e055d929ca381a9676d99e3a73e..f8626cd493b55fe277e7266cf7e9b9daefd8f468 100644 (file)
--- 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);
 }