aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-03-09bindings/python: test python Database.get_revision ()Gaute Hope
Here is a test for Database.get_revision (), based on the first part of T570-revision-tracking.sh.
2017-03-09bindings/python: add bindings for notmuch_database_get_revisionGaute Hope
Database.get_revision () returns a tuple with the current database revision and the UUID string representing the database.
2017-03-09configure: removed $zlib_(cflags|ldflags) from compat code buildTomi Ollila
When pkg-config does not find configure, a compat version of the zlib.pc is created. In creation of that configure attempted to read values of $zlib_cflags and $zlib_ldflags. In the usual case those were undefined, and with `set -a` now in the beginning of configure, configure broke. Even if $zlib_cflags and $zlib_ldflags had values which were used to create zlib.pc, the values were overwritten (with static content) a few lines later in next pkg-config --cflags and --libs run. These values would not be different and probably useless -- the following boild would probably fail. But instead of using those, CPATH and LIBRARY_PATH environment variables can be used successfully (both while configuring and building).
2017-03-09cli/new: Avoid printing "\033[K" to non-terminal outputƁukasz Stelmach
2017-03-09test: require test_begin_subtest before test_expect_codeJani Nikula
Unify the subtests by requiring test_begin_subtest before test_expect_code. (Similar change for test_expect_success has already been done.) This increases clarity in the test scripts by having a separate line for the start of the subtest with the heading, and makes it possible to simplify the test infrastructure by making all subtests similar.
2017-03-09test: require test_begin_subtest before test_expect_successJani Nikula
Unify the subtests by requiring test_begin_subtest before test_expect_success. (Similar change for test_expect_code will follow.) This increases clarity in the test scripts by having a separate line for the start of the subtest with the heading, and makes it possible to simplify the test infrastructure by making all subtests similar.
2017-03-09test: drop the implicit prereq check mechanism from test_expect_*Jani Nikula
The only place where we use the implicit prereq check is T000-basic.sh where we check that it works. It's an added complication that we don't use. Remove it. The test_have_prereq function can still be used for the same effect in subtests that use test_begin_subtest. For now, this will make it impossible to have prereqs in one-line subtests that don't require test_begin_subtest. This will be fixed in follow-up work.
2017-03-09test: ensure test_begin_subtest has been called before test_expect_*Jani Nikula
This is the expectation, increase robustness of the test suite by requiring it.
2017-03-09test: only accept short and long options, not silly in-betweensJani Nikula
It's not notmuch style to accept sloppy parameter names.
2017-03-09test: remove unused and no-op --long-tests parameterJani Nikula
It's been unused since its introduction in commit 0083854b1204 ("Copy test framework from Git").
2017-03-09test: remove unused test_external and test_external_without_stderrJani Nikula
They've been unused since their introduction in commit 0083854b1204 ("Copy test framework from Git"), only causing maintenance burden.
2017-03-09test: remove unused filter functionsJani Nikula
They've been unused since their introduction in commit 0083854b1204 ("Copy test framework from Git").
2017-03-09test: remove unused regexp convenience variablesJani Nikula
They've been unused since their introduction in commit 0083854b1204 ("Copy test framework from Git").
2017-03-09test: suppress diff for broken test without V=1Jani Nikula
Known broken tests are, well, known broken. Do not print the result diff for them unless V=1 is specified. Now that the test description is printed also when known broken tests fail, the user can also skip to running the individual failing tests.
2017-03-09test: print test description also for failing known broken testsJani Nikula
With the test description, the user can see the test script name, and debug with that alone.
2017-03-08Merge branch 'release'David Bremner
new release candidate, with regexp fix
2017-03-08debian: changelog stanza for 0.24~rc1-1debian/0.24_rc1-10.24_rc1David Bremner
2017-03-08version: bump version to 0.24~rc1David Bremner
2017-03-07lib: Fix RegexpPostingSourceOlly Betts
Remove incorrect skipping to first match from init(), and add explicit skip_to() and check() methods to work around xapian-core bug (the check() method will also improve speed when filtering by one of these).
2017-03-07Merge branch 'release'David Bremner
NEWS and doc changes
2017-03-07NEWS: notmuch-emacs-mua and desktop integrationJani Nikula
2017-03-07NEWS: external subcommand handlingJani Nikula
2017-03-07man: document external subcommand handling in notmuch(1)Jani Nikula
The documentation for this was overlooked when adding the subcommand handling. This seems like the proper place for it.
2017-03-07NEWS for emacsMark Walters
2017-03-05Merge tag '0.24_rc0'David Bremner
notmuch 0.24~rc0 release
2017-03-05debian: add two new exception symbols.debian/0.24_rc0-10.24_rc0David Bremner
It seems these need to be exported from the library in order for exception handling to work.
2017-03-05NEWS: start NEWS for 0.24David Bremner
2017-03-05debian: start changelog stanza for 0.24~rc0-1David Bremner
2017-03-05version: bump to 0.24~rc0David Bremner
2017-03-04test: shrink T590-thread-breakage test decription to one lineJani Nikula
The test description is used for log output, I think the intention is to keep it as a one-liner. Leave the rest of the long description as a comment.
2017-03-04emacs: compat: backport fix for folding long headers when sendingMark Walters
This backports the fix from emacs master (commit 77bbca8c82f6e553c42abbfafca28f55fc995d00) to notmuch-emacs to wrap long headers. This fixes the test introduced in the previous changeset.
2017-03-04Test: emacs: test for folding long headers.Mark Walters
Headers of more than 998 characters should be folded when sending. However, until recently, emacs did not do this. This adds a (known broken) test for this when sending messages in emacs. We will backport the fix to notmuch-emacs in the next changeset.
2017-03-04lib: query make exclude handling non-destructiveDavid Bremner
We filter added exclude at add time, rather than modifying the query by count search. As noted in the comments, there are several ignored conditions here.
2017-03-04lib: centralize query parsing, store results.David Bremner
The main goal is to prepare the way for non-destructive (or at least less destructive) exclude tag handling. It does this by having a pre-parsed query available for further processing. This also allows us to provide slightly more precise error messages.
2017-03-04lib: use delete[] to free buffer allocated using new[]Jani Nikula
Fix warning caught by clang: lib/regexp-fields.cc:41:2: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete buffer; ^ [] lib/regexp-fields.cc:37:17: note: allocated with 'new[]' here char *buffer = new char[len]; ^
2017-03-03lib: add mid: as a synonym for id:David Bremner
mid: is the url scheme suggested by URL 2392. We also plan to introduce more flexible searches for mid: than are possible with id: (in order not to break assumptions about the special behaviour of id:, e.g. identifying at most one message).
2017-03-03lib: regexp matching in 'subject' and 'from'David Bremner
the idea is that you can run % notmuch search subject:/<your-favourite-regexp>/ % notmuch search from:/<your-favourite-regexp>/ or % notmuch search subject:"your usual phrase search" % notmuch search from:"usual phrase search" This feature is only available with recent Xapian, specifically support for field processors is needed. It should work with bindings, since it extends the query parser. This is easy to extend for other value slots, but currently the only value slots are date, message_id, from, subject, and last_mod. Date is already searchable; message_id is left for a followup commit. This was originally written by Austin Clements, and ported to Xapian field processors (from Austin's custom query parser) by yours truly.
2017-03-03lib: create field processors from prefix tableDavid Bremner
This is a bit more code than hardcoding the two existing field processors, but it should make it easy to add more.
2017-03-02build: use sha256sum instead of sha1sum to sign releasesDavid Bremner
2017-03-01emacs/desktop: update to use notmuch-emacs-mua and handle mailtoJani Nikula
With the mailto: handling in notmuch-emacs-mua, we can update the desktop file to advertize we can be set as the default application to handle email. While at it, add GenericName and Comment to be more informative. With --hello, notmuch-emacs-mua will run (notmuch) if mailto: url is not given.
2017-03-01completion: complete notmuch emacs-muaJani Nikula
With subcommand handling for external commands we can easily complete 'notmuch emacs-mua' using the existing completion system.
2017-02-28Merge branch 'release'David Bremner
Second gnugpg test suite fix
2017-02-28update version to 0.23.70.23.7David Bremner
2017-02-28NEWS: add news for 0.23.7David Bremner
2017-02-28add changelog stanza for 0.23.7-1David Bremner
2017-02-28notmuch-config: ENOENT vs generic handling when file open fails.Tomi Ollila
When opening configuration file fails, ENOENT (file not found) is handled specially -- in setup missing file is ok (often expected), and otherwise user can be informed to run notmuch setup. In any other case the the reason is unknown, so there is no other option but to print generic error message to stderr.
2017-02-28cli/config: don't try to open config file for 'notmuch help'Jani Nikula
The help command does not really need to try to open the config file. So don't.
2017-02-28Merge tag '0.23.6'David Bremner
notmuch 0.23.6 release
2017-02-28cli/show: add content-disposition to structured output message partsJani Nikula
Help the clients decide how to display parts. Test updates by Mark Walters <markwalters1009@gmail.com>. One more test fix by db
2017-02-28cli/show: abstract get content dispositionJani Nikula
Reduce duplication in follow-up work. As a side effect, handle error returns from g_mime_content_disposition_get_disposition() without segfaulting.