emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: better not have a non-header line after Subject


From: Katsumi Yamaoka
Subject: Re: better not have a non-header line after Subject
Date: Fri, 16 Jun 2006 20:47:46 +0900
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

>>>>> In <address@hidden> Chong Yidong wrote:

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

Thanks.  Gnus checks for continuation header lines only when
posting news articles.  I've made it do so for mail messages as
well in the Gnus CVS repository.  The changes will be merged to
the Emacs CVS after a while.

(As for blank header lines, Gnus removes them silently using
`message-cleanup-headers'.)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]