From d947dfebe7c73756167b34ba79938db860680bec Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 5 Sep 2018 14:40:47 +0100 Subject: [PATCH] truncation: include header name in warning header Signed-off-by: Ian Jackson (cherry picked from commit 8ef141149699a8e07868a9110583763f6c1aa7b0) --- stump/bin/submission.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.30.2