unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andy Moreton <andrewjmoreton@gmail.com>
To: 22754@debbugs.gnu.org
Subject: bug#22754: 25.1.50; Rmail does not follow RFC 2822
Date: Sun, 21 Feb 2016 15:42:22 +0000	[thread overview]
Message-ID: <86si0m6pep.fsf@gmail.com> (raw)
In-Reply-To: <87d1rquzlg.fsf@mbork.pl>

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 \#\<buffer\ rmail.el\> /home/mbork/ludzie-works/emacs/emacs/lisp/mail/rmail.el /tmp/buffer-content-1903Vxh
> --- /home/mbork/ludzie-works/emacs/emacs/lisp/mail/rmail.el
> +++ #<buffer 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






  reply	other threads:[~2016-02-21 15:42 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 [this message]
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
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=86si0m6pep.fsf@gmail.com \
    --to=andrewjmoreton@gmail.com \
    --cc=22754@debbugs.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).