-use PublicInbox::Spawn;
-
-sub new {
- my ($class, $git_dir, $writable) = @_;
- my $d = "$git_dir/public-inbox";
- if ($writable && !-d $d && !mkdir $d) {
- my $err = $!;
- -d $d or die "$d not created: $err";
- }
- new_file($class, "$d/msgmap.sqlite3", $writable);
-}