in reply to Re: Splitting folded MIME headers into indivual headers?
in thread Splitting folded MIME headers into indivual headers?
How would that work? A folded header line does contain one single \n, and then the next line begins with any whitespace. A newline (\n) followed by a non-whitespace is the beginning of a new header.
The whitespace a folded line begins with, may not neccessarly be a \n. In face \n would not be permitted, because a double \n (\n\n) would mark the start of body
Example of a non-folded header line, combined with a folded header line combined with a non-folded one:
This should result in:Subject: Hi you are beutiful Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Return-Path: <example@example.org>
$fixedheaders[0] = "Subject: Hi you are beutiful"; $fixedheaders[1] = "Content-Type: text/plain;\tformat=flowed;\tcharset +=\"iso-8859-1\";\treply-type=original"; $fixedheaders[2] = "Return-Path: <example@example.org>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Splitting folded MIME headers into indivual headers?
by roboticus (Chancellor) on Mar 02, 2015 at 21:06 UTC | |
|
Re^3: Splitting folded MIME headers into indivual headers?
by sebastiannielsen2 (Novice) on Mar 02, 2015 at 21:02 UTC |