]> Sergey Matveev's repositories - public-inbox.git/commit
lei: start implementing inotify Maildir support
authorEric Wong <e@80x24.org>
Mon, 19 Jul 2021 08:59:35 +0000 (08:59 +0000)
committerEric Wong <e@80x24.org>
Thu, 22 Jul 2021 02:29:00 +0000 (02:29 +0000)
commit5b4fde37adefa37508d131dbe013353ef3345051
treebfd68b4f1fedf94464776a5760a4dc531f1d097e
parent7e1c18af5468c7708e28de759911ec5542d23c4b
lei: start implementing inotify Maildir support

This allows lei to automatically note keyword (message flag)
changes made to a Maildir and propagate it into lei/store:

lei add-watch --state=tag-ro /path/to/Maildir

This doesn't persist across restarts, yet.  In the future,
it will be applied automatically to "lei q" output Maildirs
by default (with an option to disable it).

State values of tag-rw, index-<ro|rw>, import-<ro|rw> will all
be supported for Maildir.

This represents a fairly major internal change that's fairly
intrusive, but the whole daemon-oriented design was to
facilitate being able to automatically monitor (and propagate)
Maildir/IMAP flag changes.
MANIFEST
lib/PublicInbox/DirIdle.pm
lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiAddWatch.pm [new file with mode: 0644]
lib/PublicInbox/LeiInput.pm
lib/PublicInbox/LeiLsWatch.pm [new file with mode: 0644]
lib/PublicInbox/LeiNoteEvent.pm [new file with mode: 0644]
lib/PublicInbox/LeiSearch.pm
lib/PublicInbox/LeiSelfSocket.pm [new file with mode: 0644]
lib/PublicInbox/LeiWatch.pm [new file with mode: 0644]
t/lei-watch.t [new file with mode: 0644]