From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id AC5C2431FC0 for ; Sat, 19 Dec 2009 20:29:44 -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 FEui7m-sIZc6 for ; Sat, 19 Dec 2009 20:29:43 -0800 (PST) Received: from mail-gx0-f221.google.com (mail-gx0-f221.google.com [209.85.217.221]) by olra.theworths.org (Postfix) with ESMTP id 5F930431FAE for ; Sat, 19 Dec 2009 20:29:43 -0800 (PST) Received: by gxk21 with SMTP id 21so2009978gxk.10 for ; Sat, 19 Dec 2009 20:29:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:in-reply-to :references:date:message-id:mime-version:content-type; bh=s/lPo4rwEksbGLt8Lq/Cafp3cLzpZW9ch3iakMaitcE=; b=eY0ov8xA8dP7+uIEvVPdheuHDdG3MvQnPhHyLJxjfeZ3dQPtHdnu6mPx32XUEsy4t5 7ItdJlcqp0m+yVJD99BoJV0A3NhjmNSgADrDWcFEhVx7O7642Y7tpt7OHHOqwBjgdCc+ pxuhER6w9ZX5lgLydYGa0VGjoW51soFzWITlk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:bcc:references:date:message-id :mime-version:content-type; b=AZMO9kW0953RnhxzlxeAvfTM/U5ZeN3p8h597SXuTXaIqga/sV0aRCVM2Mb7XA596z NpsH4N4PBOCdJScPRj1ejOfqLao028mPyc0kduCCUXFuyq8u5OxHXWl1CZORm55VsgEA 1bcjX0zK1Kb+L4WnRS+i2gFfLsMEGycmlYYs8= Received: by 10.90.41.14 with SMTP id o14mr1952543ago.25.1261283382936; Sat, 19 Dec 2009 20:29:42 -0800 (PST) Received: from localhost (220-244-174-171.static.tpgi.com.au [220.244.174.171]) by mx.google.com with ESMTPS id 14sm2248511gxk.14.2009.12.19.20.29.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 19 Dec 2009 20:29:41 -0800 (PST) From: Alex Ghitza To: Keith Packard , 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> Date: Sun, 20 Dec 2009 15:29:15 +1100 Message-ID: <54eimqz2sk.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: 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 04:29:44 -0000 On Sat, 19 Dec 2009 18:50:17 -0800, Keith Packard wrote: > On Sat, 19 Dec 2009 18:37:12 -0800, Carl Worth wrote: > > > So we need to figure out how to configure (or hook) that > > to insert the Bcc, and then we can fix notmuch.el to do this without any > > user configuration. > > Just call: > > (message-mail nil nil '(("bcc" "keithp@keithp.com"))) > > instead of (message-mail) > Good. So we can put this in notmuch.el and Keith will get everybody's sent mail. :) It looks like we need a way to get the primary email address from the config file. Actually, while we're at it, we can consider making this more flexible and adding a new option to the config file (e.g. bcc=...) which would take a semicolon-separated list of email addresses (in case someone wants to always bcc an address other than the primary one). Is there a nice clean way of getting the config variables in notmuch.el? Or should this go into a new file notmuch-compose.c? Note that the latter would imply having a new command like "notmuch compose". Ah, I just realised there's another issue related to the fact that 'm' immediately defers to Message mode while 'r' does some preprocessing: after pressing 'r', various headers are set in the appropriate manner (From:, for instance, using the user name and email address from the config file). If you press 'm', you would get something like From: ghitza@artin.i-did-not-set--mail-host-address--so-tickle-me due to the fact that Message mode doesn't know the name or the email address. This can be fixed by adding to .emacs something like (setq user-full-name "Alex Ghitza") (setq user-mail-address "aghitza@gmail.com") It's not a big deal, but now the same thing must be set in two different places (.notmuch-config and .emacs), and can lead to confusion if, say, the user changes their primary email address in one place but forgets it needs to also be changed in the other. So I guess I would prefer it if notmuch would do a very minimal amount of preprocessing before heading into Message mode when composing mail. In fact, we could make sure that there is consistent behaviour between 'm' and 'r' by making "notmuch compose" return a few preset headers (From:, Bcc:, whatever else is deemed appropriate), and making "notmuch reply" call "notmuch compose" first and then add the reply-specific content. Sorry about writing a lot of prose and no code! I'd like to get a sense for people's reactions before trying to write a patch for this. Best, Alex -- Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne -- Australia -- http://www.ms.unimelb.edu.au/~aghitza/