aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-05-13man: document search --exclude=allPeter Wang
Document the new search --exclude=all option.
2013-05-13test: add tests for search --exclude=allPeter Wang
Test the new search --exclude=all option.
2013-05-13cli: add --exclude=all option to notmuch-search.cMark Walters
Add a --exclude=all option to notmuch search.
2013-05-13lib: add --exclude=all optionMark Walters
Adds a exclude all option to the lib which means that excluded messages are completely ignored (as if they had actually been deleted).
2013-05-13lib/database.cc: change how the parent of a message is calculatedAaron Ecay
Presently, the code which finds the parent of a message as it is being added to the database assumes that the first Message-ID-like substring of the In-Reply-To header is the parent Message ID. Some mail clients, however, put stuff other than the Message-ID of the parent in the In-Reply-To header, such as the email address of the sender of the parent. This can fool notmuch. The updated algorithm prefers the last Message ID in the References header. The References header lists messages oldest-first, so the last Message ID is the parent (RFC2822, p. 24). The References header is also less likely to be in a non-standard syntax (http://cr.yp.to/immhf/thread.html, http://www.jwz.org/doc/threading.html). In case the References header is not to be found, fall back to the old behavior. V2 of this patch, incorporating feedback from Jani and (indirectly) Austin.
2013-05-13test: add tests for the handling of References and In-Reply-To headersAaron Ecay
These tests are known_broken, the following commit fixes them. amended per id:87txmi1zq3.fsf@nikula.org id:87vc6yalo7.fsf@zancas.localnet
2013-05-13emacs: removed code attempting to support emaces prior to version 23Tomi Ollila
The support for emacs version 22 has not worked at least since September 2011 when I attempted to use it. I expanded the support in id:yf6ippgtbn0.fsf@taco2.nixu.fi but that was not enough and then I found it easier to switch to emacs 23. In case one wants to resurrect emacs 22 (or earlier!) support, pick the changes from the patch email referenced above.
2013-05-13emacs/notmuch-address.el: add notmuch-address-selection-functionTomi Ollila
Added a customizable variable notmuch-address-selection-function and the function with the same name to provide a way for user to change the function called to do address selection. By default the functionality is exactly the same as it has been so far; completing-read is called with the same parameters as before. Setting equivalent lambda expression in place of using notmuch-address-selection-function function is done as follows: (setq notmuch-address-selection-function (lambda (prompt collection initial-input) (completing-read prompt collection nil nil initial-input))) For example drop-in replacement with ido-completing-read can be done easily as an one alternative to the default.
2013-05-12cli: config: fix config file save when the file does not existJani Nikula
The use of realpath(3) in commit 58ed67992d0ec1fa505026105218fa449f7980b0 Author: Jani Nikula <jani@nikula.org> Date: Sun Apr 7 20:15:03 2013 +0300 cli: config: do not overwrite symlinks when saving config file broke config file save when the file does not exist, which results in 'notmuch setup' always failing to create a new config file. Fix by checking ENOENT from realpath(3).
2013-05-12test: add basic test for notmuch setupJani Nikula
And annotate with test_subtest_known_broken. Hooray.
2013-05-12man: clarify search --exclude=flagPeter Wang
Improve the description of the search --exclude=flag option, using text taken from the commit that introduced the option.
2013-05-12man: clarify search --exclude documentationPeter Wang
Highlight "excluded messages" as a term with a meaning that may not be obvious. Be explicit about the effects of search --exclude=true and --exclude=false.
2013-05-05emacs: add kernel.org mail archive redirectorJani Nikula
See http://lkml.kernel.org/
2013-05-05python: Add bindings for notmuch_thread_get_messagesAustin Clements
2013-05-03go: use a different goconfig packageJustus Winter
The notmuch-addrlookup utility uses a third party library to read the notmuch configuration file. The previously used implementation at "github.com/kless/goconfig" vanished, so this patch switches to the implementation at "github.com/msbranco/goconfig". As the implementations differ at the API level, the code is updated accordingly. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2013-05-03lib/message.cc: stale pointer bug (v3)Vladimir Marek
Xapian::TermIterator::operator* returns std::string which is destroyed as soon as (*i).c_str() finishes. The remembered pointer 'term' then references invalid memory. Signed-off-by: Vladimir Marek <vlmarek@volny.cz>
2013-04-30emacs: fixed (declare-function ...) definitionsTomi Ollila
Some (declare-function ...) definitions were drifted away from the actual (defun ...)'s. To find the drifts and to verify changes the following command line was used: $ emacs --batch -L emacs --eval '(check-declare-directory "emacs")'
2013-04-30man: document NOTMUCH_DEBUG_QUERYDavid Bremner
This is is really functionality of the library, but CLI users might not look at library docs even if they existed beyond notmuch.h
2013-04-14cli: mime node: fix compiler warning when building against gmime 2.4Jani Nikula
commit d487ef9e58bcd193118f19f771d5ef3984616be5 Author: Jani Nikula <jani@nikula.org> Date: Sat Mar 30 15:53:16 2013 +0200 cli: mime node: abstract decryption and signature verification introduced a compiler warning, reported by Mark Walters, when building against gmime 2.4: mime-node.c:224:9: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] Pass the non-const signature validity to the destructor to fix this.
2013-04-14TODO: remove some completed todo items from the listJani Nikula
Bash completion has been rewritten. Configuration file saves follow symlinks. There is --config=FILE top level option to specify configuration file.
2013-04-14cli: config: do not overwrite symlinks when saving config fileJani Nikula
Use realpath to canonicalize the config path before writing. Previously 'notmuch setup' and 'notmuch config set' overwrote the config file even if it was a symbolic link.
2013-04-14test: add some config file testsJani Nikula
Test the --config=FILE option, and add a broken test for writing config file through a symbolic link.
2013-04-06Revert "emacs: functions to import sender or recipient into BBDB"David Bremner
This reverts commit 238bf4cb09423cac4efa968e70184daad39e2846. This commit was causing a build failure. Bad me for not checking before pushing.
2013-04-06emacs: functions to import sender or recipient into BBDBDaniel Bergey
From a show buffer, notmuch-bbdb/snarf-from imports the sender into bbdb. notmuch-bbdb/snarf-to imports all recipients. Newly imported contacts are reported in the minibuffer / Messages buffer. Both functions use the BBDB parser to recognize email address formats.
2013-04-06nmbug-status: only import notmuch when neededJani Nikula
Make it possible to use the script to query search views without notmuch python bindings installed.
2013-04-06nmbug-status: add support for querying the search viewsJani Nikula
Make it easy for scripts to read the views and corresponding searches.
2013-04-01cli: conform to same conditional build style as elsewhere in notmuch-showJani Nikula
Conform to the same style for #ifdef GMIME_ATLEAST_26 conditional builds as elsewhere. There are no functional changes.
2013-04-01cli: mime node: abstract decryption and signature verificationJani Nikula
The code filled with #ifdef GMIME_ATLEAST_26 is difficult to read. Abstract the decryption and signature verification into functions, with separate implementations for GMime 2.4 and 2.6, to clarify the code. There should be no functional changes.
2013-04-01cli: crypto: abstract gpg context creation for clarityJani Nikula
The code filled with #ifdef GMIME_ATLEAST_26 is difficult to read. Abstract gpg context creation into a function, with separate implementations for GMime 2.4 and 2.6, to clarify the code. There should be no functional changes.
2013-04-01emacs: hello: use batch countMark Walters
This modifies notmuch hello to use the new count --batch functionality. It should give exactly the same results as before but under many conditions it should be much faster. In particular it is much faster for remote use. The code is a little ugly as it has to do some working out of the query when asking the query and some when dealing with the result. However, the code path is exactly the same in both local and remote use.
2013-04-01test: notmuch count --batch and --input optionsJani Nikula
2013-04-01man: document notmuch count --batch and --input optionsJani Nikula
2013-04-01cli: add --batch option to notmuch countJani Nikula
Add support for reading queries from stdin, one per line, and writing results to stdout, one per line. This will bring considerable performance improvements when utilized in Emacs notmuch-hello, especially so when running remote notmuch.
2013-04-01cli: extract count printing to a separate function in notmuch countJani Nikula
Make count printing on a query string reusable. No functional changes.
2013-04-01cli: remove useless talloc_strdupJani Nikula
If the condition holds, query_string_from_args() has already returned a talloc allocated empty string. There's no need to duplicate that.
2013-04-01emacs: introduce notmuch-command-to-string, replace use of shell-command-to-stringDavid Bremner
This has two benefits: unified error handling, and avoiding tramp's hooking into shell-command-string. This seems to be a fix for id:874nguxbvq.fsf@tu-dortmund.de
2013-03-30test: notmuch tag --remove-allJani Nikula
2013-03-30man: document notmuch tag --remove-allJani Nikula
2013-03-30cli: add --remove-all option to "notmuch tag"Jani Nikula
Add --remove-all option to "notmuch tag" to remove all tags from the messages matching query before applying the tag changes. This allows removal of all tags and unconditional setting of the tags of a message: $ notmuch tag --remove-all id:foo@example.com $ notmuch tag --remove-all +foo +bar id:foo@example.com without having to resort to the complicated (and still quoting broken): $ notmuch tag $(notmuch search --output=tags '*' | sed 's/^/-/') \ id:foo@example.com $ notmuch tag $(notmuch search --output=tags '*' | sed 's/^/-/') \ +foo +bar id:foo@example.com
2013-03-30cli: make caller check tag count in parse_tag_command_lineJani Nikula
2013-03-30completion: update README about bash completion dependenciesJani Nikula
2013-03-30NEWS: bash completionJani Nikula
2013-03-30cli: config: remove unnecessary braces from if blocksJani Nikula
Cosmetic change to drop unnecessary braces that don't even conform to the prevailing coding style.
2013-03-29lib: Fix name reordering to handle commas without spacesAdam Wolfe Gordon
Notmuch automatically re-orders names of the format "Last, First" to "First Last" when the associated email address is First.Last@example.com. But, if a name is of the format "Last,First" then notmuch will format the name as "irst Last". Handle any number of spaces after the comma, including none.
2013-03-29devel: add post-release tools news2wiki.pl and man-to-mdwn.plTomi Ollila
After new notmuch release has been published the NEWS and manual pages have been updated using these 2 programs. Adding the tools to notmuch repository eases their use, adds more transparency to the "process" and gives more people chance to do the updates is one is unavailable to do it at the time being.
2013-03-29devel/STYLE: information how to enable standard pre-commit hookTomi Ollila
It is easier to enable git standard pre-commit hook, when the operation to do so is presented.
2013-03-28completion: complete bash completion rewriteJani Nikula
Rewrite the bash completion script to actually do something useful. Supported completions: * All the notmuch commands, command line arguments, and values for keyword arguments. * Tags after + and - in 'notmuch tag'. * Config options in 'notmuch config', and some config option values. * Search prefixes in all commands that use search terms. * Tags after tag: prefix in search terms. * User's email addresses after from: and to: in search terms. This is all based on the bash-completion package [1], and will not work without it. [1] http://bash-completion.alioth.debian.org/
2013-03-25emacs: possibility to customize the rendering of tagsDamien Cassou
This patch extracts the rendering of tags in notmuch-show to the notmuch-tag file. This file introduces a `notmuch-tag-formats' variable that associates each tag to a particular format. This variable can be customized thanks to the work of Austin Clements. For example, '(("unread" (propertize tag 'face '(:foreground "red"))) ("flagged" (notmuch-tag-format-image tag "star.svg"))) associates a red foreground to the "unread" tag and a star picture to the "flagged" tag. Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
2013-03-25emacs: Add notmuch-combine-face-text-property-stringDamien Cassou
Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
2013-03-25emacs: Combine string faces and combine under existing facesAustin Clements
This improves notmuch-combine-face-text-property to support both applying faces to strings and to support combining the given face under existing faces, rather than over.