summaryrefslogtreecommitdiffstats
path: root/sendlib.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-12-08 19:28:23 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-12-08 19:28:23 +0000
commit816b783b4b6deaaeb042460e7f3b482b65227e4e (patch)
tree056ae9c8d8e3c64d0d463217306444f500731a88 /sendlib.c
parent7f02ee945ef6c72818234e0c01f023533d00a57f (diff)
Work around sendmail 8.9.1a invalidating PGP/MIME signatures by
re-ordering MIME headers in the way sendmail does.
Diffstat (limited to 'sendlib.c')
-rw-r--r--sendlib.c6
1 files changed, 3 insertions, 3 deletions
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);
}