From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63357 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: better not have a non-header line after Subject Date: Thu, 15 Jun 2006 14:37:48 -0400 Message-ID: <87odwuz2mb.fsf@stupidchicken.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150396739 16010 80.91.229.2 (15 Jun 2006 18:38:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Jun 2006 18:38:59 +0000 (UTC) Cc: ding@gnus.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 15 20:38:57 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fqwjt-0006oh-L9 for ged-emacs-devel@m.gmane.org; Thu, 15 Jun 2006 20:38:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fqwjt-0000e8-1p for ged-emacs-devel@m.gmane.org; Thu, 15 Jun 2006 14:38:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fqwj8-0000Ad-KS for emacs-devel@gnu.org; Thu, 15 Jun 2006 14:37:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fqwj5-000096-2Y for emacs-devel@gnu.org; Thu, 15 Jun 2006 14:37:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fqwj4-00008w-Ty for emacs-devel@gnu.org; Thu, 15 Jun 2006 14:37:54 -0400 Original-Received: from [18.19.1.138] (helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FqwsG-00041J-V0; Thu, 15 Jun 2006 14:47:25 -0400 Original-Received: by cyd (Postfix, from userid 1000) id 2A1494E802; Thu, 15 Jun 2006 14:37:48 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Fri, 09 Jun 2006 07:37:07 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:55917 gmane.emacs.gnus.general:63357 Archived-At: Richard Stallman writes: > Could someone please debug this? I checked in the required fix to sendmail.el. Thanks. (I think message-mode needs to be fixed too; CC'ing ding@gnus.org). > From: Kevin Rodgers > Subject: Re: better not have a non-header line after Subject > To: bug-gnu-emacs@gnu.org > > Dan Jacobson wrote: >> Both plain emacs 22 or "No gnus", send differently mangled mail when given >> >> Subject: bla, and >> a second non header line starting in column 1 >> >> Garbage in, garbage out, but not caught. > > There is code in mail-send to detect that: > > ;; Complain about any invalid line. > (goto-char (point-min)) > (while (< (point) (mail-header-end)) > (unless (looking-at "[ \t]\\|.*:\\|$") > (push-mark opoint) > (error "Invalid header line (maybe a continuation line > lacks initial whitespace)")) > (forward-line 1)) > > But mail-header-end seems to be broken: it calls rfc822-goto-eoh instead > of searching for the mail-header-separator (either the text on a line by > itself or the category text property value).