From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67841 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: [bugfixed] message-idna-to-ascii-rhs Date: Wed, 03 Dec 2008 11:32:59 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228271615 10650 80.91.229.12 (3 Dec 2008 02:33:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2008 02:33:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: ding@gnus.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 03 03:34:38 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L7hZO-0004DV-7G for ged-emacs-devel@m.gmane.org; Wed, 03 Dec 2008 03:34:30 +0100 Original-Received: from localhost ([127.0.0.1]:55419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7hYD-0001SM-QT for ged-emacs-devel@m.gmane.org; Tue, 02 Dec 2008 21:33:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7hY9-0001S3-Fu for emacs-devel@gnu.org; Tue, 02 Dec 2008 21:33:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7hY7-0001Rn-3O for emacs-devel@gnu.org; Tue, 02 Dec 2008 21:33:12 -0500 Original-Received: from [199.232.76.173] (port=50127 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7hY6-0001Rk-U1 for emacs-devel@gnu.org; Tue, 02 Dec 2008 21:33:10 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]:41457) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L7hY6-0007Fi-Lc for emacs-devel@gnu.org; Tue, 02 Dec 2008 21:33:10 -0500 Original-Received: from localhost ([127.0.0.1]:35780) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1L7hY1-0004Vj-Ml; Tue, 02 Dec 2008 20:33:06 -0600 X-Hashcash: 1:20:081203:ding@gnus.org::4ylGZmldVAFESEFW:00006C6Z X-Hashcash: 1:20:081203:emacs-devel@gnu.org::Su99ZA6iLYmvmKxJ:000000000000000000000000000000000000000000B24q X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:BAK+JfmfLzpSGqHWCFwXgn+nxhQ= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106487 gmane.emacs.gnus.general:67841 Archived-At: 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,