aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-04-29python: update the long description in setup.pyJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-29python: fix the test asserting that reading the version succeededJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-29python: simplify a path expression in setup.pyJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-29python: Remove unused import from setup.pyJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-28emacs: do not modify subject in search or showJameson Graef Rollins
A previous patch [0] replaced blank subject lines with '[No Subject]' in search and show mode. Apparently this was needed to circumvent some bug in the printing code, but there was no need for it search or show, and it is definitely not desirable, so we undo it here (a revert is no longer feasible). We should not be modifying strings in the original message without good reason, or without a clear indication that we are doing so, neither of which apply in this case. For further discussion see [0]. [0] id:"1327918561-16245-3-git-send-email-dme@dme.org"
2012-04-28man: Document 'config list' commandPeter Wang
Document the 'config list' command and its output.
2012-04-28config: Add 'config list' commandPeter Wang
Add a command to list all configuration items with their associated values. One use is as follows: a MUA may prefer to store data in a central notmuch configuration file so that the data is accessible across different machines, e.g. an addressbook. The list command helps to implement features such as tab completion on the keys.
2012-04-28test: Add broken test for 'config list'Peter Wang
Proposed functionality.
2012-04-28test: Add tests for 'config' commandPeter Wang
Start a new test script.
2012-04-28config: Check 'config get' arity exactlyPeter Wang
Require that 'config get' is passed exactly one additional argument, instead of silently ignoring extra arguments. As a side-effect, produce more specific error messages for the 'config' command as a whole.
2012-04-28python: wrap and use notmuch_database_destroy as destructorJustus Winter
Adapt the python bindings to the notmuch_database_close split. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-28ruby: Use notmuch_database_destroy instead of notmuch_database_closeJustus Winter
Adapt the ruby bindings to the notmuch_database_close split. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-28go: Use notmuch_database_destroy instead of notmuch_database_closeJustus Winter
Adapt the go bindings to the notmuch_database_close split. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-28Use notmuch_database_destroy instead of notmuch_database_closeJustus Winter
Adapt notmuch-deliver to the notmuch_database_close split. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-28Use notmuch_database_destroy instead of notmuch_database_closeJustus Winter
Adapt the notmuch binaries source to the notmuch_database_close split. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-28NEWS: Document the notmuch_database_close splitJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-28Split notmuch_database_close into two functionsJustus Winter
Formerly notmuch_database_close closed the xapian database and destroyed the talloc structure associated with the notmuch database object. Split notmuch_database_close into notmuch_database_close and notmuch_database_destroy. This makes it possible for long running programs to close the xapian database and thus release the lock associated with it without destroying the data structures obtained from it. This also makes the api more consistent since every other data structure has a destructor function. The comments in notmuch.h are a courtesy of Austin Clements. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-24emacs: Put notmuch-hello-sections in custom group notmuch-helloAustin Clements
2012-04-24new: Fix missing end_atomic in remove_filename on errorAustin Clements
Previously, if we failed to find the message by filename in remove_filename, we would return immediately from the function without ending its atomic block. Now this code follows the usual goto DONE idiom to perform cleanup.
2012-04-24new: Print final fatal error message to stderrAustin Clements
This was going to stdout. I removed the newline at the beginning of printing the fatal error message because it wouldn't make sense if you were only looking at the stderr stream (e.g., you had redirected stdout to /dev/null).
2012-04-24new: Handle fatal errors in remove_filename and _remove_directoryAustin Clements
Previously such errors were simply ignored. Now they cause an immediate cleanup and abort.
2012-04-24new: Consistently treat fatal errors as fatalAustin Clements
Previously, fatal errors in add_files_recursive were not treated as fatal by its callers (including itself!). This makes add_files_recursive errors consistently fatal and updates all callers to treat them as fatal.
2012-04-24emacs: Put notmuch-print-mechanism in custom group notmuch-showAustin Clements
2012-04-24config: Fix free in 'config get' implementation.Peter Wang
The array returned by g_key_file_get_string_list() should be freed with g_strfreev(), not free().
2012-04-24emacs: modify help message for notmuch-search-line-faces to reflect preferred "deleted" tag name.Jameson Graef Rollins
No functional change here. The help message previously referred to the "delete" tag, but "deleted" is now preferred, so hopefully this will reduce any potential confusion.
2012-04-21vim: simplify buildFelipe Contreras
There should be no functional changes, except that you don't need to make the directories before installing. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2012-04-21vim: fix regex after "notmuch show" output changeJakob
The new field "excluded" was added to the output and made this regex fail. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2012-04-15lib: work around talloc_steal usage from C++ codeJani Nikula
Implicit typecast from 'void *' to 'T *' is okay in C, but not in C++. In talloc_steal, an explicit cast is provided for type safety in some GCC versions. Otherwise, a cast is required. Provide a template function for this to maintain type safety, and redefine talloc_steal to use it. The template must be outside the extern "C" block (NOTMUCH_BEGIN_DECLS and NOTMUCH_END_DECLS), but keep it within the GCC visibility #pragma. No functional changes, apart from making the library build with compilers other than recent GCC. Signed-off-by: Jani Nikula <jani@nikula.org>
2012-04-15Record dependencies during build instead of beforeAustin Clements
Previously, the makefile created dependency files in a separate, first pass. In particular, include-ing the dependency files would cause make to attempt to rebuild those files using the dependency-generation rules in the makefile. Unfortunately, this approach required obtuse rules and silently delayed the start of the build process (by quite a bit on a clean tree without any dependency files). Worse, this required the dependency files to themselves depend on all of the headers the source file depended on, which meant that, if a header file was removed, the depedency file could not be updated because of a missing dependency (!), which would cause make to silently fail. This patch eliminates the dependency generation rules and instead generates dependency files as a side-effect of the regular build rule. On the first build, we don't need to know the dependencies beforehand; the object file doesn't exist, so it will be built anyway. On subsequent builds, if a header file is updated, the dependency rules generated by the previous build will force a rebuild. If a source file is updated, the dependency rules may be stale, but it doesn't matter because the updated source file will force a rebuild. In the final case above, the stale dependency rules may refer to a header file that no longer exists but is also no longer needed. In order to prevent this from breaking the build, we also pass gcc the -MP option, which generates phony targets for every depended-on header file, so make won't complain if it can't find them during a later build.
2012-04-15show: Remove empty message_set_{start,sep,end} fieldsAustin Clements
Setting these to NULL is equivalent to the empty string now.
2012-04-15show: Support NULL values for message_set_{start, sep, end}Austin Clements
Many formats don't need these, so it's more convenient if they don't have to set them at all.
2012-04-15show: Remove unused fields from notmuch_show_formatAustin Clements
These fields were only used by old-style formatters.
2012-04-15Remove show-message.cAustin Clements
There are no more calls to show_message_body.
2012-04-15show: Remove support for old-style formatters in show_messageAustin Clements
show_message used to have a compatibility path for old-style formatters. This removes that.
2012-04-15Sync schemata with current code structureAustin Clements
The schema itself hasn't changed, but many of the references to functions in notmuch-show.c were out of date.
2012-04-12emacs: have tag-completion return all tags for nil inputJameson Graef Rollins
Previously the function would fail if the initial input was nil. Now it will return a list of all tags, which obviously makes much more sense.
2012-04-12News for raw format changesAustin Clements
2012-04-12debian: add gnupg-agent to notmuch recommendsJameson Graef Rollins
gnupg-agent is required for message decryption, so this should help stem some issues encountered by users trying to decrypt messages.
2012-04-12emacs: include tags from excluded messages in tag tab completionJameson Graef Rollins
The new message exclude functionality will hide tags that only exist on excluded messages. However, one might very well want to manually modify excluded tags. This makes sure tags from excluded messages are always available in tab completion.
2012-04-12emacs: update call in tag-completion functionJameson Graef Rollins
"search-tags" is deprecated, so use the more modern and supported "search --output=tags".
2012-04-12emacs: get rid of trailing spaces in notmuch-hello viewDmitry Kurochkin
This patch removes trailing spaces in notmuch-hello view. A side effect of this change is that tag/query buttons no longer include a space at the end. This means that pressing RET when the point is at the first character after the tag/query button no longer works (note that this is the standard behavior for buttons). We may change this behavior in the future (without adding trailing spaces back) if people would find this change inconvenient.
2012-04-07emacs: make show set --exclude=falseMark Walters
Show has to set --exclude=false to deal with cases where it is asked to show a single excluded message. It uses JSON so it can easily pass the exclude information to the user.
2012-04-07test: add some exclude testsMark Walters
Systematically test the exclude options for search. Also move the search existing exclude tests into the new test. There is some overlap between the two sets of tests but many of the existing ones are there because they triggered bugs in the past so I have kept them to ensure coverage.
2012-04-07cli: move show to the new --exclude= option naming scheme.Mark Walters
This moves notmuch show to the --exclude=(true|false) naming scheme. When exclude=false show returns all threads that match including those that only match in an excluded message. The excluded messages are flagged. When exclude=true the behaviour depends on whether --entire-thread is set. If it is not set then show only returns the messages which match and are not excluded. If it is set then show returns all messages in the threads that match in a non-excluded message, flagging the excluded messages in these threads. The rationale is that it is awkward to use a thread with some missing messages.
2012-04-07cli: move search to the new --exclude= naming scheme.Mark Walters
This commit replaces the --no-exclude option with a --exclude=(true|false|flag) option. The default is to omit the excluded messages. The flag option only makes sense if output=summary (as otherwise there is nowhere to print the flag). In summary output exclude=false and exclude=flag give almost identical output: they differ in that with the exclude=flag option the match count (i.e., the x in [x/n] in the output) is the number of matching non-excluded messages rather than the number of matching messages. Note this changes the default for output=summary when no --exclude= option is given: it used to default to flag and now defaults to true (i.e. omit excluded messages). This is neccesary to keep the cli output uncluttered and for speed reasons.
2012-04-07cli: move count to the new --exclude=(true|false|flag) naming scheme.Mark Walters
Move the option --no-exclude to the --exclude= scheme. Since there is no way to flag messages only true and false are implemented. Note that, for consistency with other commands, this is implemented as a keyword option rather than a boolean option.
2012-04-07lib: change default for notmuch_query_set_omit_excludedMark Walters
2012-04-06emacs: do not modify the alist passed to notmuch-sort-saved-searchesJani Nikula
Sort modifies its input as a side effect. Pass it a copy in notmuch-sort-saved-searches to not modify the notmuch-saved-searches alist.
2012-04-05configure: change gmime version in help message to 2.6David Bremner
Since GMime 2.6 is now the stable version upstream, and probably the most tested by notmuch developers, it makes sense to suggest that to users to install.
2012-04-05configure: print info about required gmime 2.4 or 2.6 versionsTomi Ollila
In case required gmime (2.4 or 2.6) version if not found print information about both alternatives (and currently minimal 2.6 version that is needed).