]> git.notmuchmail.org Git - notmuch/commitdiff
Move notmuch-fcc-header-setup to message-header-setup-hook.
authorRob Browning <rlb@defaultvalue.org>
Sun, 12 Sep 2010 20:23:38 +0000 (15:23 -0500)
committerCarl Worth <cworth@cworth.org>
Thu, 28 Oct 2010 00:36:02 +0000 (17:36 -0700)
Call notmuch-fcc-header-setup from message-header-setup-hook rather
than message-send-hook.  This allows you to see what's going to
happen, and to make manual adjustments if desired.  Gnus does
something similar.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
emacs/notmuch-maildir-fcc.el

index 0857ead74a8e022358276994ffee628023989e36..693d8d42bc19bfcd49f2212c646723fd396d96f4 100644 (file)
@@ -68,7 +68,7 @@
           '(lambda (destdir)
              (notmuch-maildir-fcc-write-buffer-to-maildir destdir t)))
     ;;add a hook to actually insert the Fcc header when sending
-    (add-hook 'message-send-hook 'notmuch-fcc-header-setup))
+    (add-hook 'message-header-setup-hook 'notmuch-fcc-header-setup))
 
 (defun notmuch-fcc-header-setup ()
   "Adds an appropriate fcc header to the current mail buffer