[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: better not have a non-header line after Subject
From: |
Chong Yidong |
Subject: |
Re: better not have a non-header line after Subject |
Date: |
Thu, 15 Jun 2006 14:37:48 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Richard Stallman <address@hidden> 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 address@hidden).
> From: Kevin Rodgers <address@hidden>
> Subject: Re: better not have a non-header line after Subject
> To: address@hidden
>
> 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).