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 36AB841733A for ; Thu, 22 Apr 2010 02:08:12 -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, RCVD_IN_DNSWL_NONE=-0.0001] 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 0OilL8J3y7Tu for ; Thu, 22 Apr 2010 02:08:11 -0700 (PDT) Received: from homiemail-a13.g.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by olra.theworths.org (Postfix) with ESMTP id 51157417339 for ; Thu, 22 Apr 2010 02:08:11 -0700 (PDT) Received: from localhost.localdomain (mtec-hg-docking-1-dhcp-204.ethz.ch [129.132.133.204]) (Authenticated sender: sebastian@sspaeth.de) by homiemail-a13.g.dreamhost.com (Postfix) with ESMTPA id 1E3FC6A8058; Thu, 22 Apr 2010 02:08:04 -0700 (PDT) From: Sebastian Spaeth To: Notmuch developer list Subject: [PATCH 4/6] add documentation example Date: Thu, 22 Apr 2010 11:07:29 +0200 Message-Id: <1271927251-19867-5-git-send-email-Sebastian@SSpaeth.de> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <87ochbx3er.fsf@SSpaeth.de> References: <87ochbx3er.fsf@SSpaeth.de> 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: Thu, 22 Apr 2010 09:08:12 -0000 Show how to set up an FCC header hook. Some minor indentation fixes Signed-off-by: Sebastian Spaeth --- 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