1 # Copyright (C) 2016-2021 all contributors <meta@public-inbox.org>
2 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
6 use PublicInbox::TestCommon;
8 use_ok 'PublicInbox::Import';
9 use_ok 'PublicInbox::Git';
10 my ($tmpdir, $for_destroy) = tmpdir();
11 my $git_dir = "$tmpdir/a.git";
14 my $git = PublicInbox::Git->new($git_dir);
15 my $im = PublicInbox::Import->new($git, 'testbox', 'test@example');
17 $im->add(PublicInbox::Eml->new(<<'EOF'));
20 Subject: A subject line with a null =?iso-8859-1?q?=00?= see!
21 Message-ID: <null-test.a@example.com>
26 is(xsys(qw(git --git-dir), $git_dir, 'fsck', '--strict'), 0,