Zig bindings for the notmuch C library
0

Configure Feed

Select the types of activity you want to include in your feed.

more documentation updates and license change

Jeffrey C. Ollie (Mar 1, 2026, 6:06 PM -0600) 9a33aa47 75ce7822

+20 -87
+1 -1
.forgejo/workflows/lint.yaml
··· 1 1 # SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - # SPDX-License-Identifier: MIT 2 + # SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 name: Lint licensing 5 5
+1 -1
.forgejo/workflows/publish.yaml
··· 1 1 # SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - # SPDX-License-Identifier: MIT 2 + # SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 name: Publish docs 5 5
-51
.github/workflows/static.yml
··· 1 - # SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - # SPDX-License-Identifier: MIT 3 - 4 - name: Deploy docs to GitHub Pages 5 - 6 - on: 7 - push: 8 - branches: 9 - - main 10 - workflow_dispatch: 11 - 12 - 13 - concurrency: 14 - group: pages 15 - cancel-in-progress: false 16 - 17 - jobs: 18 - build: 19 - runs-on: ubuntu-latest 20 - permissions: 21 - contents: read 22 - steps: 23 - - name: Checkout 24 - uses: actions/checkout@v4 25 - - name: Setup GitHub Pages 26 - uses: actions/configure-pages@v5 27 - - name: Install Zig 28 - uses: mlugg/setup-zig@v1 29 - with: 30 - version: 0.14.0 31 - - name: Build docs 32 - run: | 33 - zig build-lib -femit-docs src/notmuch.zig 34 - - name: Upload Pages artifact 35 - id: upload 36 - uses: actions/upload-pages-artifact@v3 37 - with: 38 - name: github-pages 39 - path: ./docs 40 - 41 - deploy: 42 - runs-on: ubuntu-latest 43 - needs: build 44 - permissions: 45 - pages: write 46 - id-token: write 47 - steps: 48 - - name: Setup GitHub Pages 49 - uses: actions/configure-pages@v5 50 - - name: Deploy to GitHub Pages 51 - uses: actions/deploy-pages@v4
+1 -1
.gitignore
··· 1 1 # SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - # SPDX-License-Identifier: MIT 2 + # SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 /.zig-cache 5 5 /zig-out
-18
LICENSES/MIT.txt
··· 1 - MIT License 2 - 3 - Copyright (c) <year> <copyright holders> 4 - 5 - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 6 - associated documentation files (the "Software"), to deal in the Software without restriction, including 7 - without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 - copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 9 - following conditions: 10 - 11 - The above copyright notice and this permission notice shall be included in all copies or substantial 12 - portions of the Software. 13 - 14 - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 15 - LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO 16 - EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 17 - IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 18 - USE OR OTHER DEALINGS IN THE SOFTWARE.
+1 -1
README.md
··· 1 1 <!-- SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie --> 2 - <!-- SPDX-License-Identifier: MIT --> 2 + <!-- SPDX-License-Identifier: GPL-3.0-or-later --> 3 3 4 4 # notmuch.zig 5 5
+1 -1
REUSE.toml
··· 1 1 # SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - # SPDX-License-Identifier: MIT 2 + # SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 version = 1 5 5
+1 -1
build.zig
··· 1 1 // SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - // SPDX-License-Identifier: MIT 2 + // SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 const std = @import("std"); 5 5
+1 -1
build.zig.zon
··· 1 1 // SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - // SPDX-License-Identifier: MIT 2 + // SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 .{ 5 5 .name = .notmuch,
+1 -1
flake.nix
··· 1 1 # SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - # SPDX-License-Identifier: MIT 2 + # SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 { 5 5 inputs = {
+1 -1
src/Message.zig
··· 1 1 // SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - // SPDX-License-Identifier: MIT 2 + // SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 const Message = @This(); 5 5
+1 -1
src/MessagesIterator.zig
··· 1 1 // SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - // SPDX-License-Identifier: MIT 2 + // SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 const MessagesIterator = @This(); 5 5
+1 -1
src/Query.zig
··· 1 1 // SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - // SPDX-License-Identifier: MIT 2 + // SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 const Query = @This(); 5 5
+2 -1
src/TagsIterator.zig
··· 1 1 // SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - // SPDX-License-Identifier: MIT 2 + // SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 + //! Iterator over `notmuch` tags. 4 5 const TagsIterator = @This(); 5 6 6 7 const std = @import("std");
+3 -2
src/Thread.zig
··· 1 1 // SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - // SPDX-License-Identifier: MIT 2 + // SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 + //! Zig wrapper around `notmuch` message thread APIs. 4 5 const Thread = @This(); 5 6 6 7 const std = @import("std"); ··· 15 16 16 17 thread: *c.notmuch_thread_t, 17 18 18 - /// Get the thread ID of 'thread'. 19 + /// Get the thread ID of `thread`. 19 20 /// 20 21 /// The returned string belongs to 'thread' and as such, should not be modified 21 22 /// by the caller and will only be valid for as long as the thread is valid,
+1 -1
src/ThreadsIterator.zig
··· 1 1 // SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - // SPDX-License-Identifier: MIT 2 + // SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 pub const ThreadsIterator = @This(); 5 5
+1 -1
src/enums.zig
··· 1 1 // SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - // SPDX-License-Identifier: MIT 2 + // SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 const std = @import("std"); 5 5
+1 -1
src/notmuch.c
··· 1 1 // SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - // SPDX-License-Identifier: MIT 2 + // SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 #include <stdlib.h> 5 5 #include "notmuch.h"
+1 -1
src/notmuch.zig
··· 1 1 // SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie 2 - // SPDX-License-Identifier: MIT 2 + // SPDX-License-Identifier: GPL-3.0-or-later 3 3 4 4 //! Zig bindings for the Notmuch C API. 5 5 //!