]> git.notmuchmail.org Git - notmuch/log
notmuch
3 months agochangelog for 0.38.3-5 debian/unstable archive/debian/0.38.3-5 debian/0.38.3-5
David Bremner [Fri, 28 Feb 2025 21:25:10 +0000 (16:25 -0500)]
changelog for 0.38.3-5

3 months agoCommit Debian 3.0 (quilt) metadata
David Bremner [Fri, 28 Feb 2025 21:18:48 +0000 (16:18 -0500)]
Commit Debian 3.0 (quilt) metadata

[dgit (12.6) quilt-fixup]

3 months agoAccept "key-missing" from a signature from a revoked key
Daniel Kahn Gillmor [Thu, 27 Feb 2025 18:14:08 +0000 (13:14 -0500)]
Accept "key-missing" from a signature from a revoked key

We have traditionally expected a signature to show up as "revoked"
when the signing key is revoked.  However, GnuPG's recent fix to avoid
a denial of service against legitimate signatures appears to have
changed the status of signature verification from keys which happen to
have been revoked.

See https://bugs.debian.org/1098995 and https://dev.gnupg.org/T7547

This change makes the test suite a little bit less brittle while we
look for a resolution from upstream.  It should probably also be
backported to debian unstable unless a notmuch release to unstable is
imminent.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
(cherry picked from commit d330971b8bdb159e58a806e7ee24f3e5551d3f89)

3 months agoCommit Debian 3.0 (quilt) metadata archive/debian/0.38.3-4 debian/0.38.3-4
David Bremner [Tue, 25 Feb 2025 20:53:26 +0000 (16:53 -0400)]
Commit Debian 3.0 (quilt) metadata

[dgit (12.6) quilt-fixup]

3 months agodebian: changelog for 0.38.3-4
David Bremner [Tue, 25 Feb 2025 20:52:45 +0000 (16:52 -0400)]
debian: changelog for 0.38.3-4

3 months agotest/emacs: add workaround for Emacs 30 pp changes
David Bremner [Tue, 25 Feb 2025 11:25:59 +0000 (07:25 -0400)]
test/emacs: add workaround for Emacs 30 pp changes

This relies on the fact that setting pp-default-function has no effect
for Emacs <30.

(cherry picked from commit e3d4721b1ba4836c7646e057b50123fe994652eb)

10 months agodebian: migrate build dependency to pkgconf archive/debian/0.38.3-3 debian/0.38.3-3
David Bremner [Mon, 5 Aug 2024 13:14:40 +0000 (10:14 -0300)]
debian: migrate build dependency to pkgconf

pkgconf is apparently the annointed successor to pkg-config, at least
in Debian.

10 months agodebian: skip T810-tsan everywhere
David Bremner [Mon, 5 Aug 2024 11:48:24 +0000 (08:48 -0300)]
debian: skip T810-tsan everywhere

Not sure whose fault the failure is, but for now skip the test.

10 months agodebian: drop build conflicts on gdb-minimal
David Bremner [Mon, 5 Aug 2024 10:03:07 +0000 (07:03 -0300)]
debian: drop build conflicts on gdb-minimal

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.

10 months agoAdd Astroid as an alternative Recommends; this one is a GUI client
Nicholas D Steeves [Sat, 3 Aug 2024 18:56:09 +0000 (14:56 -0400)]
Add Astroid as an alternative Recommends; this one is a GUI client

that may be less intimidating for new users.

10 months agoAllow neomutt to fulfill the "mutt" requirement of notmuch-mutt, and
Nicholas D Steeves [Sat, 3 Aug 2024 18:56:08 +0000 (14:56 -0400)]
Allow neomutt to fulfill the "mutt" requirement of notmuch-mutt, and

