Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6104740BD97 for ; Sun, 12 Sep 2010 13:24:07 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VtQ83Q+HkkJ2 for ; Sun, 12 Sep 2010 13:23:54 -0700 (PDT) Received: from defaultvalue.org (li12-156.members.linode.com [70.85.129.156]) by olra.theworths.org (Postfix) with ESMTP id DFC9240BD91 for ; Sun, 12 Sep 2010 13:23:54 -0700 (PDT) Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id DFC6314E09D; Sun, 12 Sep 2010 15:23:53 -0500 (CDT) From: Rob Browning To: notmuch@notmuchmail.org Subject: [PATCH] Move notmuch-fcc-header-setup to message-header-setup-hook. Date: Sun, 12 Sep 2010 15:23:38 -0500 Message-Id: X-Mailer: git-send-email 1.7.1 In-Reply-To: <1284323018-8423-1-git-send-email-rlb@defaultvalue.org> References: <1284323018-8423-1-git-send-email-rlb@defaultvalue.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1.7.1" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2010 20:24:07 -0000 This is a multi-part message in MIME format. --------------1.7.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit 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 --- emacs/notmuch-maildir-fcc.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --------------1.7.1 Content-Type: text/x-patch; name="0001-Move-notmuch-fcc-header-setup-to-message-header-setu.patch" Content-Transfer-Encoding: 8bit Content-Disposition: inline; filename="0001-Move-notmuch-fcc-header-setup-to-message-header-setu.patch" diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el index 8bb41a8..32e7d0d 100644 --- a/emacs/notmuch-maildir-fcc.el +++ b/emacs/notmuch-maildir-fcc.el @@ -67,7 +67,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 --------------1.7.1--