From 77e8d6ef5a24404d26b381b4adf23354f7d7fe5a Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 20 Mar 2001 17:28:55 +0000 Subject: [PATCH] Fix Content-Disposition of PGP/MIME messages. The second part should get a file name for convenience, not the first one. --- pgp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pgp.c b/pgp.c index 63d67ef5..b11f007f 100644 --- a/pgp.c +++ b/pgp.c @@ -1473,18 +1473,16 @@ static BODY *pgp_encrypt_message (BODY *a, char *keylist, int sign) t->parts->type = TYPEAPPLICATION; t->parts->subtype = safe_strdup ("pgp-encrypted"); t->parts->encoding = ENC7BIT; - t->parts->use_disp = 1; - t->parts->disposition = DISPINLINE; - t->parts->d_filename = safe_strdup ("msg.asc"); /* non pgp/mime can save */ t->parts->next = mutt_new_body (); t->parts->next->type = TYPEAPPLICATION; t->parts->next->subtype = safe_strdup ("octet-stream"); t->parts->next->encoding = ENC7BIT; t->parts->next->filename = safe_strdup (tempfile); - t->parts->next->use_disp = 0; + t->parts->next->use_disp = 1; t->parts->next->disposition = DISPINLINE; t->parts->next->unlink = 1; /* delete after sending the message */ + t->parts->next->d_filename = safe_strdup ("msg.asc"); /* non pgp/mime can save */ return (t); } -- 2.40.0