Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / db / a99fa8877836a6a963f9c3112f16037ef1e082
1 Return-Path: <meskio@sindominio.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 E673C431FBF\r
6         for <notmuch@notmuchmail.org>; Tue,  8 Dec 2009 01:55:28 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id uwBTl+B96xAM for <notmuch@notmuchmail.org>;\r
11         Tue,  8 Dec 2009 01:55:28 -0800 (PST)\r
12 Received: from flatline.sindominio.net (flatline.sindominio.net [82.144.4.26])\r
13         by olra.theworths.org (Postfix) with ESMTP id 24FCA431FAE\r
14         for <notmuch@notmuchmail.org>; Tue,  8 Dec 2009 01:55:28 -0800 (PST)\r
15 Received: from localhost (localhost.localdomain [127.0.0.1])\r
16         by flatline.sindominio.net (Postfix) with ESMTP id 79AE72626BA\r
17         for <notmuch@notmuchmail.org>; Tue,  8 Dec 2009 10:55:27 +0100 (CET)\r
18 X-Virus-Scanned: Debian amavisd-new at sindominio.net\r
19 Received: from flatline.sindominio.net ([127.0.0.1])\r
20         by localhost (flatline.sindominio.net [127.0.0.1]) (amavisd-new,\r
21         port 10024) with ESMTP id 99wgXNDtNawt for <notmuch@notmuchmail.org>;\r
22         Tue,  8 Dec 2009 10:55:24 +0100 (CET)\r
23 Received: from blackspot (rpollan-laptop.cern.ch [137.138.192.228])\r
24         by flatline.sindominio.net (Postfix) with ESMTPA id B4FFD2626BF\r
25         for <notmuch@notmuchmail.org>; Tue,  8 Dec 2009 10:55:24 +0100 (CET)\r
26 Received: by blackspot (Postfix, from userid 1000)\r
27         id 747308BC3B; Tue,  8 Dec 2009 10:57:32 +0100 (CET)\r
28 Date: Tue, 8 Dec 2009 10:57:32 +0100\r
29 From: ruben pollan <meskio@sindominio.net>\r
30 To: notmuch@notmuchmail.org\r
31 Message-ID: <20091208095732.GB8021@blackspot>\r
32 References: <20091126202347.GA16654@blackspot>\r
33         <1260265292-12591-1-git-send-email-meskio@sindominio.net>\r
34 MIME-Version: 1.0\r
35 Content-Type: multipart/signed; micalg=pgp-sha1;\r
36         protocol="application/pgp-signature"; boundary="7DO5AaGCk89r4vaK"\r
37 Content-Disposition: inline\r
38 In-Reply-To: <1260265292-12591-1-git-send-email-meskio@sindominio.net>\r
39 User-Agent: Mutt/1.5.20 (2009-06-14)\r
40 Subject: Re: [notmuch] regress option to messages iterator\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.12\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Tue, 08 Dec 2009 09:55:29 -0000\r
54 \r
55 \r
56 --7DO5AaGCk89r4vaK\r
57 Content-Type: multipart/mixed; boundary="bAmEntskrkuBymla"\r
58 Content-Disposition: inline\r
59 \r
60 \r
61 --bAmEntskrkuBymla\r
62 Content-Type: text/plain; charset=iso-8859-1\r
63 Content-Disposition: inline\r
64 Content-Transfer-Encoding: quoted-printable\r
65 \r
66 Attached to this email I add a small code that use this functions, as an\r
67 example.\r
68 \r
69 On 10:41, Tue 08 Dec 09, meskio@sindominio.net wrote:\r
70 > Two patches for implement the regress functions on messages. With them=20\r
71 > notmuch_messages_t can be use as an iterator forwards and backwards.\r
72 >=20\r
73 > Up to now not really useful, nothing use them. I send them mainly to revi=\r
74 ew.\r
75 > I'll do the same to threads and tags, so the UIs can use them.\r
76 >=20\r
77 > PS: It's the first time I'm using git-send-email, I hope I do everything =\r
78 well.\r
79 >=20\r
80 > _______________________________________________\r
81 > notmuch mailing list\r
82 > notmuch@notmuchmail.org\r
83 > http://notmuchmail.org/mailman/listinfo/notmuch\r
84 >=20\r
85 \r
86 --=20\r
87 Rub=E9n Poll=E1n  | jabber:meskio@jabber.org\r
88 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=\r
89 =3D-=3D-=3D-=3D-=3D-\r
90       Si luchas puedes perder\r
91      Si no luchas estas perdido\r
92 \r
93 \r
94 --bAmEntskrkuBymla\r
95 Content-Type: text/x-csrc; charset=us-ascii\r
96 Content-Disposition: attachment; filename="foo.c"\r
97 \r
98 #include <stdio.h>\r
99 #include "lib/notmuch.h"\r
100 \r
101 void\r
102 show_message (notmuch_message_t *message)\r
103 {\r
104         printf ("%s\n", notmuch_message_get_message_id (message));\r
105 }\r
106 \r
107 int\r
108 main ()\r
109 {\r
110         notmuch_database_t *database;\r
111         notmuch_query_t *query;\r
112         notmuch_messages_t *messages;\r
113         notmuch_message_t *message;\r
114         char ch = '\0';\r
115 \r
116         database = notmuch_database_open ("/home/meskio/Maildir", NOTMUCH_DATABASE_MODE_READ_ONLY);\r
117         query = notmuch_query_create (database, "inbox");\r
118         messages = notmuch_query_search_messages (query);\r
119 \r
120         while (ch != 'q')\r
121         {\r
122                 message = notmuch_messages_get (messages);\r
123                 show_message (message);\r
124                 ch = getchar();\r
125                 if (ch == 'n')\r
126                 {\r
127                         notmuch_messages_advance (messages);\r
128                         if (!notmuch_messages_has_more (messages))\r
129                                 notmuch_messages_regress (messages);\r
130                 }\r
131                 else if (ch == 'p')\r
132                 {\r
133                         if (!notmuch_messages_is_first (messages))\r
134                                 notmuch_messages_regress (messages);\r
135                 }\r
136         }\r
137 }\r
138 \r
139 --bAmEntskrkuBymla--\r
140 \r
141 --7DO5AaGCk89r4vaK\r
142 Content-Type: application/pgp-signature; name="signature.asc"\r
143 Content-Description: Digital signature\r
144 Content-Disposition: inline\r
145 \r
146 -----BEGIN PGP SIGNATURE-----\r
147 Version: GnuPG v1.4.10 (GNU/Linux)\r
148 \r
149 iEYEARECAAYFAkseIwwACgkQGKOQ92SwNMKYCwCfTvv1QcQg9RspX77XtZEiwHPh\r
150 C2cAoI7xoyRH8e38LQz/RCQHUnuU5ICP\r
151 =07mC\r
152 -----END PGP SIGNATURE-----\r
153 \r
154 --7DO5AaGCk89r4vaK--\r