[PATCH 1/9] lib: read "property" terms from messages.
[notmuch-archives.git] / 95 / 368e00672c4d28ef335c2ae861d7067389c2d4
1 Return-Path: <patricktotzke@gmail.com>\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 E628E431FAF\r
6         for <notmuch@notmuchmail.org>; Tue, 11 Sep 2012 00:47:34 -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.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 KOV1VTNb-knM for <notmuch@notmuchmail.org>;\r
17         Tue, 11 Sep 2012 00:47:34 -0700 (PDT)\r
18 Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com\r
19         [209.85.212.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 30898431FAE\r
22         for <notmuch@notmuchmail.org>; Tue, 11 Sep 2012 00:47:34 -0700 (PDT)\r
23 Received: by wibhq4 with SMTP id hq4so186730wib.2\r
24         for <notmuch@notmuchmail.org>; Tue, 11 Sep 2012 00:47:31 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=content-type:mime-version:content-disposition:from:user-agent:to\r
27         :references:in-reply-to:message-id:subject:date;\r
28         bh=A4sl7ikQK6Usg0SJDhiWm+COE8sgoKOUDpoSksOluzg=;\r
29         b=oi7YAE7htOwA2Qrc3UoKjQdeVGFf2VIY86uteG+SjYNoLQRqhsT2TI/7yeeB17DN3Q\r
30         ZTfG7MTD+WVWcgoe5EmvtVjtiehuIA51aRE0r2mjGQzvCn/Cqjjc+C3NeCZpa/YmEXuf\r
31         j5B+u8FmWf28EpB3+OIbtY8L5LmBMXvgA+NulZb388H0diSP8B2CQcFtyLZT46WJzA3r\r
32         UnwnSCP6GhMIao9VLw/eJhdv12m6XpyOiuFY+hLkNV2A9DaetJ7r3MsxCTuksWnERtvQ\r
33         0F0lj6hqpqUsna4BnSK7Tba06hlaBsd8FMA6IfpcblA7chpoB0KuZf5e+Xu5YDaI3gPH\r
34         OamA==\r
35 Received: by 10.216.131.13 with SMTP id l13mr9555572wei.195.1347349651561;\r
36         Tue, 11 Sep 2012 00:47:31 -0700 (PDT)\r
37 Received: from localhost\r
38  (host167-95-static.225-95-b.business.telecomitalia.it. [95.225.95.167])        by\r
39  mx.google.com with ESMTPS id l5sm2103646wix.5.2012.09.11.00.47.29\r
40         (version=TLSv1/SSLv3 cipher=OTHER);     Tue, 11 Sep 2012 00:47:30 -0700 (PDT)\r
41 Content-Type: multipart/signed; protocol="application/pgp-signature";\r
42         micalg="pgp-sha1"; boundary="===============2921840152275723521=="\r
43 MIME-Version: 1.0\r
44 Content-Disposition: inline\r
45 From: Patrick Totzke <patricktotzke@gmail.com>\r
46 User-Agent: alot/0.3.3\r
47 To: Sepp Tannhuber <sepp.tannhuber@yahoo.de>,\r
48         "notmuch@notmuchmail.org" <notmuch@notmuchmail.org>\r
49 References: <20120909153401.30209.43912@brick.lan>\r
50         <1347299700.65731.YahooMailNeo@web171405.mail.ir2.yahoo.com>\r
51 In-Reply-To: <1347299700.65731.YahooMailNeo@web171405.mail.ir2.yahoo.com>\r
52 Message-ID: <20120911074728.7776.72473@brick.lan>\r
53 Subject: Re: [alot] announcing v0.3.3\r
54 Date: Tue, 11 Sep 2012 09:47:28 +0200\r
55 X-BeenThere: notmuch@notmuchmail.org\r
56 X-Mailman-Version: 2.1.13\r
57 Precedence: list\r
58 List-Id: "Use and development of the notmuch mail system."\r
59         <notmuch.notmuchmail.org>\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
63 List-Post: <mailto:notmuch@notmuchmail.org>\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
67 X-List-Received-Date: Tue, 11 Sep 2012 07:47:35 -0000\r
68 \r
69 --===============2921840152275723521==\r
70 Content-Type: text/plain; charset="utf-8"\r
71 MIME-Version: 1.0\r
72 Content-Transfer-Encoding: quoted-printable\r
73 \r
74 Hi Sepp, welcome to alot :)\r
75 \r
76 Quoting Sepp Tannhuber (2012-09-10 19:55:00)\r
77 > 1. As vi user I alway type gg/G to jump to the top/bottom. Is there a com=\r
78 mand that I can\r
79 > =C2=A0 =C2=A0configure this way? I have not found a jump to top/bottom co=\r
80 mmand in the manual.\r
81 Short Answer:\r
82 This is not yet possible with the current design, no.\r
83 It is something i'd also like to see though and i have already a few ideas =\r
84 ho to do this.\r
85 \r
86 Long version/dev info:\r
87 First of all, i only recently added the ability to interpret "gg" (or other=\r
88  multi-key strokes)\r
89 at all.. so thats done.\r
90 Now both for thread and search mode we use a toplevel `urwid.ListBox` widge=\r
91 t iirc,\r
92 and those do not directly support "focus topmost line". But they do allow to\r
93 move the focus to some index and so implementing such a `MoveCommand` shoul=\r
94 d not be hard.\r
95 One reason I have not bothered to implement this so far is that in the long=\r
96  run,\r
97 I want to have urwid Tree widgets as top level widgets in thread buffers.\r
98 This would also allow "move to next sibling/parent" and so on.\r
99 \r
100 > 2. Mutt has a nice feature, the Attach: pseudo header. It can be used to =\r
101 attach files from\r
102 > =C2=A0 =C2=A0within the editor. I use this small vi macro to attach files:\r
103 > =C2=A0 =C2=A0 =C2=A0" mutt: insert attachment with ranger\r
104 > =\r
105 \r
106 > =C2=A0 =C2=A0 =C2=A0fun! RangerMuttAttach()\r
107 > =C2=A0 =C2=A0 =C2=A0if filereadable('/tmp/chosendir')\r
108 > =C2=A0 =C2=A0 =C2=A0silent !ranger --choosefiles=3D/tmp/chosenfiles --cho=\r
109 osedir=3D/tmp/chosendir "$(cat /tmp/chosendir)"\r
110 > =C2=A0 =C2=A0 =C2=A0else\r
111 > =C2=A0 =C2=A0 =C2=A0silent !ranger --choosefiles=3D/tmp/chosenfiles --cho=\r
112 osedir=3D/tmp/chosendir\r
113 > =C2=A0 =C2=A0 =C2=A0endif\r
114 > =C2=A0 =C2=A0 =C2=A0if filereadable('/tmp/chosenfiles')\r
115 > =C2=A0 =C2=A0 =C2=A0call append(3, map(readfile('/tmp/chosenfiles'), '"At=\r
116 tach: ".escape(v:val,"     \\")'))\r
117 > =C2=A0 =C2=A0 =C2=A0call system('rm /tmp/chosenfiles')\r
118 > =C2=A0 =C2=A0 =C2=A0endif\r
119 > =C2=A0 =C2=A0 =C2=A0redraw!\r
120 > =C2=A0 =C2=A0 =C2=A0endfun\r
121 > =C2=A0 =C2=A0 =C2=A0map <C-a> :call RangerMuttAttach()<CR>\r
122 > =C2=A0 =C2=A0 =C2=A0imap <C-a> <ESC>:call RangerMuttAttach()<CR>a\r
123 > =C2=A0 =C2=A0I would like to use the same with alot. Is it possible?\r
124 \r
125 Nice idea!\r
126 So you can of course use this method to set an "Attach" header, but as of n=\r
127 ow\r
128 alot will not interpret and remove this when reading the edited text.\r
129 I guess one would also want that in the other direction if one really uses =\r
130 this feature:\r
131 When re-editing the message body, the editable headers part of the text sho=\r
132 uld include\r
133 an Attach header line that lists the current attachments..\r
134 \r
135 > 3. I have followed the instructions to use abook for contact completion. =\r
136 I have used abook with mutt as well.\r
137 > =C2=A0 =C2=A0So I have put these two=C2=A0lines in my config:\r
138 > =C2=A0 =C2=A0 =C2=A0[[[abook]]]\r
139 > =C2=A0 =C2=A0 =C2=A0 =C2=A0type =3D abook\r
140 > =C2=A0 =C2=A0But I did not find a way how to use it. Can anybody tell me?\r
141 \r
142 It will be used for tabcompletion when you compose a mesage.\r
143 When you see the "to>" prompt, type in some prefix of a (realname part of a)\r
144 contact from abook and hit <tab>.\r
145 \r
146 Cheers,\r
147 /p\r
148 \r
149 --===============2921840152275723521==\r
150 MIME-Version: 1.0\r
151 Content-Transfer-Encoding: 7bit\r
152 Content-Description: signature\r
153 Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"\r
154 \r
155 -----BEGIN PGP SIGNATURE-----\r
156 Version: GnuPG v1.4.11 (GNU/Linux)\r
157 \r
158 iEYEABECAAYFAlBO7JAACgkQlDQDZ9fWxaqBQgCfey307eWXUUkTBlCynhOlO73o\r
159 +GoAoKacsZFt0Ogs4reYsGp+YDM15ZVz\r
160 =2Ko6\r
161 -----END PGP SIGNATURE-----\r
162 \r
163 --===============2921840152275723521==--\r