Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use notmuch's python bindings #9

Closed
agenbite opened this issue Jan 14, 2022 · 1 comment
Closed

Use notmuch's python bindings #9

agenbite opened this issue Jan 14, 2022 · 1 comment

Comments

@agenbite
Copy link
Contributor

agenbite commented Jan 14, 2022

While investigating how to change the separator of the authors list in the search view (which is | [bar+space] and should be , [comma+space] or something similar), I noticed that Dodo makes calls to notmuch through subprocess.

Wouldn't it be better to use notmuch's python bindings instead of calls to subprocess.run?

@akissinger
Copy link
Owner

When I experimented with python bindings about a year ago, I found them somewhat troublesome to set up, particularly if you want the latest ("notmuch2") bindings, it seems you need to build notmuch from the git repo.

I haven't seen a particularly good use-case for the python bindings yet, especially since notmuch already produces JSON which is pretty easy to handle from python. It might be worth looking into this again if we want to do some fancier stuff like displaying search results incrementally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants