From: Ian Jackson Date: Wed, 5 Sep 2018 13:40:47 +0000 (+0100) Subject: truncation: include header name in warning header X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?p=modbot-ulm.git;a=commitdiff_plain;h=d947dfebe7c73756167b34ba79938db860680bec truncation: include header name in warning header Signed-off-by: Ian Jackson (cherry picked from commit 8ef141149699a8e07868a9110583763f6c1aa7b0) --- diff --git a/stump/bin/submission.pl b/stump/bin/submission.pl index d6f5a40..fa98e93 100755 --- a/stump/bin/submission.pl +++ b/stump/bin/submission.pl @@ -349,7 +349,8 @@ sub readMessage { $_ = substr($_, 0, 500); $_ =~ s/\n?$/\n/; $readahead = $_; - $_ = $warning->("Next header truncated!"); + m/^[0-9a-z-]+/i; + $_ = $warning->("Next header ($&) truncated!"); } } } else {