Bug 7697 - Util::wrap inserts empty lines between many long strings
Summary: Util::wrap inserts empty lines between many long strings
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Libraries (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: All All
: P2 minor
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
: 7758 (view as bug list)
Depends on:
Reported: 2019-03-02 19:25 UTC by Henrik Krohns
Modified: 2019-10-09 05:20 UTC (History)
2 users (show)

Attachment Type Modified Status Actions Submitter/CLA Status
A dummy message to reproduce the problem. application/mbox None martin [NoCLA]

Note You need to log in before you can comment on or make changes to this bug.
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. ***