unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Glenn Morris <rgm@gnu.org>
Cc: 22754-done@debbugs.gnu.org
Subject: bug#22754: 25.1.50; Rmail does not follow RFC 2822
Date: Mon, 22 Feb 2016 21:13:32 +0100	[thread overview]
Message-ID: <87mvqs8pw3.fsf@mbork.pl> (raw)
In-Reply-To: <osegc43942.fsf@fencepost.gnu.org>


On 2016-02-22, at 19:14, Glenn Morris <rgm@gnu.org> wrote:

> Eli Zaretskii wrote:
>
>>> From: Marcin Borkowski <mbork@mbork.pl>
>>> 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





  parent reply	other threads:[~2016-02-22 20:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-21 10:28 bug#22754: 25.1.50; Rmail does not follow RFC 2822 Marcin Borkowski
2016-02-21 15:42 ` Andy Moreton
2016-02-21 16:01 ` Eli Zaretskii
2016-02-22 18:14   ` Glenn Morris
2016-02-22 19:23     ` Eli Zaretskii
2016-02-22 20:13     ` Marcin Borkowski [this message]
2016-02-23  0:09       ` Glenn Morris
2016-02-23 12:58         ` Marcin Borkowski
2016-02-26 17:43 ` Glenn Morris
2016-02-26 18:17   ` Marcin Borkowski
2016-02-28  3:04     ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mvqs8pw3.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=22754-done@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).