summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-02-22debian: changelog for 0.39~rc0-1debian/0.39_rc0-1archive/debian/0.39_rc0-10.39_rc0David Bremner
Close a few Debian bugs.
2025-02-22version: bump to 0.39~rc0David Bremner
Normally this would be done as part of the release process, rather than committed intially to master, but in this case I want to test the change to python bindings version handling in the previous commit.
2025-02-22bindings/python: strip ~ from python versionDavid Bremner
Inspired by a suggestion of Xiyue Deng, this change ensures that the python bindings have a version that recent setuptools is happy with. This will have the unfortunate side effect of the python view of the version number differing from the rest of notmuch for the pre-releases. The alternative would be to transform the version numbers for the Debian packages for the pre-releases, as there is now no version scheme that works for both, since setuptools started rejecting versions with "~" in them. If we decide to go the latter way in the future, this change is easy to revert.
2025-02-22build: remove handling for legacy python bindings versionDavid Bremner
The legacy python bindings are no longer built.
2025-02-22python: move legacy python bindings to contrib.David Bremner
This forces us to verify the build and test suite completes without the legacy python bindings. As of this commit the legacy python bindings are unsupported by notmuch. They are provided in contrib/ for now, but will most likely eventually be removed from there as well. We recommend that downstream/distro packagers phase out their packages for the legacy python bindings.
2025-02-22python: fix documentation typoDavid Bremner
The method is actually called 'getall'.
2025-02-22test/message-property: convert python tests from legacy bindingsDavid Bremner
One test is deleted since that method is not provided by the new bindings. Similar things can be done by accessing the PropertiesMap returned by properties. This change is a prelude to removing the legacy bindings from the build.
2025-02-22test/count: convert library test from python to CDavid Bremner
The new python bindings do not support modifying query objects, so convert to C. There is a bit more boilerplate to handle errors but otherwise it is essentially a line by line translation.
2025-02-22test: drop tests for legacy python bindingsDavid Bremner
This is a prelude to removing the legacy bindings from the build.
2025-02-22debian: stop packaging legacy python bindings.David Bremner
This is in preparation for moving them to contrib and dropping them from the test suite upstream.
2025-02-18notmuch-show-imenu-prev-index-position-function: Don't recenterDamien Cassou
The previous version of notmuch-show-imenu-prev-index-position-function was calling notmuch-show-previous-message which was recentering the window. This is a problem when which-func-mode is active because which-func-mode is called each time the user moves point around. Because this function is only meant to be executed by imenu, there is no reason to recenter the window. For the same reason, the new implementation doesn't have to follow strictly how notmuch-show-previous-message is implemented because imenu only places point at very specific locations before calling notmuch-show-imenu-prev-index-position-function.
2025-02-07fix segfaults in Python cFFI API and add testsLars Kotthoff
Several iterators in the Python cFFI API destroyed the objects they iterated over too early (when the iterator was exhausted), causing subsequent segfaults in common cases like creating a list from the iterator. This patch fixes the segfaults and add tests to ensure that they don't happen again.
2025-01-26Revert "bump versions to 0.39~rc0"David Bremner
This reverts commit deea909993513ec6fd800b7571649582d994dcbc.
2025-01-26docs: add 2025 to copyright yearsDavid Bremner
2025-01-26bump versions to 0.39~rc0David Bremner
Prepare to release a snapshot for testing
2025-01-26debian: update changelog for 0.39~rc0-1David Bremner
2024-12-08docs: Update intersphinx_mappingFredrik Lönnegren
Running `make dirhtml` in bindings/python/docs generates the following error: ``` sphinx-build -b dirhtml -d build/doctrees source build/dirhtml Running Sphinx v8.0.2 loading translations [en]... done making output directory... done Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`. ERROR: Invalid value `None` in intersphinx_mapping['https://docs.python.org/']. Expected a two-element tuple or list. ``` This commit updates intersphinx_mapping to follow the latest docs [1] [1] https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html Signed-off-by: Fredrik Lönnegren <fredrik@frelon.se>
2024-08-17NEWS: deprecate Emacs older than 27.1David Bremner
The current requirement of 25.1 is more than 5 years old at this point.
2024-08-16emacs/mua: Correct autoload cookiesPengji Zhang
This is a follow-up to [1: 8d06dfce]. Per Info node '(elisp)Autoload', autoload cookies should start with ';;;###'. 1: 2024-04-04 8d06dfce175593aebae9a759c9167df4988a3444 emacs: Autoload notmuch-user-agent related functions
2024-08-09Revert "emacs: Fix saved-search buffer titles"David Bremner
This reverts commit bc989209171d406b3671024542e59b86b0ecb23d. This was applied unintentionally to master while still under discussion.
2024-08-06emacs/tree: sanitize subjects when drawing treeDavid Bremner
This fixes the bug reported in id:6F2EF901-8B4B-44FF-83C5-22F732BA95A6@gmail.com Unfortunately it turns out our test data has several tabs in the subject lines. The expected output was updated to reflect their removal and the ripple effect of several more subjects matching the previous ones.
2024-08-06test/emacs-tree: add known broken test for subject with CR/NLDavid Bremner
The test is intentionally vague as it's hard to pin down the correct output before the code is fixed.
2024-08-06test/emacs-show: add regression test for subjects with CR/NLDavid Bremner
This subject is known to be problematic for notmuch-tree.
2024-08-06CLI/show: warn if crypto options are used with mbox formatDavid Bremner
This limitation seems somewhat hard to fix, but at least try to warn users when combining crypto operations with mbox output format. Because the default is --decrypt=auto, the warning is omitted if --decrypt=auto is specified. While this is not great, it seems more wrong to always warn, or to change the default because of this.
2024-08-06emacs: Fix saved-search buffer titlesRudolf Adamkovič
REPRODUCTION STEPS: (let ((notmuch-saved-searches (list (list :name "Emacs List" :query "query:lists-emacs") (list :name "All Lists" :query "query:lists")))) (notmuch-search-buffer-title "query:lists-emacs" )) ACTUAL: "*notmuch-saved-search-[ All Lists ]-emacs*" EXPECTED: "*notmuch-saved-search-Emacs List*"
2024-08-05devel: document emacs keybindings u and UDavid Bremner
Thanks to changing the column widths to accomodate longer function names, the diff is rather large, but the content is two new rows for 'u' and 'U'
2024-08-05Merge branch 'release'David Bremner
2024-08-05debian: migrate build dependency to pkgconfdebian/0.38.3-3archive/debian/0.38.3-3David Bremner
pkgconf is apparently the annointed successor to pkg-config, at least in Debian.
2024-08-05debian: skip T810-tsan everywhereDavid Bremner
Not sure whose fault the failure is, but for now skip the test.
2024-08-05debian: drop build conflicts on gdb-minimalDavid Bremner
Recent gdb Provides gdb-minimal, so we can't conflict with it and require gdb. This may cause problems for people building in dirty environments for older gdb, but there is not much we can do.
2024-08-05Add Astroid as an alternative Recommends; this one is a GUI clientNicholas D Steeves
that may be less intimidating for new users.
2024-08-05Allow neomutt to fulfill the "mutt" requirement of notmuch-mutt, andNicholas D Steeves
add related Enhances (Closes: #1029190).
2024-08-05Add changelog entry for James McCoy's workNicholas D Steeves
2024-08-05Convert notmuch-vim to Vim addon policy 2.0James McCoy
The new Vim addon policy relies on Vim's native package functionality, rather than the Debian-specific vim-addons tool. This allows the addon to be immediately available when the package is installed, rather than requiring extra setup by the user. * Install notmuch-vim to its own /usr/share/notmuch-vim directory, so the files are self-contained. * Remove vim-addon-manager from notmuch-vim Depends * Add ${vim-addon:Depends} to notmuch-vim Depends to ensure it has the required relationships on Vim/Neovim. * Build-Depend on dh-sequence-vim-addon to automatically setup the required symlinks for Vim and Neovim to see the addon. Signed-off-by: James McCoy <jamessan@debian.org>
2024-07-26config: allow custom separators in author listsLars Kotthoff
Allow distinguishing between commas separating authors and separating first and last names. Amended by db: reformat NEWS entry and commit message. Tweaked whitespace in lib/thread.cc.
2024-07-26changelog for 0.38.3-2debian/0.38.3-2archive/debian/0.38.3-2David Bremner
2024-07-25test/emacs: test notmuch-mua-subject-checkTony Zorman
Amended by db: rename test file to avoid collision.
2024-07-25emacs/mua: optionally check for erroneous subjectsTony Zorman
This works much like notmuch-mua-attachment-regexp, but for the subject instead. By default, check for empty subjects, as that seems a reasonable thing to safeguard against.
2024-07-25CLI: update commentary in config file to better match codeDavid Bremner
This comment has been out of date since notmuch 0.32. Although it isn't really possible to explain all the options here, explain both one new "split" way of doing things and the traditional one with database inside $MAIL_ROOT/.notmuch.
2024-07-25lib: thread-safe s-expression query parserKevin Boulain
Follow-up of 6273966d, now that sfsexp 1.4.1 doesn't rely on globals anymore by default (https://github.com/mjsottile/sfsexp/issues/21). This simply defers the initial query generation to use the thread-safe helper (xapian_query_match_all) instead of Xapian::Query::MatchAll.
2024-07-25emacs/hello: refresh hello directlyDavid Bremner
According to the now deleted commentary, the hack of using run-at-time was needed for Emacs 24. It seems to be no longer needed for Emacs 28.2, and removing it makes further changes to the code simpler.
2024-07-25CLI/git: add reset commandDavid Bremner
Sometimes merging is not what we want with tags; in particular it tends to keep tags in the local repo that have been removed elsewhere. This commit provides a new reset command; the reset itself is trivial, but the work is to provide a safety check that uses the existing --force and git.safe_fraction machinery.
2024-06-19Replace `delete-line` with its definitionMichael J Gruber
37c022ae ("Use `without-restriction` in `with-temporary-notmuch-message-buffer`", 2024-03-14) introduced `delete-line` in a test, but this is Emacs 29 and above only. Replace it with its (almost) definition.
2024-06-19Replace `without-restriction` with `save-restriction`Michael J Gruber
37c022ae ("Use `without-restriction` in `with-temporary-notmuch-message-buffer`", 2024-03-14) introduced a fix for draft saving in a way which is supported on Emacs 29 and above only. Replace this with a construct which we have used before, so that we keep the same compatibility level.
2024-06-15Use `without-restriction` in `with-temporary-notmuch-message-buffer`Marc Fargas
This ensures that the temporary copy of the current message-mode buffer is whole and not limited by a current restriction. An example of such restriction is the default one established by message-mode when composing a reply, that hides the References, In-Reply-To and similar headers.
2024-06-15test/cli: Add known broken test for (missing) quoting in FromDavid Bremner
In [1], Jakub Wilk observes that the current behaviour is confusing since it looks like there are two mailboxes in From, while in fact there is only one. It seems to me that notmuch should at least quote the display-name part of a mailbox if it has "funny" characters in it, and perhaps always quote it. Either way will require changing the indexing code, since the structure is lost when writing the headers to the database. [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021614
2024-06-15emacs/show: fix for text/calendar displayDavid Bremner
In certain scenarios involving symlinks and setting find-file-visit-truename, text/calendar parts were not displayed properly. Following a suggestion of Al Haji-Ali [1], replace the use of get-file-buffer with find-buffer-visiting. [1]: id:m2wmneguh8.fsf@gmail.com
2024-06-15test/emacs: add tests for rendering text/calendar partsDavid Bremner
The first test is just a general regression test, while the second duplicates the problem discussed in the thread starting at [1]. [1]: id:m2leo2u0uo.fsf@gmail.com
2024-06-15test/emacs: add regression test for display of calendar parts.David Bremner
This will hopefully catch breakage due to either changes in Emacs (especially Gnus) or changes to the notmuch-show code.
2024-06-15test/corpora: add example with text/calendar attachmentDavid Bremner
Initially for testing rendering in Emacs.