Gnus development mailing list
 help / color / mirror / Atom feed
* Re: better not have a non-header line after Subject
       [not found] <E1FofIZ-0003wp-Id@fencepost.gnu.org>
@ 2006-06-15 18:37 ` Chong Yidong
  2006-06-16 11:47   ` Katsumi Yamaoka
  2006-06-16 15:06   ` Richard Stallman
  0 siblings, 2 replies; 4+ messages in thread
From: Chong Yidong @ 2006-06-15 18:37 UTC (permalink / raw)
  Cc: ding, emacs-devel

Richard Stallman <rms@gnu.org> 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 <ihs_4664@yahoo.com>
> 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).

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: better not have a non-header line after Subject
  2006-06-15 18:37 ` better not have a non-header line after Subject Chong Yidong
@ 2006-06-16 11:47   ` Katsumi Yamaoka
  2006-06-19  9:10     ` Katsumi Yamaoka
  2006-06-16 15:06   ` Richard Stallman
  1 sibling, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2006-06-16 11:47 UTC (permalink / raw)
  Cc: rms, ding, emacs-devel

>>>>> In <87odwuz2mb.fsf@stupidchicken.com> Chong Yidong wrote:

> Richard Stallman <rms@gnu.org> 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).

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 <ihs_4664@yahoo.com>
>> 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).

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: better not have a non-header line after Subject
  2006-06-15 18:37 ` better not have a non-header line after Subject Chong Yidong
  2006-06-16 11:47   ` Katsumi Yamaoka
@ 2006-06-16 15:06   ` Richard Stallman
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2006-06-16 15:06 UTC (permalink / raw)
  Cc: ding, emacs-devel

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: better not have a non-header line after Subject
  2006-06-16 11:47   ` Katsumi Yamaoka
@ 2006-06-19  9:10     ` Katsumi Yamaoka
  0 siblings, 0 replies; 4+ messages in thread
From: Katsumi Yamaoka @ 2006-06-19  9:10 UTC (permalink / raw)
  Cc: emacs-devel

>>>>> In <b4m4pylb9ul.fsf@jpl.org> Katsumi Yamaoka wrote:

>>>>>> In <87odwuz2mb.fsf@stupidchicken.com> Chong Yidong wrote:

>> (I think message-mode needs to be fixed too; CC'ing ding@gnus.org).

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

I've made a minor change in docstring of `message-syntax-checks'
and updated the Mesage Info manual (both trunk and v5-10 branch).

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-06-19  9:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E1FofIZ-0003wp-Id@fencepost.gnu.org>
2006-06-15 18:37 ` better not have a non-header line after Subject Chong Yidong
2006-06-16 11:47   ` Katsumi Yamaoka
2006-06-19  9:10     ` Katsumi Yamaoka
2006-06-16 15:06   ` Richard Stallman

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