Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 943BE431FC0 for ; Sun, 20 Dec 2009 10:22:36 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VfKYrEQstClB for ; Sun, 20 Dec 2009 10:22:34 -0800 (PST) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by olra.theworths.org (Postfix) with ESMTP id D25E2431FAE for ; Sun, 20 Dec 2009 10:22:34 -0800 (PST) Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 802C5C77C9; Sun, 20 Dec 2009 13:22:34 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Sun, 20 Dec 2009 13:22:34 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=smtpout; bh=ah5a95uNlxIiMrwFHWpHm01MU+c=; b=dqFc+fkG726ZPRxiScYOSUTNE1XMZZ9k5vPVF6vojNursmIhHsbFL20SFbVMTvh1DgVqxwxFhY0son77GHH7F2f75NpqRePFlwREnf6hTR++Wgb7Y2GGkW75HEO+fAcrmbyKi2wl1kb2SHpwkQ2YvyAQ0IX94qxifTM0ttZd0Hs= X-Sasl-enc: RpTgSC0+Q8JYtomAakmFtNMRiav17Q/2eIj8CgSFz9Hw 1261333353 Received: from veldthuis.com (marten.rgoc.rug.nl [129.125.147.35]) by mail.messagingengine.com (Postfix) with ESMTPSA id A3F1294AD; Sun, 20 Dec 2009 13:22:32 -0500 (EST) Received: by veldthuis.com (sSMTP sendmail emulation); Sun, 20 Dec 2009 19:22:55 +0100 From: Marten Veldthuis To: Keith Packard , Alex Ghitza , Carl Worth , Jed Brown , notmuch@notmuchmail.org In-Reply-To: References: <54hbrnpod1.fsf@gmail.com> <8763836xnv.fsf@59A2.org> <54hbrmze3v.fsf@gmail.com> <87aaxextev.fsf@yoom.home.cworth.org> <54eimqz2sk.fsf@gmail.com> Date: Sun, 20 Dec 2009 19:22:55 +0100 Message-ID: <87ws0hjyio.fsf@veldthuis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] keeping a copy of sent mail locally X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 18:22:36 -0000 On Sat, 19 Dec 2009 21:02:18 -0800, Keith Packard wrote: > We actually want to let the user *select* an email address from the > config file, and then automagically set the bcc: flag as > appropriate. Without that, I'd end up bcc'ing all of my mail through my > home address, which would end up sending work email unencrypted to my > house. Sub-optimal There's a message-send-hook, which we should probably use. Something like: (add-hook 'message-send-hook 'notmuch-always-bcc-sender) (defun notmuch-always-bcc-sender () (message-add-header (concat "Bcc: " (message-fetch-field "From")))) Though I've just scrabbled this together from the docs, I think it should work (haven't tried it though). -- - Marten