Subject: bug#8731: closed (Re: bug#8731: 24.0.50; smtpmail-send-it encodes encoded message header)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 27 May 2011 05:22:02 +0000

Your bug report

#8731: 24.0.50; smtpmail-send-it encodes encoded message header

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
8731: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8731
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#8731: 24.0.50; smtpmail-send-it encodes encoded message header
From: Katsumi Yamaoka <[email-masked]>
To: Kenichi Handa <[email-masked]>
Cc: [email-masked]
Date: Fri, 27 May 2011 14:21:05 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

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.

Subject: 24.0.50; smtpmail-send-it encodes encoded message header
From: Katsumi Yamaoka <[email-masked]>
To: [email-masked], Kenichi Handa <[email-masked]>
Date: Wed, 25 May 2011 18:31:17 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

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,