summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-10-26debian: update changelog for 0.38.1-1debian/0.38.1-1archive/debian/0.38.1-10.38.1David Bremner
2023-10-26NEWS: News for 0.38.1David Bremner
Just note the 3 bug fixes.
2023-10-26version: bump to 0.38.1David Bremner
No changes from 0.38.1~rc1
2023-10-12changelog for 0.38.1~rc1-1debian/0.38.1_rc1-1archive/debian/0.38.1_rc1-10.38.1_rc1David Bremner
2023-10-12version: update to 0.38.1~rc1David Bremner
2023-10-12notmuch-mutt: fix Perl syntax of hash index lookupsPaul Wise
Fixes: commit 239fdbbbf0cbd6cd6ebafb87e88cdb3cded75364
2023-10-01debian: finalize changelog for 0.38.1~pre0-1debian/0.38.1_pre0-1archive/debian/0.38.1_pre0-1David Bremner
Bonus typo fix.
2023-10-01emacs/show: special case toggling display of images0.38.1_pre0David Bremner
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
2023-10-01emacs: save image redisplay data during non-lazy displayDavid Bremner
This data will eventually be used to redisplay hidden images. A certain amount of refactoring is done here to avoid code duplication.
2023-10-01emacs/show: save redisplay redisplay data when showing lazy part.David Bremner
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.
2023-10-01emacs: save undisplayer function for MIME partsDavid Bremner
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).
2023-09-23Pass error message from GLib ini parser to CLIDavid Bremner
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
2023-09-23test: add known broken subtest for the bad config error messageDavid Bremner
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".
2023-09-23CLI: exit with error when load_config returns an error.David Bremner
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.
2023-09-23test: add known broken test for bad utf8 in configDavid Bremner
We should ideally print an informative error message, but at the very least we should not exit with success.
2023-09-23debian: start changelog for 0.38.1~pre0-1David Bremner
2023-09-23NEWS: add header for 0.38.1David Bremner
Actual news items to be filled in after they are applied.
2023-09-23version: update to 0.38.1~pre0David Bremner
Start preparations for point release
2023-09-13debian: upload 0.38-2: disable most autopkgtestsdebian/0.38-2archive/debian/0.38-2David Bremner
2023-09-12bindings/python-cffi: clean up notmuch2.egg-infodebian/0.38-1archive/debian/0.38-10.38David Bremner
This is created (at least) by the Debian build, but there seems no harm in cleaning it for everyone.
2023-09-12debian: note introduction of autopkgtestsDavid Bremner
Having autopkgtests changes Debian package migration (for better and worse), so make a note when they were introduced to unstable.
2023-09-12NEWS: quote function nameDavid Bremner
This avoids spurious underline/italics when exporting to markdown.
2023-09-12NEWS: set release date for 0.38David Bremner
2023-09-12build: clean up __pycache__ directoriesDavid Bremner
These are generated indirectly by certain uses of python in the build.
2023-09-12debian: rely on main notmuch (dist)clean.David Bremner
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.
2023-09-12bindings/python-cffi: clean up _notmuch_config.pyDavid Bremner
_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.
2023-09-11debian: changelog for 0.38-1David Bremner
2023-09-11version: bump to 0.38David Bremner
2023-09-09NEWS: NEWS for 0.38David Bremner
2023-09-03debian: changelog for 0.38~rc2-1debian/0.38_rc2-1archive/debian/0.38_rc2-10.38_rc2David Bremner
2023-09-03version: bump to 0.31~rc2David Bremner
2023-08-27compat: probe for strcasestr more thoroughlyMichael J Gruber
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>
2023-08-26debian: changelog for 0.38~rc1-1debian/0.38_rc1-1archive/debian/0.38_rc1-10.38_rc1David Bremner
2023-08-26version: bump to 0.38~rc1David Bremner
2023-08-26debian: skip T810-tsan on ppc64elDavid Bremner
Hopefully just a temporary measure.
2023-08-26debian: use architecture.mkDavid Bremner
I plan to add further architecture dependent checks, which makes this preferable to directly calling dpkg-architecture.
2023-08-26test: minimize impact of native compilation.David Bremner
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).
2023-08-24debian: set suite to experimentaldebian/0.38_rc0-1archive/debian/0.38_rc0-1David Bremner
2023-08-24doc: update copyright date0.38_rc0David Bremner
2023-08-24debian: changelog for 0.38~rc0-1David Bremner
2023-08-24NEWS: start NEWS for 0.38David Bremner
2023-08-24version: set up 0.38~rc0David Bremner
2023-08-21test/setup: ignore blank lines in generated configDavid Bremner
The presense of the blank lines between sections depends on the version of glib. Strip them before comparison.
2023-08-21CLI/config: simulate top level comments when creating configDavid Bremner
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.
2023-08-20test/emacs: adapt to breaking change in Gnus defaultsDavid Bremner
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.
2023-07-22lib/n_d_remove_message: do not remove unique filenameDavid Bremner
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.
2023-07-22lib/message: check message type before deleting documentDavid Bremner
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
2023-07-21debian: add autopkgtestsDavid Bremner
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.
2023-07-21test: support testing notmuch as installedDavid Bremner
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.
2023-07-21test: Guess a value for NOTMUCH_PYTHONDavid Bremner
python3 will work for many people, and reduce the friction to running the tests without running configure first.