Bug 7697

Summary: Util::wrap inserts empty lines between many long strings
Product: Spamassassin Reporter: Henrik Krohns <apache>
Component: LibrariesAssignee: SpamAssassin Developer Mailing List <dev>
Status: NEW ---    
Severity: minor CC: bz.apache.org, dave
Priority: P2    
Version: SVN Trunk (Latest Devel Version)   
Target Milestone: Undefined   
Hardware: All   
OS: All   
Whiteboard:
Attachments: A dummy message to reproduce the problem.

Description Henrik Krohns 2019-03-02 19:25:29 UTC
Refer from bug 7672

Atleast in the case of
Mail::SpamAssassin::Util::wrap($hdr, "\t", "", 79, 0, '(?<=[\s,])');

Multiple successive 79 char strings create blank lines in the output between them, which I think is not wanted. It seems code doesn't handle the case of multiple long strings. Needs some revamping and testing that fixing doesn't brake anything..
Comment 1 martin 2019-08-13 10:28:50 UTC
Created attachment 5669 [details]
A dummy message to reproduce the problem.

Possibly related to this bug report:

With the following in the config file:

    add_header all Relays-Untrusted _RELAYSUNTRUSTED_

the attached demo mail will produce a similar result, due to the very long hostname in the Received: header. I suspect it's the same problem.
Comment 2 Henrik Krohns 2019-10-09 05:20:21 UTC
*** Bug 7758 has been marked as a duplicate of this bug. ***