[PATCH] RFC: Add From guessing when forwarding email

David Edmondson dme at dme.org
Mon Apr 26 03:43:45 PDT 2010


On Fri, 23 Apr 2010 15:52:15 -0700, Dirk Hohndel <hohndel at infradead.org> wrote:
> Given how little elisp I know I'm quite interested in feedback
> and better implementations

I think that:

(defun notmuch-show-forward-message ()
  "Forward the current message."
  (interactive)
  (let ((user-mail-address
	 (shell-command-to-string (concat notmuch-command
					  "guess-from"
					  (notmuch-show-get-message-id)))))
    (with-current-notmuch-show-message
     (notmuch-mua-forward-message))))

is more idiomatic.

dme.
-- 
David Edmondson, http://dme.org


More information about the notmuch mailing list