From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#22754: 25.1.50; Rmail does not follow RFC 2822 Date: Sun, 21 Feb 2016 15:42:22 +0000 Message-ID: <86si0m6pep.fsf@gmail.com> References: <87d1rquzlg.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456069400 24543 80.91.229.3 (21 Feb 2016 15:43:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Feb 2016 15:43:20 +0000 (UTC) To: 22754@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 21 16:43:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aXWAA-0003Rf-QF for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Feb 2016 16:43:10 +0100 Original-Received: from localhost ([::1]:41943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXWAA-0002UK-BZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Feb 2016 10:43:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXWA5-0002U3-QI for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 10:43:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXWA2-0006F9-JY for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 10:43:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXWA2-0006F5-GU for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 10:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXWA2-0006VS-8n for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 10:43:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87d1rquzlg.fsf@mbork.pl> Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Feb 2016 15:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22754 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145606936424985 (code B ref -1); Sun, 21 Feb 2016 15:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Feb 2016 15:42:44 +0000 Original-Received: from localhost ([127.0.0.1]:36500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXW9k-0006Uu-6s for submit@debbugs.gnu.org; Sun, 21 Feb 2016 10:42:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40522) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXW9i-0006Uh-Bq for submit@debbugs.gnu.org; Sun, 21 Feb 2016 10:42:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXW9c-0006Ct-AJ for submit@debbugs.gnu.org; Sun, 21 Feb 2016 10:42:37 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXW9c-0006Cp-6v for submit@debbugs.gnu.org; Sun, 21 Feb 2016 10:42:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXW9b-0002KZ-5n for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 10:42:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXW9X-0006C2-TQ for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 10:42:35 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:46795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXW9X-0006Bi-Ml for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 10:42:31 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aXW9W-0002ss-HG for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 16:42:30 +0100 Original-Received: from 82-69-64-228.dsl.in-addr.zen.co.uk ([82.69.64.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Feb 2016 16:42:30 +0100 Original-Received: from andrewjmoreton by 82-69-64-228.dsl.in-addr.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Feb 2016 16:42:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82-69-64-228.dsl.in-addr.zen.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (windows-nt) Cancel-Lock: sha1:VrWJ074elVUWPehg87AtwEWr6rM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113412 Archived-At: On Sun 21 Feb 2016, Marcin Borkowski wrote: > Dear Devs, > > Rmail inserts lower-case field names in the header, which goes against > RFC 2822 (pp. 22 and 23, see > https://tools.ietf.org/html/rfc2822#page-22). It seems that the problem > affects Cc: and In-reply-to: fields. Below is a simple patch which > seems to help. > > Best, > mbork > > diff -u --label /home/mbork/ludzie-works/emacs/emacs/lisp/mail/rmail.el --label \#\ /home/mbork/ludzie-works/emacs/emacs/lisp/mail/rmail.el /tmp/buffer-content-1903Vxh > --- /home/mbork/ludzie-works/emacs/emacs/lisp/mail/rmail.el > +++ # > @@ -3699,8 +3699,8 @@ > ;; point and mark (see doc of sc-cite-original). > (setq yank-action > `(rmail-yank-current-message ,replybuffer))) > - (push (cons "cc" cc) other-headers) > - (push (cons "in-reply-to" in-reply-to) other-headers) > + (push (cons "Cc" cc) other-headers) > + (push (cons "In-reply-to" in-reply-to) other-headers) This should be "In-Reply-To" as described in RFC 2822 section 3.6.4. > (setq other-headers > (mapcar #'(lambda (elt) > (cons (car elt) (if (stringp (cdr elt)) > > Diff finished. Sun Feb 21 11:24:47 2016