aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-12-15notmuch: unref charset_filter to fix one memory leakTomi Ollila
In my test case added g_object_unref(charset_filter) reduces memory consumption over 90% when 'notmuch show --format=text "*"' is executed (~11000 messages, RES ~330M -> ~25M).
2011-12-15emacs: support "notmuch new" as a notmuch-poll-scriptJani Nikula
Support nil value for notmuch-poll-script to run "notmuch new" instead of an external script, and make this the new default. "notmuch new" is run using the configured notmuch-command. This allows taking better advantage of the "notmuch new" hooks from emacs without intermediate scripts. Signed-off-by: Jani Nikula <jani@nikula.org>
2011-12-15debian: add upstream-tag and fix debian-tag configs for git-buildpackageJameson Graef Rollins
Debian tags have been using '/', instead of '-' as a separator.
2011-12-13command-line-arguments.[ch]: make arrays of keyword descriptors constDavid Bremner
It seems like it should never be necessary to modify these arrays after initialization.
2011-12-12test: add arg-test to .gitignoreDavid Bremner
This should have been done when the binary was added, oops.
2011-12-12build-system: clean $(libutil_modules) rather than listing them individually.David Bremner
This matches the way the other 'Makefile.local's work.
2011-12-12cli: factor out config handling code to get/set lists.David Bremner
Two new internal routines are created _config_get_list and _config_set_list; the notmuch_config_get_* functions that deal with lists are simply wrappers for these functions.
2011-12-11test: add tests for hooksJani Nikula
Signed-off-by: Jani Nikula <jani@nikula.org>
2011-12-11cli: add support for pre and post notmuch new hooksJani Nikula
Run notmuch new pre and post hooks, named "pre-new" and "post-new", if present in the notmuch hooks directory. The hooks will be run before and after incorporating new messages to the database. Typical use cases for pre-new and post-new hooks are fetching or delivering new mail to the maildir, and custom tagging of the mail incorporated to the database. Also add command line option --no-hooks to notmuch new to bypass the hooks. Signed-off-by: Jani Nikula <jani@nikula.org>
2011-12-11cli: introduce the concept of user defined hooksJani Nikula
Add mechanism for running user defined hooks. Hooks are executables or symlinks to executables stored under the new notmuch hooks directory, <database-path>/.notmuch/hooks. No hooks are introduced here, but adding support for a hook is now a simple matter of calling the new notmuch_run_hook() function at an appropriate location with the hook name. Signed-off-by: Jani Nikula <jani@nikula.org>
2011-12-11test: use python2 instead of python if availableThomas Jost
Some distros (Arch Linux) ship Python as python2 and Python 3 as python. Checking for python2 is necessary for the Python tests to work on these platforms.
2011-12-11test: add a function to run Python testsThomas Jost
The new test_python() function makes writing Python tests a little easier: - it sets the environment variables as needed - it redirects stdout to the OUTPUT file (like test_emacs()). This commit also declares python as an external prereq. The stdout redirection is required to avoid trouble when running commands like "python 'script' | sort > OUTPUT": in such a case, any error due to a missing external prereq would be "swallowed" by sort, resulting to a failed test instead of a skipped one.
2011-12-11Release memory allocated by internet_address_list_parse_string()Tomi Ollila
g_object_unref() releases the memory of the InternetAddressList object returned by internet_address_list_parse_string() -- when last (only) reference is released, internet_address_list_finalize() will do cleanup.
2011-12-11test: cleanup gdb external dependency in atomicity testsDmitry Kurochkin
Change atomicity tests to use the new external binary dependencies. This simplifies the code and makes output consistent.
2011-12-08notmuch-search: convert to command-line-argumentsDavid Bremner
The switch on format_sel is slightly clunky, but it doesn't seem worth special casing argument processing for function pointers, when I think the function pointer approach will be modified/abandoned.
2011-12-08notmuch-restore: convert to command-line-argumentsDavid Bremner
The new argument handling is a bit more concise, and bit more flexible. It allows the input file name to go before the --accumulate option.
2011-12-08notmuch-dump: convert to command-line-argumentsDavid Bremner
The output file is handled via positional arguments. There are currently no "normal" options.
2011-12-08test: tests for command-line-arguments.cDavid Bremner
This was needed because no current notmuch code exercises the NOTMUCH_OPT_STRING style arguments.
2011-12-08command-line-arguments.[ch]: new argument parsing framework for notmuch.David Bremner
As we noticed when Jani kindly converted things to getopt_long, much of the work in argument parsing in notmuch is due to the the key-value style arguments like --format=(raw|json|text). The framework here provides positional arguments, simple switches, and --key=value style arguments that can take a value being an integer, a string, or one of a set of keywords.
2011-12-07json: date_relative for threadspazz
include the date_relative field in the json formated output of notmuch search
2011-12-07test: date_relative in notmuch search json outputpazz
expect the date_relative field for thread entries in notmuch search's json output note from Commiter: we don't have to worry about the date changing because the date in question is more than 180 days old.
2011-12-07emacs: do not call notmuch show for non-inlinable partsDmitry Kurochkin
Before the change, there was a workaround to avoid notmuch show calls for parts with application/* Content-Type. But non-inlinable parts are not limited to this Content-Type (e.g. mp3 files have audio/mpeg Content-Type and are not inlinable). For such parts `notmuch-show-insert-part-*/*' handler is called which unconditionally fetches contents for all parts. The patch moves content fetching from `notmuch-show-insert-part-*/*' to `notmuch-show-mm-display-part-inline' function after MIME inlinable checks are done to avoid useless notmuch show calls. The application/* hack is no longer needed and removed.
2011-12-07test: check that Emacs UI does not call notmuch for non-inlinable partsDmitry Kurochkin
The patch adds two new test cases: * Do not call notmuch for non-inlinable application/mpeg parts * Do not call notmuch for non-inlinable audio/mpeg parts The application/mpeg test passes thanks to a workaround for application/* Content-Types. The audio/mpeg is currently broken.
2011-12-07test: add functions to count how much times notmuch was calledDmitry Kurochkin
The patch adds two auxiliary functions and a variable: notmuch_counter_reset $notmuch_counter_command notmuch_counter_value They allow to count how many times notmuch binary is called. notmuch_counter_reset() function generates a script that counts how many times it is called and resets the counter to zero. The function sets $notmuch_counter_command variable to the path to the generated script that should be called instead of notmuch to do the counting. The notmuch_counter_value() function returns the current counter value.
2011-12-07emacs: remove unused variable in `notmuch-show-insert-part-message/rfc822'Dmitry Kurochkin
An obvious cleanup. I wonder why there was no warning about this during compilation.
2011-12-07emacs: remove some code duplication in notmuch-showDmitry Kurochkin
Add optional props argument to `notmuch-show-get-header'. Use it to get headers in `notmuch-show-insert-part-multipart/signed' and `notmuch-show-insert-part-multipart/encrypted'.
2011-12-07test/symbol-hiding: compare exported symbols with existing oneDavid Bremner
We assume that any symbol starting with notmuch_ in lib/*.o should be exported, and that only those symbols should be exported.
2011-12-07test/symbol-hiding: add some whitespace between testsDavid Bremner
This is in preparation for adding a third test to this file
2011-12-06Merge branch 'release'David Bremner
Conflicts: NEWS Conflicts resolved by inserting the 0.10.2 stanza before 0.11
2011-12-06fix format string in Message.__unicode__Patrick Totzke
Since 2b0116119160f2dc83, Message.__str__ doesn't construct a hash containing the thread data before constructing the formatstring. This changes the formatstring to accept positional parameters instead of a hash.
2011-12-06contrib/.gitattributes: removeDavid Bremner
Now that licensing of notmuch-deliver has been harmonized with notmuch, there is no reason not to export it.
2011-12-06notmuch-deliver: GPL-3+Ali Polatel
2011-12-06notmuch-deliver: Import from maildrop-2.5.5Ali Polatel
maildrop-2.5.5 is GPL-3. No change in functionality, just a precaution before relicensing.
2011-12-06make release: remove LATEST-$(PACKAGE)-*Tomi Ollila
The tar file of particular package (notmuch in this case) is named as $(PACKAGE)-$(VERSION).tar.gz. Therefore the best way to remove previous link to LATEST is to remove all files beginning with LATEST-$(PACKAGE)- and not relying how $(VERSION) string is constructed.
2011-12-06have LATEST-notmuch-<version>.tar.gz on releases web pageTomi Ollila
The notmuchmail/releases page used to have LATEST-notmuch-<version> to link to the latest notmuch source tarball. This is confusing on web page and on disk when the file has been downloaded. This change looks a bit inconsistent with the 'rm' command just executed before. $(TAR_FILE) is defined (currently) as $(PACKAGE)-$(VERSION).tar.gz; as long as the prefix stays $(PACKAGE)-$(VERSION) and version begins with a digit then this line is good in execution point of view.
2011-12-06test: add test-binaries targetDavid Bremner
The goal here is to have a simple way of making sure all of the binaries needed to run tests are available.
2011-12-06python: Remove stray debug commentSebastian Spaeth
This slipped in wrongly in commit 71e0082eff (due to my fault). Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-12-06python: use wrapped notmuch_*_t types instead of raw pointersThomas Jost
Now that types are checked correctly, we also need to make sure that all the arguments actually are instances of these types. Otherwise the function calls will fail and raise an exception similar to this one: ctypes.ArgumentError: argument 3: <type 'exceptions.TypeError'>: expected LP_LP_NotmuchMessageS instance instead of pointer to c_void_p
2011-12-06errors='ignore' when decode to unicodePatrick Totzke
2011-12-06use __unicode__ for string representationPatrick Totzke
2011-12-06clean up Thread.__str__Patrick Totzke
2011-12-06python: Return a STATUS value in tags_to_flags and flags_to_tagsSebastian Spaeth
We were not returning anything at all, which does not match the API documentation. Fixed. Thanks to Patrick Totzke for the heads up. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-12-06remove unused importsPatrick Totzke
2011-12-06fix sphinx compile-time warningsPatrick Totzke
no changes to the code, only makes compiling the docs smoother as some rsT syntax errors were fixed
2011-12-06pep8 fixesPatrick Totzke
no changes to the code, only fixed stuff denounced by `pep8 *py`
2011-12-05test/python: set LD_LIBRARY_PATH and PYTHONPATH to use local notmuchdebian/0.10.2-10.10.2David Bremner
Possibly this should be factored out into some kind of "run_python" function.
2011-12-05build system: allow decreasing debian versions for debian-snapshotDavid Bremner
This allows the debian-snapshot to continue working between when debian/changelog is updated and when the release is tagged.
2011-12-05NEWS: add news for 0.10.2David Bremner
2011-12-05fixup for changelogDavid Bremner
2011-12-05debian/changelog: add new changelog stanza for 0.10.2David Bremner