-
-
Notifications
You must be signed in to change notification settings - Fork 66
Description
In my notmuch pre-new hook I am deleting mail files with the tag 'delete' as per these notmuch instructions. After astroid polls I have to manually refresh the thread index, i.e., press $
to trigger thread_index.refresh
, to remove deleted mail.
I have played with capturing the notmuch database revision before deletion and running astroid --refresh <revision>
as the last step in poll.sh
. The problem, of course, is that running this command in poll.sh
starts another instance of astroid. If I manually run this command after a poll, it appears to execute successfully and returns success, but the thread index in the running astroid instance does not refresh.
Is there anyway to automate a refresh of the thread index following each poll, i.e., simulate pressing the $
key?