Gnus development mailing list
 help / color / mirror / Atom feed
* [bugfixed] message-idna-to-ascii-rhs
@ 2008-12-03  2:32 Katsumi Yamaoka
  0 siblings, 0 replies; only message in thread
From: Katsumi Yamaoka @ 2008-12-03  2:32 UTC (permalink / raw)
  To: ding; +Cc: emacs-devel

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,




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-03  2:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-03  2:32 [bugfixed] message-idna-to-ascii-rhs Katsumi Yamaoka

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).