]> code.delx.au - gnu-emacs/commitdiff
Finish idna->puny changes in last Message patch
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 17 Apr 2016 17:30:44 +0000 (19:30 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 17 Apr 2016 17:30:44 +0000 (19:30 +0200)
* lisp/gnus/message.el (message-idna-to-ascii-rhs-1): Use puny
instead of idna functions.

lisp/gnus/message.el

index fc339a4585f1f8b0bd5f4ddf3a11b139fcb1e464..1ca7c5cafef737f6f6cf5997776a9b46ebfb2a31 100644 (file)
@@ -48,6 +48,7 @@
 (require 'dired)
 (require 'mm-util)
 (require 'rfc2047)
+(require 'puny)
 
 (autoload 'mailclient-send-it "mailclient")
 
@@ -1910,7 +1911,6 @@ You must have the \"hashcash\" binary installed, see `hashcash-path'."
 (autoload 'gnus-output-to-rmail "gnus-util")
 (autoload 'gnus-request-post "gnus-int")
 (autoload 'gnus-server-string "gnus")
-(autoload 'idna-to-ascii "idna")
 (autoload 'message-setup-toolbar "messagexmas")
 (autoload 'mh-new-draft-name "mh-comp")
 (autoload 'mh-send-letter "mh-comp")
@@ -5851,7 +5851,7 @@ subscribed address (and not the additional To and Cc header contents)."
        ;; the domain part, i.e., if it is a local user's address.
        (setq ace (if (string-match "\\`[[:ascii:]]*\\'" rhs)
                      rhs
-                   (downcase (idna-to-ascii rhs))))
+                   (downcase (puny-encode-domain rhs))))
        (when (and (not (equal rhs ace))
                   (or (not (eq message-use-idna 'ask))
                       (y-or-n-p (format "Replace %s with %s in %s:? "