]> Sergey Matveev's repositories - public-inbox.git/commitdiff
import_slrnspool: use ssoma-mda instead
authorEric Wong <e@80x24.org>
Sun, 11 Jan 2015 11:03:41 +0000 (11:03 +0000)
committerEric Wong <e@80x24.org>
Sun, 11 Jan 2015 11:03:41 +0000 (11:03 +0000)
Some mailing lists (e.g. git@vger.kernel.org) accept messages
via Bcc: and possibly other things which get rejected by
the strict PublicInbox::Filter rules.  So rely on ssoma-mda
instead.

This prefers a recent revision of ssoma-mda (commit 7fce38e9
onwards) to display subject/author/date information in the
commit message.

scripts/import_slrnspool

index ea7a97bf69689bdf85950264d9919cd1fccd5b17..b3a1b1d88be81409868fc59e68b603b5c3f8ca5a 100755 (executable)
@@ -17,11 +17,10 @@ sub usage { "Usage:\n".join('',grep(/\t/, `head -n 10 $0`)) }
 my $spool = shift @ARGV or die usage();
 my $recipient = $ENV{ORIGINAL_RECIPIENT};
 defined $recipient or die usage();
-my @mda = qw(public-inbox-mda);
 my $config = PublicInbox::Config->new;
 my $cfg = $config->lookup($recipient);
 defined $cfg or exit(1);
-use Data::Dumper; print STDERR Dumper($cfg);
+my @mda = (qw(ssoma-mda -1), $cfg->{mainrepo});
 
 sub get_min {
        my ($cfg) = @_;