GNU bug report logs - #8731
24.0.50; smtpmail-send-it encodes encoded message header

Previous Next

Package: emacs;

Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>

Date: Wed, 25 May 2011 18:10:03 UTC

Severity: normal

Found in version 24.0.50

Done: Katsumi Yamaoka <yamaoka <at> jpl.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8731 in the body.
You can then email your comments to 8731 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8731; Package emacs. (Wed, 25 May 2011 18:10:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Katsumi Yamaoka <yamaoka <at> jpl.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 25 May 2011 18:10:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: bug-gnu-emacs <at> gnu.org, Kenichi Handa <handa <at> m17n.org>
Subject: 24.0.50; smtpmail-send-it encodes encoded message header
Date: Wed, 25 May 2011 18:31:17 +0900
Handa-san,

The rfc2047.el encoder encodes things that look like encoded words
by default.  This prevents encoded words, that a user purposely
puts in a message subject or other, from being broken by a decoder.
Please try this:

(progn
  (pop-to-buffer "*testing*")
  (erase-buffer)
  (insert "Subject: 日本語\n")
  (sit-for 1)
  (mail-encode-header (point-min) (point-max))
  (sit-for 1)
  (mail-encode-header (point-min) (point-max)))

By your recent change in smtpmail.el, this is just what happens
when sending a mail using Gnus now.  Could you revert it?  Or
please let-bind `rfc2047-encode-encoded-words' to nil when running
`mail-encode-header'.

Regards,




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8731; Package emacs. (Fri, 27 May 2011 04:59:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kenichi Handa <handa <at> m17n.org>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: 24.0.50; smtpmail-send-it encodes encoded message header
Date: Fri, 27 May 2011 13:58:19 +0900
In article <b4m39k3gm8q.fsf <at> jpl.org>, Katsumi Yamaoka <yamaoka <at> jpl.org> writes:

> The rfc2047.el encoder encodes things that look like encoded words
> by default.  This prevents encoded words, that a user purposely
> puts in a message subject or other, from being broken by a decoder.
[...]
> By your recent change in smtpmail.el, this is just what happens
> when sending a mail using Gnus now.  Could you revert it?  Or
> please let-bind `rfc2047-encode-encoded-words' to nil when running
> `mail-encode-header'.

Thank yor for the report.  It seems that sendmail-send-it
has the same problem.  So, I've just installed this to
emacs-23 branch.

2011-05-27  Kenichi Handa  <handa <at> m17n.org>

	* mail/sendmail.el (mail-encode-header): Avoid double encoding by
	let-binding rfc2047-encode-encoded-words to nil.

---
Kenichi Handa
handa <at> m17n.org




Reply sent to Katsumi Yamaoka <yamaoka <at> jpl.org>:
You have taken responsibility. (Fri, 27 May 2011 05:22:02 GMT) Full text and rfc822 format available.

Notification sent to Katsumi Yamaoka <yamaoka <at> jpl.org>:
bug acknowledged by developer. (Fri, 27 May 2011 05:22:02 GMT) Full text and rfc822 format available.

Message #13 received at 8731-done <at> debbugs.gnu.org (full text, mbox):

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: Kenichi Handa <handa <at> m17n.org>
Cc: 8731-done <at> debbugs.gnu.org
Subject: Re: bug#8731: 24.0.50; smtpmail-send-it encodes encoded message header
Date: Fri, 27 May 2011 14:21:05 +0900
Handa-san wrote:
> Thank yor for the report.  It seems that sendmail-send-it
> has the same problem.  So, I've just installed this to
> emacs-23 branch.

Thank you for fixing it.  This thread is closed.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 24 Jun 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.