-
- local $ENV{GIT_AUTHOR_NAME} = $name;
- local $ENV{GIT_AUTHOR_EMAIL} = $email;
- local $ENV{GIT_AUTHOR_DATE} = $date;
- local $ENV{GIT_COMMITTER_EMAIL} = $recipient;
- local $ENV{GIT_COMMITTER_NAME} = $dst->{listname};
-
- $filter->pipe(PublicInbox::MDA->cmd, $main_repo);
+ my $git = PublicInbox::Git->new($main_repo);
+ my $im = PublicInbox::Import->new($git,
+ $dst->{listname}, $recipient);
+ if (defined $im->add($msg)) {
+ $im->done;
+ $filter->ignore; # exits
+ }
+ # this message is similar to what ssoma-mda shows:
+ print STDERR "CONFLICT: Message-ID: ",
+ $msg->header_obj->header_raw('Message-ID'),
+ " exists\n";