#!/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;
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;