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 29571431FD0 for ; Mon, 16 May 2011 11:03:51 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.09 X-Spam-Level: X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_MIME_NO_TEXT=0.01] autolearn=disabled 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 RSfOFssBj0ZS for ; Mon, 16 May 2011 11:03:49 -0700 (PDT) Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222]) by olra.theworths.org (Postfix) with ESMTP id 179FA431FB6 for ; Mon, 16 May 2011 11:03:49 -0700 (PDT) Received: from odin.local (unknown [IPv6:2a01:e34:eee0:2d0:221:5cff:fe51:5c0b]) by ks3536.kimsufi.com (Postfix) with ESMTPSA id 246B96A06A9; Mon, 16 May 2011 20:03:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net; s=key-schnouki; t=1305569027; bh=fbFktQStbqL7veHpMgi3r5jErFtb2UwpSGofj+jytmU=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=UxVozU8V89tY3rKouUVvkuy9YAiSTBij4wh08B+xkg4ZGe9xv0DH//yQnZ91ib1F7 UO7znlZg5qcs+J6r0LQwrYUjmrSJQWcrcG1sRj+mTaMfVCW8cz4AiJuLeE7ZEURLhe R0h1nSVPZVambQetTVxmfWDXjc5j2kR4RPyboAHU= From: Thomas Jost To: Jameson Graef Rollins , Stewart Smith , notmuch Subject: Re: Multiple sender identities (composing) In-Reply-To: <87wrhqa8q7.fsf@servo.factory.finestructure.net> References: <87vcxb0za4.fsf@flamingspork.com> <8762pb55w4.fsf@thor.loria.fr> <87k4dqkb1n.fsf@flamingspork.com> <87wrhqa8q7.fsf@servo.factory.finestructure.net> User-Agent: Notmuch/0.5-156-g539f505 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-unknown-linux-gnu) Date: Mon, 16 May 2011 20:03:34 +0200 Message-ID: <87hb8uv7yh.fsf@schnouki.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: Mon, 16 May 2011 18:03:51 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 16 May 2011 09:52:32 -0700, Jameson Graef Rollins wrote: > On Mon, 16 May 2011 11:52:43 +0200, Thomas Jost w= rote: > > On Mon, 16 May 2011 19:29:07 +1000, Stewart Smith wrote: > > > Thought I'd share this bit of my .emacs snippet that may be useful to= go > > > on the emacs tips page. > > >=20 > > > This does the following: > > > - sets up a list of possible identities to have mail From > > > - on composing mail, it prompts you for who you want to send mail from > > > - pressing enter will give you the default (first in the list) > > > - otherwise you have tab completion >=20 > This is great, guys. I've been wanting to get something like this > working for a while now. >=20 > Have you guys looked at home message-mode does bbdb address completion > in the To: and From: headers? It has the nice benefit of being able to > tab through all full addresses for a bbdb entry. It would be nice to > have this function fill in a default address, with the cursor at the end > of the address, and then just tab through all the options without having > to type in anything. ido is pretty cool, though, and accomplishes a > similar effect. I don't know much about bbdb; right now I'm completing addresses with notmuch-address.el and a little Python script that I wrote [1]. It can complete the From header too, although I had never tried that before writing this mail :) > It would be nice to pull the addresses from the notmuch config, eg: >=20 > notmuch config get user.primary_email > notmuch config get user.other_email Nice idea, I like that. However this way you can only get the address part, not the username part. And when using some addresses I want to put a nickname instead of my full name, so just using a default user name is not very convenient. Or is it possible to put things like "User Name " in the notmuch config? > I would ideally like to be able to choose the From: address right before > sending, as opposed to right before composing. Has anyone tried to get > that working? I was not having much luck with send-hooks, since it > looks like it expects the message to be complete at that point. I haven't tried that, but it would indeed be nice to be able to do that at send time. The message-seend-hook doc states that "this hook is run quite early when sending", so I would expect that to be the best solution. However, if for some reason it doesn't work, it's probably possible to write a little function around message-send (...or even to advise it) to do whatever you want before it is actually executed. I'll try to have a look at this tomorrow. Regards, Thomas [1] https://github.com/Schnouki/dotfiles/blob/master/notmuch/addrbook.py =2D-=20 Thomas/Schnouki --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJN0Wb3AAoJEMPdciX+bh5INpkIAI5EDu7wfAOp/syyQwz9lUGi nPfFsoENqSe5ipzFOs4Hk/ea2M3YsF1TLbGJ2E8GF3FYzYLIdfupF0a14urpl7dA FjoTVbhXqGby3GaK4Q1nk3kIyScOCsD0enZH844Otx0OGpi/qmUKo9C43+aAA4+B D5/TcNIxxxnRg4UOhrEbbPXSDHSklIBk6gNO+GSv8qU96nJYqqF5PdJbU+nE5hRp 4Kq0FfFOX4N6pAbp3IHE01GCO1FvSE2VYVxKooSwlcmLQS1pbhkmkz8LSl53DkrK 0cD9j4PBaHMHTWkJFnqfiUYF8j55Lbma5hKHumLeMwwsK0yWD7AyxShw3I6J884= =0cDw -----END PGP SIGNATURE----- --=-=-=--