about summary refs log tree commit homepage
path: root/script/public-inbox-mda
diff options
authorEric Wong <e@80x24.org>2019-01-05 10:41:15 +0000
committerEric Wong <e@80x24.org>2019-01-05 10:41:15 +0000
commit97c6b564fd79e47ae6fca8de273c2aeaf2f5bea5 (patch)
treeb6f2433ceafc18e00ff6dab20eca02352deb833e /script/public-inbox-mda
parent847c0309da7af8a16935f92bb1965f6a1ba538e7 (diff)
Clearly the AltId stuff was never tested for v2.  Ensure
this tricky filter (which reuses Msgmap to avoid introducing
new serial numbers) doesn't trigger deadlocks SQLite due
to opening a DB for writing multiple times.

I went through several iterations of this change before
going with this one, which is the least intrusive I could
Diffstat (limited to 'script/public-inbox-mda')
1 files changed, 1 insertions, 0 deletions
diff --git a/script/public-inbox-mda b/script/public-inbox-mda
index 183b915d..7486059d 100755
--- a/script/public-inbox-mda
+++ b/script/public-inbox-mda
@@ -81,6 +81,7 @@ if (ref($ret) && $ret->isa('Email::MIME')) { # filter altered message
         $! = 65; # EX_DATAERR 5.6.0 data format error
         die $filter->err, "\n";
 } # else { accept
+$filter = undef;
 PublicInbox::MDA->set_list_headers($mime, $dst);
 my $im = $dst->importer(0);