]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-mda
remove Email::Address dependency
[public-inbox.git] / script / public-inbox-mda
index 611e7c3887035d35d49381056bcca1937185ea24..6ac0e8c48d82befb762d813661c8bdb01332970a 100755 (executable)
@@ -9,7 +9,6 @@ my $usage = 'public-inbox-mda < rfc2822_message';
 
 use Email::Filter;
 use Email::MIME;
-use Email::Address;
 use File::Path::Expand qw/expand_filename/;
 use IPC::Run qw(run);
 use PublicInbox::MDA;
@@ -49,7 +48,7 @@ if (PublicInbox::MDA->precheck($filter, $dst->{address}) &&
        } elsif ($fcfg eq 'scrub') {
                $filter_arg = undef; # the default for legacy versions
        } else {
-               warn "publicinbox.$dst->{listname}.filter=$fcfg invalid\n";
+               warn "publicinbox.$dst->{name}.filter=$fcfg invalid\n";
                warn "must be either 'scrub' or 'reject' (the default)\n";
        }
 
@@ -65,7 +64,7 @@ if (PublicInbox::MDA->precheck($filter, $dst->{address}) &&
                        };
                        my $git = PublicInbox::Git->new($main_repo);
                        my $im = PublicInbox::Import->new($git,
-                                               $dst->{listname}, $recipient);
+                                               $dst->{name}, $recipient);
                        if (defined $im->add($msg)) {
                                $im->done;
                                $filter->ignore; # exits