1 Return-Path: <marten@veldthuis.com>
\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 943BE431FC0
\r
6 for <notmuch@notmuchmail.org>; Sun, 20 Dec 2009 10:22:36 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 Received: from olra.theworths.org ([127.0.0.1])
\r
9 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
10 with ESMTP id VfKYrEQstClB for <notmuch@notmuchmail.org>;
\r
11 Sun, 20 Dec 2009 10:22:34 -0800 (PST)
\r
12 Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com
\r
14 by olra.theworths.org (Postfix) with ESMTP id D25E2431FAE
\r
15 for <notmuch@notmuchmail.org>; Sun, 20 Dec 2009 10:22:34 -0800 (PST)
\r
16 Received: from compute2.internal (compute2.internal [10.202.2.42])
\r
17 by gateway1.messagingengine.com (Postfix) with ESMTP id 802C5C77C9;
\r
18 Sun, 20 Dec 2009 13:22:34 -0500 (EST)
\r
19 Received: from heartbeat2.messagingengine.com ([10.202.2.161])
\r
20 by compute2.internal (MEProxy); Sun, 20 Dec 2009 13:22:34 -0500
\r
21 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com;
\r
22 h=from:to:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=smtpout; bh=ah5a95uNlxIiMrwFHWpHm01MU+c=;
\r
23 b=dqFc+fkG726ZPRxiScYOSUTNE1XMZZ9k5vPVF6vojNursmIhHsbFL20SFbVMTvh1DgVqxwxFhY0son77GHH7F2f75NpqRePFlwREnf6hTR++Wgb7Y2GGkW75HEO+fAcrmbyKi2wl1kb2SHpwkQ2YvyAQ0IX94qxifTM0ttZd0Hs=
\r
24 X-Sasl-enc: RpTgSC0+Q8JYtomAakmFtNMRiav17Q/2eIj8CgSFz9Hw 1261333353
\r
25 Received: from veldthuis.com (marten.rgoc.rug.nl [129.125.147.35])
\r
26 by mail.messagingengine.com (Postfix) with ESMTPSA id A3F1294AD;
\r
27 Sun, 20 Dec 2009 13:22:32 -0500 (EST)
\r
28 Received: by veldthuis.com (sSMTP sendmail emulation);
\r
29 Sun, 20 Dec 2009 19:22:55 +0100
\r
30 From: Marten Veldthuis <marten@veldthuis.com>
\r
31 To: Keith Packard <keithp@keithp.com>, Alex Ghitza <aghitza@gmail.com>,
\r
32 Carl Worth <cworth@cworth.org>, Jed Brown <jed@59A2.org>,
\r
33 notmuch@notmuchmail.org
\r
34 In-Reply-To: <yuneimqdyqt.fsf@aiko.keithp.com>
\r
35 References: <54hbrnpod1.fsf@gmail.com> <8763836xnv.fsf@59A2.org>
\r
36 <54hbrmze3v.fsf@gmail.com> <87aaxextev.fsf@yoom.home.cworth.org>
\r
37 <yunljgye4uu.fsf@aiko.keithp.com> <54eimqz2sk.fsf@gmail.com>
\r
38 <yuneimqdyqt.fsf@aiko.keithp.com>
\r
39 Date: Sun, 20 Dec 2009 19:22:55 +0100
\r
40 Message-ID: <87ws0hjyio.fsf@veldthuis.com>
\r
42 Content-Type: text/plain; charset=us-ascii
\r
43 Subject: Re: [notmuch] keeping a copy of sent mail locally
\r
44 X-BeenThere: notmuch@notmuchmail.org
\r
45 X-Mailman-Version: 2.1.12
\r
47 List-Id: "Use and development of the notmuch mail system."
\r
48 <notmuch.notmuchmail.org>
\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
52 List-Post: <mailto:notmuch@notmuchmail.org>
\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
56 X-List-Received-Date: Sun, 20 Dec 2009 18:22:36 -0000
\r
58 On Sat, 19 Dec 2009 21:02:18 -0800, Keith Packard <keithp@keithp.com> wrote:
\r
59 > We actually want to let the user *select* an email address from the
\r
60 > config file, and then automagically set the bcc: flag as
\r
61 > appropriate. Without that, I'd end up bcc'ing all of my mail through my
\r
62 > home address, which would end up sending work email unencrypted to my
\r
63 > house. Sub-optimal
\r
65 There's a message-send-hook, which we should probably use. Something
\r
68 (add-hook 'message-send-hook 'notmuch-always-bcc-sender)
\r
69 (defun notmuch-always-bcc-sender ()
\r
70 (message-add-header (concat "Bcc: "
\r
71 (message-fetch-field "From"))))
\r
73 Though I've just scrabbled this together from the docs, I think it
\r
74 should work (haven't tried it though).
\r