Show how to set up an FCC header hook. Some minor indentation fixes Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> --- emacs/notmuch-maildir-fcc.el | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el index c91095d..f63c1c9 100644 --- a/emacs/notmuch-maildir-fcc.el +++ b/emacs/notmuch-maildir-fcc.el @@ -35,16 +35,22 @@ ;; (setq message-fcc-handler-function ;; '(lambda (destdir) ;; (notmuch-maildir-fcc-write-buffer-to-maildir destdir nil))) - +;; +;; It will then honor the Fcc header that you set in your mail. They can +;; be set up automatically via: +;; +;; (add-hook 'message-send-hook +;; '(lambda () +;; (message-add-header "Fcc: ~/mail/INBOX.Sent"))) (defvar notmuch-maildir-fcc-count 0) (defun notmuch-maildir-fcc-host-fixer (hostname) (replace-regexp-in-string "/\\|:" '(lambda (s) - (cond ((string-equal s "/") "\\057") - ((string-equal s ":") "\\072") - (t s))) + (cond ((string-equal s "/") "\\057") + ((string-equal s ":") "\\072") + (t s))) hostname t t)) -- 1.7.0.4