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

Add open_with_config #39

Merged
merged 1 commit into from
May 2, 2022
Merged

Conversation

elizagamedev
Copy link
Contributor

The other open functions have since been deprecated in the C API, and
the current implementation of open in notmuch-rs doesn't support
passing null pointers. Adding open_with_config and allowing it to
accept Option types fixes this problem in a backwards-compatible way.

I would have preferred to add a String to NotmuchError instead of
creating NotmuchVerboseError, but I didn't want to break
compatibility.

The other open functions have since been deprecated in the C API, and
the current implementation of `open` in notmuch-rs doesn't support
passing null pointers. Adding `open_with_config` and allowing it to
accept `Option` types fixes this problem in a backwards-compatible way.

I would have preferred to add a `String` to `NotmuchError` instead of
creating `NotmuchVerboseError`, but I didn't want to break
compatibility.
@vhdirk
Copy link
Owner

vhdirk commented May 2, 2022

This looks good! Thanks!

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 this pull request may close these issues.

2 participants