aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-03-31performance-test: fix copy-paste error in test descriptionDavid Bremner
2019-03-31python: fix set_sort/add_tag_exclude restype/argtypes typoshydrargyrum
2019-03-28test: Add emacs attachment check tests.David Edmondson
2019-03-28emacs: Optionally check for missing attachments in outgoing messagesDavid Edmondson
Query the user if the message text indicates that an attachment is expected but no MML referencing an attachment is found. This is not enabled by default - see the documentation for `notmuch-mua-attachment-check'.
2019-03-28lib: use phrase search for anything not ending in '*'David Bremner
Anything that does not look like a wildcard should be safe to quote. This should fix the problem searching for xapian keywords.
2019-03-28test: add two known broken tests searching for xapian keywordsDavid Bremner
Thanks to plujon for pointing out this problem on IRC. The underlying issue is that the quotes are stripped before the field processors get the query string, and the heuristic for putting them back is not quite right.
2019-03-28emacs: Easy access to URLs mentioned in the current messageDavid Edmondson
Add a new binding when looking at messages, B, that prompts with a list of URLs found in the current message, if any. Open the one that is selected in a browser. amended by db: s/--browse-urls/-browse-urls/
2019-03-27release: use xz compressionDavid Bremner
This produces tarballs that are roughly 30% smaller.
2019-03-27build: Rename GPG_FILE to DETACHED_SIG_FILEDaniel Kahn Gillmor
This is just a semantic cleanup -- we have multiple files that are OpenPGP signatures. And while we're probably making signatures with GnuPG, they can be verified with any OpenPGP implementation, so "GPG_" is arguably both not specific enough, and overly-specific. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-03-27build: distribute signed sha256sumsDaniel Kahn Gillmor
Distribute clearsigned sha256sum file in addition to the detached signature. Verifies that use the sha256sum ensure that the thing signed includes the name of the tarball. This defends the verifier by default against a freeze, rollback, or project substitution attack. A verifier can use something like the following (as expressed in bash): set -o pipefail wget https://notmuchmail.org/releases/notmuch-$VERSION.tar.gz{,.sha256.asc} gpgv --keyring ./notmuch-signers.pgp --output - notmuch-$VERSION.tar.gz.sha256.asc | sha256sum -c - See id:87r2b8w956.fsf@fifthhorseman.net and other messages in that thread for discussion. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-03-27build: ensure that SHA256_FILE is builtDaniel Kahn Gillmor
The SHA256_FILE used to be built automatically because of the makefile dependencies. Since b8a8dbed91d16299a8768646fb6f18181f31ec40, it isn't getting made properly, so the release target would fail. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-03-27doc: Clean up warnings when building notmuch-emacs docsDaniel Kahn Gillmor
Without this change, we see this during the build: sphinx-build -b html -d doc/_build/doctrees -q ./doc doc/_build/html …/doc/notmuch-emacs.rst:67: WARNING: Unexpected indentation. …/doc/notmuch-emacs.rst:165: WARNING: Unexpected indentation. …/doc/notmuch-emacs.rst:306: WARNING: Unexpected indentation. This source change doesn't seem to have any effect on the generated HTML, at least. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-03-19doc/build: use $(MAKE) instead of makeDavid Bremner
This should silence some warnings about the jobserver, but also make it easier to build the docs where GNU make is called something other than make. Based on a patch from aidecoe.
2019-03-12Add a configure flag to disable rpathsLuis Ressel
Better support build environments where our /sbin/ldconfig based heuristic does not work (e.g. some musl libc based systems).
2019-03-11build: sign tarball instead of sha256sumDavid Bremner
Adam Majer pointed out in [1] the way were signing releases was unusual. Neither Carl nor I could think of a good reason for explicitely signing the checksum (internally of course that's what GPG is going anyway). [1] mid:b3fd556d-c346-7af9-a7a2-13b0f3235071@suse.de
2019-03-11util: make remaining headers includable from C++David Bremner
libnotmuch_util.a is supposed to be usable from the library and the CLI, but much the library is compiled as C++. Add in appropriate wrapping to prevent symbol mangling. These wrappers already existed in string-util.h; it seems better to be consistent.
2019-03-11Prepend regerror() messages with "regexp error: "Luis Ressel
The exact error messages returned by regerror() aren't standardized; relying on them isn't portable. Thus, add a a prefix to make clear that the subsequent message is a regexp parsing error, and only look for this prefix in the test suite, ignoring the rest of the message.
2019-03-11test/T030-config: Separate stdout and stderr outputLuis Ressel
POSIX doesn't specify the flushing behaviour of the STDOUT stream, so it's invalid to assume a particular order between the stdout and stderr output. The current test breaks on musl due to this.
2019-03-06Merge branch 'release'David Bremner
2019-03-06travis: switch to xenial build envDavid Bremner
In principle we'd like everything to work with ancient versions. In practice someone needs drive that effort.
2019-03-06Merge branch 'release'David Bremner
Changes from 0.28.3
2019-03-05Declare fast forward from 0.28.2-1debian/0.28.3-1archive/debian/0.28.3-1David Bremner
[dgit --overwrite]
2019-03-05debian: changelog stanza for 0.28.3-10.28.3David Bremner
2019-03-05NEWS for 0.28.3David Bremner
2019-03-05bump version to 0.28.3David Bremner
2019-03-05doc: sequentialize calls to sphinx-buildDavid Bremner
In certain conditions the parallel calls to sphinx-build could collide, yielding a crash like Exception occurred: File "/usr/lib/python3/dist-packages/sphinx/environment.py", line 1261, in get_doctree doctree = pickle.load(f) EOFError: Ran out of input
2019-03-05lib/string_map: fix return type of string_cmpDavid Bremner
I can't figure out how checking the sign of a bool ever worked. The following program demonstrates the problem (i.e. for me it prints 1). #include <stdio.h> #include <stdbool.h> int main(int argc, char **argv) { bool x; x = -1; printf("x = %d\n", x); } This seems to be mandated by the C99 standard 6.3.1.2.
2019-03-05lib: Add known broken test for string_map binary search.David Bremner
Because the string_map functions are not exported, we test via message properties.
2019-02-21python: fix get_property error when property doesn't existVincent A
In Python bindings, Message.get_property fails with an AttributeError when trying to fetch a property that doesn't exist. From d712832ba982085975c27b23bb502af82e638b39 Mon Sep 17 00:00:00 2001 From: hydrargyrum <dev@indigo.re> Date: Sun, 6 Jan 2019 16:08:55 +0100 Subject: [PATCH] python: fix get_property error when property doesn't exist
2019-02-21Emacs: bind "g" to 'notuch-refresh-this-bufferMatt Armstrong
Using "g" for refresh operations is a pretty common Emacs convention, codified by `special-mode' in simple.el.
2019-02-17Merge tag '0.28.2'David Bremner
notmuch 0.28.2 release
2019-02-17bump versiondebian/0.28.2-10.28.2David Bremner
2019-02-17debian: changelog for 0.28.2-1David Bremner
2019-02-17NEWS for 0.28.2David Bremner
2019-02-17Record notmuch (0.28.2-1) in archive suite sidDavid Bremner
2019-02-17notmuch (0.28.2-1) unstable; urgency=mediumDavid Bremner
* [notmuch-emacs] Invoke gpg from with --batch and --no-tty [dgit import unpatched notmuch 0.28.2-1]
2019-02-17Import notmuch_0.28.2.orig.tar.gzDavid Bremner
[dgit import orig notmuch_0.28.2.orig.tar.gz]
2019-02-17Import notmuch_0.28.2-1.debian.tar.xzDavid Bremner
[dgit import tarball notmuch 0.28.2-1 notmuch_0.28.2-1.debian.tar.xz]
2019-02-16python: fix threads.__str__ automethod documentationJani Nikula
Indent the directive properly to attach it to Threads autoclass documentation. Fixes: WARNING: don't know which module to import for autodocumenting '__str__' (try placing a "module" or "currentmodule" directive in the document, or giving an explicit module name)
2019-02-16python: fix documentation title underlineJani Nikula
Fix documentation build sphinx warning: filesystem.rst:18: WARNING: Title underline too short.
2019-02-16python: fix documentation build with python 3.7Jani Nikula
The simplistic mocking in conf.py falls short on python 3.7. Just use unittest.mock instead. Fixes: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/sphinx/config.py", line 368, in eval_config_file execfile_(filename, namespace) File "/usr/lib/python3/dist-packages/sphinx/util/pycompat.py", line 150, in execfile_ exec_(code, _globals) File "/path/to/notmuch/bindings/python/docs/source/conf.py", line 39, in <module> from notmuch import __VERSION__,__AUTHOR__ File "/path/to/notmuch/bindings/python/notmuch/__init__.py", line 54, in <module> from .database import Database File "/path/to/notmuch/bindings/python/notmuch/database.py", line 25, in <module> from .globals import ( File "/path/to/notmuch/bindings/python/notmuch/globals.py", line 48, in <module> class NotmuchDatabaseS(Structure): TypeError: __mro_entries__ must return a tuple
2019-02-10Merge branch 'release'David Bremner
2019-02-10emacs: Invoke gpg with --batch and --no-ttyDaniel Kahn Gillmor
When invoking gpg as a backgrounded tool, it's important to let gpg know that it is backgrounded, to avoid spurious prompts or other breakage. In particular, https://bugs.debian.org/913614 was a regression in GnuPG which causes problems when importing keys without a terminal, but gpg expects one. Ensuring that notmuch-emacs always invokes gpg as a background process should avoid some of these unnecessary failure. Thanks to Justus Winter for finding this problem. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-02-01Merge tag '0.28.1'David Bremner
notmuch 0.28.1 release
2019-02-01bump copyright yeardebian/0.28.1-1archive/debian/0.28.1-10.28.1David Bremner
2019-02-01update version to 0.28.1David Bremner
2019-02-01changelog for 0.28.1-1David Bremner
2019-02-01NEWS for bash related configuration changeDavid Bremner
2019-02-01Debian: use new variable to force bash locationDavid Bremner
This should no longer be needed on the official debian autobuilders, but it might help others with merged /usr build environments.
2019-02-01configure: don't use special variable BASHDavid Bremner
bash, in it's wisdom, sets that variable when invoked as /bin/sh, but then doesn't act as bash, at least not to the degree we need to run scripts.