From 5b4fde37adefa37508d131dbe013353ef3345051 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 19 Jul 2021 08:59:35 +0000 Subject: 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-, import- 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. --- lib/PublicInbox/LeiInput.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/PublicInbox/LeiInput.pm') diff --git a/lib/PublicInbox/LeiInput.pm b/lib/PublicInbox/LeiInput.pm index de2a8ff1..fa330df5 100644 --- a/lib/PublicInbox/LeiInput.pm +++ b/lib/PublicInbox/LeiInput.pm @@ -372,6 +372,7 @@ sub input_only_net_merge_all_done { # like Getopt::Long, but for +kw:FOO and -kw:FOO to prepare # for update_xvmd -> update_vmd +# returns something like { "+L" => [ @Labels ], ... } sub vmd_mod_extract { my $argv = $_[-1]; my $vmd_mod = {}; -- cgit v1.2.3-24-ge0c7