From ce18b29d175ef5f01f05d59c95bcf8e0cd40e611 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 19 Apr 2019 07:41:22 +0000 Subject: index: warn with info about the message as context This can help users track down the source of warnings when presented with imperfect emails. While we're at it, make the __WARN__ callback in t/v2writable.t a no-op since we don't check for warnings, there. --- t/v2writable.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 't/v2writable.t') diff --git a/t/v2writable.t b/t/v2writable.t index f1714175..2826513b 100644 --- a/t/v2writable.t +++ b/t/v2writable.t @@ -253,10 +253,9 @@ EOF } { - my @warn; my $x = 'x'x250; my $y = 'y'x250; - local $SIG{__WARN__} = sub { push @warn, @_ }; + local $SIG{__WARN__} = sub {}; $mime->header_set('Subject', 'long mid'); $mime->header_set('Message-ID', "<$x>"); ok($im->add($mime), 'add excessively long Message-ID'); -- cgit v1.2.3-24-ge0c7