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
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
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
35 Content-Type: text/plain; charset=us-ascii
\r
36 X-BeenThere: notmuch@notmuchmail.org
\r
37 X-Mailman-Version: 2.1.13
\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
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
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
59 The git branch is here:
\r
60 http://github.com/spaetz/notmuch-all-feature/tree/feature/elisp-fcc
\r
62 It's not enabled by default. Enable it with:
\r
64 (setq message-fcc-handler-function
\r
66 (notmuch-maildir-fcc-write-buffer-to-maildir destdir t)))
\r
68 (add-hook 'message-send-hook
\r
70 (message-add-header "Fcc: ~/mail/INBOX.Sent")))
\r
72 in your .emacs for now.
\r
74 I'll send the patch series by mail in a second.
\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