aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-maildir-fcc.el
diff options
context:
space:
mode:
authorGravatar Rob Browning <rlb@defaultvalue.org>2010-09-12 15:23:38 -0500
committerGravatar Carl Worth <cworth@cworth.org>2010-10-27 17:36:02 -0700
commitb67c3ed6094025558ebcdd608735d116a01997f8 (patch)
tree65b97a4ede3edbe6a000b8205c3c7860009c68ab /emacs/notmuch-maildir-fcc.el
parent04b27c0d4c7c7e181b96076e7a52e47843182428 (diff)
Move notmuch-fcc-header-setup to message-header-setup-hook.
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>
Diffstat (limited to 'emacs/notmuch-maildir-fcc.el')
-rw-r--r--emacs/notmuch-maildir-fcc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el
index 0857ead7..693d8d42 100644
--- a/emacs/notmuch-maildir-fcc.el
+++ b/emacs/notmuch-maildir-fcc.el
@@ -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