Re: [RFC/PATCH 3/3] mailinfo: handle in-body header continuations
- From
Jeff King <peff@peff.net>
- Date
- Sep 16, 2016, 21:51 UTC
- Message-ID
- <20160916215140.eocblts556lzdk7k@sigill.intra.peff.net>
- In-Reply-To
- <0152df30db0972d61ff45b2b099ad1242aacd431.1474047135.git.jonathantanmy@google.com>
On Fri, Sep 16, 2016 at 10:37:24AM -0700, Jonathan Tan wrote:
Show 12 quoted lines
> Mailinfo currently handles multi-line headers, but it does not handle > multi-line in-body headers. Teach it to handle such headers, for > example, for this input: > > Subject: a very long > broken line > > Subject: another very long > broken line > > interpret the in-body subject to be "another very long broken line" > instead of "another very long".
This puzzled me; we should stop parsing in-body headers after the first blank line. But then I realized you probably meant the first "Subject" to be the real mail header.
I wonder if it would be more obvious with an example like:
From: ... Date: ... Subject: the actual mail subject
Subject: a very long
broken lineOr something.
-Peff