]> Sergey Matveev's repositories - public-inbox.git/commit
watch: check for duplicates in ->over before spamcheck
authorEric Wong <e@yhbt.net>
Mon, 29 Jun 2020 10:34:17 +0000 (10:34 +0000)
committerEric Wong <e@yhbt.net>
Tue, 30 Jun 2020 03:05:21 +0000 (03:05 +0000)
commit1b356e8d587a9c1bb92a11ffce255a3d3c25747c
tree883f7f9a1efc0525d85542af26cd9726744f7155
parentfd7140782db39585e90e59f5fd0801bf42490570
watch: check for duplicates in ->over before spamcheck

It's cheaper to check for duplicates than run `spamc'
repeatedly when rechecking.  We already do this for
v1 with by using the "ls" command with fast-import,
but v2 requires checking against over.sqlite3.
lib/PublicInbox/Import.pm
lib/PublicInbox/V2Writable.pm
lib/PublicInbox/WatchMaildir.pm