aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-07cli/config: rename name to key in _config_set_listJani Nikula
The other getters and setters speak of key, follow suit. No functional changes.
2017-01-07cli/config: allocate config using talloc_zeroJani Nikula
Do not initialize each field separately. It's more robust to allocate the config with zero initialization, and only set the non-zero defaults individually.
2017-01-01configure: fix $prefix expansion for libdir_expandedTomi Ollila
Since the sed expansion line which did $prefix expansion for libdir_expanded was changed from the legacy `...` format to the new $(...) expression, the subtle backslash expansion change went unnoticed -- \\$ which used to escape '$' now escapes '\' and the following '$prefix' was attempted to expand as a variable. So changing \\$ to \$ fixes this. Also, replaced echo with printf %s -- echo does expansions of its own. While at it, the following 2 inconsistencies were fixed: 1) the /g flag was removed from first expression; second didn't have it 2) first expression did not end with /, so "dropped" it from second configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2016-12-29Merge branch 'release'David Bremner
merge 0.23.4 release
2016-12-24version: update to 0.23.4debian/0.23.4-10.23.4David Bremner
2016-12-24set date in NEWS and debian/changelogDavid Bremner
pentultimate prepartions for release
2016-12-23debian: remove setting of emacslispdirDavid Bremner
With dh-elpa, this setting is no longer used
2016-12-18debian: changelog stanza for 0.23.4-1David Bremner
2016-12-16notmuch-config: replace config reading functionIoan-Adrian Ratiu
Config files are currently read using glib's g_key_file_load_from_file function which is very inconvenient because it's limited by design to read only from "regular data files" in a filesystem. Because of this limitation notmuch can't read configs from pipes, fifos, sockets, stdin, etc. Not even "notmuch --config=/dev/stdin" works: Error reading configuration file /dev/stdin: Not a regular file So replace g_key_file_load_from_file with g_key_file_load_from_data which gives us much more freedom to read configs from multiple sources. This also helps the more security sensitive users: If someone has private information in the config file, it can be encrypted on disk, then decrypted in RAM and passed through a pipe directly to notmuch without the use of intermediate plain text files. Signed-off-by: Ioan-Adrian Ratiu <adi@adirat.com>
2016-12-16cli: abstract config file reading to a separate functionJani Nikula
Simplify and fix the coding style while at it.
2016-12-15Merge branch 'release'David Bremner
Add back in no-display parameter by hand.
2016-12-15NEWS: announce autoload fixDavid Bremner
2016-12-15emacs: restore autoload cookie for notmuch-searchDavid Bremner
The cookie only applies to next form, so in the previous location it applied to the put, rather than the function.
2016-12-15NEWS: news for notmuch-insert error handlingDavid Bremner
2016-12-15cli/insert: document the use of EX_TEMPFAILDavid Bremner
2016-12-07Merge branch 'release'David Bremner
Merge changes for notmuch-insert error handling, debian bugfix release
2016-12-07cli/insert: return EX_TEMPFAIL for some errorsDavid Bremner
Attempt to distinguish between errors indicating misconfiguration or programmer error, which we consider "permanent", in the sense that automatic retries are unlikely to be useful, and those indicating transient error conditions. We consider XAPIAN_EXCEPTION transient because it covers the important special case of locking failure.
2016-12-07cli/insert: delay database open until after writing mail fileDavid Bremner
The idea is to get the mail written to disk, even if we can't open the database (e.g. because some other process has a write lock, and notmuch is compiled for non-blocking opens).
2016-12-07test: gdb insert: redirect input inside gdb scriptTomi Ollila
Running `gdb command < input` is not as reliable way to give input to the command (some installations of gdb consume it). Use "set args" gdb command to have input redirected at gdb 'run' time.
2016-12-05debian: changelog stanza for 0.23.3-3David Bremner
2016-12-05debian: disable gdb using tests on kfreebsd-*David Bremner
gdb seems broken there.
2016-12-03test: check the handling of files vanishing between scandir and indexingJani Nikula
Add a file for scandir to find, but use gdb to remove it before it gets indexed.
2016-12-03test: clean up corpora.emailDavid Bremner
When we renamed corpus to corpora, we missed a spot.
2016-12-01Merge branch 'release'David Bremner
2016-12-01debian: fix transition package for notmuch-emacsDavid Bremner
The current version is more a transition to nowhere.
2016-11-28build: update the desktop database after installing the desktop fileJani Nikula
This makes the option to choose Notmuch as mailto: handler show up in the desktop environment settings. Ignore errors.
2016-11-28build: install notmuch-emacs-mua.desktop file with emacsJani Nikula
There is really no need to have a separate install target for the desktop file. Just install the desktop file with emacs, with a configure option to opt out.
2016-11-28doc: whitespace cleanupTomi Ollila
In most part, our .rst documents are indented with 8 spaces instead of tabs. Bring the rest of the lines to the same format. Also, on one (supposedly empty) line, trailing spaces were removed.
2016-11-27Merge tag '0.23.3'David Bremner
notmuch 0.23.3 release
2016-11-26NEWS: fix date and title0.23.3David Bremner
2016-11-26Merge branch 'release'David Bremner
Add Jani's fix for notmuch-new
2016-11-26NEWS: note disappearing files fix for notmuch newDavid Bremner
2016-11-26NEWS: set dateDavid Bremner
2016-11-26debian: finalize? changelog for 0.23.3-1David Bremner
2016-11-26notmuch.desktop: move under emacs as notmuch-emacs-mua.desktopJani Nikula
The notmuch.desktop file is part of notmuch-emacs. Move it under emacs, and rename as notmuch-emacs-mua.desktop to reflect this.
2016-11-26build: install notmuch-emacs-mua with notmuch-emacsJani Nikula
notmuch-emacs-mua is good enough to be installed with notmuch-emacs.
2016-11-26notmuch-emacs-mua: add --hello parameterJani Nikula
If the --hello parameter is given, display the notmuch hello buffer instead of the message composition buffer if no message composition parameters are given. Signed-off-by: Jani Nikula <jani@nikula.org>
2016-11-26emacs: move notmuch-emacs-mua under emacsJani Nikula
While the notmuch-emacs-mua script is a sort of cli command, it is really a part of notmuch-emacs. Move it under the emacs directory.
2016-11-26man: advertize notmuch-emacs-mua as notmuch emacs-mua subcommandJani Nikula
With subcommand handling for external commands we can now hide the implementation detail of emacs-mua being a separate notmuch-emacs-mua script.
2016-11-26build/emacs: add target to create elpa packageDavid Bremner
This package can be created without emacs, but will only be usable in versions of emacs supporting package.el
2016-11-26build: Move variable definitions to Makefile.globalDavid Bremner
I noticed when trying to use VERSION (and derived variables) in a subdirectory that the top level Makefile.local needed to be included first. But according to c10085c77b407d9ea704f8b4f9e0a805f63e72cb it actually needs to be last. To break this conflict, move the variables definitions into a new Makefile.global.
2016-11-25cli/new: document new exit codeDavid Bremner
It seems important to give the numeric return code for people writing scripts. Hopefully deviations from this convention are rare.
2016-11-25cli: consider files vanishing during notmuch new non-fatalJani Nikula
If some software other than notmuch new renames or removes files during the notmuch new scan (specifically after scandir but before indexing the file), keep going instead of bailing out. Failing to index the file is just a race condition between notmuch and the other software; the rename could happen after the notmuch new scan anyway. It's not fatal, and we'll catch the renamed files on the next scan. Add a new exit code for when files vanished, so the caller has a chance to detect the race and re-run notmuch new to recover. Reported by Paul Wise <pabs@debian.org> at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=843127
2016-11-24Merge branch 'release'David Bremner
Initial set of changes for 0.23.3
2016-11-24debian: start changelog stanza for 0.23.3-1David Bremner
2016-11-24version: bump to 0.23.3David Bremner
2016-11-24NEWS: note gnupg related test-suite fixDavid Bremner
2016-11-24debian: disable dh_elpa_testDavid Bremner
Currently it seems to interfere with running the notmuch test suite. In any case we have no ert / buttercup format tests to run.
2016-11-24tests: account for varying-size cryptographic signaturesDaniel Kahn Gillmor
GnuPG 2.1.16 is now injecting the full issuer fingerprint in its signatures, which makes them about 32 octets larger when ascii-armored. This change in size means that the size of the MIME parts will vary depending on the version of gpg that the user has installed. at any rate, the signature part should be non-zero (this is true for basically any MIME part), so we just test for that instead of an exact size.
2016-11-20Merge tag '0.23.2'David Bremner
notmuch 0.23.2 release