Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / cc / 71397cca0c1eac0216ed82612d6c9045f03893
1 Return-Path: <bremner@tethera.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 9F1B2431FB6\r
6         for <notmuch@notmuchmail.org>; Sat, 31 Dec 2011 19:23:02 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.987\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.987 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3, URI_HEX=1.313] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id f9oTbpskxhak for <notmuch@notmuchmail.org>;\r
16         Sat, 31 Dec 2011 19:23:00 -0800 (PST)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id B9C64429E21\r
21         for <notmuch@notmuchmail.org>; Sat, 31 Dec 2011 19:22:59 -0800 (PST)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc36w-156034079193.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [156.34.79.193]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id q013MrhO017590\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Sat, 31 Dec 2011 23:22:53 -0400\r
28 Received: from bremner by zancas.localnet with local (Exim 4.77)\r
29         (envelope-from <bremner@tethera.net>)\r
30         id 1RhC0a-0002D8-Vl; Sat, 31 Dec 2011 23:22:53 -0400\r
31 From: David Bremner <david@tethera.net>\r
32 To: notmuch@notmuchmail.org\r
33 Subject:\r
34  [PATCH v2 2/3] test: add two new messages to corpus with iso-8859-1 encoding\r
35 Date: Sat, 31 Dec 2011 23:22:48 -0400\r
36 Message-Id: <1325388169-8444-3-git-send-email-david@tethera.net>\r
37 X-Mailer: git-send-email 1.7.7.3\r
38 In-Reply-To: <1325388169-8444-1-git-send-email-david@tethera.net>\r
39 References: <1325306261-21444-2-git-send-email-kaz.rag@gmail.com>\r
40         <1325388169-8444-1-git-send-email-david@tethera.net>\r
41 MIME-Version: 1.0\r
42 Content-Type: text/plain; charset=UTF-8\r
43 Content-Transfer-Encoding: 8bit\r
44 Cc: David Bremner <bremner@debian.org>\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Sun, 01 Jan 2012 03:23:02 -0000\r
58 \r
59 From: David Bremner <bremner@debian.org>\r
60 \r
61 One is quoted printable, the other users 8 bit encoding. The latter\r
62 triggers a bug in the python bindings due to missing call to\r
63 g_mime_init. The corresponding test is marked broken in this commit.\r
64 ---\r
65  test/corpus/cur/52:2,                              |   39 ++++++++++++++++++++\r
66  test/corpus/cur/53:2,                              |   20 ++++++++++\r
67  test/emacs.expected-output/notmuch-hello           |    4 +-\r
68  .../notmuch-hello-no-saved-searches                |    2 +-\r
69  .../emacs.expected-output/notmuch-hello-view-inbox |    2 +\r
70  .../emacs.expected-output/notmuch-hello-with-empty |    4 +-\r
71  .../emacs.expected-output/notmuch-search-tag-inbox |    2 +\r
72  test/python                                        |    1 +\r
73  test/search                                        |    2 +\r
74  test/search-output                                 |   16 +++++++-\r
75  10 files changed, 85 insertions(+), 7 deletions(-)\r
76  create mode 100644 test/corpus/cur/52:2,\r
77  create mode 100644 test/corpus/cur/53:2,\r
78 \r
79 diff --git a/test/corpus/cur/52:2, b/test/corpus/cur/52:2,\r
80 new file mode 100644\r
81 index 0000000..6028340\r
82 --- /dev/null\r
83 +++ b/test/corpus/cur/52:2,\r
84 @@ -0,0 +1,39 @@\r
85 +Message-ID: <4EFC743A.3060609@april.org>\r
86 +Date: Thu, 29 Dec 2010 15:07:54 +0100\r
87 +From: "=?ISO-8859-1?Q?Fran=E7ois_Boulogne?=" <boulogne.f@gmail.com>\r
88 +User-Agent: Mozilla/5.0 (X11; Linux i686;\r
89 + rv:9.0) Gecko/20111224 Thunderbird/9.0.1\r
90 +MIME-Version: 1.0\r
91 +To: Allan McRae <allan@archlinux.org>, \r
92 + "Discussion about the Arch User Repository (AUR)" <aur-general@archlinux.org>\r
93 +References: <4EFC3931.6030007@april.org> <4EFC3D62.4030202@archlinux.org>\r
94 +In-Reply-To: <4EFC3D62.4030202@archlinux.org>\r
95 +Content-Type: text/plain; charset=ISO-8859-1\r
96 +Content-Transfer-Encoding: 8bit\r
97 +Subject: Re: [aur-general] Guidelines: cp, mkdir vs install\r
98 +\r
99 +Le 29/12/2011 11:13, Allan McRae a écrit :\r
100 +> On 29/12/11 19:56, François Boulogne wrote:\r
101 +>> Hi,\r
102 +>>\r
103 +>> Looking to improve the quality of my packages, I read again the guidelines.\r
104 +>> https://wiki.archlinux.org/index.php/Arch_Packaging_Standards\r
105 +>>\r
106 +>> However, it don't see anything about the install command like\r
107 +>> install -d $pkgdir/usr/{bin,share/man/man1,share/locale}\r
108 +>>\r
109 +>> Some contributors on AUR use cp or mkdir to install files/dir (when no\r
110 +>> makefile is provided) and others use install command.\r
111 +>>\r
112 +>> What's the opinion of TU on this point?\r
113 +>>\r
114 +> \r
115 +> Use install with -m specifying the correct permissions\r
116 +> \r
117 +\r
118 +Thank you Allan\r
119 +\r
120 +\r
121 +-- \r
122 +François Boulogne.\r
123 +https://www.sciunto.org\r
124 diff --git a/test/corpus/cur/53:2, b/test/corpus/cur/53:2,\r
125 new file mode 100644\r
126 index 0000000..7a1e2e5\r
127 --- /dev/null\r
128 +++ b/test/corpus/cur/53:2,\r
129 @@ -0,0 +1,20 @@\r
130 +From: Olivier Berger <olivier.berger@it-sudparis.eu>\r
131 +To: olivier.berger@it-sudparis.eu\r
132 +Subject: Essai =?iso-8859-1?Q?accentu=E9?=\r
133 +User-Agent: Notmuch/0.10.1 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu)\r
134 +X-Draft-From: ("nnimap+localdovecot:INBOX" 44228)\r
135 +Date: Fri, 16 Dec 2010 16:49:59 +0100\r
136 +Message-ID: <877h1wv7mg.fsf@inf-8657.int-evry.fr>\r
137 +MIME-Version: 1.0\r
138 +Content-Type: text/plain; charset=iso-8859-1\r
139 +Content-Transfer-Encoding: quoted-printable\r
140 +\r
141 +Du texte accentu=E9 pour =E7a ...\r
142 +\r
143 +=E0 la bonne heure !\r
144 +--=20\r
145 +Olivier BERGER=20\r
146 +http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8\r
147 +Ingenieur Recherche - Dept INF\r
148 +Institut TELECOM, SudParis (http://www.it-sudparis.eu/), Evry (France)\r
149 +\r
150 diff --git a/test/emacs.expected-output/notmuch-hello b/test/emacs.expected-output/notmuch-hello\r
151 index 48143bd..de57de2 100644\r
152 --- a/test/emacs.expected-output/notmuch-hello\r
153 +++ b/test/emacs.expected-output/notmuch-hello\r
154 @@ -1,8 +1,8 @@\r
155 -   Welcome to notmuch. You have 50 messages.\r
156 +   Welcome to notmuch. You have 52 messages.\r
157  \r
158  Saved searches: [edit]\r
159  \r
160 -         50 inbox           50 unread    \r
161 +         52 inbox           52 unread    \r
162  \r
163  Search:                                                                      \r
164  \r
165 diff --git a/test/emacs.expected-output/notmuch-hello-no-saved-searches b/test/emacs.expected-output/notmuch-hello-no-saved-searches\r
166 index 7c09e40..f1fc4d6 100644\r
167 --- a/test/emacs.expected-output/notmuch-hello-no-saved-searches\r
168 +++ b/test/emacs.expected-output/notmuch-hello-no-saved-searches\r
169 @@ -1,4 +1,4 @@\r
170 -   Welcome to notmuch. You have 50 messages.\r
171 +   Welcome to notmuch. You have 52 messages.\r
172  \r
173  Search:                                                                      \r
174  \r
175 diff --git a/test/emacs.expected-output/notmuch-hello-view-inbox b/test/emacs.expected-output/notmuch-hello-view-inbox\r
176 index 894ae5f..1688d67 100644\r
177 --- a/test/emacs.expected-output/notmuch-hello-view-inbox\r
178 +++ b/test/emacs.expected-output/notmuch-hello-view-inbox\r
179 @@ -20,4 +20,6 @@\r
180    2009-11-18 [1/1]   Alexander Botero-Lowry  [notmuch] request for pull (inbox unread)\r
181    2009-11-18 [2/2]   Keith Packard, Alexander Botero-Lowry    [notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox unread)\r
182    2009-11-18 [1/1]   Chris Wilson         [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)\r
183 +  2010-12-16 [1/1]   Olivier Berger       Essai accentué (inbox unread)\r
184 +  2010-12-29 [1/1]   François Boulogne    [aur-general] Guidelines: cp, mkdir vs install (inbox unread)\r
185  End of search results.\r
186 diff --git a/test/emacs.expected-output/notmuch-hello-with-empty b/test/emacs.expected-output/notmuch-hello-with-empty\r
187 index 2a267c9..dd8728b 100644\r
188 --- a/test/emacs.expected-output/notmuch-hello-with-empty\r
189 +++ b/test/emacs.expected-output/notmuch-hello-with-empty\r
190 @@ -1,8 +1,8 @@\r
191 -   Welcome to notmuch. You have 50 messages.\r
192 +   Welcome to notmuch. You have 52 messages.\r
193  \r
194  Saved searches: [edit]\r
195  \r
196 -         50 inbox           50 unread           0 empty     \r
197 +         52 inbox           52 unread           0 empty     \r
198  \r
199  Search:                                                                      \r
200  \r
201 diff --git a/test/emacs.expected-output/notmuch-search-tag-inbox b/test/emacs.expected-output/notmuch-search-tag-inbox\r
202 index 9456ccf..8a53555 100644\r
203 --- a/test/emacs.expected-output/notmuch-search-tag-inbox\r
204 +++ b/test/emacs.expected-output/notmuch-search-tag-inbox\r
205 @@ -1,3 +1,5 @@\r
206 +  2010-12-29 [1/1]   François Boulogne    [aur-general] Guidelines: cp, mkdir vs install (inbox unread)\r
207 +  2010-12-16 [1/1]   Olivier Berger       Essai accentué (inbox unread)\r
208    2009-11-18 [1/1]   Chris Wilson         [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)\r
209    2009-11-18 [2/2]   Alex Botero-Lowry, Carl Worth  [notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (attachment inbox unread)\r
210    2009-11-18 [2/2]   Ingmar Vanhassel, Carl Worth  [notmuch] [PATCH] Typsos (inbox unread)\r
211 diff --git a/test/python b/test/python\r
212 index c3aa726..0b56db3 100755\r
213 --- a/test/python\r
214 +++ b/test/python\r
215 @@ -5,6 +5,7 @@ test_description="python bindings"\r
216  add_email_corpus\r
217  \r
218  test_begin_subtest "compare thread ids"\r
219 +test_subtest_known_broken\r
220  test_python <<EOF\r
221  import notmuch\r
222  db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)\r
223 diff --git a/test/search b/test/search\r
224 index 4710d57..a7a0b18 100755\r
225 --- a/test/search\r
226 +++ b/test/search\r
227 @@ -81,6 +81,8 @@ test_expect_equal "$output" "thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; s\r
228  test_begin_subtest 'Search for all messages ("*")'\r
229  notmuch search '*' | notmuch_search_sanitize > OUTPUT\r
230  cat <<EOF >EXPECTED\r
231 +thread:XXX   2010-12-29 [1/1] François Boulogne; [aur-general] Guidelines: cp, mkdir vs install (inbox unread)\r
232 +thread:XXX   2010-12-16 [1/1] Olivier Berger; Essai accentué (inbox unread)\r
233  thread:XXX   2009-11-18 [1/1] Chris Wilson; [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)\r
234  thread:XXX   2009-11-18 [2/2] Alex Botero-Lowry, Carl Worth; [notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (attachment inbox unread)\r
235  thread:XXX   2009-11-18 [2/2] Ingmar Vanhassel, Carl Worth; [notmuch] [PATCH] Typsos (inbox unread)\r
236 diff --git a/test/search-output b/test/search-output\r
237 index 10291c3..8b57a43 100755\r
238 --- a/test/search-output\r
239 +++ b/test/search-output\r
240 @@ -29,6 +29,8 @@ thread:THREADID\r
241  thread:THREADID\r
242  thread:THREADID\r
243  thread:THREADID\r
244 +thread:THREADID\r
245 +thread:THREADID\r
246  EOF\r
247  test_expect_equal_file OUTPUT EXPECTED\r
248  \r
249 @@ -56,6 +58,8 @@ cat <<EOF >EXPECTED\r
250  "THREADID",\r
251  "THREADID",\r
252  "THREADID",\r
253 +"THREADID",\r
254 +"THREADID",\r
255  "THREADID"]\r
256  EOF\r
257  test_expect_equal_file OUTPUT EXPECTED\r
258 @@ -63,6 +67,8 @@ test_expect_equal_file OUTPUT EXPECTED\r
259  test_begin_subtest "--output=messages"\r
260  notmuch search --output=messages '*' >OUTPUT\r
261  cat <<EOF >EXPECTED\r
262 +id:4EFC743A.3060609@april.org\r
263 +id:877h1wv7mg.fsf@inf-8657.int-evry.fr\r
264  id:1258544095-16616-1-git-send-email-chris@chris-wilson.co.uk\r
265  id:877htoqdbo.fsf@yoom.home.cworth.org\r
266  id:878we4qdqf.fsf@yoom.home.cworth.org\r
267 @@ -119,7 +125,9 @@ test_expect_equal_file OUTPUT EXPECTED\r
268  test_begin_subtest "--output=messages --format=json"\r
269  notmuch search --format=json --output=messages '*' >OUTPUT\r
270  cat <<EOF >EXPECTED\r
271 -["1258544095-16616-1-git-send-email-chris@chris-wilson.co.uk",\r
272 +["4EFC743A.3060609@april.org",\r
273 +"877h1wv7mg.fsf@inf-8657.int-evry.fr",\r
274 +"1258544095-16616-1-git-send-email-chris@chris-wilson.co.uk",\r
275  "877htoqdbo.fsf@yoom.home.cworth.org",\r
276  "878we4qdqf.fsf@yoom.home.cworth.org",\r
277  "87aaykqe24.fsf@yoom.home.cworth.org",\r
278 @@ -175,6 +183,8 @@ test_expect_equal_file OUTPUT EXPECTED\r
279  test_begin_subtest "--output=files"\r
280  notmuch search --output=files '*' | sed -e "s,$MAIL_DIR,MAIL_DIR," >OUTPUT\r
281  cat <<EOF >EXPECTED\r
282 +MAIL_DIR/cur/52:2,\r
283 +MAIL_DIR/cur/53:2,\r
284  MAIL_DIR/cur/50:2,\r
285  MAIL_DIR/cur/49:2,\r
286  MAIL_DIR/cur/48:2,\r
287 @@ -232,7 +242,9 @@ test_expect_equal_file OUTPUT EXPECTED\r
288  test_begin_subtest "--output=files --format=json"\r
289  notmuch search --format=json --output=files '*' | sed -e "s,$MAIL_DIR,MAIL_DIR," >OUTPUT\r
290  cat <<EOF >EXPECTED\r
291 -["MAIL_DIR/cur/50:2,",\r
292 +["MAIL_DIR/cur/52:2,",\r
293 +"MAIL_DIR/cur/53:2,",\r
294 +"MAIL_DIR/cur/50:2,",\r
295  "MAIL_DIR/cur/49:2,",\r
296  "MAIL_DIR/cur/48:2,",\r
297  "MAIL_DIR/cur/47:2,",\r
298 -- \r
299 1.7.7.3\r
300 \r