summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-01-09version: update to 0.11~rc3debian/0.11_rc3-10.11_rc3David Bremner
We found another serious-ish bug during freeze.
2012-01-09cli: fix use of uninitialized variable in "notmuch reply"Jani Nikula
notmuch_show_params_t params is only initialized partially in notmuch_reply_command(). The only field that is used uninitialized is params.decrypt. It is usually non-zero, making "notmuch reply" on encrypted messages work by coincidence. Initialize params properly, and set params.decrypt as needed. Signed-off-by: Jani Nikula <jani@nikula.org>
2012-01-05Update NEWS for Emacs changesThomas Jost
- A fair amount of conflict resolution by db.
2012-01-05NEWS: give a hint about using sort to achieve the old dump behavior.David Bremner
This is needed for a few applications, and actually is quite fast (relative to the actual dump).
2012-01-05NEWS: fix typos.David Bremner
Thanks to Xavier for one of these.
2012-01-05update NEWSJameson Graef Rollins
This change looks slightly larger than it actually is, since I moved the emacs section below the Performance and Memory Management sections.
2012-01-05emacs: fix notmuch-show-indent-messages-width customization variable nameJameson Graef Rollins
The name was originally notmuch-indent-messages-width, which is inconsistent with our variable naming convention.
2012-01-02debian: changelog stanza for 0.11~rc2-1debian/0.11_rc2-10.11_rc2David Bremner
Set dist=experimental the first time.
2012-01-02debian: fix typo in changelogDavid Bremner
Previous version was actually uploaded to experimental, not unstable
2012-01-02version: bump to 0.11~rc2David Bremner
This to "celebrate" pushing a bugfix in at the last minute.
2012-01-02lib: call g_mime_init() from notmuch_database_open()Kazuo Teramoto
As reported in id:"CAEbOPGyuHnz4BPtDutnTPUHcP3eYcRCRkXhYoJR43RUMw671+g@mail.gmail.com" sometimes gmime tries to access a NULL pointer, e.g. g_mime_iconv_open() tries to access iconv_cache that is NULL if g_mime_init() is not called. This causes notmuch to segfault when calling gmime functions. Calling g_mime_init() initializes iconv_cache and others variables needed by gmime, making sure they are initialized when notmuch calls gmime functions.
2011-12-30Update NEWS for change by Aaron EcayAaron Ecay
- text moved around within NEWS into existing Emacs section by committer
2011-12-30NEWS: add item for notmuch-deliverDavid Bremner
Ali mentioned he is very busy these days, so I just made something up rather than waiting for a NEWS item from him.
2011-12-28NEWS: two memory leaks fixes for 0.11Tomi Ollila
2011-12-26NEWS: emacs: notmuch-poll-script and saved search news itemsJani Nikula
2011-12-25version: update version to 0.11~rc1debian/0.11_rc1-10.11_rc1David Bremner
and keep python, man page, and debian package in sync.
2011-12-24emacs: fix docstring for `notmuch-search-line-faces'.Dmitry Kurochkin
Examples in documentation for `notmuch-search-line-faces' had an extra quote, e.g.: '(\"unread\" . '(:foreground \"green\")) Which resulted in values like: (\"unread\" quote (:foreground \"green\")) And tons of "Invalid face reference: quote" errors in the messages buffer.
2011-12-24emacs: call notmuch-show instead of notmuch-search in buttonised id: linksJameson Graef Rollins
Since message-ids necessarily match just a single message, there's no reason to do a search for the id before viewing the actual message; the search just becomes an extra screen to click through. Clicking on an id: links now just jumps straight to the message itself.
2011-12-23Fix comments about what is stored in the databaseThomas Jost
Commit 567bcbc2 introduced two new values for each message (content of the "From" and "Subject" headers), but the comments about the database schema had not been updated accordingly.
2011-12-23emacs: fix off-by-one bug in notmuch-show-archiveAaron Ecay
Text properties change between characters; prev-s-c-property-change returns the position after the change. Thus, it is still inside the invisible region.
2011-12-22emacs: put the last search on top of recent searches in notmuch-helloDmitry Kurochkin
Notmuch-hello stores a list of recent searches. Before the change, if a search from this list is repeated, the recent search list is not changed. The patch makes repeated recent searches move to the head of the list. I.e. the last search is always on top of the recent search list, which is what one would expect from a history list.
2011-12-22test: add test for `notmuch-hello-refresh-hook'Dmitry Kurochkin
Test that `notmuch-hello-refresh-hook' is called once when `notmuch-hello' is called and twice when calling `notmuch-hello-update' after that. The tests are very similar to tests for `notmuch-hello-mode-hook'.
2011-12-22test: add general Emacs hook counterDmitry Kurochkin
Replace `notmuch-hello-mode-hook-counter' with general `hook-counter' and `add-hook-counter' functions to allow counting calls for any hook.
2011-12-22emacs: Change the default thousands separator to a spaceThomas Jost
This had been discussed and decided on IRC. Rationale: Therefore the space is recommended in the SI/ISO 31-0 standard, and the International Bureau of Weights and Measures states that "for numbers with many digits the digits may be divided into groups of three by a thin space, in order to facilitate reading. Neither dots nor commas are inserted in the spaces between groups of three". (http://en.wikipedia.org/wiki/Decimal_separator#Digit_grouping)
2011-12-22emacs: rename notmuch-decimal-separator to notmuch-hello-thousands-separatorThomas Jost
In 123,456.78, "." is the decimal separator, but "," is the thousands separator.
2011-12-22emacs: Don't prompt the user to choose from zero matching addresses.David Edmondson
If the address matching function generates no matches, don't prompt the user to choose between them (!). Instead, generate a message to report that there were no matches.
2011-12-22emacs: Fix notmuch-mua-user-agent defcustomJani Nikula
The :options keyword is not meaningful for function type. Also, it was not possible to enter nil value, contrary to the notmuch-mua-user-agent defcustom documentation. Specify the alternatives using choice type, taking nil into account. Signed-off-by: Jani Nikula <jani@nikula.org>
2011-12-22emacs: Fix notmuch-hello-tag-list-make-query defcustomJani Nikula
It was not possible to define custom filters or filter functions because the types were const. Remove const to allow editing. Signed-off-by: Jani Nikula <jani@nikula.org>
2011-12-21emacs: add notmuch-hello-refresh-hookThomas Jost
This hook is called every time a notmuch-hello buffer is updated.
2011-12-21notmuch: Quiet buildbot warnings.David Edmondson
Cast away the result of various *write functions. Provide a default value for some variables to avoid "use before set" warnings.
2011-12-21Don't quote lambda formsAaron Ecay
This generates byte-compiler warnings on (at least) current trunk versions of Emacs. The quote is not necessary; lambda forms are self-quoting.
2011-12-20emacs: Add `notmuch-jump-to-recent-buffer'.David Edmondson
From a Carl Worth idea: add a function which will select the most recently used notmuch buffer (search, show or hello). If no recent buffer is found, run `notmuch'. It is expected that the user will global bind this command to a key sequence.
2011-12-20emacs: do not call `notmuch-hello-mode' on updateDmitry Kurochkin
`notmuch-hello' should call `notmuch-hello-mode' function only when run for the first time. But before the change, `notmuch-hello' used `kill-all-local-variables' to remove editable widgets fields. This caused the major mode to be reset, and `notmuch-hello-mode' to be called every time. The patch manually deletes all editable widget fields and removes `kill-all-local-variables' call.
2011-12-20test: add broken test for `notmuch-hello-mode-hook' called during updateDmitry Kurochkin
Test that `notmuch-hello-mode-hook' is not called during `notmuch-hello' buffer updates. The test is currently broken.
2011-12-20test: add test for `notmuch-hello-mode-hook'Dmitry Kurochkin
Test that `notmuch-hello-mode-hook' is called once when `notmuch-hello' function is called.
2011-12-20test: add `notmuch-hello-mode-hook-counter'Dmitry Kurochkin
Add `notmuch-hello-mode-hook-counter' hook to count how many times `notmuch-hello-mode-hook' was called. The counter function increments `notmuch-hello-mode-hook-counter' variable value if it is bount, otherwise it does nothing.
2011-12-18Add an argument to notmuch-mua-mailAaron Ecay
From the emacs changelog: ** `compose-mail' now accepts an optional 8th arg, RETURN-ACTION, and passes it to the mail user agent function. This argument specifies an action for returning to the caller after finishing with the mail. This is currently used by Rmail to delete a mail window. Under Emacs 24, notmuch breaks when this argument is passed to it by a function in another part of Emacs. One example of a functon that does this is report-emacs-bug -- so notmuch users cannot file emacs bug reports! This patch also adds a &rest argument to the arg-list of this function, to future-proof against such changes. This is adapted from the approach taken by message-mail, a similar function built into emacs. This patch was originally submitted by richardmurri@gmail.com on Aug. 1: id:"877h6x6oor.fsf@veracitynetworks.com"
2011-12-18build-system: use a shell variable for TMPFILE in debian-snapshotDavid Bremner
Aaron Ecay points out in id:"1324136185-4509-1-git-send-email-aaronecay@gmail.com" that the mktemp in debian-snapshot: TMPFILE := $(shell mktemp) Is being evaluated for every target. As best I can tell, this is because make is evaluating the right hand side, even though it is not doing the assignment. Of course, it isn't quite as nice to edit with the line continuations, but it is ideomatic make.
2011-12-18test: optionally print subtest numberDavid Bremner
The idea is that $test_count could be used in tests to label intermediate files. The output enabled by this patch (and --debug) helps figure out which OUTPUT.nn file belongs to which test in case several subtests write to OUTPUT.$test_count
2011-12-17Fix build with binutils-2.22Thomas Jost
binutils-2.22 changes the behaviour of ld by defaulting to --no-copy-dt-needed-entries, which means that required objects/libs are not "indirectly" linked through intermediate objects/libs anymore. As a consequence, when using binutils-2.22, building symbol-test fails with the following error: /usr/bin/ld: test/symbol-test.o: undefined reference to symbol 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@@GLIBCXX_3.4' /usr/bin/ld: note: 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@@GLIBCXX_3.4' is defined in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line /usr/lib/libstdc++.so.6: could not read symbols: Invalid operation An easy fix is to link using CXX instead of CC.
2011-12-17Ignore dynamic libraries on OS X.Aaron Ecay
Parallel to ignoring .so for linux.
2011-12-16emacs: Add notmuch-hello-mode-hookIvy Foster
Functions called after entering `notmuch-hello-mode'
2011-12-16emacs: Document notmuch-show-get-message-propertiesDaniel Schoepe
2011-12-15emacs: Add a face for crypto parts headersThomas Jost
Commit cb841878 introduced new parts handlers for crypto parts, but also hardcoded values for their headers face. This replaces these hardcoded values with a customizable face.
2011-12-15Revert "test: add emacs test for hiding a message following an HTML part"David Bremner
This reverts commit c6a3a768fef9f59f483af04f4418d350efc27968. This test is unreliable, showing BROKEN in some environments and FIXED in others. The confusion seems to outweigh the benefits, for now. Conflicts: test/emacs
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.