]> Sergey Matveev's repositories - public-inbox.git/commit
lei refresh-mail-sync: replace prune-mail-sync
authorEric Wong <e@80x24.org>
Fri, 17 Sep 2021 01:56:39 +0000 (20:56 -0500)
committerEric Wong <e@80x24.org>
Fri, 17 Sep 2021 04:41:03 +0000 (04:41 +0000)
commit1323196d1df67db5cb47a171a60236049c1e5ce5
treee81ed65e5659a1e8d052a19acca8274f565b0a68
parent40e1f1612777251169fe9fb0d81bc5d062dd72c8
lei refresh-mail-sync: replace prune-mail-sync

Merely pruning mail synchronization information was
insufficient for Maildir: renames are common in Maildir
and we need to detect them after-the-fact when lei-daemon
isn't running.

Running this command could make "lei index" far more
useful...

v2: close R/O mail_sync.sqlite3 dbh before fork
  Keeping the DB file handle open across fork can cause bad things
  to happen even if we don't use it since sqlite3 itself still knows
  about it (but doesn't know Perl code doesn't know about it).
MANIFEST
lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiRefreshMailSync.pm [moved from lib/PublicInbox/LeiPruneMailSync.pm with 62% similarity]
lib/PublicInbox/LeiStore.pm
t/lei-export-kw.t
t/lei-refresh-mail-sync.t [new file with mode: 0644]