Re: Flat search and threaded views
[notmuch-archives.git] / 72 / 867ba107968978739fc97e8c1319da566b9896
1 Return-Path: <schnouki@schnouki.net>\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 29571431FD0\r
6         for <notmuch@notmuchmail.org>; Mon, 16 May 2011 11:03:51 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.09\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         T_MIME_NO_TEXT=0.01] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id RSfOFssBj0ZS for <notmuch@notmuchmail.org>;\r
17         Mon, 16 May 2011 11:03:49 -0700 (PDT)\r
18 Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
19         by olra.theworths.org (Postfix) with ESMTP id 179FA431FB6\r
20         for <notmuch@notmuchmail.org>; Mon, 16 May 2011 11:03:49 -0700 (PDT)\r
21 Received: from odin.local (unknown\r
22  [IPv6:2a01:e34:eee0:2d0:221:5cff:fe51:5c0b])   by ks3536.kimsufi.com (Postfix)\r
23  with ESMTPSA id 246B96A06A9;   Mon, 16 May 2011 20:03:47 +0200 (CEST)\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
25         s=key-schnouki; t=1305569027;\r
26         bh=fbFktQStbqL7veHpMgi3r5jErFtb2UwpSGofj+jytmU=;\r
27         h=From:To:Subject:In-Reply-To:References:Date:Message-ID:\r
28         MIME-Version:Content-Type;\r
29         b=UxVozU8V89tY3rKouUVvkuy9YAiSTBij4wh08B+xkg4ZGe9xv0DH//yQnZ91ib1F7\r
30         UO7znlZg5qcs+J6r0LQwrYUjmrSJQWcrcG1sRj+mTaMfVCW8cz4AiJuLeE7ZEURLhe\r
31         R0h1nSVPZVambQetTVxmfWDXjc5j2kR4RPyboAHU=\r
32 From: Thomas Jost <schnouki@schnouki.net>\r
33 To: Jameson Graef Rollins <jrollins@finestructure.net>,\r
34         Stewart Smith <stewart@flamingspork.com>, notmuch <notmuch@notmuchmail.org>\r
35 Subject: Re: Multiple sender identities (composing)\r
36 In-Reply-To: <87wrhqa8q7.fsf@servo.factory.finestructure.net>\r
37 References: <87vcxb0za4.fsf@flamingspork.com> <8762pb55w4.fsf@thor.loria.fr>\r
38         <87k4dqkb1n.fsf@flamingspork.com>\r
39         <87wrhqa8q7.fsf@servo.factory.finestructure.net>\r
40 User-Agent: Notmuch/0.5-156-g539f505 (http://notmuchmail.org) Emacs/23.3.1\r
41         (x86_64-unknown-linux-gnu)\r
42 Date: Mon, 16 May 2011 20:03:34 +0200\r
43 Message-ID: <87hb8uv7yh.fsf@schnouki.net>\r
44 MIME-Version: 1.0\r
45 Content-Type: multipart/signed; boundary="=-=-=";\r
46         micalg=pgp-sha1; protocol="application/pgp-signature"\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Mon, 16 May 2011 18:03:51 -0000\r
60 \r
61 --=-=-=\r
62 Content-Transfer-Encoding: quoted-printable\r
63 \r
64 On Mon, 16 May 2011 09:52:32 -0700, Jameson Graef Rollins <jrollins@finestr=\r
65 ucture.net> wrote:\r
66 > On Mon, 16 May 2011 11:52:43 +0200, Thomas Jost <schnouki@schnouki.net> w=\r
67 rote:\r
68 > > On Mon, 16 May 2011 19:29:07 +1000, Stewart Smith <stewart@flamingspork=\r
69 .com> wrote:\r
70 > > > Thought I'd share this bit of my .emacs snippet that may be useful to=\r
71  go\r
72 > > > on the emacs tips page.\r
73 > > >=20\r
74 > > > This does the following:\r
75 > > > - sets up a list of possible identities to have mail From\r
76 > > > - on composing mail, it prompts you for who you want to send mail from\r
77 > > > - pressing enter will give you the default (first in the list)\r
78 > > > - otherwise you have tab completion\r
79 >=20\r
80 > This is great, guys.  I've been wanting to get something like this\r
81 > working for a while now.\r
82 >=20\r
83 > Have you guys looked at home message-mode does bbdb address completion\r
84 > in the To: and From: headers?  It has the nice benefit of being able to\r
85 > tab through all full addresses for a bbdb entry.  It would be nice to\r
86 > have this function fill in a default address, with the cursor at the end\r
87 > of the address, and then just tab through all the options without having\r
88 > to type in anything.  ido is pretty cool, though, and accomplishes a\r
89 > similar effect.\r
90 \r
91 I don't know much about bbdb; right now I'm completing addresses with\r
92 notmuch-address.el and a little Python script that I wrote [1]. It can\r
93 complete the From header too, although I had never tried that before\r
94 writing this mail :)\r
95 \r
96 > It would be nice to pull the addresses from the notmuch config, eg:\r
97 >=20\r
98 > notmuch config get user.primary_email\r
99 > notmuch config get user.other_email\r
100 \r
101 Nice idea, I like that. However this way you can only get the address\r
102 part, not the username part. And when using some addresses I want to put\r
103 a nickname instead of my full name, so just using a default user name is\r
104 not very convenient.\r
105 Or is it possible to put things like "User Name <me@myself.com>" in the\r
106 notmuch config?\r
107 \r
108 > I would ideally like to be able to choose the From: address right before\r
109 > sending, as opposed to right before composing.  Has anyone tried to get\r
110 > that working?  I was not having much luck with send-hooks, since it\r
111 > looks like it expects the message to be complete at that point.\r
112 \r
113 I haven't tried that, but it would indeed be nice to be able to do that\r
114 at send time.\r
115 The message-seend-hook doc states that "this hook is run quite early\r
116 when sending", so I would expect that to be the best solution.\r
117 However, if for some reason it doesn't work, it's probably possible to\r
118 write a little function around message-send (...or even to advise it) to\r
119 do whatever you want before it is actually executed.\r
120 I'll try to have a look at this tomorrow.\r
121 \r
122 Regards,\r
123 Thomas\r
124 \r
125 [1] https://github.com/Schnouki/dotfiles/blob/master/notmuch/addrbook.py\r
126 \r
127 =2D-=20\r
128 Thomas/Schnouki\r
129 \r
130 --=-=-=\r
131 Content-Type: application/pgp-signature\r
132 \r
133 -----BEGIN PGP SIGNATURE-----\r
134 Version: GnuPG v1.4.11 (GNU/Linux)\r
135 \r
136 iQEcBAEBAgAGBQJN0Wb3AAoJEMPdciX+bh5INpkIAI5EDu7wfAOp/syyQwz9lUGi\r
137 nPfFsoENqSe5ipzFOs4Hk/ea2M3YsF1TLbGJ2E8GF3FYzYLIdfupF0a14urpl7dA\r
138 FjoTVbhXqGby3GaK4Q1nk3kIyScOCsD0enZH844Otx0OGpi/qmUKo9C43+aAA4+B\r
139 D5/TcNIxxxnRg4UOhrEbbPXSDHSklIBk6gNO+GSv8qU96nJYqqF5PdJbU+nE5hRp\r
140 4Kq0FfFOX4N6pAbp3IHE01GCO1FvSE2VYVxKooSwlcmLQS1pbhkmkz8LSl53DkrK\r
141 0cD9j4PBaHMHTWkJFnqfiUYF8j55Lbma5hKHumLeMwwsK0yWD7AyxShw3I6J884=\r
142 =0cDw\r
143 -----END PGP SIGNATURE-----\r
144 --=-=-=--\r