bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55014: 29.0.50; mml-generate-mime gets error


From: Lars Ingebrigtsen
Subject: bug#55014: 29.0.50; mml-generate-mime gets error
Date: Tue, 19 Apr 2022 13:44:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Richard Stallman <rms@gnu.org> writes:

> I had this in my *mail* buffer (in Mail mode):
>
> ======================================================================
> Content-Type: text/plain; charset=Utf-8
> From: Richard Stallman <rms@gnu.org>
> To: rms
> Subject: 
> Reply-To: rms@gnu.org
>
> Test.
>
> <#part type="application/pdf" filename="~/foo.pdf" disposition=attachment>
> <#/part>
> ======================================================================
>
> I ran (mml-secure-message-sign-pgpmime), then typed C-c C-c
> and got an error from mml-generate-mime, that assq returned nil here:
>
>       (setcdr (assq 'type (cdr (car cont))) content-type))
>
> cont contained this.

This is because you're asking Emacs to do something impossible -- you've
put a header into the buffer saying it's a text/plain message, but
you're trying to create a multipart message.

So if you remove that Content-Type header, things will work fine.

I've now added a test for this situation so that it doesn't bug out in
Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]