]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-maildir-fcc.el
emacs: Fix to eliminate warning in notmuch-query-map-aux
[notmuch] / 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