-Now add the following, to overwrite the way in which notmuch gets raw
-message text.
-
- (defun notmuch-show-get-filename ()
- (let* ((orig-filename (notmuch-show-get-prop :filename))
- (retvalue (progn
- (message "Downloading... ")
- (shell-command-to-string (concat notmuch-command
- " --get "
- orig-filename)))))
- (replace-regexp-in-string "\n" "" retvalue)))
-
-This will will use the "--get" option of the above
-script. Note that it only has to do this for attachments or for
-viewing the raw file, and only the first time. After that, it is
-cached.
-
-##A tip to speed things up##
-If you have openssh >= 0.4, you can make use of the "ControlMaster"
-feature. This allows you to reuse an existing connection. Therefore
-if you keep a connection open, you won't have to authenticate every
-time.
-
-Add the following to your ~/.ssh/config file:
-
- Host server_name
- ControlMaster auto
- ControlPath ~/.ssh/master-%r@%h:%p
-
-You can also se the Host to "*", if you want to use it for all
-connections. I usually have an interactive ssh connection to my home
-computer open, so I don't need to do anything more. But if not, you
-can always run:
-
- ssh -Nf server_name
-
-which will open up a background connection, which you can then reuse
-for all of your notmuch commands.
-