From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C92141F51A; Fri, 11 May 2018 19:20:18 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Cc: Konstantin Ryabitsev Subject: [PATCH 1/4] content_id: workaround quote handling change in Email::* modules Date: Fri, 11 May 2018 19:20:15 +0000 Message-Id: <20180511192018.6432-2-e@80x24.org> In-Reply-To: <20180511192018.6432-1-e@80x24.org> References: <20180511192018.6432-1-e@80x24.org> List-Id: I'm not entirely sure where the behavior change lies, but it seems to be in some of the latest CPAN versions of these modules. In any case, this only affects the test setup and not actual behavior. cf. https://public-inbox.org/meta/2a2bf0e1-fd1f-f8bf-95bc-dac47906ef43@linuxfoundation.org/ --- t/content_id.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/content_id.t b/t/content_id.t index 01ce65e..990eabe 100644 --- a/t/content_id.t +++ b/t/content_id.t @@ -23,11 +23,11 @@ my $reload = content_id(Email::MIME->new($mime->as_string)); is($orig, $reload, 'content_id matches after serialization'); foreach my $h (qw(From To Cc)) { - my $n = '"Quoted N\'Ame" '; - $mime->header_str_set($h, "$n"); + my $n = q("Quoted N'Ame" ); + $mime->header_set($h, "$n"); my $q = content_id($mime); - is($n, $mime->header($h), "content_id does not mutate $h:"); - $mime->header_str_set($h, 'Quoted N\'Ame '); + is($mime->header($h), $n, "content_id does not mutate $h:"); + $mime->header_set($h, 'Quoted N\'Ame '); my $nq = content_id($mime); is($nq, $q, "quotes ignored in $h:"); }