Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: message-idna problem
Date: Thu, 25 Sep 2008 19:54:06 +0900	[thread overview]
Message-ID: <b4m3ajoebrx.fsf@jpl.org> (raw)

Hi,

When I send a mail containing the From header like

From: 山岡 克美 <yamaoka@jpl.org>

the *Messages* buffer collects the following warnings:

Unknown symbol: 山
Unknown symbol: 岡
Unknown symbol: 克
Unknown symbol: 美

I've never noticed this since I rarely use Japanese names in the
message header.  It arises if `message-use-idna' is non-nil and
there is a name of which the first letter is a non-ASCII character
in the header.

Those warnings are the ones that `ietf-drums-parse-addresses'
(a.k.a. `mail-header-parse-addresses') that
`message-idna-to-ascii-rhs-1' uses issues.  Assuming there will
potentially be non-ASCII names when `message-idna-to-ascii-rhs-1'
runs, how about using `mail-extract-address-components' rather
than an ietf-drums- function that does not support non-ASCII
characters?  This problem might not cause a real harm, though.

--- message.el~	2008-09-24 21:41:53 +0000
+++ message.el	2008-09-25 10:52:07 +0000
@@ -5633,7 +5633,8 @@
 		(mapcar (lambda (rhs) (or (cadr (split-string rhs "@")) ""))
 			(mapcar 'downcase
 				(mapcar
-				 'car (mail-header-parse-addresses field))))))
+				 'cadr
+				 (mail-extract-address-components field t))))))
 	(setq ace (if (string-match "\\`[[:ascii:]]+\\'" rhs)
 		      rhs
 		    (downcase (idna-to-ascii rhs))))

Regards,



             reply	other threads:[~2008-09-25 10:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-25 10:54 Katsumi Yamaoka [this message]
2008-09-25 16:48 ` Reiner Steib
2008-09-25 23:11   ` Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4m3ajoebrx.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).