summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-10-20NEWS: set datedebian/0.34-1archive/debian/0.34-10.34David Bremner
2021-10-20debian: changelog for 0.34David Bremner
2021-10-20add NEWS for remaining changesDavid Bremner
2021-10-20version: bump to 0.34David Bremner
2021-10-20NEWS: update sexp-query newsDavid Bremner
2021-10-19emacs: fix call to nonexistent notmuch--call-process-shell-commandDoug Woos
Looks like a find/replace error in e722b4f4
2021-10-15debian: add dependency on libsexp-devdebian/0.34_rc0-1archive/debian/0.34_rc0-10.34_rc0David Bremner
Enable the s-expression query parser in Debian.
2021-10-15debian: add changelog for 0.34~rc0David Bremner
2021-10-15INSTALL: document optional dependency on libsfsexpDavid Bremner
For now putting it in the apt-get line will cause complaints about missing packages for too many people.
2021-10-15NEWS: stub news for 0.34~rc0David Bremner
This is mostly to pacify the release checks. NEWS will be filled in during the release process.
2021-10-15lib: bump lib minor version to 5David Bremner
One new function (and an enum) was added to the API/ABI.
2021-10-15debian: add new function to symbols fileDavid Bremner
2021-10-15version: bump to 0.34~0David Bremner
Start release process for 0.34.
2021-10-12debian: install notmuch-sexp-queries man pageDavid Bremner
This was missed in the series that added the sexp-query parser and docs.
2021-10-10configure: whitespace cleanupDavid Bremner
In order to make it easier to keep the whitespace consistent in the configure script, use the same style defined in devel/STYLE for C/C++. Specifically, a line should begin with zero or more tabs followed by fewer than eight spaces. Presumably this will be no more difficult for people editing configure than for people editing the C and C++ code.
2021-10-10devel: script for checking a commit (series)David Bremner
'check-notmuch-commit' is an updated version of a script I have been using (although not always as consistently as I should) before sending patches to the list. Although it requires a bit more tooling, encouraging people to use check-notmuch-commit might reduce the number of round trips to the list for style nitpicks.
2021-10-09configure: check explicitely for python dev (include) filesDavid Bremner
As discussed at [1] we have received reports that the implicit check using cffi.FFI().verify() is not reliable in all environments. Since we already use pkg-config, and the python dev package should include a .pc file [2], add an extra check using pkg-config. On at least Debian, we have to know which version of python dev files with are looking for, so calculate that first. [1]: id:87im1g35ey.fsf@tethera.netid:87im1g35ey.fsf@tethera.net, [2]: checked on Debian and Fedora
2021-09-30Merge tag '0.33.2'David Bremner
notmuch 0.33.2 release
2021-09-30version: bump to 0.33.20.33.2David Bremner
2021-09-30debian: changelog for 0.33.2-1David Bremner
2021-09-30NEWS: update for 0.33.2David Bremner
2021-09-29test/T355-smime: Use key as exported by gpgsmDavid Bremner
As reported in id:87h7pxiek3.fsf@tethera.net, the previous version of the test is flaky. There is some so-far undebugged interaction between openssl and gpgsm that causes the keys to fail to import. As a potential workaround, use the key as exported by gpgsm, and eliminate openssl from this particular pipeline.
2021-09-20emacs: notmuch-tree: customizable strings for drawing treesjao
New customizable variable, notmuch-tree-thread-symbols, that allows tweaking of how trees in a forest are represented. For instance, one can now choose to use an hyphen rather than a white space as a prefix, or replace the character(s) used to draw arrows. Amended-By: db; delete errant '3'
2021-09-11test/emacs: tests for notmuch-{tree,unthreaded} with bad CWDDavid Bremner
These work thanks to the previous wrapping of process creation primitives.
2021-09-11emacs: wrap call-processDavid Bremner
Provide safe working directory
2021-09-11test/emacs: test for notmuch-show with nonexistent CWDDavid Bremner
Somewhat predictably, the other code path in notmuch-call-notmuch--helper also needs to be fixed.
2021-09-11emacs: wrap make-processDavid Bremner
Provide a safe working directory.
2021-09-11test/emacs: test for notmuch-search with nonexistent CWDDavid Bremner
(At least) notmuch-start-notmuch needs to be updated to set a safe working directory.
2021-09-11emacs: wrap call-process-regionDavid Bremner
As with notmuch--process-lines, initial purpose is to provide a safe binding for default-directory. This is enough to make notmuch-hello robust against non-existent or corrupt values default-directory, but probably not other views.
2021-09-11emacs: wrap process-linesDavid Bremner
Initially just set the working directory, to avoid (the implicit) call-process crashing when the default-directory points to a non-existent location. Use of a macro here is over-engineering for this change, but the same change needs to be applied to several other process creation primitives.
2021-09-11test/emacs: run notmuch-hello with a nonexisting default dirDavid Bremner
This replicates the problem reported in Debian bug #922536.
2021-09-11test/emacs: provide macro test-log-errorDavid Bremner
Because of the way emacs reports errors, a test form can crash and not change the main buffer. To work around this, capture both signalled errors and any other messages.
2021-09-10Merge tag '0.33.1'David Bremner
notmuch 0.33.1 release
2021-09-10debian: drop debian specific test exclusiondebian/0.33.1-1archive/debian/0.33.1-10.33.1David Bremner
In principle these tests should pass now.
2021-09-10debian: changelog for 0.33.1-1David Bremner
2021-09-10NEWS: update for 0.33.1David Bremner
2021-09-10version: bump to 0.33.1David Bremner
2021-09-10lib: use 'localhost' rather than fqdn for default mail address.David Bremner
As discussed in the thread starting at [1], the fully qualified domain name is a bit tricky to get reproducibly, might reveal information people prefer to keep private, and somewhat unlikely to provide reliable mail routing. The new approach of $current_username@localhost is better for the first two considerations, and probably at least as good as a test mail address. [1]: id:87sfyibqhj.fsf@tethera.net
2021-09-08test/emacs: test for functions in notmuch-search-result-format.David Bremner
Based on the commit message in id:20210221151902.2301690-3-dme@dme.org Add the function notmuch-test-result-flags to test-lib.el to avoid repeating it in 3 T*.sh files.
2021-09-08emacs: Allow functions in notmuch-{tree,unthreaded}-result-formatDavid Edmondson
If the car of an element in notmuch-tree-result-format or notmuch-unthreaded-result-format is a function, insert the result of calling the function into the buffer.
2021-09-08emacs: Allow functions in notmuch-search-result-formatDavid Edmondson
If the car of an element in notmuch-search-result-format is a function, insert the result of calling the function into the buffer. This allows a user to generate custom fields in the output of a search result. For example, with: (defun -notmuch-result-flags (format-string result) (let ((tags-to-letters '(("flagged" . "!") ("unread" . "u") ("mine" . "m") ("sent" . "s") ("replied" . "r"))) (tags (plist-get result :tags))) (format format-string (mapconcat (lambda (t2l) (if (member (car t2l) tags) (cdr t2l) " ")) tags-to-letters "")))) (setq notmuch-search-result-format '((-notmuch-result-flags . "%s ") ("date" . "%12s ") ("count" . "%9s ") ("authors" . "%-30s ") ("subject" . "%s ") ("tags" . "(%s)"))) The first few characters on each line of the search result are used to show information about some significant tags associated with the thread.
2021-09-08emacs: Use pcase in notmuch-search-insert-fieldDavid Edmondson
Rather than lots of string-equal calls, use the pcase macro.
2021-09-08emacs: notmuch-fcc-header-setup: fix regressionJonas Bernoulli
With [1: 16b2db09] we lost the (undocumented) option to use no Fcc header only for From addresses matching a regexp. This brings back that feature and documents it. 1: 2021-01-15 16b2db0986ce0ed7c420a69d0a98bb41e9ca4bd8 emacs: various cosmetic improvements
2021-09-08NEWS: typo fix; some trailing periodsTomi Ollila
The trailing periods to smaller diff between devel/news2wiki.pl output and what has been pushed to notmuch-wiki.
2021-09-04doc/sexp-queries: update synopsis and descriptionDavid Bremner
I chose to go with a somewhat terse synopsis to try to keep the length of the page down.
2021-09-04CLI/tag: enable sexp queriesDavid Bremner
We have to rewrite _optimize_tag_query here because it is generating a query string in the infix Xapian syntax. Luckily this is easy to do with the sexp query syntax.
2021-09-04CLI/{count, dump, reindex, reply, show}: enable sexp queriesDavid Bremner
The change in each case is to call notmuch_query_create_with_syntax, relying on the already inherited shared options. As a bonus we get improved error handling from the new query creation API. The remaining subcommand is 'tag', which is a bit trickier.
2021-09-04CLI: move query syntax to shared optionDavid Bremner
This will allow easy addition of a query syntax option to other subcommands.
2021-09-04lib/parse-sexp: apply macrosDavid Bremner
Macros implement lazy evaluation and lexical scope. The former is needed to make certain natural constructs work sensibly (e.g. (tag ,param)) but the latter is mainly future-proofing in case the DSL is is extended to allow local bindings. For technical background, see chapters 6 and 17 of [1] (or some other intermediate programming languages textbook). [1] http://cs.brown.edu/courses/cs173/2012/book/
2021-09-04lib/parse-sexp: thread environment argument through parserDavid Bremner
No functionality change, just an extra argument carried everywhere.