summaryrefslogtreecommitdiff
path: root/contrib
AgeCommit message (Collapse)Author
2015-05-04notmuch-mutt: fix xargs/ln usage for OpenBSD compatibilityJack Peirce
- xargs: use -r flag instead of --no-run-if-empty - ln: use -I flag/3rd form of ln command instead of -t flag/4th form Signed-off-by: Stefano Zacchiroli <zack@upsilon.cc>
2015-02-16notmuch-mutt: support for messages that lack Message-ID headersStefano Zacchiroli
For those messages, compute a synthetic Message-ID based on the SHA1 of the whole message, in the same way that notmuch would do. See: http://git.notmuchmail.org/git/notmuch/blob/HEAD:/lib/sha1.c To do the above, rewrite get_message_id() to accumulate header lines, parse them to check for Message-ID, and fallback to SHA1 computation if it is not present. Thanks to: - Jan N. Klug for preliminary versions of this patch - Tomi Ollila for suggesting an elegant implementation
2015-02-16notmuch-mutt README: use metacpn.org/* as deps homepagesStefano Zacchiroli
2015-02-16notmuch-mutt: bump copyright yearStefano Zacchiroli
2015-01-14contrib: remove notmuch deliverDavid Bremner
contrib/notmuch-deliver is presumed obsoleted by notmuch-insert.
2013-11-13remove notmuch-pickMark Walters
2013-11-07test: move emacs-tree test into mainlineMark Walters
We move the emacs-tree test and associated files into the main test directory and add the test to the list in notmuch-test.
2013-11-07emacs: move notmuch-tree from contrib to mainlineMark Walters
2013-11-07emacs: tree: remove unneeded declarationsMark Walters
There are some crufty declare-functions and requires in notmuch-tree: since it requires notmuch.el itself this all works but in preparation for the move to mainline tidy this up.
2013-10-29pick: rename test emacs-pick to emacs-treeMark Walters
Also fixup run-tests.sh
2013-10-29pick: rename test outputs from pick to treeMark Walters
Rename all the test output files to tree rather than pick, move the containing directory to a tree.expected-output and fix up the references in the test.
2013-10-29pick: Change the test names and print out for pick testsMark Walters
Change from the pick name to the tree name
2013-10-29contrib: pick: move lisp names from pick to treeMark Walters
This changes all the lisp names from pick to tree (variables, functions etc). It also changes the lisp in the emacs-pick test files to match the new names.
2013-10-25pick: Use interactive specifications for tag changesAustin Clements
2013-10-25pick: Use list form of tag-changes in testAustin Clements
Currently we support both string and list forms of tag-changes for historical reasons. This is about to change, so fix pick's tests that use the legacy string form of tag-changes.
2013-10-25pick: Fix incorrect use of `notmuch-pick-tag'Austin Clements
`notmuch-pick-tag' takes a list of tag changes, but `notmuch-pick-archive-message' passes it a &rest argument. This happens to work if `notmuch-archive-tags' contains a single tag (which it usually does), but will break if it does not.
2013-10-14contrib: pick: update notmuch-show callsMark Walters
Remove some unneeded nil arguments in notmuch-show calls.
2013-10-02contrib: pick: remove temporary keybindingMark Walters
We would like to bind prefix-arg RET in search view to "pick show this thread" (i.e. notmuch-pick-from-search-thread). It is not easy to do this cleanly from contrib so I have been using M-RET instead. Temporarily remove this functionality in preparation for entering mainline and binding to prefix-arg RET.
2013-10-02contrib: pick: move M-RET to prefix-arg RETMark Walters
In pick the user has the option of showing the selected message in a subpane (the message pane) or in the full frame. This is customisable using the variable notmuch-pick-show-out. At the moment RET is bound to the default option and M-RET the other option. This is messy and involves tricks to make sure the keymap is setup at the right time. This changes this to prefix-arg RET for the other option which simplifies the code and makes things cleaner.
2013-09-23contrib: pick: tidy up pick-format-fieldMark Walters
Previously this function used a temporary variable to store the return value but we can just use the return value of the cond statement directly. The only tiny subtlety is that in one case (subject) we need to slightly reorder the logic to make sure the formatted-field is the last thing computed.
2013-09-23contrib: pick: remove unused notmuch-pick-from-helloMark Walters
This function was used for pick entry from hello but isn't needed anymore. It was modelled on notmuch-hello-search which is now only used non-interactively (and notmuch-pick does now add to the recent-search history correctly).
2013-09-23contrib: pick: use the new notmuch-common-keymap for pick entryMark Walters
Austin recently added a global keymap: use this for pick entry.
2013-09-23contrib: pick: remove some superfluous quotesMark Walters
Pick adds some keybindings to keymaps for other modes (for entry to pick). These quoted the keymaps which appears to be unnecessary and to rely on the fact that these keymaps have the same entry in the function cell as the value cell (perhaps for historical reasons?) Remove these quotes.
2013-09-15contrib: pick: make the tree graphics a proper part of the formatMark Walters
Previously the box graphics in the pick view were always attached to the subject. Make them a field in their own right. We use the recursive insert to change the default notmuch-pick-result-format so that the user view does not change. (The subject touches the tree box graphics but the next column (tags) is still vertically aligned.)
2013-09-15contrib: pick: allow recursive message field formatsMark Walters
Previously, the message format was fixed: each part had to be a certain width and either left or right justified. This allows the user to specify that two parts can be variable width but that combined they should be some fixed width. We do this by allowing the user to set as a "field" a list of the normal result-format form which is formatted and then itself inserted according to the format string specified. This means all existing formats work but allows more general things too. This will be used in the next patch to allow the user to specify where the tree box graphics are drawn but allow, e.g., the total width of the tree box graphics and subject to be specified.
2013-09-15contrib: pick: move the insertion of fields up a levelMark Walters
This moves the actual insertion of message fields up from the field formatting function into the message insertion function. This will be useful in the next patch as we can apply further formatting to the insertion string before inserting.
2013-09-15contrib: pick: print () for a message with no tagsMark Walters
Dating back to the earliest notmuch-pick we have not printed anything for the tag field for a message with no tags. This is inconsistent with search and show both of which print "()". Change pick to be consistent.
2013-09-15contrib: pick: use global keymapMark Walters
Austin recently introduced a new global keymap. This makes pick use this global map. In most cases pick needs to override this global map because it wants to close the message pane before doing the action. However, this documents the over-rides and makes it less likely that the pick bindings will get out of sync with the main bindings.
2013-09-15contrib: pick: bugfix use of mini-buffer historyMark Walters
pick was meant to use the same mini-buffer history but this failed because the interactive definition took place before the use search mini-buffer history part. Remove the interactive prompt to ensure the correct history is used.
2013-09-08notmuch-mutt: Fix tagging issuesKevin J. McCarthy
This patch fixes three issues with "notmuch-mutt tag": 1. The message_id was not shell quoted. Thanks to Jason Miller for the bug report and patch. 2. The tags passed into tag_action() were not being properly quoted. The "join before shell_quote" was combining multiple tags into a single argument to notmuch tag: '+one -two -three' instead of '+one' '-two' '-three'. 3. A "--" was added between the tags and search-term as shown in the current notmuch-tag man page. Thanks to Tomi Ollila for suggesting the simple fix of using the list form of system(), which bypasses the shell.
2013-09-08notmuch-mutt: use notmuch --duplicate flagKevin McCarthy
Change notmuch-mutt to use the new --duplicate=1 flag for duplicate removal. This will remove duplicates based on message-id at the notmuch level. Previously we were using fdupes or generating sha sums after the search. This version will be faster, but will enable the possibility of hiding search results due to accidental/malicious duplicate message-ids.
2013-09-04contrib: pick: test: buffer movementMark Walters
2013-09-04contrib: pick: test: stash message idMark Walters
This is important to test as lots of subsequent tests will fail if this fails.
2013-09-04contrib: pick: test: tag/untag whole threadMark Walters
2013-09-04contrib: pick: test: tag/untag single messageMark Walters
2013-09-03contrib: pick: test: refresh viewMark Walters
A recent proposed patch was buggy when refreshing the view. Add a test for refresh so that this does not reoccur.
2013-09-03contrib: pick: add docstring for notmuch-pick-workerMark Walters
2013-09-03contrib: pick: remove unneeded variable notmuch-pick-buffer-nameMark Walters
This variable is essentially unused: it was only used for making sure it itself got reset after a refresh of the buffer. It did this by passing an unnecessary argument to notmuch-pick-worker so remove that too.
2013-09-03contrib: pick: bind M-p and M-n to prev/next threadMark Walters
This adds functions to go to the previous or next thread to pick. Prev-thread behaves similarly to prev-message in show: if you are on the top line of a thread it will go to the top of the previous thread, otherwise it will go to the top of the current thread. Next thread will always go to the top of the next thread (or the end of buffer). These are bound to "M-p" and "M-n" by default (matching the bindings in show).
2013-09-03contrib: pick: thread tagging (including archiving) implementedMark Walters
Previously pick had no actions based on the entire thread: this adds some. Note in this version '*' is bound to `tag thread' which is not consistent with search or show. However it still might be the most natural thing (as it is similar to running * in the show pane).
2013-09-03contrib: pick: add thread based utility functionsMark Walters
Previously notmuch-pick had no thread based functionality. This adds a macro to iterate through all messages in a thread. To simplify this it adds a text-property marker to the first message of each thread.
2013-08-27contrib: pick: remove sync testsMark Walters
Since the previous commit removed the sync parser we may as well remove its tests too.
2013-08-27contrib: pick: remove sync parserMark Walters
Previously pick had the option of using an async parser like search or a sync parser like show. The async parser has always been the default and it seems fine so we can remove the sync one and the corresponding defcustom.
2013-08-24contrib: pick: use close-message-pane for reply etcMark Walters
We can save some code duplication by using the new close-message-pane functionality for reply, forward, and new mail.
2013-08-24contrib: pick: add in binding to view raw messageMark Walters
Note this does rely on the fact that we have over-ridden notmuch-show-get-properties
2013-08-24contrib: pick: make help close the message pane firstMark Walters
Previously pressing "?" for help when the message pane was open meant the help window was very small. Close the message pane before displaying help.
2013-08-24contrib: pick: close window functionMark Walters
2013-08-24contrib: pick: pass tab through to the message paneMark Walters
This makes tab move to next button in the message pane and binds button activate (in message pane) to "e". This means that is easy to toggle hidden parts or hidden citations etc in the message pane.
2013-08-24contrib: pick: add button press helperMark Walters
We will want to be able to activate buttons not in the current buffer (ie in the message pane) so it is helpful to have a way of activating a button without signalling error if there is no button.
2013-08-24contrib: pick: add in to-message-window functionMark Walters