On Mon, May 13, 2013 at 08:46:11PM +0200, Suvayu Ali wrote:
I thought one possible solution might be introducing a hook to what ever function that does the file renaming when maildir flags are updated. I'm not sure how one can introduce a hook though. Another option would be to add a inotify watch on the maildir currently mutt is viewing. And follow-up on any inotify events.
Well, with virtual folders you don't have one maildir, there is nothing like "the maildir currently mutt is viewing" ;-)
In the function nm_check_database() we check for notmuch DB mtime changes, so we're able to detect changes. The question is if this function works always correctly together with nm_sync() where we write our (in-mutt) changes back to maildirs.
Karel