From 4e8176d66f5f2090966cea599bb840436ee2e78e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 5 Sep 2018 14:26:39 +0100 Subject: [PATCH] unfolding: exempt References Signed-off-by: Ian Jackson (cherry picked from commit 4cae2550adca858ce289d060a3afc68ad23ac8a7) (cherry picked from commit 986246af9b1351ba64b6764e0908facb83c7431b) --- stump/bin/submission.pl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/stump/bin/submission.pl b/stump/bin/submission.pl index 8a18853..565d2d4 100755 --- a/stump/bin/submission.pl +++ b/stump/bin/submission.pl @@ -342,13 +342,15 @@ sub readMessage { # In these cases, keep that in $readahead for now, # and process the previous header, which is in $_. # But, first, a wrinkle ... - push @unfolded, (m/^[^:]+:/ ? $& : '????') + if (!m/^(?:References):/i) { + push @unfolded, (m/^[^:]+:/ ? $& : '????') if s/\n(?=.)/ /g; - if (length $_ > 505) { #wtf - $_ = substr($_, 0, 500); - $_ =~ s/\n?$/\n/; - $readahead = $_; - $_ = $warning->("Next header truncated!"); + if (length $_ > 505) { #wtf + $_ = substr($_, 0, 500); + $_ =~ s/\n?$/\n/; + $readahead = $_; + $_ = $warning->("Next header truncated!"); + } } } else { # $_ is empty line at end of headers -- 2.30.2