- if (do_spamc($simple, \$filtered)) {
- $filter->simple(Email::Simple->new($filtered));
- $filter->pipe(MDA, '-1', $main_repo);
+ if (do_spamc($msg, \$filtered)) {
+ $msg = Email::MIME->new($filtered);
+ PublicInbox::MDA->set_list_headers($msg, $dst);
+ $filter->simple($msg);
+
+ my ($name, $email, $date) =
+ PublicInbox::MDA->author_info($msg);
+ 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);