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 50CAF4196F6 for ; Fri, 29 Jan 2010 06:46:38 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -4.891 X-Spam-Level: X-Spam-Status: No, score=-4.891 tagged_above=-999 required=5 tests=[AWL=1.708, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4] autolearn=ham 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 ktPqO3gZMw+9 for ; Fri, 29 Jan 2010 06:46:37 -0800 (PST) Received: from brinza.cc.columbia.edu (brinza.cc.columbia.edu [128.59.29.8]) by olra.theworths.org (Postfix) with ESMTP id 579F5431FDA for ; Fri, 29 Jan 2010 06:46:37 -0800 (PST) Received: from servo.finestructure.net (cpe-72-227-128-66.nyc.res.rr.com [72.227.128.66]) (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0) by brinza.cc.columbia.edu (8.14.3/8.14.3) with ESMTP id o0TEkZE9000322 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Fri, 29 Jan 2010 09:46:36 -0500 (EST) Received: from jrollins by servo.finestructure.net with local (Exim 4.71) (envelope-from ) id 1Nas7H-0005k6-15; Fri, 29 Jan 2010 09:46:35 -0500 From: Jameson Rollins To: Sebastian Spaeth , notmuch@notmuchmail.org In-Reply-To: <87ockdoxl7.fsf@SSpaeth.de> References: <873a1zs3t5.fsf@jhu.edu> <878wbj4nfq.fsf@servo.finestructure.net> <87ockdoxl7.fsf@SSpaeth.de> Date: Fri, 29 Jan 2010 09:46:31 -0500 Message-ID: <87bpgdx92w.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.68 on 128.59.29.8 Subject: Re: [notmuch] Fcc, Maildir, and Emacs message-mode -- a bit of code X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Fri, 29 Jan 2010 14:46:38 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Fri, 29 Jan 2010 14:21:56 +0100, "Sebastian Spaeth" wrote: > First, I think this FCC method is phantastic and it works like a > charm. I agree that we should include the snippets at least in some > "contrib" directory (or doc/examples) to make it easier to find. I'm really glad this was useful. Thanks of course to Jesse, who initially figured all this out. I'm pretty convinced that soon enough we'll have a new packages worth of notmuch helper functions and scripts. > Jameson Rollins wrote: > > (defun my-message-header-setup () > > (message-add-header "Fcc: ~/.mail/sent")) > > (add-hook 'message-send-hook 'my-message-header-setup) >=20 > I tried to replace that snippet with: >=20 > (setq message-default-mail-headers "Fcc: ~/.mail/sent\n") > > because I like to see the Fcc header when composing, but this only works > for new messages (via ctrl-x m) and not when invoked with "r"(eply) on > an existing message in notmuch. > > Is message-default-mail-headers only invoked for completely new mails? > The message mode manual doesn't state anything about that. Yeah, I started out doing that as well, but I tried every permutation of setup hooks I could think of and couldn't get consisten behavior when doing replys or new messages. I ended up just using the send-hook because it was simple and consistent. > And I agree with JRollins patch to not add the BCC to myself from > notmuch.el by default. Either make it a notmuch option, or specify how to > set up a default BCC in emacs in the docs. I think this needs to just be done via a personal emacs config. There's really no need for the notmuch CLI to handle this, when it can easily enough be handled by the reader UI. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJLYvTIAAoJEO00zqvie6q80kcP/3TfGTxBXtIeEOap89uU0e7/ IqP4BF3Ew4FsGLoUi0VAcGUh13Z4pgx3SYJ/XCZOGRa0XtA5xwzt6awgdYpktIbn Fndzx1ZU9aCI2vpDgovPxg78MdJ6sdSY1+swGlaYkxrVQ2qPkhOsKiRPzt+aS/2S +KFIIBvAM8YViM/GSXzIehA7V6NdXJdMcmuVx87rizA5KgmDcd6Q/xWk2V0C1bgG ppJnJ0z8fdgDUHNgpHHmVgy+2TfPQxFtxye1gkx2svGqs1v+ZNwFO6n/jNfH04zy uTFbShogntdu7xQfBe79aL0nGvXnpxy6D4t/Lp04s260rjt/sMwGCr2jaG1z8O6G AkDkzzt0nekopKdwqAG0y5S9cX/1PLvAOrw9hACQ7tjKpIlId88TFEFyMmvp3tMA B5cduGSo1HqatkC2ZWtCQSGPZ+FEzIPqKTPdVXRVh+nrom9VroAYM23wKWnOAQU7 +9g0y+oLCVYMCEn+aPHYQUWMyJepvktAjf4yf7yxrRQ1YuJTA8OoqKB0dm1T53u4 Wi33VOURzaYuoeVpJDSoiJ5vzyKH8XFWpxc2JzOs0JSxHG0R2ENmhBezgSYO/87B VaKyVGF6HUiBFKtZDguok/KcEUMcuoAM0AQwxGIw/gSV0qN/4GJmDa669eREu1o9 UAICB9JkpoU8oQqtSj3F =YDt9 -----END PGP SIGNATURE----- --=-=-=--