]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/mid.t
mda: hoist out mda_filter_adjust
[public-inbox.git] / t / mid.t
diff --git a/t/mid.t b/t/mid.t
index 8c307c825d22a7e2747c8f35fb1df0909c798dcb..9ad10a9912d17b3bfcfc21d25d3ad49018fe5b5c 100644 (file)
--- a/t/mid.t
+++ b/t/mid.t
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2018 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2019 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use Test::More;
 use PublicInbox::MID qw(mid_escape mids references);
@@ -36,6 +36,10 @@ is(mid_escape('foo%!@(bar)'), 'foo%25!@(bar)');
        $mime->header_set('Message-ID', "<hello\tworld>");
        is_deeply(mids($mime->header_obj), ['helloworld'],
                'drop \t in Message-ID');
+
+       $mime->header_set('To', 'u@example.com');
+       $mime->header_set('References', '<hello> <world> <n> <u@example.com>');
+       is_deeply(references($mime->header_obj), [qw(hello world)]);
 }
 
 done_testing();