add related Enhances (Closes: #1029190).

10 months agoAdd changelog entry for James McCoy's work
Nicholas D Steeves [Sat, 3 Aug 2024 18:56:07 +0000 (14:56 -0400)]
Add changelog entry for James McCoy's work

10 months agoConvert notmuch-vim to Vim addon policy 2.0
James McCoy [Sat, 3 Aug 2024 18:56:06 +0000 (14:56 -0400)]
Convert notmuch-vim to Vim addon policy 2.0

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>
10 months agochangelog for 0.38.3-2 archive/debian/0.38.3-2 debian/0.38.3-2
David Bremner [Fri, 26 Jul 2024 03:01:38 +0000 (12:01 +0900)]
changelog for 0.38.3-2

15 months agodebian: update changelog date archive/debian/0.38.3-1 debian/0.38.3-1
David Bremner [Sun, 10 Mar 2024 03:13:32 +0000 (23:13 -0400)]
debian: update changelog date

It is a bit weird to have debian changelog before upstream release date.

15 months agoMerge from sid [dgit]
David Bremner [Sun, 10 Mar 2024 03:07:21 +0000 (23:07 -0400)]
Merge from sid [dgit]

15 months agoRevert "debian: start changelog for 0.38.3-1"
David Bremner [Sun, 10 Mar 2024 03:01:43 +0000 (23:01 -0400)]
Revert "debian: start changelog for 0.38.3-1"

This reverts commit 522b279e46c84e4d2d52ccdf082d05fc111dc7b5.

Remove duplicate changelog stanza

15 months agoversion: bump to 0.38.3 0.38.3
David Bremner [Sun, 10 Mar 2024 02:51:06 +0000 (22:51 -0400)]
version: bump to 0.38.3

15 months agodebian: start changelog for 0.38.3-1
David Bremner [Sun, 10 Mar 2024 02:49:50 +0000 (22:49 -0400)]
debian: start changelog for 0.38.3-1

15 months agodoc: update copyright years to include 2024
David Bremner [Sun, 10 Mar 2024 02:47:37 +0000 (22:47 -0400)]
doc: update copyright years to include 2024

15 months agoNEWS: update for 0.38.3
David Bremner [Sun, 10 Mar 2024 02:42:08 +0000 (22:42 -0400)]
NEWS: update for 0.38.3

15 months agoRecord notmuch (0.38.2-1.1) in archive suite sid
Benjamin Drung [Wed, 28 Feb 2024 23:56:48 +0000 (23:56 +0000)]
Record notmuch (0.38.2-1.1) in archive suite sid

15 months agonotmuch (0.38.2-1.1) unstable; urgency=medium
Benjamin Drung [Wed, 28 Feb 2024 23:56:48 +0000 (23:56 +0000)]
notmuch (0.38.2-1.1) unstable; urgency=medium

  * Non-maintainer upload.
  * Rename libraries for 64-bit time_t transition.  Closes: #1063205

[dgit import unpatched notmuch 0.38.2-1.1]

15 months agoImport notmuch_0.38.2-1.1.debian.tar.xz
Benjamin Drung [Wed, 28 Feb 2024 23:56:48 +0000 (23:56 +0000)]
Import notmuch_0.38.2-1.1.debian.tar.xz

[dgit import tarball notmuch 0.38.2-1.1 notmuch_0.38.2-1.1.debian.tar.xz]

15 months agodebian: recommend gpg-agent instead of gnupg agent
David Bremner [Sat, 17 Feb 2024 13:04:32 +0000 (09:04 -0400)]
debian: recommend gpg-agent instead of gnupg agent

18 months agolib: clear error message on success in _choose_database_path
David Bremner [Sun, 3 Dec 2023 18:56:44 +0000 (14:56 -0400)]
lib: clear error message on success in _choose_database_path

Previously we both found a database and returned a message saying that
the database could not be found (along with a success code). This
change should prevent spurious error output.

18 months agotest: add known broken test for incorrect error message
David Bremner [Sun, 3 Dec 2023 15:41:11 +0000 (11:41 -0400)]
test: add known broken test for incorrect error message

Duplicate bug reported in id:87wmtvcor5.fsf@alyssa.is

The error message is nonsense, because notmuch config list actually
includes the database in those two cases.

18 months agodebian: changelog for 0.38.2-1 0.38.2 archive/debian/0.38.2-1 debian/0.38.2-1
David Bremner [Fri, 1 Dec 2023 11:51:31 +0000 (07:51 -0400)]
debian: changelog for 0.38.2-1

18 months agoImport notmuch_0.38.2.orig.tar.xz
David Bremner [Fri, 1 Dec 2023 11:51:09 +0000 (07:51 -0400)]
Import notmuch_0.38.2.orig.tar.xz

[dgit import orig notmuch_0.38.2.orig.tar.xz]

18 months agoNEWS for 0.38.2
David Bremner [Fri, 1 Dec 2023 11:50:27 +0000 (07:50 -0400)]
NEWS for 0.38.2

18 months agoversion: bump to 0.38.2
David Bremner [Fri, 1 Dec 2023 11:38:55 +0000 (07:38 -0400)]
version: bump to 0.38.2

18 months agonotmuch-emacs-mua: avoid extra separators at the end of the line
Jani Nikula [Thu, 30 Nov 2023 16:13:19 +0000 (18:13 +0200)]
notmuch-emacs-mua: avoid extra separators at the end of the line

Currently the --to/--cc/--bcc options add "user@example.com, " to the
message headers, with the the unnecessary ", " separator after the
last address, regardless of how many addresses are being added.

This used to be fine, but with recent emacs mm, trying to send the
email with the trailing commas leads to prompt:

  Email address  looks invalid; send anyway? (y or n)

Fix this by only adding the commas between addresses, avoiding the
trailing commas.

18 months agolib/string_map: simulate stable sorting
David Bremner [Sat, 25 Nov 2023 12:33:52 +0000 (08:33 -0400)]
lib/string_map: simulate stable sorting

qsort(3) does not promise stability, and recent versions of glibc have
been showing more unstable behaviour [2]. Michael Gruber observed [1] test
breakage due to changing output order for message properties.

We provide a sorting order of (key,value) pairs that _looks_ stable by
breaking ties based on value if keys are equal. Internally there may
be some instability in the case of duplicate (key,value) pairs, but it
should not be observable via the iterator API.

[1]: id:CAA19uiSHjVFmwH0pMC7WwDYCOSzu3yqNbuYhu3ZMeNNRh313eA@mail.gmail.com
[2]: id:87msv3i44u.fsf@oldenburg.str.redhat.com

19 months agodebian: update changelog for 0.38.1-1 0.38.1 archive/debian/0.38.1-1 debian/0.38.1-1
David Bremner [Thu, 26 Oct 2023 23:02:05 +0000 (20:02 -0300)]
debian: update changelog for 0.38.1-1

19 months agoNEWS: News for 0.38.1
David Bremner [Thu, 26 Oct 2023 22:52:27 +0000 (19:52 -0300)]
NEWS: News for 0.38.1

Just note the 3 bug fixes.

19 months agoversion: bump to 0.38.1
David Bremner [Thu, 26 Oct 2023 22:45:04 +0000 (19:45 -0300)]
version: bump to 0.38.1

No changes from 0.38.1~rc1

20 months agochangelog for 0.38.1~rc1-1 0.38.1_rc1 archive/debian/0.38.1_rc1-1 debian/0.38.1_rc1-1
David Bremner [Thu, 12 Oct 2023 22:54:07 +0000 (19:54 -0300)]
changelog for 0.38.1~rc1-1

20 months agoversion: update to 0.38.1~rc1
David Bremner [Thu, 12 Oct 2023 22:52:42 +0000 (19:52 -0300)]
version: update to 0.38.1~rc1

20 months agonotmuch-mutt: fix Perl syntax of hash index lookups
Paul Wise [Thu, 12 Oct 2023 08:14:44 +0000 (16:14 +0800)]
notmuch-mutt: fix Perl syntax of hash index lookups

Fixes: commit 239fdbbbf0cbd6cd6ebafb87e88cdb3cded75364
20 months agodebian: finalize changelog for 0.38.1~pre0-1 archive/debian/0.38.1_pre0-1 debian/0.38.1_pre0-1
David Bremner [Sun, 1 Oct 2023 11:16:48 +0000 (08:16 -0300)]
debian: finalize changelog for 0.38.1~pre0-1

Bonus typo fix.

20 months agoemacs/show: special case toggling display of images 0.38.1_pre0
David Bremner [Sun, 24 Sep 2023 09:51:52 +0000 (06:51 -0300)]
emacs/show: special case toggling display of images

According to emacs upstream [1], we can't expect overlay invisibility
and images to get along. This commit uses the previously stashed
undisplayer functions to actually remove the images from the buffer.
When the image is toggled, it is essentially redisplayed from scratch,
using the previously stashed redisplay data.

[1]: https://lists.gnu.org/archive/html/emacs-devel/2023-08/msg00593.html

20 months agoemacs: save image redisplay data during non-lazy display
David Bremner [Sun, 24 Sep 2023 09:51:51 +0000 (06:51 -0300)]
emacs: save image redisplay data during non-lazy display

This data will eventually be used to redisplay hidden images. A
certain amount of refactoring is done here to avoid code
duplication.

20 months agoemacs/show: save redisplay redisplay data when showing lazy part.
David Bremner [Sun, 24 Sep 2023 09:51:50 +0000 (06:51 -0300)]
emacs/show: save redisplay redisplay data when showing lazy part.

This data will be used to redisplay an image that is hidden by
deleting it from the buffer.  We cannot easily delay until the image
is hidden, as we won't have the original data at that point.

20 months agoemacs: save undisplayer function for MIME parts
David Bremner [Sun, 24 Sep 2023 09:51:49 +0000 (06:51 -0300)]
emacs: save undisplayer function for MIME parts

For some kinds of MIME parts (at least images), our trickery with
overlays will not work, so save the more drastic function created by
Gnus that actually deletes the part from the buffer. In an ideal world
we would return this function as (part of) a value, but here the call
stack is too complicated for anything that simple, so we stash it in
the part plist and rely on that being preserved (unlike the mm handle,
which is transient).

20 months agoPass error message from GLib ini parser to CLI
David Bremner [Fri, 15 Sep 2023 12:50:04 +0000 (09:50 -0300)]
Pass error message from GLib ini parser to CLI

The function _notmuch_config_load_from_file is only called in two
places in open.cc. Update internal API to match the idiom in open.cc.
Adding a newline is needed for consistency with other status strings.

Based in part on a patch [1] from Eric Blake.

[1]: id:20230906153402.101471-1-eblake@redhat.com

20 months agotest: add known broken subtest for the bad config error message
David Bremner [Fri, 15 Sep 2023 12:50:03 +0000 (09:50 -0300)]
test: add known broken subtest for the bad config error message

This is a bit fragile w.r.t. glib changing their error message, but it
already helped me find one formatting bug, so for now I think it's
worth it, instead of just grepping for "UTF-8".

20 months agoCLI: exit with error when load_config returns an error.
David Bremner [Fri, 15 Sep 2023 12:50:02 +0000 (09:50 -0300)]
CLI: exit with error when load_config returns an error.

For now print a generic error message and exit with error on any
non-success code. Previously the code exited, but with exit code zero,
leading users / scripts to think the command had succeeded.

20 months agotest: add known broken test for bad utf8 in config
David Bremner [Fri, 15 Sep 2023 12:50:01 +0000 (09:50 -0300)]
test: add known broken test for bad utf8 in config

We should ideally print an informative error message, but at the very
least we should not exit with success.

20 months agodebian: start changelog for 0.38.1~pre0-1
David Bremner [Sat, 23 Sep 2023 11:16:20 +0000 (08:16 -0300)]
debian: start changelog for 0.38.1~pre0-1

20 months agoNEWS: add header for 0.38.1
David Bremner [Sat, 23 Sep 2023 11:14:21 +0000 (08:14 -0300)]
NEWS: add header for 0.38.1

Actual news items to be filled in after they are applied.

20 months agoversion: update to 0.38.1~pre0
David Bremner [Sat, 23 Sep 2023 11:12:06 +0000 (08:12 -0300)]
version: update to 0.38.1~pre0

Start preparations for point release

20 months agodebian: upload 0.38-2: disable most autopkgtests archive/debian/0.38-2 debian/0.38-2
David Bremner [Wed, 13 Sep 2023 22:58:39 +0000 (19:58 -0300)]
debian: upload 0.38-2: disable most autopkgtests

21 months agobindings/python-cffi: clean up notmuch2.egg-info 0.38 archive/debian/0.38-1 debian/0.38-1
David Bremner [Sun, 10 Sep 2023 23:13:13 +0000 (20:13 -0300)]
bindings/python-cffi: clean up notmuch2.egg-info

This is created (at least) by the Debian build, but there seems no
harm in cleaning it for everyone.

21 months agodebian: note introduction of autopkgtests
David Bremner [Tue, 12 Sep 2023 11:33:35 +0000 (08:33 -0300)]
debian: note introduction of autopkgtests

Having autopkgtests changes Debian package migration (for better and
worse), so make a note when they were introduced to unstable.

21 months agoNEWS: quote function name
David Bremner [Sun, 10 Sep 2023 23:13:13 +0000 (20:13 -0300)]
NEWS: quote function name

This avoids spurious underline/italics when exporting to markdown.

21 months agoNEWS: set release date for 0.38
David Bremner [Sun, 10 Sep 2023 23:13:13 +0000 (20:13 -0300)]
NEWS: set release date for 0.38

21 months agobuild: clean up __pycache__ directories
David Bremner [Sun, 10 Sep 2023 23:13:13 +0000 (20:13 -0300)]
build: clean up __pycache__ directories

These are generated indirectly by certain uses of python in the build.

21 months agodebian: rely on main notmuch (dist)clean.
David Bremner [Sun, 10 Sep 2023 23:13:13 +0000 (20:13 -0300)]
debian: rely on main notmuch (dist)clean.

The python setuputils clean relys on including _notmuch_config.py,
which is cleaned up. Rather than relying on careful ordering, just do
all the cleaning from the GNU Make based build system.

21 months agobindings/python-cffi: clean up _notmuch_config.py
David Bremner [Sun, 10 Sep 2023 23:13:13 +0000 (20:13 -0300)]
bindings/python-cffi: clean up _notmuch_config.py

_notmuch_config.py is generated by configure, and cannot be cleaned up
by the current python build system, since it is imported as a module
by that same build system.

Use DISTCLEAN rather than CLEAN for consistency with other configure
related things.

21 months agodebian: changelog for 0.38-1
David Bremner [Mon, 11 Sep 2023 23:19:25 +0000 (20:19 -0300)]
debian: changelog for 0.38-1

21 months agoversion: bump to 0.38
David Bremner [Mon, 11 Sep 2023 22:56:21 +0000 (19:56 -0300)]
version: bump to 0.38

21 months agoNEWS: NEWS for 0.38
David Bremner [Sat, 9 Sep 2023 13:59:20 +0000 (10:59 -0300)]
NEWS: NEWS for 0.38

21 months agodebian: changelog for 0.38~rc2-1 0.38_rc2 archive/debian/0.38_rc2-1 debian/0.38_rc2-1
David Bremner [Sun, 3 Sep 2023 12:11:53 +0000 (09:11 -0300)]
debian: changelog for 0.38~rc2-1

21 months agoversion: bump to 0.31~rc2
David Bremner [Sun, 3 Sep 2023 12:09:22 +0000 (09:09 -0300)]
version: bump to 0.31~rc2

21 months agocompat: probe for strcasestr more thoroughly
Michael J Gruber [Sat, 26 Aug 2023 14:53:12 +0000 (16:53 +0200)]
compat: probe for strcasestr more thoroughly

Depending on compiler (gcc, g++, clang) and standard options (c99, c11),
string.h may or may not include strings.h, leading to possibly missing
or conflicting declarations of strcasestr.

Include both so that both detection and compilation phases use the same
(possibly optimised) implementations.

Suggested-by: Thomas Schneider <qsx@chaotikum.eu>
Suggested-by: Florian Weimer <fweimer@redhat.com>
Suggested-by: Tomi Ollila <tomi.ollila@iki.fi>
21 months agodebian: changelog for 0.38~rc1-1 0.38_rc1 archive/debian/0.38_rc1-1 debian/0.38_rc1-1
David Bremner [Sat, 26 Aug 2023 11:31:49 +0000 (08:31 -0300)]
debian: changelog for 0.38~rc1-1

21 months agoversion: bump to 0.38~rc1
David Bremner [Sat, 26 Aug 2023 11:29:45 +0000 (08:29 -0300)]
version: bump to 0.38~rc1

21 months agodebian: skip T810-tsan on ppc64el
David Bremner [Sat, 26 Aug 2023 11:28:33 +0000 (08:28 -0300)]
debian: skip T810-tsan on ppc64el

Hopefully just a temporary measure.

21 months agodebian: use architecture.mk
David Bremner [Sat, 26 Aug 2023 11:22:33 +0000 (08:22 -0300)]
debian: use architecture.mk

I plan to add further architecture dependent checks, which makes this
preferable to directly calling dpkg-architecture.

21 months agotest: minimize impact of native compilation.
David Bremner [Sat, 26 Aug 2023 10:45:36 +0000 (07:45 -0300)]
test: minimize impact of native compilation.

Native compilation is kindof useless in the test suite because we
throw away the cache after every subtest.  The test suite could in
principle share an eln cache within a given test file; for now try to
minimize the amount of native-compilation. There is an intermittent
bug where emacs loses track of its default-directory; I suspect (but
have no proof) that bug is related to native compilation and/or race
conditions. This patch seems to prevent that bug (or at least reduce
its frequency).

21 months agodebian: set suite to experimental archive/debian/0.38_rc0-1 debian/0.38_rc0-1
David Bremner [Thu, 24 Aug 2023 13:56:33 +0000 (10:56 -0300)]
debian: set suite to experimental

21 months agodoc: update copyright date 0.38_rc0
David Bremner [Thu, 24 Aug 2023 11:03:46 +0000 (08:03 -0300)]
doc: update copyright date

21 months agodebian: changelog for 0.38~rc0-1
David Bremner [Thu, 24 Aug 2023 11:00:29 +0000 (08:00 -0300)]
debian: changelog for 0.38~rc0-1

21 months agoNEWS: start NEWS for 0.38
David Bremner [Thu, 24 Aug 2023 10:58:51 +0000 (07:58 -0300)]
NEWS: start NEWS for 0.38

21 months agoversion: set up 0.38~rc0
David Bremner [Thu, 24 Aug 2023 10:58:19 +0000 (07:58 -0300)]
version: set up 0.38~rc0

21 months agotest/setup: ignore blank lines in generated config
David Bremner [Sun, 20 Aug 2023 15:23:19 +0000 (12:23 -0300)]
test/setup: ignore blank lines in generated config

The presense of the blank lines between sections depends on the
version of glib. Strip them before comparison.

21 months agoCLI/config: simulate top level comments when creating config
David Bremner [Sun, 20 Aug 2023 15:10:56 +0000 (12:10 -0300)]
CLI/config: simulate top level comments when creating config

According to discussion on

          https://gitlab.gnome.org/GNOME/glib/-/issues/3078

it looks like upstream will stop supporting top of file comments.

It is questionable whether we really need this feature, but for now
update notmuch-config to simulate it.

21 months agotest/emacs: adapt to breaking change in Gnus defaults
David Bremner [Sun, 20 Aug 2023 17:32:02 +0000 (14:32 -0300)]
test/emacs: adapt to breaking change in Gnus defaults

As of Emacs 29.1, In-Reply-To is in the default value for
message-hidden-headers. We actually want to see that in the test
suite, so remove it again. To future proof the tests, fix a default
value for message-hidden-headers specifically for the test suite.

22 months agolib/n_d_remove_message: do not remove unique filename
David Bremner [Thu, 20 Jul 2023 12:08:01 +0000 (09:08 -0300)]
lib/n_d_remove_message: do not remove unique filename

It is wasteful to remove a filename term when the whole message
document is about to be removed from the database. Profiling with perf
shows this takes a significant portion of the time when cleaning up
removed files in the database.

The logic of n_d_remove_message becomes a bit more convoluted here in
order to make the change minimal.

It is possible that this function can be further optimized, since the
expansion of filename terms into filenames is probably not needed
here.

22 months agolib/message: check message type before deleting document
David Bremner [Thu, 20 Jul 2023 12:08:00 +0000 (09:08 -0300)]
lib/message: check message type before deleting document

It isn't really clear how this worked before. Traversing the terms of
a document after deleting it from the database seems likely to be
undefined behaviour at best

22 months agodebian: add autopkgtests
David Bremner [Sun, 9 Apr 2023 14:26:27 +0000 (11:26 -0300)]
debian: add autopkgtests

We generate output to stderr for BROKEN tests, which are not failures,
so tell the test runner not to fail because of output on stderr.

22 months agotest: support testing notmuch as installed
David Bremner [Sun, 9 Apr 2023 14:26:26 +0000 (11:26 -0300)]
test: support testing notmuch as installed

We put some effort into testing the built copy rather than some
installed copy. On the other hand for people like packagers, testing
the installed copy is also of interest.

When NOTMUCH_TEST_INSTALLED is set to a nonempty value, tests do not
require a built notmuch tree or running configure.

Some of the tests marked as broken when running against installed
notmuch are probably fixable.

22 months agotest: Guess a value for NOTMUCH_PYTHON
David Bremner [Sun, 9 Apr 2023 14:26:25 +0000 (11:26 -0300)]
test: Guess a value for NOTMUCH_PYTHON

python3 will work for many people, and reduce the friction to running
the tests without running configure first.

22 months agotest: check for empty/missing files in test_expect_equal_message_body
David Bremner [Sun, 9 Apr 2023 14:26:24 +0000 (11:26 -0300)]
test: check for empty/missing files in test_expect_equal_message_body

Messages can have empty bodies, but empty files are not messages.

22 months agotest: treat undefined feature variables as 0
David Bremner [Sun, 9 Apr 2023 14:26:23 +0000 (11:26 -0300)]
test: treat undefined feature variables as 0

When running the test suite without building first, it is desirable to
have the tests consider these variables being undefined as equivalent
to the feature not being present, and in particular for the tests not
to generate errors.

23 months agoschemata: document 'excluded' field in structured output
Tim Culverhouse [Sun, 7 May 2023 00:59:27 +0000 (19:59 -0500)]
schemata: document 'excluded' field in structured output

Include the 'excluded' field in the structured output schema.

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
23 months agoperf-test: update corpus signature
David Bremner [Wed, 31 May 2023 11:19:18 +0000 (08:19 -0300)]
perf-test: update corpus signature

In the decade (!) since this corpus was last updated, the keyserver
network is essentially dead, and I have migrated gpg keys. Bump the
version number as a clean way of switching signatures. Also update the
instructions to suggest using "--locate-external-key" to download the
public key. By default this uses WKD, which is now supported for my
UID.

23 months agodoc/lib: clarify ownership for notmuch_database_get_revision
David Bremner [Mon, 29 May 2023 11:01:40 +0000 (08:01 -0300)]
doc/lib: clarify ownership for notmuch_database_get_revision

The ownership is implicit in the const declaration (I think!), but
that does not show up in the doxygen generated API docs.

23 months agotest: add known broken test for message-id with embedded spaces.
David Bremner [Sat, 27 May 2023 17:20:51 +0000 (14:20 -0300)]
test: add known broken test for message-id with embedded spaces.

According to my reading of RFC5322, there is an obsolete syntax for
Message-Id which permits folding whitespace (i.e. to be removed /
ignored by parsers). In [1] Paul Wise observed that notmuch removed
whitespace on indexing, but does not do any corresponding
normalization of queries. Mark the latter as a bug by adding a failing
test.

[1]: id:20230409044143.4041560-1-pabs3@bonedaddy.net

23 months agopython: adjust legacy bindings to py 3.12
Michael J Gruber [Fri, 16 Jun 2023 11:19:26 +0000 (13:19 +0200)]
python: adjust legacy bindings to py 3.12

Py 3.12 finally pulled the plug on the `SafeConfigParser` class which
has been deprecated since py 3.2.

We use it in the legacy bindings only, so take the easy route of
importing `ConfigParser` as `SafeConfigParser` and monkey-patching so
that the class has the expected interface.

2 years agoruby: db: reorganize initializer
Felipe Contreras [Fri, 31 Mar 2023 20:40:50 +0000 (14:40 -0600)]
ruby: db: reorganize initializer

In order to make it more extensible.

No functional changes.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2 years agonotmuch-mutt: check that the search cache Maildir is not a real Maildir
Paul Wise [Sun, 28 May 2023 02:29:46 +0000 (10:29 +0800)]
notmuch-mutt: check that the search cache Maildir is not a real Maildir

This prevents data loss when users configure the search cache Maildir to be a
real Maildir containing their real mail data, since the search cache Maildir
is expected to contain only symlinks to the real mail data.

Prevents: <ZCsQBNmbzwkvbpHA@localhost.localdomain>

2 years agonotmuch-mutt: do not clear search cache Maildir when nothing is found
Paul Wise [Sun, 28 May 2023 02:29:45 +0000 (10:29 +0800)]
notmuch-mutt: do not clear search cache Maildir when nothing is found

The previous results might be useful to the user but
an empty directory definitely isn't useful.

2 years agonotmuch-mutt: clarify the empty Maildir function operates on search caches
Paul Wise [Sun, 28 May 2023 02:29:44 +0000 (10:29 +0800)]
notmuch-mutt: clarify the empty Maildir function operates on search caches

Rename the function and adjust the documentation comment.

2 years agonotmuch-mutt: replace extra command with notmuch thread search feature
Paul Wise [Sun, 9 Apr 2023 04:41:43 +0000 (12:41 +0800)]
notmuch-mutt: replace extra command with notmuch thread search feature

This should be be slightly faster since it avoids forking a shell
and is less code in and less dependencies for the script.

Since String::ShellQuote isn't used elsewhere, drop mention of it.

2 years agonotmuch-mutt: fix Xapian query construction
Paul Wise [Sun, 9 Apr 2023 04:41:42 +0000 (12:41 +0800)]
notmuch-mutt: fix Xapian query construction

Spaces need to be stripped when querying the Message-Id,
because notmuch stores them in Xapian with spaces stripped.

All double-quote characters need to be doubled to escape them,
otherwise they will be added as extra query terms outside the id.

2 years agonotmuch-mutt: convert ISO-8859-15 copyright statement to UTF-8
Paul Wise [Tue, 23 May 2023 22:30:21 +0000 (06:30 +0800)]
notmuch-mutt: convert ISO-8859-15 copyright statement to UTF-8

Suggested-by: isutf8 & check-all-the-things
2 years agoruby: query: fix get sort
Felipe Contreras [Mon, 3 Apr 2023 20:27:21 +0000 (14:27 -0600)]
ruby: query: fix get sort

The order was wrong, right now `query.sort` doesn't return a number.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2 years agovim: doc: minor spelling fix
John Gliksberg [Wed, 3 May 2023 22:12:20 +0000 (16:12 -0600)]
vim: doc: minor spelling fix

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2 years agovim: doc: small fixes
Felipe Contreras [Wed, 3 May 2023 22:12:19 +0000 (16:12 -0600)]
vim: doc: small fixes

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>