[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 84c4cc5 2/2: Finish idna->puny changes in last Mess
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 84c4cc5 2/2: Finish idna->puny changes in last Message patch |
Date: |
Sun, 17 Apr 2016 17:30:55 +0000 |
branch: master
commit 84c4cc589ddd5fcd5bf5ca5256727255c4819043
Author: Lars Magne Ingebrigtsen <address@hidden>
Commit: Lars Magne Ingebrigtsen <address@hidden>
Finish idna->puny changes in last Message patch
* lisp/gnus/message.el (message-idna-to-ascii-rhs-1): Use puny
instead of idna functions.
---
lisp/gnus/message.el | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index fc339a4..1ca7c5c 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -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:? "