about summary refs log tree commit homepage
path: root/script/public-inbox-mda
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-17 01:56:05 +0000
committerEric Wong <e@80x24.org>2016-06-17 01:57:26 +0000
commit78d765a8d03967d0dfd6ce6232ffad5c89319909 (patch)
tree7d18fefbd3fcf72ca44133c5e3f96b2df2a7c489 /script/public-inbox-mda
parent2f69c2938a9f6bd36740f050c9e2661206b17c34 (diff)
downloadpublic-inbox-78d765a8d03967d0dfd6ce6232ffad5c89319909.tar.gz
This prevents multiple update processes from stepping over
each other while called under the lock, and also allows the
new -watch process to update the index iff indexing was
desired.
Diffstat (limited to 'script/public-inbox-mda')
-rwxr-xr-xscript/public-inbox-mda9
1 files changed, 0 insertions, 9 deletions
diff --git a/script/public-inbox-mda b/script/public-inbox-mda
index 26b70cfb..145aa710 100755
--- a/script/public-inbox-mda
+++ b/script/public-inbox-mda
@@ -79,7 +79,6 @@ if (ref($ret) && $ret->isa('Email::MIME')) { # filter altered message
 } # else { accept
 
 PublicInbox::MDA->set_list_headers($mime, $dst);
-END { index_sync($main_repo) if $? == 0 };
 my $git = PublicInbox::Git->new($main_repo);
 my $im = PublicInbox::Import->new($git, $dst->{name}, $recipient);
 if (defined $im->add($mime)) {
@@ -107,11 +106,3 @@ sub do_spamc {
 
         ($? || $$out eq '') ? 0 : 1;
 }
-
-sub index_sync {
-        my ($git_dir) = @_;
-        eval {
-                require PublicInbox::SearchIdx;
-                PublicInbox::SearchIdx->new($git_dir, 2)->index_sync;
-        };
-}