From 41c903370d019397e3209114734fce0565e90d3b Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 5 Aug 2025 12:14:24 +1200 Subject: [PATCH] Implement wordwrap We have been running a patch to wrap this line to 750 characters for the last .... forever I just took a look to see why and it seems it was based on an old rfc & 998 is the max now - although 78 is recommended & might be better https://datatracker.ietf.org/doc/html/rfc5322#section-2.1.1 https://storage.googleapis.com/civicrm/patches/38231167f0c789e0b368b38c1499973d562de65e87094b402156a6b928cc4c38/crm_3133.patch --- Mail/mime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mail/mime.php b/Mail/mime.php index 98b7aec..a1045a9 100644 --- a/Mail/mime.php +++ b/Mail/mime.php @@ -1531,7 +1531,7 @@ protected function setBody($type, $data, $isfile = false, $append = false) } else { $this->{$type} .= $data; } - + $this->{$type} = wordwrap($this->{$type}, 998); return true; }