From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Cc: emacs-devel@gnu.org
Subject: [bugfixed] message-idna-to-ascii-rhs
Date: Wed, 03 Dec 2008 11:32:59 +0900 [thread overview]
Message-ID: <b4m63m2rns4.fsf@jpl.org> (raw)
Cc: emacs-devel
Hi,
When I send a message in which there is the Cc: line in the
beginning of the body like this, I got the following error:
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
message-idna-to-ascii-rhs-1("Cc")
message-idna-to-ascii-rhs()
message-generate-headers((From Subject Date (optional . In-Reply-To)...)
message-send-mail(nil)
message-send(nil)
message-send-and-exit(nil)
call-interactively(message-send-and-exit nil nil)
(In my case, `message-use-idna' is t.)
It was because the `message-idna-to-ascii-rhs' function failed
in narrowing the message buffer to the headers. In that case
there is the "--text follows this line--" line, so the function
should not use `message-narrow-to-head' that recognizes only the
first empty line as the message header separator. The same error
will happen if there is a recipient address that doesn't have a
domain part (i.e. a local user) in the header. Moreover, it is
bad that lines looking like headers containing non-ASCII domain
names in the message body are encoded.
I've replaced it with `message-narrow-to-headers-or-head' in both
the Gnus trunk and the Emacs trunk.
Regards,
reply other threads:[~2008-12-03 2:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=b4m63m2rns4.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=ding@gnus.org \
--cc=emacs-devel@gnu.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).