From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28266: 25.2; RMAIL FCC coding issue Date: Fri, 22 Sep 2017 16:13:58 +0300 Message-ID: <83h8vudgfd.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1506086121 10236 195.159.176.226 (22 Sep 2017 13:15:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 22 Sep 2017 13:15:21 +0000 (UTC) Cc: 28266@debbugs.gnu.org To: charles@aurox.ch (Charles A. Roelli) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 22 15:15:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvNnS-00024A-2u for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Sep 2017 15:15:10 +0200 Original-Received: from localhost ([::1]:58871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvNnZ-0005Iq-7M for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Sep 2017 09:15:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvNnN-0005EH-WF for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2017 09:15:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvNnK-0000fH-MI for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2017 09:15:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43687) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dvNnK-0000fD-Ip for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2017 09:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dvNnK-000819-DJ for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2017 09:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Sep 2017 13:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28266 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28266-submit@debbugs.gnu.org id=B28266.150608606630755 (code B ref 28266); Fri, 22 Sep 2017 13:15:02 +0000 Original-Received: (at 28266) by debbugs.gnu.org; 22 Sep 2017 13:14:26 +0000 Original-Received: from localhost ([127.0.0.1]:52367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvNmj-0007zz-PX for submit@debbugs.gnu.org; Fri, 22 Sep 2017 09:14:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvNme-0007zh-UG for 28266@debbugs.gnu.org; Fri, 22 Sep 2017 09:14:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvNmU-00007I-4a for 28266@debbugs.gnu.org; Fri, 22 Sep 2017 09:14:15 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvNmU-00007D-12; Fri, 22 Sep 2017 09:14:10 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4550 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dvNmS-0000mJ-Dz; Fri, 22 Sep 2017 09:14:09 -0400 In-reply-to: (charles@aurox.ch) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 208.118.235.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:137230 Archived-At: > Date: Mon, 28 Aug 2017 20:59:58 +0200 > From: charles@aurox.ch (Charles A. Roelli) > > >From emacs -q (25.2 or 26.0.50): > > M-: (setq mail-user-agent 'sendmail-user-agent) RET > C-x m > someone@example.com C-n > test RET > FCC: /tmp/emacs-bug-mbox > C-u 2 C-n > This is a test mail, containing ‘’ quotes. > C-c C-c > transport RET ; On my system, this doesn't actually send the mail, so > ; this is the mail-sending system I choose to reproduce > ; the issue. In any case, the recipient email doesn't > ; really exist so it should be okay to choose this. > C-u M-x rmail /tmp/emacs-bug-mbox ; Observe correct message contents. > C-x o ; Switch back to the *mail* buffer. > C-c C-c y ; Resend it. > n ; Open the resent copy. > > This is RMAIL's copy of the resent mail: > > ---------- > Date: Mon, 28 Aug 2017 20:41:35 +0200 > From: charles@localhost (Charles A. Roelli) > To: someone@example.com > Subject: test > Content-type: text/plain; charset=utf-8 > > This is a test mail, containing ^X^Y quotes. > ---------- > > Notice that the quotes have been converted to ^X/^Y > characters (characters have been corrupted). I tested with > another non-ASCII character (é), and it got converted to \351. I cannot reproduce this with the current emacs-26 branch tip. However, in my case, Emacs asked for a suitable coding-system each time I wanted to send a message. Answering UTF-8 produced a valid encoding in both cases. So perhaps the difference, and the reason for a problem you see, is the default encoding in your case, which you didn't show. (In my case, the default is Latin-1.)