GNU bug report logs - #55014
29.0.50; mml-generate-mime gets error

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Tue, 19 Apr 2022 03:48:01 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 55014 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Richard Stallman <rms <at> gnu.org>
Cc: 55014 <at> debbugs.gnu.org
Subject: Re: bug#55014: 29.0.50; mml-generate-mime gets error
Date: Tue, 19 Apr 2022 13:44:08 +0200
Richard Stallman <rms <at> gnu.org> writes:

> I had this in my *mail* buffer (in Mail mode):
>
> ======================================================================
> Content-Type: text/plain; charset=Utf-8
> From: Richard Stallman <rms <at> gnu.org>
> To: rms
> Subject: 
> Reply-To: rms <at> 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




This bug report was last modified 3 years and 86 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.