diff options
Diffstat (limited to 't/reply.t')
-rw-r--r-- | t/reply.t | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,8 +1,9 @@ -# Copyright (C) 2017-2020 all contributors <meta@public-inbox.org> +#!perl -w +# Copyright (C) 2017-2021 all contributors <meta@public-inbox.org> # License: AGPL-3+ <https://www.gnu.org/licenses/agpl-3.0.txt> use strict; -use warnings; use Test::More; +use PublicInbox::Config; use PublicInbox::Eml; use_ok 'PublicInbox::Reply'; @@ -15,7 +16,7 @@ my @q = ( while (@q) { my $input = shift @q; my $expect = shift @q; - my $res = PublicInbox::Reply::squote_maybe($input); + my $res = PublicInbox::Config::squote_maybe($input); is($res, $expect, "quote $input => $res"); } @@ -36,7 +37,7 @@ my $exp = [ '--in-reply-to=blah@example.com', '--to=from@example.com', '--cc=cc@example.com', - '--cc=to@example.com' + '--cc=to@example.com', ]; is_deeply($arg, $exp, 'default reply is to :all'); @@ -53,7 +54,7 @@ $exp = [ '--in-reply-to=blah@example.com', '--to=primary@example.com', '--cc=cc@example.com', - '--cc=to@example.com' + '--cc=to@example.com', ]; $ibx->{replyto} = ':list,Cc,To'; ($arg, $link) = PublicInbox::Reply::mailto_arg_link($ibx, $hdr); @@ -71,7 +72,7 @@ $exp = [ '--in-reply-to=blah@example.com', '--to=from@example$(echo .)com', '--cc=cc@example$(echo .)com', - '--cc=to@example$(echo .)com' + '--cc=to@example$(echo .)com', ]; is_deeply($arg, $exp, 'address obfuscation works'); is($link, '', 'no mailto: link given'); |