From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#39884: 27.0.50; Emacs may destroy outgoing email messages during sending Date: Wed, 15 Apr 2020 08:24:52 -0400 Message-ID: References: <87pnc95gq5.fsf@macho> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="00000000000031e46d05a353684e" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="39115"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39884@debbugs.gnu.org To: Rainer Gemulla Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 15 14:26:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOh7P-000A5T-OZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Apr 2020 14:26:15 +0200 Original-Received: from localhost ([::1]:48946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOh7O-0008VS-Om for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Apr 2020 08:26:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57322) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOh7F-0008TB-GK for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 08:26:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOh7D-00047p-Hb for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 08:26:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52043) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOh7C-00047c-8y for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 08:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jOh7C-0002zc-3n for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 08:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Apr 2020 12:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39884 X-GNU-PR-Package: emacs Original-Received: via spool by 39884-submit@debbugs.gnu.org id=B39884.158695351611436 (code B ref 39884); Wed, 15 Apr 2020 12:26:02 +0000 Original-Received: (at 39884) by debbugs.gnu.org; 15 Apr 2020 12:25:16 +0000 Original-Received: from localhost ([127.0.0.1]:35355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOh6S-0002yO-EY for submit@debbugs.gnu.org; Wed, 15 Apr 2020 08:25:16 -0400 Original-Received: from mail-oi1-f177.google.com ([209.85.167.177]:43242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOh6Q-0002yA-RC for 39884@debbugs.gnu.org; Wed, 15 Apr 2020 08:25:15 -0400 Original-Received: by mail-oi1-f177.google.com with SMTP id j16so13265304oih.10 for <39884@debbugs.gnu.org>; Wed, 15 Apr 2020 05:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JetNGCGAnc+TIDsyKCR37n3adH4p2JQ/o6K37aLo7kc=; b=FH6KuAleAceFYIQ3aYdzFKmgJAzT3ZJq2X7muW6c+Rwb2e2zzdvKk7vHaT5uJZAJcb vcbeM97gFbnuEAJNJstwvPTZcy58tH+FA5hvD88ji4hlgmdA3qMvfOaI21KWKgkWBy7V NMatvXyFZjvx05bmQ1HBIHH4btnVRN0VDlaXaL84O7GV+Luooo+pOD2A2ThjbbouTLs8 O5CkqtDg0LSdsbzXlKmtLSIxDOhKklI7x7kl3UHlL4NRefeI+Zv378KF2e0idGZY8HCG HV5u2qB0bV6f1nh3zg6ep6MEHnvKVB7C+mHzuHF5ZgX7x4No0Xx+lG4iIYCY6/U4uJXF bTkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JetNGCGAnc+TIDsyKCR37n3adH4p2JQ/o6K37aLo7kc=; b=t6GGDu1f7BsE3ze5pq/5ImCwlJpeluowpZfnd1ApBFWaxDbKvMLLiCQZGkocn6bdeH u+g7R9SNJBwB6AuqHmfspO0rj/NdE54L57ruIvIXSgCvwF0Jgvyy9TBwad+Gx9YtWsU0 zPSpvveIzG9RJMn7DoxeEIyNxd3Bd14rktLoM3+qTxtebhXmr1kNrM+Iap57iydFUeXg jVnH+67C2dqMnhj1JSjVlEdw66dJ0SxY4YMC9zANLB6B4lopMOqsvQVn3Oy+qiKQKyP7 xGgXSWZm1qrmFuJGPoQpxCHXrfShKnrSxOnVA4KkQNfDv40BjnHdZzFMTlAGFmXKc125 YdvQ== X-Gm-Message-State: AGi0Puaope+bU/IDdW6TkMHCmvXLIejcvBwV9beYE3Sm48d2Poeujzyj uJwG8KrjjTWBJpBlgtYZ8VNtl9tb06NpKuyuRF4= X-Google-Smtp-Source: APiQypLVvd/JH0uJVukdlfsPpMGY24yJmCFdgDpu/HGc8rQqXpo4yIH8VcSTO+lwEF63oYNKBPG5cGhQvLjQuKL6rqM= X-Received: by 2002:aca:b984:: with SMTP id j126mr3668775oif.87.1586953509254; Wed, 15 Apr 2020 05:25:09 -0700 (PDT) In-Reply-To: <87pnc95gq5.fsf@macho> 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178394 Archived-At: --00000000000031e46d05a353684e Content-Type: text/plain; charset="UTF-8" On Wed, 15 Apr 2020 at 03:55, Rainer Gemulla wrote: > > Replacing in function mml-parse-1 (mml.el, line 284): > > (setq tag (list 'part '(type . "text/plain")) > no-markup-p t > warn t) > > with > > (setq tag `(part (type . ,"text/plain")) > no-markup-p t > warn t) > > seems to fix this bug. It's not clear to me why though. mml-parse-1 calls nconc on tag, so it's likely some destructive modification of code literals is happening. However, I'm not able to reproduce the bug following your instructions on the latest emacs-27 checkout. I'm attaching a lisp file which automates the process (I also tried doing it manually, in case that makes a difference). --00000000000031e46d05a353684e Content-Type: text/x-emacs-lisp; charset="US-ASCII"; name="bug-39884-bad-mml-parsing.el" Content-Disposition: attachment; filename="bug-39884-bad-mml-parsing.el" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k91b34610 KGRlZmNvbnN0IGJ1Zy0zOTg4NC1vcmlnLW1lc3NhZ2UgIlwKRnJvbTogYSA8YXQ+IGIuY2UKVG86 IGMgPGF0PiBkLmRlClN1YmplY3Q6IFRlc3QKLS10ZXh0IGZvbGxvd3MgdGhpcyBsaW5lLS0KVGVz dAoKPCNtbWwgdHlwZT1tZXNzYWdlL3JmYzgyMiBkaXNwb3NpdGlvbj1pbmxpbmU+CjwjbXVsdGlw YXJ0IHR5cGU9YWx0ZXJuYXRpdmU+CjwjcGFydCB0eXBlPXRleHQvcGxhaW4gY2hhcnNldD1cIlVU Ri04XCIgZGl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