mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
emacs: Remove conditional from notmuch-fcc-initialization.
The fcc code would only initialize if notmuch-fcc-dirs was set. This was a problem if you reset the variable, or added the variable later during initialization. Now we always add the fcc hook, but it doesn't do anything unless notmuch-fcc-dirs are set.
This commit is contained in:
parent
4e0131b95d
commit
80a9078716
1 changed files with 1 additions and 2 deletions
|
@ -47,7 +47,6 @@
|
|||
(defun notmuch-fcc-initialization ()
|
||||
"If notmuch-fcc-directories is set,
|
||||
hook them into the message-fcc-handler-function"
|
||||
(if (not (eq notmuch-fcc-dirs nil)) (progn
|
||||
;Set up the message-fcc-handler to move mails to the maildir in Fcc
|
||||
;The parameter is hardcoded to mark messages as "seen"
|
||||
(setq message-fcc-handler-function
|
||||
|
@ -57,7 +56,7 @@
|
|||
;(preferrably we would use message-header-setup-up, but notmuch-reply
|
||||
; munges headers after that is run, so it won't work for replies within
|
||||
; notmuch)
|
||||
(add-hook 'message-send-hook 'notmuch-fcc-header-setup))))
|
||||
(add-hook 'message-send-hook 'notmuch-fcc-header-setup))
|
||||
|
||||
(defun notmuch-fcc-header-setup ()
|
||||
"Can be added to message-send-hook and will set the FCC header
|
||||
|
|
Loading…
Reference in a new issue