Skip to content

Automatic thread_index.refresh after poll #452

@dnebauer

Description

@dnebauer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions