all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* better not have a non-header line after Subject
@ 2006-06-07 17:09 Dan Jacobson
  2006-06-08 15:29 ` Kevin Rodgers
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Dan Jacobson @ 2006-06-07 17:09 UTC (permalink / raw)
  Cc: bugs

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.

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

* Re: better not have a non-header line after Subject
  2006-06-07 17:09 better not have a non-header line after Subject Dan Jacobson
@ 2006-06-08 15:29 ` Kevin Rodgers
  2010-10-01 21:33 ` bug#7144: " Lars Magne Ingebrigtsen
       [not found] ` <mailman.0.1285969328.30247.bug-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 8+ messages in thread
From: Kevin Rodgers @ 2006-06-08 15:29 UTC (permalink / raw)


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

-- 
Kevin

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

* Re: better not have a non-header line after Subject
  2006-06-09 11:37 [ihs_4664@yahoo.com: Re: better not have a non-header line after Subject] Richard Stallman
@ 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; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ messages in thread
From: Richard Stallman @ 2006-06-16 15:06 UTC (permalink / raw)
  Cc: ding, emacs-devel

Thanks.

^ permalink raw reply	[flat|nested] 8+ 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; 8+ 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] 8+ messages in thread

* bug#7144: better not have a non-header line after Subject
  2006-06-07 17:09 better not have a non-header line after Subject Dan Jacobson
  2006-06-08 15:29 ` Kevin Rodgers
@ 2010-10-01 21:33 ` Lars Magne Ingebrigtsen
       [not found] ` <mailman.0.1285969328.30247.bug-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-01 21:33 UTC (permalink / raw)
  To: Dan Jacobson; +Cc: 7144, bugs

Dan Jacobson <jidanni@jidanni.org> writes:

> 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

That's how continuation lines work...

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen





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

* bug#7144: better not have a non-header line after Subject
       [not found] ` <mailman.0.1285969328.30247.bug-gnu-emacs@gnu.org>
@ 2010-10-01 21:48   ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-01 21:48 UTC (permalink / raw)
  To: 7144-done

Bug created by mistake.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen





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

end of thread, other threads:[~2010-10-01 21:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-07 17:09 better not have a non-header line after Subject Dan Jacobson
2006-06-08 15:29 ` Kevin Rodgers
2010-10-01 21:33 ` bug#7144: " Lars Magne Ingebrigtsen
     [not found] ` <mailman.0.1285969328.30247.bug-gnu-emacs@gnu.org>
2010-10-01 21:48   ` Lars Magne Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
2006-06-09 11:37 [ihs_4664@yahoo.com: Re: better not have a non-header line after Subject] Richard Stallman
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.