Re: Emacs: Crypto: How to get automatic encryption?
[notmuch-archives.git] / ea / f2540523ced4f432432d5a3c3990e30fe49abc
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 CD7BD4196F2\r
6         for <notmuch@notmuchmail.org>; Thu, 22 Apr 2010 02:06:15 -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: -0.001\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5\r
12         tests=[BAYES_20=-0.001] 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 JuH-KQ34sh+K for <notmuch@notmuchmail.org>;\r
16         Thu, 22 Apr 2010 02:06:14 -0700 (PDT)\r
17 Received: from homiemail-a19.g.dreamhost.com (caiajhbdcbef.dreamhost.com\r
18         [208.97.132.145])\r
19         by olra.theworths.org (Postfix) with ESMTP id 7DE54431FC1\r
20         for <notmuch@notmuchmail.org>; Thu, 22 Apr 2010 02:06:14 -0700 (PDT)\r
21 Received: from sspaeth.de (mtec-hg-docking-1-dhcp-204.ethz.ch\r
22         [129.132.133.204]) (Authenticated sender: sebastian@sspaeth.de)\r
23         by homiemail-a19.g.dreamhost.com (Postfix) with ESMTPA id A779B604061; \r
24         Thu, 22 Apr 2010 02:06:06 -0700 (PDT)\r
25 Received: by sspaeth.de (sSMTP sendmail emulation);\r
26         Thu, 22 Apr 2010 11:06:04 +0200\r
27 From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>\r
28 To: Jesse Rosenthal <jrosenthal@jhu.edu>, notmuch@notmuchmail.org\r
29 Subject: Re: [notmuch] Fcc, Maildir, and Emacs message-mode -- a bit of code\r
30 In-Reply-To: <873a1zs3t5.fsf@jhu.edu>\r
31 References: <873a1zs3t5.fsf@jhu.edu>\r
32 Date: Thu, 22 Apr 2010 11:06:04 +0200\r
33 Message-ID: <87ochbx3er.fsf@SSpaeth.de>\r
34 MIME-Version: 1.0\r
35 Content-Type: text/plain; charset=us-ascii\r
36 X-BeenThere: notmuch@notmuchmail.org\r
37 X-Mailman-Version: 2.1.13\r
38 Precedence: list\r
39 List-Id: "Use and development of the notmuch mail system."\r
40         <notmuch.notmuchmail.org>\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
44 List-Post: <mailto:notmuch@notmuchmail.org>\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
48 X-List-Received-Date: Thu, 22 Apr 2010 09:06:16 -0000\r
49 \r
50 As Carl stated that he would probably merge this one if someone tested\r
51 it, here it comes: I tested it and it works great. When I define a\r
52 non-existing directory as maildir it aborts with an error message that\r
53 is visible to the user.\r
54 \r
55 I put this in a branch based on cworth/master and with Jesse's\r
56 permission, I renamed the functions and did some further cleanup (It's\r
57 also integrated in the build system)\r
58 \r
59 The git branch is here:\r
60 http://github.com/spaetz/notmuch-all-feature/tree/feature/elisp-fcc\r
61 \r
62 It's not enabled by default. Enable it with:\r
63 \r
64 (setq message-fcc-handler-function \r
65       '(lambda (destdir) \r
66          (notmuch-maildir-fcc-write-buffer-to-maildir destdir t)))\r
67 \r
68 (add-hook 'message-send-hook \r
69           '(lambda ()\r
70              (message-add-header "Fcc: ~/mail/INBOX.Sent")))\r
71 \r
72 in your .emacs for now.\r
73 \r
74 I'll send the patch series by mail in a second.\r
75 \r
76 I have the slight problem that offlineimap takes the message from\r
77 INBOX.Sent/cur and stuffs it in INBOX.Sent/new (but that cannot really\r
78 be related to this as the mail ends up correctly in /cur after sending\r
79 it).\r
80 \r
81 Sebastian\r