]> git.notmuchmail.org Git - notmuch/commit
emacs: Access raw messages via cat subcommand
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 22 Oct 2010 09:28:04 +0000 (11:28 +0200)
committerCarl Worth <cworth@cworth.org>
Sat, 6 Nov 2010 00:51:18 +0000 (17:51 -0700)
commitfe9e163f199c43e23e3401cca976228340eb5f31
treec60920368a4978732f11f4ccae4f6baa573dd2e5
parentd39d0e55f09d8cc2ba9683ec5622068bb7373f2a
emacs: Access raw messages via cat subcommand

This patch modifies the following commands to access the messages via
cat subcommand:
- view/save attachments ('v', 'w'),
- view a raw message ('V') and
- pipe a message to a command ('|').

With this patch, it is straightforward to use notmuch emacs interface
with a remote database accessed over SSH. To do this, it is sufficient
to redefine notmuch-command variable to contain the name of a script
containing:

    ssh user@host notmuch "$@"

If the ssh client has enabled connection sharing (ControlMaster option
in OpenSSH), the emacs interface is almost as responsive as when
notmuch is invoked locally.
emacs/notmuch-show.el