{"id":18105397,"url":"https://github.com/vhdirk/notmuch-rs","last_synced_at":"2025-07-24T14:13:14.856Z","repository":{"id":30837821,"uuid":"126312938","full_name":"vhdirk/notmuch-rs","owner":"vhdirk","description":"Rust interface and bindings for notmuch","archived":false,"fork":false,"pushed_at":"2025-04-14T09:52:49.000Z","size":288,"stargazers_count":26,"open_issues_count":7,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-21T01:53:23.093Z","etag":null,"topics":["notmuch","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vhdirk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-22T09:42:23.000Z","updated_at":"2025-04-30T01:34:49.000Z","dependencies_parsed_at":"2022-07-24T20:32:16.869Z","dependency_job_id":null,"html_url":"https://github.com/vhdirk/notmuch-rs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vhdirk/notmuch-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhdirk%2Fnotmuch-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhdirk%2Fnotmuch-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhdirk%2Fnotmuch-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhdirk%2Fnotmuch-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vhdirk","download_url":"https://codeload.github.com/vhdirk/notmuch-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhdirk%2Fnotmuch-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266801543,"owners_count":23986372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["notmuch","rust"],"created_at":"2024-10-31T22:18:37.718Z","updated_at":"2025-07-24T14:13:14.829Z","avatar_url":"https://github.com/vhdirk.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# notmuch-rs\n\nThis is not much more than a wrapper for the [notmuch](https://notmuchmail.org/) C api.\n\n[![Build Status](https://travis-ci.org/vhdirk/notmuch-rs.svg?branch=master)](https://travis-ci.org/vhdirk/notmuch-rs)\n[![Crate version](https://img.shields.io/crates/v/notmuch.svg)](https://crates.io/crates/notmuch)\n[![Download statistics](https://img.shields.io/crates/d/notmuch.svg)](https://crates.io/crates/notmuch)\n[![License](https://img.shields.io/crates/l/notmuch.svg)](https://crates.io/crates/notmuch) [![Join the chat at https://gitter.im/notmuch-rs/Lobby](https://badges.gitter.im/notmuch-rs/Lobby.svg)](https://gitter.im/notmuch-rs/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n## Building\n\n**notmuch-rs** expects libnotmuch development files to be installed on your system.\n\n## Using\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nnotmuch = \"*\"\n```\n\nand this to your crate root:\n\n```rust\nextern crate notmuch;\n```\n\n## Example\n\n```rust\nextern crate notmuch;\n\nfn main() {\n    let mut mail_path = std::env::home_dir().unwrap();\n    mail_path.push(\".mail\");\n\n    let mut config_path = std::env::home_dir().unwrap();\n    config_path.push(\".config/custom-notmuch-config-path\");\n\n    let db = notmuch::Database::open_with_config(\n        \u0026mail_path,\n        notmuch::DatabaseMode::ReadOnly,\n        \u0026config_path,\n        None,\n    )\n    .unwrap();\n    let query = db.create_query(\"\").unwrap();\n    let mut threads = query.search_threads().unwrap();\n\n    for thread in threads {\n        println!(\"thread {:?} {:?}\", thread.subject(), thread.authors());\n    }\n}\n```\n\n## Concurrency\n\nNotmuch makes no claims regarding thread safety. It does not seem to use any\nthread locals, but I did not spot any locks. So, as far as I am concerned, it is\nnot thread safe. Hence, all pointers are internally tracked with `Rc`s.\n\n## Acknowledgements\n\nnotmuch-rs started out from the following projects:\n - https://github.com/Stebalien/notmuch-sys/blob/master/src/lib.rs\n - https://github.com/cmhamill/rust-notmuch\n\nAny contributions are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvhdirk%2Fnotmuch-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvhdirk%2Fnotmuch-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvhdirk%2Fnotmuch-rs/lists"}