From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.bugs Subject: bug#22754: 25.1.50; Rmail does not follow RFC 2822 Date: Mon, 22 Feb 2016 21:13:32 +0100 Message-ID: <87mvqs8pw3.fsf@mbork.pl> References: <87d1rquzlg.fsf@mbork.pl> <838u2enjc8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456172062 11941 80.91.229.3 (22 Feb 2016 20:14:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2016 20:14:22 +0000 (UTC) Cc: 22754-done@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 22 21:14: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 1aXwry-0003bF-RD for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 21:14:10 +0100 Original-Received: from localhost ([::1]:51682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXwry-0000aO-2h for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 15:14:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXwrt-0000a4-Jn for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 15:14:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXwrq-0005mY-Ds for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 15:14:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXwrq-0005mO-Ac for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 15:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXwrq-0005R7-7v for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 15:14:02 -0500 Resent-From: Marcin Borkowski Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Feb 2016 20:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 22754 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 22754@debbugs.gnu.org, mbork@mbork.pl, mbork@mbork.pl Original-Received: via spool by 22754-done@debbugs.gnu.org id=D22754.145617202220860 (code D ref 22754); Mon, 22 Feb 2016 20:14:02 +0000 Original-Received: (at 22754-done) by debbugs.gnu.org; 22 Feb 2016 20:13:42 +0000 Original-Received: from localhost ([127.0.0.1]:38506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXwrW-0005QM-2Y for submit@debbugs.gnu.org; Mon, 22 Feb 2016 15:13:42 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:53158) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXwrU-0005QD-CB for 22754-done@debbugs.gnu.org; Mon, 22 Feb 2016 15:13:41 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 4222B9D2005; Mon, 22 Feb 2016 21:13:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sSat3N2g-Rbl; Mon, 22 Feb 2016 21:13:36 +0100 (CET) Original-Received: from localhost (unknown [109.232.24.28]) by mail.mojserwer.eu (Postfix) with ESMTPSA id C65BF9D2004; Mon, 22 Feb 2016 21:13:35 +0100 (CET) User-agent: mu4e 0.9.13; emacs 25.1.50.3 In-reply-to: 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:113491 Archived-At: On 2016-02-22, at 19:14, Glenn Morris wrote: > Eli Zaretskii wrote: > >>> From: Marcin Borkowski >>> Date: Sun, 21 Feb 2016 11:28:27 +0100 >>> >>> 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. >> >> I use Rmail all the time, and these headers are capitalized in my >> reply messages. So please provide a recipe starting from "emacs -Q", >> there could be some other factor at work here. > > I assume it was a theoretical analysis... > > With sendmail-user-agent, mail-setup inserts "Cc" and "In-reply-to" > directly (apparently the latter should be "In-Reply-To"?), ignoring the > case passed via other-headers. > > With message-user-agent, message-mail explicitly uses capitalize on all > headers. > > I suppose there's no guarantee that some other mail-user-agent won't use > the headers as supplied, but perhaps that would be a bug in the > user-agent? Glenn, you mean what I did was theoretical analysis or what Eli did...? For me, it was a real problem: I use mu4e as my email client, and it didn't do the capitalization. It is quite probable that it's mu4e's bug, since indeed I could not reproduce it on emacs -Q (without mu4e). It seems that your email saved me some analysis - you're right, `message-mail' does the capitalization indeed. When I have time (probably Wednesday or Thursday), I'll propose a patch to the author of mu4e. For now, I'm closing this bug. Nevertheless, I still think it is a bit sloppy: it looks like Emacs depends on the incidental fact that all header field names are capitalized, but AFAIU this is not a rule stated explicitly in RFC2822, but just (it seems) a convention they have adopted. IOW, in the (unlikely of course - now /this/ is theoretical analysis!) case when RFC2822 is superseded by another one, not adhering to this convention, Emacs users will be in trouble, or, as a (not very elegant;-)) Polish saying goes, "va qnex ohgg" (rot13'd since possibly NSFW). ;-) Thanks and best regards -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University