From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: David Bremner Newsgroups: gmane.emacs.bugs Subject: bug#34992: 26.1; message-send-mail-with-mailclient mangles MIME messages Date: Mon, 25 Mar 2019 13:09:30 -0300 Message-ID: <87pnqfaqbp.fsf@tethera.net> References: <87y353f7kp.fsf@tethera.net> <83zhpjm06y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="123037"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34992@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 25 17:22:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8SMf-000Voz-C4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Mar 2019 17:22:21 +0100 Original-Received: from localhost ([127.0.0.1]:45050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8SMe-0000t8-6L for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Mar 2019 12:22:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8SFu-0003aF-4S for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2019 12:15:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8SAk-0001uY-UJ for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2019 12:10:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h8SAk-0001uO-OQ for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2019 12:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h8SAk-0002n4-Dn for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2019 12:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Bremner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Mar 2019 16:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34992 X-GNU-PR-Package: emacs Original-Received: via spool by 34992-submit@debbugs.gnu.org id=B34992.155353017310683 (code B ref 34992); Mon, 25 Mar 2019 16:10:02 +0000 Original-Received: (at 34992) by debbugs.gnu.org; 25 Mar 2019 16:09:33 +0000 Original-Received: from localhost ([127.0.0.1]:58559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8SAH-0002mF-9I for submit@debbugs.gnu.org; Mon, 25 Mar 2019 12:09:33 -0400 Original-Received: from fethera.tethera.net ([198.245.60.197]:35246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8SAG-0002m7-03 for 34992@debbugs.gnu.org; Mon, 25 Mar 2019 12:09:32 -0400 Original-Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1h8SAF-0008SB-5X; Mon, 25 Mar 2019 12:09:31 -0400 Original-Received: (nullmailer pid 30195 invoked by uid 1000); Mon, 25 Mar 2019 16:09:30 -0000 In-Reply-To: <83zhpjm06y.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156761 Archived-At: Eli Zaretskii 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.