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 libnotmuch to read notmuch config #756

Open
jorsn opened this issue Jun 18, 2024 · 4 comments · May be fixed by #757
Open

Use libnotmuch to read notmuch config #756

jorsn opened this issue Jun 18, 2024 · 4 comments · May be fixed by #757

Comments

@jorsn
Copy link
Member

jorsn commented Jun 18, 2024

This would require libnotmuch >= 5.4.

@ibuclaw

In my opinion, this issue is not a priority until after the next release, because it does not fix broken/bad behavior of astroid. The latter is the most important in the short term.

@ibuclaw
Copy link
Contributor

ibuclaw commented Jun 18, 2024

This would require libnotmuch >= 5.4.

@ibuclaw

In my opinion, this issue is not a priority until after the next release, because it does not fix broken/bad behavior of astroid. The latter is the most important in the short term.

Agreed, I already have a possible patch ready for this.

ibuclaw@a7c8ab5

@jorsn
Copy link
Member Author

jorsn commented Jun 18, 2024

Thanks, I'll have a look at this. If it is easy/ready and cleans up code, we might still do it for the new release.

@jorsn
Copy link
Member Author

jorsn commented Jun 18, 2024

This could also fix #714.

@ibuclaw
Copy link
Contributor

ibuclaw commented Jun 19, 2024

Thanks, I'll have a look at this. If it is easy/ready and cleans up code, we might still do it for the new release.

I think mostly the tests haven't been properly fixed up, but I've gone through each fail case to make sure it's handled gracefully.

In the astroid config, only the path to the notmuch config is required (no changes here then). This is then passed to the *_open_with_config function to get the rest, rather than doing all parsing on astroid's side.

I don't think I've checked whether the notmuch config can be inferred from the library/environment when missing from astroid.

This was referenced Jun 29, 2024
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

Successfully merging a pull request may close this issue.

2 participants