Function: message-idna-to-ascii-rhs
message-idna-to-ascii-rhs is an interactive and byte-compiled function
defined in message.el.gz.
Signature
(message-idna-to-ascii-rhs)
Documentation
Possibly IDNA encode non-ASCII domain names in From:, To: and Cc: headers.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/message.el.gz
(defun message-idna-to-ascii-rhs ()
"Possibly IDNA encode non-ASCII domain names in From:, To: and Cc: headers."
(interactive nil message-mode)
(when message-use-idna
(save-excursion
(save-restriction
;; `message-narrow-to-head' that recognizes only the first empty
;; line as the message header separator used to be used here.
;; However, since there is the "--text follows this line--" line
;; normally, it failed in narrowing to the headers and potentially
;; caused the IDNA encoding on lines that look like headers in
;; the message body.
(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")
(message-idna-to-ascii-rhs-1 "Mail-Reply-To")
(message-idna-to-ascii-rhs-1 "Mail-Followup-To")
(message-idna-to-ascii-rhs-1 "Cc")))))