1 Return-Path: <Sebastian@SSpaeth.de>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 36AB841733A
\r
6 for <notmuch@notmuchmail.org>; Thu, 22 Apr 2010 02:08:12 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 0OilL8J3y7Tu for <notmuch@notmuchmail.org>;
\r
16 Thu, 22 Apr 2010 02:08:11 -0700 (PDT)
\r
17 Received: from homiemail-a13.g.dreamhost.com (mailbigip.dreamhost.com
\r
19 by olra.theworths.org (Postfix) with ESMTP id 51157417339
\r
20 for <notmuch@notmuchmail.org>; Thu, 22 Apr 2010 02:08:11 -0700 (PDT)
\r
21 Received: from localhost.localdomain (mtec-hg-docking-1-dhcp-204.ethz.ch
\r
22 [129.132.133.204]) (Authenticated sender: sebastian@sspaeth.de)
\r
23 by homiemail-a13.g.dreamhost.com (Postfix) with ESMTPA id 1E3FC6A8058;
\r
24 Thu, 22 Apr 2010 02:08:04 -0700 (PDT)
\r
25 From: Sebastian Spaeth <Sebastian@SSpaeth.de>
\r
26 To: Notmuch developer list <notmuch@notmuchmail.org>
\r
27 Subject: [PATCH 4/6] add documentation example
\r
28 Date: Thu, 22 Apr 2010 11:07:29 +0200
\r
29 Message-Id: <1271927251-19867-5-git-send-email-Sebastian@SSpaeth.de>
\r
30 X-Mailer: git-send-email 1.7.0.4
\r
31 In-Reply-To: <87ochbx3er.fsf@SSpaeth.de>
\r
32 References: <87ochbx3er.fsf@SSpaeth.de>
\r
33 X-BeenThere: notmuch@notmuchmail.org
\r
34 X-Mailman-Version: 2.1.13
\r
36 List-Id: "Use and development of the notmuch mail system."
\r
37 <notmuch.notmuchmail.org>
\r
38 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
39 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
41 List-Post: <mailto:notmuch@notmuchmail.org>
\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
43 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
45 X-List-Received-Date: Thu, 22 Apr 2010 09:08:12 -0000
\r
47 Show how to set up an FCC header hook. Some minor indentation fixes
\r
49 Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
\r
51 emacs/notmuch-maildir-fcc.el | 14 ++++++++++----
\r
52 1 files changed, 10 insertions(+), 4 deletions(-)
\r
54 diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el
\r
55 index c91095d..f63c1c9 100644
\r
56 --- a/emacs/notmuch-maildir-fcc.el
\r
57 +++ b/emacs/notmuch-maildir-fcc.el
\r
59 ;; (setq message-fcc-handler-function
\r
60 ;; '(lambda (destdir)
\r
61 ;; (notmuch-maildir-fcc-write-buffer-to-maildir destdir nil)))
\r
64 +;; It will then honor the Fcc header that you set in your mail. They can
\r
65 +;; be set up automatically via:
\r
67 +;; (add-hook 'message-send-hook
\r
69 +;; (message-add-header "Fcc: ~/mail/INBOX.Sent")))
\r
71 (defvar notmuch-maildir-fcc-count 0)
\r
73 (defun notmuch-maildir-fcc-host-fixer (hostname)
\r
74 (replace-regexp-in-string "/\\|:"
\r
76 - (cond ((string-equal s "/") "\\057")
\r
77 - ((string-equal s ":") "\\072")
\r
79 + (cond ((string-equal s "/") "\\057")
\r
80 + ((string-equal s ":") "\\072")
\r