https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7224

--- Comment #15 from Alessandro Vesely <ves...@tana.it> ---
(In reply to Bill Cole from comment #14)
> Root bug: M:S:PMS:get_all_hdrs_in_rcvd_index_range() calls
> M:S:Message:get_pristine_header() and splits the returned text block on
> '/^/m' which leaves trailing linefeeds intact on each line. It then
> concatenates them with added linefeeds. 
> 
> To detangle this may take a bit of time.

Likely, callers of that function are somewhat buggy too.

The correct way, according to rfc5322, would be to unwrap header fields,
possibly leaving newlines in place.  In fact, the semantics of field contents
is independent on how they are wrapped, so CRLFs could be removed as well. 
Note that some servers, e.g. Courier-MTA, replace CRLFs with plain LFs.

jm2c

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to