GNU bug report logs - #34992
26.1; message-send-mail-with-mailclient mangles MIME messages

Previous Next

Package: emacs;

Reported by: David Bremner <david <at> tethera.net>

Date: Mon, 25 Mar 2019 12:44:01 UTC

Severity: normal

Tags: fixed

Found in version 26.1

Fixed in version 27.1

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

Bug is archived. No further changes may be made.

Full log


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

From: David Bremner <david <at> tethera.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 34992 <at> debbugs.gnu.org
Subject: Re: bug#34992: 26.1;
 message-send-mail-with-mailclient mangles MIME messages
Date: Mon, 25 Mar 2019 13:09:30 -0300
Eli Zaretskii <eliz <at> gnu.org> writes:

>> 
>> Notice that the whole encoded mime message is wrapped in a text/plain
>> part, which breaks most (all?) MUAs ability to read the message.
>> 
>> I'm not sure what a sensible fix is here.
>
> One possibility would be for message-mode to refuse to add attachments
> when message-send-mail-function is set up to use the system mail
> client.  The user should be told to attach using the mail client
> facilities instead.

That's a possibility, but something would have to be done for the other
code that programmatically adds attachments via mml tags. In addition to
debian-bug.el, a quick search suggests Gnus and mh-e (in emacs) and mu4e
and "Emacs Muse" (outside of emacs) are also vulnerable to this
problem. I would not be surprised if notmuch-emacs was as well, but I
didn't see it.

I guess the "interface" of send-mail-function and
message-send-mail-function is not very well defined, but it still feels
wrong to have radically different transport behaviour for different
choices.  It almost seems like there should be a different customizable
variable(s) with different valid values for client code that needs more
guarantees.





This bug report was last modified 5 years and 298 days ago.

Previous Next


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