From: Thomas Roessler Date: Thu, 19 Aug 1999 06:23:43 +0000 (+0000) Subject: Ian Bell (turnpike) reports that Outlook Express expects the X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f93eda677494a5af8be3e3b045180bcf4df7579;p=neomutt Ian Bell (turnpike) reports that Outlook Express expects the boundary parameter to be the _last_ MIME parameter on a multipart/* body part, and otherwise displays messages as empty. --- diff --git a/muttlib.c b/muttlib.c index 1dcdff5b8..c73d0e06e 100644 --- a/muttlib.c +++ b/muttlib.c @@ -282,7 +282,7 @@ char *mutt_get_parameter (const char *s, PARAMETER *p) void mutt_set_parameter (const char *attribute, const char *value, PARAMETER **p) { PARAMETER *q; - for(q = *p; q; q = q->next) + for(q = *p; q; q = q->next) { if (mutt_strcasecmp (attribute, q->attribute) == 0) { diff --git a/pgp.c b/pgp.c index e499d515b..5cc0c1d95 100644 --- a/pgp.c +++ b/pgp.c @@ -1097,9 +1097,9 @@ static BODY *pgp_sign_message (BODY *a) t->use_disp = 0; t->encoding = ENC7BIT; + mutt_generate_boundary (&t->parameter); mutt_set_parameter ("protocol", "application/pgp-signature", &t->parameter); mutt_set_parameter ("micalg", PgpSignMicalg, &t->parameter); - mutt_generate_boundary (&t->parameter); t->parts = a; a = t; @@ -1310,8 +1310,8 @@ static BODY *pgp_encrypt_message (BODY *a, char *keylist, int sign) t->encoding = ENC7BIT; t->use_disp = 0; - mutt_set_parameter("protocol", "application/pgp-encrypted", &t->parameter); mutt_generate_boundary(&t->parameter); + mutt_set_parameter("protocol", "application/pgp-encrypted", &t->parameter); t->parts = mutt_new_body (); t->parts->type = TYPEAPPLICATION;