aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-show.el
Commit message (Collapse)AuthorAge
* emacs/notmuch-show.el: Part headers are real buttons that save the partGravatar Carl Worth2010-04-21
| | | | | Convert the part headers into buttons that save the part when activated.
* emacs: Display all body parts using `notmuch part --part=<n>'Gravatar David Edmondson2010-04-21
| | | | | | Use the `notmuch part' command to access body parts not currently included in the JSON output and display those body parts appropriately.
* emacs: Use mailcap.el to guess the type of application/octet-stream partsGravatar David Edmondson2010-04-21
| | | | | | | | | | Use the mailcap functionality to guess a MIME type for attachments of type application/octet-stream and, presuming successful, feed the attachment back into the display code with the determine type. This is mostly useless at the moment, as the JSON output from notmuch does not include the content of application/octet-stream parts, so they cannot be displayed even if the guess is a good one.
* emacs: Use `mm-display-part' when possibleGravatar David Edmondson2010-04-21
| | | | | | For parts that the mm-decode/mm-view functions can inline and we have the content, use `mm-display-part' to insert the part in the buffer.
* emacs/notmuch-show.el: Improved part labellingGravatar David Edmondson2010-04-21
| | | | | | | | If a text/plain part is not the first part in a message, add a label in order that a user can see that multiple parts are present. If a part has a 'filename' attribute, include it in any label describing the part.
* emacs: Move body markup to a separate fileGravatar David Edmondson2010-04-21
| | | | | | Move the citation and signature markup for text/plain parts to a new file (notmuch-wash.el) and call it using a hook mechanism rather than directly.
* emacs: Rename body-invis-spec to message-invis-specGravatar Carl Worth2010-04-21
| | | | | This is more consistent with the related names (toggle-message, :message-visible, etc.)
* emacs: Remove the notmuch-show-toggle-body command (with "b" binding)Gravatar Carl Worth2010-04-21
| | | | | | | | | | | In the recent switch to a JSON-based emacs interface, RET now toggles message visibility anywhere in the message, (rather than only on the summary line). So we no longer need this separate "b" binding for this. Additionally, the body toggle was implemented independently from RET, so after hiding a message with "b" one could not make it visible with RET. This confusing state is now no longer possible, (since the :body-visible property is removed entirely).
* emacs: JSON based implementationGravatar David Edmondson2010-04-21
| | | | | | Re-implement notmuch-show.el using the JSON output format of the notmuch command. Most functionality is retained - HTML display is noticeably missing.
* emacs/notmuch-show.el: Avoid passing unintended format strings to `message'Gravatar David Edmondson2010-04-19
| | | | | If the text being stashed included %, `message' was unhappy and complained.
* notmuch.el: quote args in notmuch-show to facilitate remote useGravatar Jesse Rosenthal2010-04-13
| | | | | | | | | | | | | | | | | | | | Put single-quotes around the argument of the `show --entire-thread' command in notmuch-show. This change should have no effect on normal usage. However, it allows us to use the notmuch.el client with a remote notmuch binary and database over ssh (by, e.g., setting `notmuch-command' to a simple shell script). Without the quotes, ssh will not send the command properly. One very simple example script is as follows. (Note that it requires keypair login to the ssh server.) #!/bin/sh SSH_BIN="/path/to/local/ssh" NOTMUCH_HOST="my.remote.server" NOTMUCH_REMOTE_PATH="/path/to/remote/notmuch" $SSH_BIN $NOTMUCH_HOST $NOTMUCH_REMOTE_PATH $@
* Display the last few lines of a citation by default.Gravatar Carl Worth2010-04-07
| | | | | | As put forth in the commit that enabled this functionality, the last few lines of a citation are often much more important. In that case, let's actually do the useful thing by default.
* notmuch.el: Allow citation suffixes to be shown as well as prefixes.Gravatar David Edmondson2010-04-07
| | | | | | | | In many conversations the last few lines of a citation are more interesting than the first few lines, hence allow those to be shown if desired. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* notmuch.el: Colour cited regions and signatures with message-cited-text-faceGravatar David Edmondson2010-04-07
| | | | | Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> (with fixup to avoid over-eager coloring of signatures).
* emacs: Fix typo in line-wrapping in documentation of notmuch-show.Gravatar Carl Worth2010-04-07
| | | | Just trying to keep things neat.
* notmuch.el: Make notmuch-show buffer name first subject, instead of ↵Gravatar Jesse Rosenthal2010-04-07
| | | | | | | | | | | | | | | thread-id (supersedes V1--3) Change the buffer name to a uniquified subject of the thread (i.e. the subject of the first message in the thread) instead of the thread-id. This is more meaningful to the user, and will make it easier to scroll through numerous open buffers. Note that this patch adds an optional `buffer-name' argument to notmuch show. Signed-off-by: Jesse Rosenthal <jrosenthal@jhu.edu> Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* emacs: Move notmuch-show functionality to notmuch-show.elGravatar David Edmondson2010-04-05
To ease the transition to a JSON based implementation of `notmuch-show', move the current implementation into a separate file. Create `notmuch-lib.el' to hold common variables.