]> Sergey Matveev's repositories - public-inbox.git/blobdiff - public-inbox-learn
view: further reduce size of attribution/timestamp
[public-inbox.git] / public-inbox-learn
index d3a05abe4cfcb1e17d7d37532343dd756d336961..3b0dae8e9c04217334ff8f7173a6ecae245d0f5e 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl -w
-# Copyright (C) 2014, Eric Wong <normalperson@yhbt.net> and all contributors
+# Copyright (C) 2014-2015 all contributors <meta@public-inbox.org>
 # License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
 my $usage = "$0 (spam|ham) < /path/to/message";
 use strict;
@@ -76,5 +76,11 @@ foreach my $recipient (keys %dests) {
        if (!run([qw(spamc -L), $train], \$in, @output)) {
                $err = 1;
        }
+
+       $err or eval {
+               require PublicInbox::SearchIdx;
+               PublicInbox::SearchIdx->new($git_dir, 2)->index_sync;
+       };
 }
+
 exit $err;