unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Deeper freeze for Emacs-23 branch soon
@ 2011-02-01  4:10 Chong Yidong
  2011-02-21  2:30 ` rmail-reply problem [Re: Deeper freeze for Emacs-23 branch soon] Kenichi Handa
  0 siblings, 1 reply; 4+ messages in thread
From: Chong Yidong @ 2011-02-01  4:10 UTC (permalink / raw)
  To: emacs-devel

If no major problems with the 23.2.93 pretest crop up during the next
week or so, we'll institute a deep freeze for the Emacs-23 branch.

Once this takes effect, commits to that branch should be for regressions
against 23.2, and documentation fixes, only.  All other bugfixes will go
into the trunk.  We'll deal with exceptions, such as crashes, on a
case-by-case basis.

From now until then, I urge everyone to help with the bugfixing for the
23.3 release.  If you see anything that you think should be a release
blocker, please point it out (and set the severity to "serious" in the
bug tracker).

Thanks!



^ permalink raw reply	[flat|nested] 4+ messages in thread

* rmail-reply problem [Re: Deeper freeze for Emacs-23 branch soon]
  2011-02-01  4:10 Deeper freeze for Emacs-23 branch soon Chong Yidong
@ 2011-02-21  2:30 ` Kenichi Handa
  2011-02-21 17:19   ` Chong Yidong
  0 siblings, 1 reply; 4+ messages in thread
From: Kenichi Handa @ 2011-02-21  2:30 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

In article <87bp2w4cpt.fsf@stupidchicken.com>, Chong Yidong <cyd@stupidchicken.com> writes:

> If no major problems with the 23.2.93 pretest crop up during the next
> week or so, we'll institute a deep freeze for the Emacs-23 branch.

> Once this takes effect, commits to that branch should be for regressions
> against 23.2, and documentation fixes, only.  All other bugfixes will go
> into the trunk.  We'll deal with exceptions, such as crashes, on a
> case-by-case basis.

> >From now until then, I urge everyone to help with the bugfixing for the
> 23.3 release.  If you see anything that you think should be a release
> blocker, please point it out (and set the severity to "serious" in the
> bug tracker).

I've just found that rmail-reply still inserts raw headers
in a reply buffer as something like these:

  From: =?utf-8?B?0JrQvtC90L7QvSDQkNGE0LDQvdCw0YHRjNC10LLQuNGH?= <zecoxut@vneshbank.ru>
  Subject: =?utf-8?B?0JrQu9C10L3QvtCy0YvQuSDRgdC40YDQvtC/Lg==?=

As a result, sending such a message results in
doubly-decoded headers and thus mail clients receiving such
messages don't show the correct strings.

I have not noticed this problem because I've been using a
special hook to workaround it.  :-(

The simplest and safe fix seems to be the attached one.
But, I'm not sure installing it satisfies the criteria of
"deep freeze" (although I strongly recommend it).

Please judge it.

---
Kenichi Handa
handa@m17n.org

2011-02-21  Kenichi Handa  <handa@m17n.org>

	* mail/rmail.el (rmail-start-mail): Decode "encoded-words" of
	header components.

=== modified file 'lisp/mail/rmail.el'
--- lisp/mail/rmail.el	2011-01-15 03:50:47 +0000
+++ lisp/mail/rmail.el	2011-02-21 02:11:29 +0000
@@ -3449,6 +3449,16 @@
 	(setq yank-action (list 'insert-buffer replybuffer)))
     (setq others (cons (cons "cc" cc) others))
     (setq others (cons (cons "in-reply-to" in-reply-to) others))
+    (setq others
+	  (mapcar #'(lambda (elt)
+		      (cons (car elt) (if (stringp (cdr elt))
+					  (rfc2047-decode-string (cdr elt)))))
+		  others))
+    (if (stringp to) (setq to (rfc2047-decode-string to)))
+    (if (stringp in-reply-to)
+	(setq in-reply-to (rfc2047-decode-string in-reply-to)))
+    (if (stringp cc) (setq cc (rfc2047-decode-string cc)))
+    (if (stringp subject) (setq subject (rfc2047-decode-string subject)))
     (if same-window
 	(compose-mail to subject others
 		      noerase nil




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rmail-reply problem [Re: Deeper freeze for Emacs-23 branch soon]
  2011-02-21  2:30 ` rmail-reply problem [Re: Deeper freeze for Emacs-23 branch soon] Kenichi Handa
@ 2011-02-21 17:19   ` Chong Yidong
  2011-02-22  2:01     ` Kenichi Handa
  0 siblings, 1 reply; 4+ messages in thread
From: Chong Yidong @ 2011-02-21 17:19 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: emacs-devel

Kenichi Handa <handa@m17n.org> writes:

> I've just found that rmail-reply still inserts raw headers
> in a reply buffer as something like these:
>
>   From: =?utf-8?B?0JrQvtC90L7QvSDQkNGE0LDQvdCw0YHRjNC10LLQuNGH?= <zecoxut@vneshbank.ru>
>   Subject: =?utf-8?B?0JrQu9C10L3QvtCy0YvQuSDRgdC40YDQvtC/Lg==?=
>
> As a result, sending such a message results in
> doubly-decoded headers and thus mail clients receiving such
> messages don't show the correct strings.
>
> I have not noticed this problem because I've been using a
> special hook to workaround it.  :-(
>
> The simplest and safe fix seems to be the attached one.
> But, I'm not sure installing it satisfies the criteria of
> "deep freeze" (although I strongly recommend it).
>
> Please judge it.

Yes, this ought to be fixed for 23.3.  Your patch seems to do the right
thing; please commit it, and thanks for spotting this.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rmail-reply problem [Re: Deeper freeze for Emacs-23 branch soon]
  2011-02-21 17:19   ` Chong Yidong
@ 2011-02-22  2:01     ` Kenichi Handa
  0 siblings, 0 replies; 4+ messages in thread
From: Kenichi Handa @ 2011-02-22  2:01 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

In article <87fwrhz4n6.fsf@stupidchicken.com>, Chong Yidong <cyd@stupidchicken.com> writes:

> Kenichi Handa <handa@m17n.org> writes:
> > I've just found that rmail-reply still inserts raw headers
> > in a reply buffer as something like these:
> >
> >   From: =?utf-8?B?0JrQvtC90L7QvSDQkNGE0LDQvdCw0YHRjNC10LLQuNGH?= <zecoxut@vneshbank.ru>
> >   Subject: =?utf-8?B?0JrQu9C10L3QvtCy0YvQuSDRgdC40YDQvtC/Lg==?=
> >
> > As a result, sending such a message results in
> > doubly-decoded headers and thus mail clients receiving such
> > messages don't show the correct strings.
> >
> > I have not noticed this problem because I've been using a
> > special hook to workaround it.  :-(
> >
> > The simplest and safe fix seems to be the attached one.
> > But, I'm not sure installing it satisfies the criteria of
> > "deep freeze" (although I strongly recommend it).
> >
> > Please judge it.

> Yes, this ought to be fixed for 23.3.  Your patch seems to do the right
> thing; please commit it, and thanks for spotting this.

Ok, just done.

---
Kenichi Handa
handa@m17n.org



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-22  2:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-01  4:10 Deeper freeze for Emacs-23 branch soon Chong Yidong
2011-02-21  2:30 ` rmail-reply problem [Re: Deeper freeze for Emacs-23 branch soon] Kenichi Handa
2011-02-21 17:19   ` Chong Yidong
2011-02-22  2:01     ` Kenichi Handa

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).