ido address lookup for notmuch
[notmuch-archives.git] / 74 / d60cfe9830d71f248716ce40182b78e92d3ee9
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
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.9\r
10 X-Spam-Level: \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
18         [208.97.132.5])\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
35 Precedence: list\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
46 \r
47 Show how to set up an FCC header hook. Some minor indentation fixes\r
48 \r
49 Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
50 ---\r
51  emacs/notmuch-maildir-fcc.el |   14 ++++++++++----\r
52  1 files changed, 10 insertions(+), 4 deletions(-)\r
53 \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
58 @@ -35,16 +35,22 @@\r
59  ;;     (setq message-fcc-handler-function \r
60  ;;          '(lambda (destdir) \r
61  ;;          (notmuch-maildir-fcc-write-buffer-to-maildir destdir nil)))\r
62 -\r
63 +;;\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
66 +;;\r
67 +;;     (add-hook 'message-send-hook \r
68 +;;          '(lambda ()\r
69 +;;             (message-add-header "Fcc: ~/mail/INBOX.Sent")))\r
70  \r
71  (defvar notmuch-maildir-fcc-count 0)\r
72  \r
73  (defun notmuch-maildir-fcc-host-fixer (hostname)\r
74    (replace-regexp-in-string "/\\|:"\r
75                             '(lambda (s)\r
76 -                                (cond ((string-equal s "/") "\\057")\r
77 -                                      ((string-equal s ":") "\\072")\r
78 -                                      (t s)))\r
79 +                               (cond ((string-equal s "/") "\\057")\r
80 +                                     ((string-equal s ":") "\\072")\r
81 +                                     (t s)))\r
82                             hostname\r
83                             t\r
84                             t))\r
85 -- \r
86 1.7.0.4\r
87 \r