(message-idna-to-ascii-rhs): Use message-narrow-to-headers-or-head rather than
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 3 Dec 2008 02:32:38 +0000 (02:32 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 3 Dec 2008 02:32:38 +0000 (02:32 +0000)
 message-narrow-to-head since there will be the message header separator.

lisp/ChangeLog
lisp/message.el

index 2b193b0..3358c87 100644 (file)
@@ -1,3 +1,9 @@
+2008-12-03  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * message.el (message-idna-to-ascii-rhs): Use
+       message-narrow-to-headers-or-head rather than message-narrow-to-head
+       since there will be the message header separator.
+
 2008-11-29  Reiner Steib  <Reiner.Steib@gmx.de>
 
        * nnimap.el (nnimap-demule-use-string-to-multibyte): New temporary
index 403cc54..6942c77 100644 (file)
@@ -5657,7 +5657,7 @@ See `message-idna-encode'."
   (when message-use-idna
     (save-excursion
       (save-restriction
-       (message-narrow-to-head)
+       (message-narrow-to-headers-or-head)
        (message-idna-to-ascii-rhs-1 "From")
        (message-idna-to-ascii-rhs-1 "To")
        (message-idna-to-ascii-rhs-1 "Reply-To")