community/pipermail-archives/sup-talk/2009-11.txt (227712B) - raw
1 From wmorgan-sup@masanjin.net Sun Nov 1 09:39:25 2009
2 From: wmorgan-sup@masanjin.net (William Morgan)
3 Date: Sun, 01 Nov 2009 06:39:25 -0800
4 Subject: [sup-talk] [PATCH] minor nits in exception apology message
5 In-Reply-To: <1256987483-sup-338@tilus.net>
6 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
7 <1256760970-sup-8118@arrakis.es.net>
8 <1256939476-sup-2864@masanjin.net> <1256987483-sup-338@tilus.net>
9 Message-ID: <1257086191-sup-1136@masanjin.net>
10
11 Reformatted excerpts from Tero Tilus's message of 2009-10-31:
12 > How about setting up a loose team which would handle the incoming bug
13 > reports (for you), track/sort all of them and fix what they feel like
14 > fixing and maybe upon request/occasionally report somewhere the
15 > current status (how many minors and majors open).
16
17 As far as I'm concerned, that would be great. I'm open to suggestions
18 about how to organize this. At this point I'm pretty convinced I will
19 never actually like a bug tracker, and I don't have the energy to write
20 another one, so for someone else to take the initiative would be
21 awesome.
22 --
23 William <wmorgan-sup at masanjin.net>
24
25 From wmorgan-sup@masanjin.net Sun Nov 1 09:45:05 2009
26 From: wmorgan-sup@masanjin.net (William Morgan)
27 Date: Sun, 01 Nov 2009 06:45:05 -0800
28 Subject: [sup-talk] [PATCH] minor nits in exception apology message
29 In-Reply-To: <1256940689-sup-888@arrakis.es.net>
30 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
31 <1256760970-sup-8118@arrakis.es.net>
32 <1256939476-sup-2864@masanjin.net>
33 <1256940689-sup-888@arrakis.es.net>
34 Message-ID: <1257086690-sup-9036@masanjin.net>
35
36 [resend to list]
37
38 Reformatted excerpts from Jon Dugan's message of 2009-10-30:
39 > I've attached a patch that just make the BASE_DIR tweak. I'll leave
40 > changing the instructions to you...
41
42 Applied to master. (Had to tweak it to make the path actually correct,
43 but no worries.) Thanks!
44 --
45 William <wmorgan-sup at masanjin.net>
46
47 From wmorgan-sup@masanjin.net Sun Nov 1 09:53:31 2009
48 From: wmorgan-sup@masanjin.net (William Morgan)
49 Date: Sun, 01 Nov 2009 06:53:31 -0800
50 Subject: [sup-talk] Recovering a busted ferret db?
51 In-Reply-To: <e06498070910301514ud4efe49ic0fb40d181156fab@mail.gmail.com>
52 References: <e06498070910301017g57b156cclec9abb3689bde243@mail.gmail.com>
53 <1256939095-sup-4201@masanjin.net>
54 <e06498070910301514ud4efe49ic0fb40d181156fab@mail.gmail.com>
55 Message-ID: <1257087035-sup-2014@masanjin.net>
56
57 Reformatted excerpts from Steven Walter's message of 2009-10-30:
58 > I am able to Ctrl-C sup-dump when it hangs. Here's the ruby backtrace:
59 >
60 > /var/lib/gems/1.8/gems/sup-0.9/lib/sup/util.rb:206:in `split': Interrupt
61 > from /var/lib/gems/1.8/gems/sup-0.9/lib/sup/util.rb:206:in
62 > `split_on_commas'
63
64 It looks like you have some crazy long recipient email in some list
65 that's triggering worst-case behavior in a regexp. Can you try again
66 after applying this patch, please? (And I'd be curious how long the
67 address list was, if you find out what message is triggering this.)
68
69 diff --git a/lib/sup/person.rb b/lib/sup/person.rb
70 index 4b1c80b..dbedc79 100644
71 --- a/lib/sup/person.rb
72 +++ b/lib/sup/person.rb
73 @@ -105,6 +105,10 @@ class Person
74
75 def self.from_address_list ss
76 return [] if ss.nil?
77 + ## #split_on_commas has some bad behavior for long strings. so here we do
78 + ## something nasty and just truncate the string at the nearest comma <= 500
79 + ## characters.
80 + ss = ss[0, ss.rindex(",", 500)] if ss.length > 500
81 ss.split_on_commas.map { |s| self.from_address s }
82 end
83
84 --
85 William <wmorgan-sup at masanjin.net>
86
87 From nicolas.pouillard@gmail.com Sun Nov 1 10:24:22 2009
88 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
89 Date: Sun, 01 Nov 2009 16:24:22 +0100
90 Subject: [sup-talk] [PATCH] minor nits in exception apology message
91 In-Reply-To: <1257086191-sup-1136@masanjin.net>
92 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
93 <1256760970-sup-8118@arrakis.es.net>
94 <1256939476-sup-2864@masanjin.net> <1256987483-sup-338@tilus.net>
95 <1257086191-sup-1136@masanjin.net>
96 Message-ID: <1257088992-sup-5165@peray>
97
98 Excerpts from William Morgan's message of Sun Nov 01 15:39:25 +0100 2009:
99 > Reformatted excerpts from Tero Tilus's message of 2009-10-31:
100 > > How about setting up a loose team which would handle the incoming bug
101 > > reports (for you), track/sort all of them and fix what they feel like
102 > > fixing and maybe upon request/occasionally report somewhere the
103 > > current status (how many minors and majors open).
104 >
105 > As far as I'm concerned, that would be great. I'm open to suggestions
106 > about how to organize this. At this point I'm pretty convinced I will
107 > never actually like a bug tracker, and I don't have the energy to write
108 > another one, so for someone else to take the initiative would be
109 > awesome.
110
111 Have strong points against Ditz or this is also a lake of energy?
112
113 --
114 Nicolas Pouillard
115 http://nicolaspouillard.fr
116
117 From wmorgan-sup@masanjin.net Sun Nov 1 11:19:23 2009
118 From: wmorgan-sup@masanjin.net (William Morgan)
119 Date: Sun, 01 Nov 2009 08:19:23 -0800
120 Subject: [sup-talk] [PATCH] minor nits in exception apology message
121 In-Reply-To: <1257088992-sup-5165@peray>
122 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
123 <1256760970-sup-8118@arrakis.es.net>
124 <1256939476-sup-2864@masanjin.net> <1256987483-sup-338@tilus.net>
125 <1257086191-sup-1136@masanjin.net> <1257088992-sup-5165@peray>
126 Message-ID: <1257091305-sup-4606@masanjin.net>
127
128 Reformatted excerpts from Nicolas Pouillard's message of 2009-11-01:
129 > Have strong points against Ditz or this is also a lake of energy?
130
131 Both, really. Ditz was an experiment, and after using it for a while I
132 decided it was more trouble than it was worth. I also realized that I
133 *did* want a centralized web site after all, and not necessarily a
134 complicated distributed thing, both because I want non-technical users
135 to be able to submit bug reports, and because development, in reality,
136 *is* centralized.
137
138 (I had been doing some work on Sheila, which would've provided a web
139 frontent that people could use to submit bug reports, but even that
140 wouldn't be quite what I wanted.)
141
142 Having thought about it for a while, I think what I *really* want for
143 Sup is something that tracks bugs/feature requests at the feature branch
144 level (i.e. assumes that each feature branch provides a new feature or a
145 bugfix), has a web interface for non-technical users to submit bug
146 reports and for developers to browse/modify state on bugs, and which
147 uses email for discussion, like I did with Whisper. (And I would be fine
148 with it being git-specific.)
149
150 I am now spending all my energy trying to keep myself from building such
151 a thing.
152 --
153 William <wmorgan-sup at masanjin.net>
154
155 From wmorgan-sup@masanjin.net Sun Nov 1 11:23:03 2009
156 From: wmorgan-sup@masanjin.net (William Morgan)
157 Date: Sun, 01 Nov 2009 08:23:03 -0800
158 Subject: [sup-talk] Arch Linux Sup Package (Ruby 1.9.1 + Sup 0.9)
159 In-Reply-To: <80055d7c0910180805v5da8a9a0o57851093ee17813e@mail.gmail.com>
160 References: <80055d7c0910180805v5da8a9a0o57851093ee17813e@mail.gmail.com>
161 Message-ID: <1257092475-sup-4321@masanjin.net>
162
163 Reformatted excerpts from Andrei Thorp's message of 2009-10-18:
164 > - I've applyed Lloyd's patch for fixing the UTF-8 check.
165
166 Which patch was this? The only "Lloyd patch" one I'm aware of is:
167 http://github.com/lloyd/sup/commit/d07986419b87053b41f7ed4bd7b6d1e537704864
168
169 which a) I don't quite understand, and b) isn't about utf8.
170 --
171 William <wmorgan-sup at masanjin.net>
172
173 From wmorgan-sup@masanjin.net Sun Nov 1 11:32:35 2009
174 From: wmorgan-sup@masanjin.net (William Morgan)
175 Date: Sun, 01 Nov 2009 08:32:35 -0800
176 Subject: [sup-talk] Can't search without crashing
177 In-Reply-To: <1256588053-sup-8922@sgoldmanlinux.tower-research.com>
178 References: <1256588053-sup-8922@sgoldmanlinux.tower-research.com>
179 Message-ID: <1257093136-sup-2762@masanjin.net>
180
181 Reformatted excerpts from Steve Goldman's message of 2009-10-26:
182 > Wow, I guess I haven't tried to search in a while... I can't search
183 > for *anything* without it crashing hard. Every time. I'm on master.
184
185 In ~/.sup/sources.yaml, do you have a source with "id: 4"?
186 --
187 William <wmorgan-sup at masanjin.net>
188
189 From nicolas.pouillard@gmail.com Sun Nov 1 11:48:16 2009
190 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
191 Date: Sun, 01 Nov 2009 17:48:16 +0100
192 Subject: [sup-talk] [PATCH] minor nits in exception apology message
193 In-Reply-To: <1257091305-sup-4606@masanjin.net>
194 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
195 <1256760970-sup-8118@arrakis.es.net>
196 <1256939476-sup-2864@masanjin.net> <1256987483-sup-338@tilus.net>
197 <1257086191-sup-1136@masanjin.net> <1257088992-sup-5165@peray>
198 <1257091305-sup-4606@masanjin.net>
199 Message-ID: <1257093429-sup-8020@peray>
200
201 Excerpts from William Morgan's message of Sun Nov 01 17:19:23 +0100 2009:
202 > Reformatted excerpts from Nicolas Pouillard's message of 2009-11-01:
203 > > Have strong points against Ditz or this is also a lake of energy?
204 >
205 > Both, really. Ditz was an experiment, and after using it for a while I
206 > decided it was more trouble than it was worth. I also realized that I
207 > *did* want a centralized web site after all, and not necessarily a
208 > complicated distributed thing, both because I want non-technical users
209 > to be able to submit bug reports, and because development, in reality,
210 > *is* centralized.
211
212 I think I see your point, however I think there is no less no more to
213 centralize in a bugtracker than in a source code management tool. Indeed
214 in most projects using a DVCS, they have a central repository, this
215 does not reduce the benefits of distributed tools. Distributed bugtrackers
216 does not necessary exclude having a central point. What I found cool
217 about distributed bugtrackers is that the bug-closing action can follow
218 the code that fixes the bug. Being in a branch, or being reviewed...
219
220 About non-technical users, I think that just a mail (thread) on the
221 mailing-list could suffice. Of course some web app can make things clearer.
222
223 > (I had been doing some work on Sheila, which would've provided a web
224 > frontent that people could use to submit bug reports, but even that
225 > wouldn't be quite what I wanted.)
226
227 > Having thought about it for a while, I think what I *really* want for
228 > Sup is something that tracks bugs/feature requests at the feature branch
229 > level (i.e. assumes that each feature branch provides a new feature or a
230 > bugfix), has a web interface for non-technical users to submit bug
231 > reports and for developers to browse/modify state on bugs, and which
232 > uses email for discussion, like I did with Whisper. (And I would be fine
233 > with it being git-specific.)
234
235 Maybe Ditz is not very far from that.
236
237 > I am now spending all my energy trying to keep myself from building such
238 > a thing.
239
240 Good luck on this :)
241
242 --
243 Nicolas Pouillard
244 http://nicolaspouillard.fr
245
246 From sgoldman@tower-research.com Sun Nov 1 11:48:38 2009
247 From: sgoldman@tower-research.com (Steve Goldman)
248 Date: Sun, 01 Nov 2009 11:48:38 -0500
249 Subject: [sup-talk] Can't search without crashing
250 In-Reply-To: <1257093136-sup-2762@masanjin.net>
251 References: <1256588053-sup-8922@sgoldmanlinux.tower-research.com>
252 <1257093136-sup-2762@masanjin.net>
253 Message-ID: <1257094049-sup-1250@sgoldmanlinux.tower-research.com>
254
255 Excerpts from William Morgan's message of Sun Nov 01 11:32:35 -0500 2009:
256 > Reformatted excerpts from Steve Goldman's message of 2009-10-26:
257 > > Wow, I guess I haven't tried to search in a while... I can't search
258 > > for *anything* without it crashing hard. Every time. I'm on master.
259 >
260 > In ~/.sup/sources.yaml, do you have a source with "id: 4"?
261
262 No.
263
264 Although a few weeks ago I cleared out a bunch of sources that I
265 thought were defunct from that file.
266
267 I'm replacing those sources (at least I backed up the sources.yaml
268 file) and will see how that goes.
269
270 And now I'm feeling stupid...
271 --
272
273 Steve Goldman
274 sgoldman at tower-research.com
275
276 T: 212.219.6014
277 F: 212.219.6007
278
279 Tower Research Capital, LLC
280 377 Broadway, 11th Fl.
281 New York, NY 10013
282
283 From sgoldman@tower-research.com Sun Nov 1 11:49:54 2009
284 From: sgoldman@tower-research.com (Steve Goldman)
285 Date: Sun, 01 Nov 2009 11:49:54 -0500
286 Subject: [sup-talk] What happened to the log buffer?
287 Message-ID: <1257094144-sup-8318@sgoldmanlinux.tower-research.com>
288
289
290 I'm somewhere near the next branch.
291
292 Formerly, when I started sup I could cycle through a few buffers with
293 'b', two of which were some sort of log buffers. These are gone now.
294
295 Anyone know?
296
297 Thanks.
298 --
299
300 Steve Goldman
301 sgoldman at tower-research.com
302
303 T: 212.219.6014
304 F: 212.219.6007
305
306 Tower Research Capital, LLC
307 377 Broadway, 11th Fl.
308 New York, NY 10013
309
310 From wmorgan-sup@masanjin.net Sun Nov 1 12:15:56 2009
311 From: wmorgan-sup@masanjin.net (William Morgan)
312 Date: Sun, 01 Nov 2009 09:15:56 -0800
313 Subject: [sup-talk] What happened to the log buffer?
314 In-Reply-To: <1257094144-sup-8318@sgoldmanlinux.tower-research.com>
315 References: <1257094144-sup-8318@sgoldmanlinux.tower-research.com>
316 Message-ID: <1257095673-sup-5988@masanjin.net>
317
318 Reformatted excerpts from Steve Goldman's message of 2009-11-01:
319 > Formerly, when I started sup I could cycle through a few buffers with
320 > 'b', two of which were some sort of log buffers. These are gone now.
321
322 'b' now skips over "system" buffers. If you hit ';' you will get the
323 full list and you can select it that way. You may want to restart with
324 the environment variable SUP_LOG_LEVEL=debug for all the verbiage you
325 were used to.
326 --
327 William <wmorgan-sup at masanjin.net>
328
329 From wmorgan-sup@masanjin.net Sun Nov 1 12:23:49 2009
330 From: wmorgan-sup@masanjin.net (William Morgan)
331 Date: Sun, 01 Nov 2009 09:23:49 -0800
332 Subject: [sup-talk] Can't search without crashing
333 In-Reply-To: <1257094049-sup-1250@sgoldmanlinux.tower-research.com>
334 References: <1256588053-sup-8922@sgoldmanlinux.tower-research.com>
335 <1257093136-sup-2762@masanjin.net>
336 <1257094049-sup-1250@sgoldmanlinux.tower-research.com>
337 Message-ID: <1257095945-sup-1972@masanjin.net>
338
339 Reformatted excerpts from Steve Goldman's message of 2009-11-01:
340 > I'm replacing those sources (at least I backed up the sources.yaml
341 > file) and will see how that goes.
342
343 If you're really done with a source, you can remove it from
344 sources.yaml, but you also need to remove all messages from the index.
345 You should be able do something like:
346
347 $ sh devel/console.sh
348 >> q = Index.parse_query "source_id:4"
349 => # ...
350 >> Index.each_id(q) { |id| Index.delete id }
351 => nil
352 >> Index.save
353
354 --
355 William <wmorgan-sup at masanjin.net>
356
357 From wmorgan-sup@masanjin.net Sun Nov 1 12:30:04 2009
358 From: wmorgan-sup@masanjin.net (William Morgan)
359 Date: Sun, 01 Nov 2009 09:30:04 -0800
360 Subject: [sup-talk] [PATCH] minor nits in exception apology message
361 In-Reply-To: <1257093429-sup-8020@peray>
362 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
363 <1256760970-sup-8118@arrakis.es.net>
364 <1256939476-sup-2864@masanjin.net> <1256987483-sup-338@tilus.net>
365 <1257086191-sup-1136@masanjin.net> <1257088992-sup-5165@peray>
366 <1257091305-sup-4606@masanjin.net> <1257093429-sup-8020@peray>
367 Message-ID: <1257096395-sup-2011@masanjin.net>
368
369 Reformatted excerpts from Nicolas Pouillard's message of 2009-11-01:
370 > What I found cool about distributed bugtrackers is that the
371 > bug-closing action can follow the code that fixes the bug. Being in a
372 > branch, or being reviewed...
373 >
374 > About non-technical users, I think that just a mail (thread) on the
375 > mailing-list could suffice. Of course some web app can make things
376 > clearer.
377
378 It's funny, the two things that I found irritating do were a) close the
379 bug as part of the commit (because I kept forgetting, and also because I
380 like reading commits with git log -p and the ditz stuff was additional
381 noise), and b) translating a user's bug report email into an issue. :)
382 --
383 William <wmorgan-sup at masanjin.net>
384
385 From nicolas.pouillard@gmail.com Sun Nov 1 12:49:11 2009
386 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
387 Date: Sun, 01 Nov 2009 18:49:11 +0100
388 Subject: [sup-talk] [PATCH] minor nits in exception apology message
389 In-Reply-To: <1257096395-sup-2011@masanjin.net>
390 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
391 <1256760970-sup-8118@arrakis.es.net>
392 <1256939476-sup-2864@masanjin.net> <1256987483-sup-338@tilus.net>
393 <1257086191-sup-1136@masanjin.net> <1257088992-sup-5165@peray>
394 <1257091305-sup-4606@masanjin.net> <1257093429-sup-8020@peray>
395 <1257096395-sup-2011@masanjin.net>
396 Message-ID: <1257097118-sup-8031@peray>
397
398 Excerpts from William Morgan's message of Sun Nov 01 18:30:04 +0100 2009:
399 > Reformatted excerpts from Nicolas Pouillard's message of 2009-11-01:
400 > > What I found cool about distributed bugtrackers is that the
401 > > bug-closing action can follow the code that fixes the bug. Being in a
402 > > branch, or being reviewed...
403 > >
404 > > About non-technical users, I think that just a mail (thread) on the
405 > > mailing-list could suffice. Of course some web app can make things
406 > > clearer.
407 >
408 > It's funny, the two things that I found irritating do were a) close the
409 > bug as part of the commit (because I kept forgetting, and also because I
410 > like reading commits with git log -p and the ditz stuff was additional
411 > noise), and
412
413 I think some habits are needed in each model...
414
415 > b) translating a user's bug report email into an issue. :)
416
417 Yes this translating job can really be boring. In fact I consider every
418 bugtracker related task to be boring... And yes the nice part of web
419 based bugtracker is to put this burden on the user.
420
421 --
422 Nicolas Pouillard
423 http://nicolaspouillard.fr
424
425 From wmorgan-sup@masanjin.net Sun Nov 1 13:46:33 2009
426 From: wmorgan-sup@masanjin.net (William Morgan)
427 Date: Sun, 01 Nov 2009 10:46:33 -0800
428 Subject: [sup-talk] mbox date fail
429 In-Reply-To: <2aeb4e149305569502f106c7e54ae107@localhost>
430 References: <2aeb4e149305569502f106c7e54ae107@localhost>
431 Message-ID: <1257101109-sup-4117@masanjin.net>
432
433 Reformatted excerpts from Mike Kelly's message of 2009-10-23:
434 > Is there much of anything that I can do to mitigate this problem,
435 > aside from manually altering every offending message?
436
437 I've fixed this in master. Can you try again, please?
438
439 > It seems like the messages' Content-Length header should be used to
440 > skip past the body and ignore the offending Froms?
441
442 This is an option, but I'm avoiding it, because Content-Length is not
443 guaranteed to be there, and not guaranteed to be correct.
444
445 > Or, at least, if that sort of
446 > ArgumentError is thrown, maybe it should be caught and handled better?
447
448 Yep, that's what I've done. I couldn't get my local system to throw
449 ArgumentError, even with your example, but if it's possible, it's
450 possible, and should be caught.
451 --
452 William <wmorgan-sup at masanjin.net>
453
454 From rick.tessner@gmail.com Sun Nov 1 15:30:21 2009
455 From: rick.tessner@gmail.com (rick.tessner)
456 Date: Sun, 01 Nov 2009 12:30:21 -0800
457 Subject: [sup-talk] [PATCH] minor nits in exception apology message
458 In-Reply-To: <1257086191-sup-1136@masanjin.net>
459 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
460 <1256760970-sup-8118@arrakis.es.net>
461 <1256939476-sup-2864@masanjin.net> <1256987483-sup-338@tilus.net>
462 <1257086191-sup-1136@masanjin.net>
463 Message-ID: <1257107371-sup-3361@onnadayr.ca>
464
465 Excerpts from William Morgan's message of Sun Nov 01 06:39:25 -0800 2009:
466 > Reformatted excerpts from Tero Tilus's message of 2009-10-31:
467 > > How about setting up a loose team which would handle the incoming bug
468 > > reports (for you), track/sort all of them and fix what they feel like
469 > > fixing and maybe upon request/occasionally report somewhere the
470 > > current status (how many minors and majors open).
471 >
472 > As far as I'm concerned, that would be great. I'm open to suggestions
473 > about how to organize this. At this point I'm pretty convinced I will
474 > never actually like a bug tracker, and I don't have the energy to write
475 > another one, so for someone else to take the initiative would be
476 > awesome.
477
478 Would a move to github be considered since they now have an issue
479 tracker. It provides tagging of issues and voting.
480
481 As an example, take a look at
482
483 http://github.com/justinfrench/formtastic/
484
485 and clicky the Issues tab. (I chose this project simply because I was
486 watching the railscast for it and noticed the Issues tab)
487 --
488 Rick Tessner
489 rick.tessner at gmail.com
490
491 From nicolas.pouillard@gmail.com Sun Nov 1 16:52:08 2009
492 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
493 Date: Sun, 01 Nov 2009 22:52:08 +0100
494 Subject: [sup-talk] Choosing a bug tracker for Sup
495 Message-ID: <1257111816-sup-4397@peray>
496
497 Hi,
498
499 I would like to discuss more the issue of choosing a bug tracker for sup.
500
501 (I've made a new thread for clarity)
502 (This is a cross post of a post[1] on my blog)
503
504 OK lets forget Ditz[2] as an option.
505
506 Note also that I would make no objection to using a traditional bug tracker.
507
508 It seems that we do not find a tool we really like.
509
510 A simple question I asked me was:
511
512 "Do we really need to invent this (big) tool?"
513
514 And more and more the answer I see is that we do not need
515 yet another big tool. Especially for a bug tracker we need recipes,
516 protocols more than a nice interface. And generally I think we
517 better need thinking on how to split the problem in small issues
518 than writing the tool that tackles all of them in one go.
519
520 Again the UNIX philosophy can help us to simplify all this mess!
521
522 So we need a web interface for non technical users, great. What
523 about a pre-formatted email explained on a single web-page for
524 reporting bugs. This simple web-page will also have a form
525 to fill which will send the email for them. This micro web
526 app is really simple and does a very clear job.
527
528 So we now have issues as emails. Thus the mailing-list is our
529 bug tracker as before. However issues are now in a proper format.
530
531 A bot will receive emails on the mailing-list and process those which are in
532 the right format.
533
534 I think that the bot will not have a lot of information to store:
535
536 (correct me if you find something else)
537
538 * Issue type, severity, priority, category, person assigned,
539 progress status, incriminated version and platform, planned
540 milestone/released.
541
542 * Issue details, discussion, answers, attachments.
543
544 All those of the first category can be easily handled in a very
545 flexible way either with labels, or a simple mapping:
546 Labels (like the Google bug tracker on code.google.com):
547 Type-Defect
548 Priority-Critical
549 Component-UI
550 Mapping:
551 type: defect
552 priority: critical
553 component: UI
554
555 This is very flexible because this set of labels/attributes is chosen by the
556 project maintainer to match the complexity of the project.
557
558 I would store and manage the first category using a simple YAML file.
559
560 The bot acknowledges its updates by simply answering to the discussion.
561
562 Those of the second category can be managed using a single email discussion.
563
564 Since the discussion is central to the issue, tracking the original message-ID
565 could be used as the unique identifier.
566
567 About the issues identifier I see two options, either we try to allocate
568 simple integers like most of the trackers or we just keep the unique (long)
569 identifier.
570
571 Then, optionally a simple set of HTML pages can be generated using the YAML file.
572
573 About storage of the YAML file I would simply store it in the repository.
574 If we make the bot accessible, we just have to periodically pull
575 from it.
576
577 I don't know yet how many issues I've forgotten, and if this design is really
578 as simple and lightweight as I claim it to be. I look forward to your answers on
579 that.
580
581 Best regards,
582
583 [1]: http://blog.nicolaspouillard.fr/entries/2009-11-01-bug-tracker-design-issues.html
584 [2]: http://ditz.rubyforge.org/
585
586 --
587 Nicolas Pouillard
588 http://nicolaspouillard.fr
589
590 From wmorgan-sup@masanjin.net Sun Nov 1 17:57:44 2009
591 From: wmorgan-sup@masanjin.net (William Morgan)
592 Date: Sun, 01 Nov 2009 14:57:44 -0800
593 Subject: [sup-talk] A fix for the joining threads bug with Ferret
594 In-Reply-To: <1256297205-sup-683@sam.mediasupervision.de>
595 References: <1256297205-sup-683@sam.mediasupervision.de>
596 Message-ID: <1257115167-sup-6013@masanjin.net>
597
598 Reformatted excerpts from Gregor Hoffleit's message of 2009-10-23:
599 > I managed to track down the problem until the following line in
600 > FerretIndex#sync_message in lib/sup/ferret_index.rb.
601 >
602 > d = { ... :refs => (entry[:refs] || (m.refs + m.replytos).uniq.join(" ")) }
603
604 Great catch. Thank you!
605
606 > For me, it always evaluates to "entry[:refs]" (even if that's an empty
607 > string!), losing the reference in the modified message m, which was
608 > added by add_ref. Therefore the manual join is always lost.
609
610 Yep, that's the problem. In general all those fields are ||= in order to
611 save the work of computing them again when we're updating a message
612 (because the way Ferret works is we have to rewrite the entire record
613 every time we change the labels, so we want that to be as fast as
614 possible). But for certain fields, including refs, we should regenerate
615 them because that data can change.
616
617 > Btw, the code in xapian_index.rb looks much different. Still, I'd like
618 > to see this fixed for Xapian.
619
620 I believe that the fix for both is simply to set the entry[:refs] every
621 time, and not bother with ||=. (In fact I think the empty string check
622 won't work for threads that already have refs set, i.e. joining threads
623 of size >1.)
624
625 I've put this fix on branch thread-joining-fix and merged into next.
626 Check it out.
627 --
628 William <wmorgan-sup at masanjin.net>
629
630 From pioto@pioto.org Sun Nov 1 18:30:07 2009
631 From: pioto@pioto.org (Mike Kelly)
632 Date: Sun, 1 Nov 2009 18:30:07 -0500
633 Subject: [sup-talk] mbox date fail
634 In-Reply-To: <1257101109-sup-4117@masanjin.net>
635 References: <2aeb4e149305569502f106c7e54ae107@localhost>
636 <1257101109-sup-4117@masanjin.net>
637 Message-ID: <20091101183007.0b90de33@aether.home.pioto.org>
638
639 On Sun, 01 Nov 2009 10:46:33 -0800
640 William Morgan <wmorgan-sup at masanjin.net> wrote:
641
642 > Yep, that's what I've done. I couldn't get my local system to throw
643 > ArgumentError, even with your example, but if it's possible, it's
644 > possible, and should be caught.
645
646 Yep, that seems to help. Thanks! (I altered the example slightly for
647 anonymity reasons, that might have invalidated it as a test case).
648
649 --
650 Mike Kelly
651
652
653 From rlane@club.cc.cmu.edu Sun Nov 1 18:42:38 2009
654 From: rlane@club.cc.cmu.edu (Rich Lane)
655 Date: Sun, 01 Nov 2009 18:42:38 -0500
656 Subject: [sup-talk] updated xapian experimental branch
657 Message-ID: <1257118189-sup-7392@zyrg.net>
658
659 I've pushed a few more commits to http://github.com/rlane/sup/tree/experimental
660
661 The major feature on this branch is the immediate label updates I've
662 mentioned before on the list. The bulk of the actual changes are
663 basically consequences of this feature:
664
665 Use of Xapian for thread relevance checks
666 - Instead of hardcoding the policy into InboxMode
667 - New 'z' key to clear irrelevant threads
668 - Not strictly necessary, but removing messages in response to index
669 events is difficult with the current UI code
670 - Saves us from (half of the) adding/removing threads changes cursor_thread problem
671 - Relevant messages added to thread-index-modes without reload
672
673 Async message state saving
674 - Keeps the UI responsive
675 - Prepares us for a sup-server future
676
677 Fallout from async message saving
678 - UpdateManager messages handled in main event loop
679 - Avoids many races but can lag UI unless we're careful
680
681 New, simpler undo implementation
682 - Still needs work at a few use-sites to be completely correct
683
684 Let me know what you all think of these changes. I'll need to do a lot
685 of rebasing before this branch is clean enough to be merged.
686
687 A couple of bugs I know about:
688 - Discarding drafts is disabled
689 - Occasionally, new messages in an existing undisplayed thread fail to
690 get added to the ThreadSet. I haven't been able to come up with a
691 test case for this, so if someone wants to give that a shot it would
692 be very helpful.
693
694 From kevinr@free-dissociation.com Sun Nov 1 20:17:31 2009
695 From: kevinr@free-dissociation.com (Kevin Riggle)
696 Date: Sun, 01 Nov 2009 20:17:31 -0500
697 Subject: [sup-talk] Choosing a bug tracker for Sup
698 In-Reply-To: <1257111816-sup-4397@peray>
699 References: <1257111816-sup-4397@peray>
700 Message-ID: <1257124377-sup-199@black-opal.mit.edu>
701
702 Excerpts from Nicolas Pouillard's message of Sun Nov 01 16:52:08 -0500 2009:
703 (snip)
704 (snip)
705 >
706 > I would store and manage the first category using a simple YAML file.
707 >
708 > The bot acknowledges its updates by simply answering to the discussion.
709 >
710 > Those of the second category can be managed using a single email discussion.
711 >
712 > Since the discussion is central to the issue, tracking the original message-ID
713 > could be used as the unique identifier.
714 >
715 > About the issues identifier I see two options, either we try to allocate
716 > simple integers like most of the trackers or we just keep the unique (long)
717 > identifier.
718 >
719 > Then, optionally a simple set of HTML pages can be generated using the YAML
720 > file.
721 >
722 > About storage of the YAML file I would simply store it in the repository.
723 > If we make the bot accessible, we just have to periodically pull
724 > from it.
725 >
726 This portion of your proposed system sounds to me a lot like SD
727 (http://syncwith.us), against which writing your proposed bot would be fairly
728 straightforward.
729
730 - Kevin
731 --
732 Kevin Riggle (kevinr at free-dissociation.com)
733 MIT Class of 2010, Course VI-2 (EECS)
734 http://free-dissociation.com
735
736 From tero@tilus.net Mon Nov 2 02:01:31 2009
737 From: tero@tilus.net (Tero Tilus)
738 Date: Mon, 02 Nov 2009 09:01:31 +0200
739 Subject: [sup-talk] Choosing a bug tracker for Sup
740 In-Reply-To: <1257111816-sup-4397@peray>
741 References: <1257111816-sup-4397@peray>
742 Message-ID: <1257143690-sup-7839@tilus.net>
743
744 Requirements collected:
745 - Store/track
746 - Formal attributes: Issue type, severity, priority, category,
747 person assigned, progress status, incriminated version and
748 platform, planned milestone/released
749 - Informal meta: Issue details, discussion, answers, attachments
750 - Web-interface (at least for issue submission, searching and displaying)
751 - Issue submission, commenting, attachments and editing attributes by email
752 - Notifications by email
753
754 Nicolas Pouillard, 2009-11-01 23:52:
755 > OK lets forget Ditz[2] as an option.
756
757 Why? (not that i have any reason why not, i've never used diz)
758
759 > Note also that I would make no objection to using a traditional bug
760 > tracker.
761 >
762 > It seems that we do not find a tool we really like.
763
764 Looks like this is a issue you have discussed in depth before. Any
765 pointers to list archives?
766
767 > A simple question I asked me was:
768 > "Do we really need to invent this (big) tool?"
769
770 Well... if somebody invented it for us already. :)
771
772 > Especially for a bug tracker we need recipes, protocols more than a
773 > nice interface.
774
775 Now we are talking! ...and when trying to choose a tool, we need to
776 think about what we need it to do for us.
777
778 I tried to pick the requirements you used.
779
780 > So we need a web interface for non technical users, great.
781
782 OK, this seems reasonable requirement.
783
784 > What about a pre-formatted email explained on a single web-page for
785 > reporting bugs.
786 ...
787 > A bot will receive emails on the mailing-list and process those
788 > which are in the right format.
789
790 Requirement: Bug submission by email?
791 I'd say we need that.
792
793 > I think that the bot will not have a lot of information to store:
794 >
795 > (correct me if you find something else)
796 >
797 > * Issue type, severity, priority, category, person assigned,
798 > progress status, incriminated version and platform, planned
799 > milestone/released.
800 >
801 > * Issue details, discussion, answers, attachments.
802
803 This is pretty traditional. I'd still want to challenge a bit. Why
804 do we need severity and priority? What would they be used for?
805
806 > I would store and manage the first category using a simple YAML
807 > file. The bot acknowledges its updates by simply answering to the
808 > discussion.
809
810 Requirement: Email notifications to ticket "subscribers"?
811 That's reasonable.
812
813 > Those of the second category can be managed using a single email
814 > discussion.
815
816 Requirement: Issue comments/attachments and status changes by email?
817
818 > I don't know yet how many issues I've forgotten
819
820 I can't figure out anything really necessary you would have missed.
821
822 --
823 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
824
825 From tero@tilus.net Mon Nov 2 02:19:58 2009
826 From: tero@tilus.net (Tero Tilus)
827 Date: Mon, 02 Nov 2009 09:19:58 +0200
828 Subject: [sup-talk] [PATCH] minor nits in exception apology message
829 In-Reply-To: <1257107371-sup-3361@onnadayr.ca>
830 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
831 <1256760970-sup-8118@arrakis.es.net>
832 <1256939476-sup-2864@masanjin.net> <1256987483-sup-338@tilus.net>
833 <1257086191-sup-1136@masanjin.net>
834 <1257107371-sup-3361@onnadayr.ca>
835 Message-ID: <1257146346-sup-1154@tilus.net>
836
837 rick.tessner, 2009-11-01 22:30:
838 > Would a move to github be considered since they now have an issue
839 > tracker.
840
841 I'd be comfortable with github too.
842
843 --
844 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
845
846 From tero@tilus.net Mon Nov 2 02:25:38 2009
847 From: tero@tilus.net (Tero Tilus)
848 Date: Mon, 02 Nov 2009 09:25:38 +0200
849 Subject: [sup-talk] Sup Issues Task Force (SITF)
850 In-Reply-To: <1257086191-sup-1136@masanjin.net>
851 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
852 <1256760970-sup-8118@arrakis.es.net>
853 <1256939476-sup-2864@masanjin.net> <1256987483-sup-338@tilus.net>
854 <1257086191-sup-1136@masanjin.net>
855 Message-ID: <1257146404-sup-9768@tilus.net>
856
857 William Morgan, 2009-11-01 16:39:
858 > Reformatted excerpts from Tero Tilus's message of 2009-10-31:
859 >> How about setting up a loose team which would handle the incoming
860 >> bug reports (for you), track/sort all of them and fix what they
861 >> feel like fixing and maybe upon request/occasionally report
862 >> somewhere the current status (how many minors and majors open).
863 >
864 > As far as I'm concerned, that would be great. I'm open to
865 > suggestions about how to organize this.
866
867 How about SITF responsible of the boring suff
868 - First line processing of inbound issues (relevance, duplication, ...)
869 - Issue overview
870 - Supervise that fixed/handled issues get closed appropriately
871 - Draw attention to triaged "bad" bugs
872
873 I'm in. Who else?
874
875 --
876 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
877
878 From tero@tilus.net Mon Nov 2 02:29:41 2009
879 From: tero@tilus.net (Tero Tilus)
880 Date: Mon, 02 Nov 2009 09:29:41 +0200
881 Subject: [sup-talk] slowly catching up
882 In-Reply-To: <1256997213-sup-2725@masanjin.net>
883 References: <1256997213-sup-2725@masanjin.net>
884 Message-ID: <1257146774-sup-9810@tilus.net>
885
886 William Morgan, 2009-10-31 16:03:
887 > We just had our first baby so it's been a busy few weeks.
888
889 Congratulations! Take your time. Your family needs it now.
890
891 I've got two lovely kids, having the first one is a very special
892 thing.
893
894 --
895 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
896
897 From nicolas.pouillard@gmail.com Mon Nov 2 03:30:03 2009
898 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
899 Date: Mon, 02 Nov 2009 09:30:03 +0100
900 Subject: [sup-talk] Choosing a bug tracker for Sup
901 In-Reply-To: <1257124377-sup-199@black-opal.mit.edu>
902 References: <1257111816-sup-4397@peray> <1257124377-sup-199@black-opal.mit.edu>
903 Message-ID: <1257150469-sup-7051@peray>
904
905 Excerpts from Kevin Riggle's message of Mon Nov 02 02:17:31 +0100 2009:
906 > Excerpts from Nicolas Pouillard's message of Sun Nov 01 16:52:08 -0500 2009:
907 > (snip)
908 > (snip)
909 > >
910 > > I would store and manage the first category using a simple YAML file.
911 > >
912 > > The bot acknowledges its updates by simply answering to the discussion.
913 > >
914 > > Those of the second category can be managed using a single email discussion.
915 > >
916 > > Since the discussion is central to the issue, tracking the original message-ID
917 > > could be used as the unique identifier.
918 > >
919 > > About the issues identifier I see two options, either we try to allocate
920 > > simple integers like most of the trackers or we just keep the unique (long)
921 > > identifier.
922 > >
923 > > Then, optionally a simple set of HTML pages can be generated using the YAML
924 > > file.
925 > >
926 > > About storage of the YAML file I would simply store it in the repository.
927 > > If we make the bot accessible, we just have to periodically pull
928 > > from it.
929 > >
930 > This portion of your proposed system sounds to me a lot like SD
931 > (http://syncwith.us), against which writing your proposed bot would be fairly
932 > straightforward.
933
934 SD looks indeed really fun, however I think it fails my simplicity goal.
935 Indeed the tool expose tons of commands and try to abstract how it is made,
936 I'm in favor of better knowing the underlying store (a YAML file), and simply
937 storing it with usual DVCS tools.
938
939 --
940 Nicolas Pouillard
941 http://nicolaspouillard.fr
942
943 From nicolas.pouillard@gmail.com Mon Nov 2 03:46:34 2009
944 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
945 Date: Mon, 02 Nov 2009 09:46:34 +0100
946 Subject: [sup-talk] Choosing a bug tracker for Sup
947 In-Reply-To: <1257143690-sup-7839@tilus.net>
948 References: <1257111816-sup-4397@peray> <1257143690-sup-7839@tilus.net>
949 Message-ID: <1257150627-sup-1843@peray>
950
951 Excerpts from Tero Tilus's message of Mon Nov 02 08:01:31 +0100 2009:
952 > Requirements collected:
953 > - Store/track
954 > - Formal attributes: Issue type, severity, priority, category,
955 > person assigned, progress status, incriminated version and
956 > platform, planned milestone/released
957 > - Informal meta: Issue details, discussion, answers, attachments
958 > - Web-interface (at least for issue submission, searching and displaying)
959 > - Issue submission, commenting, attachments and editing attributes by email
960 > - Notifications by email
961
962 Nice summary.
963
964 > Nicolas Pouillard, 2009-11-01 23:52:
965 > > OK lets forget Ditz[2] as an option.
966 >
967 > Why? (not that i have any reason why not, i've never used diz)
968
969 At least temporarily, I think it also fails at staying simple. And while
970 it is fun to hack that's fine but then it becomes burden and code to maintain.
971
972 > > Note also that I would make no objection to using a traditional bug
973 > > tracker.
974 > >
975 > > It seems that we do not find a tool we really like.
976 >
977 > Looks like this is a issue you have discussed in depth before. Any
978 > pointers to list archives?
979
980 Not really publicly, and I'm open to seeing tools I don't know.
981
982 > > A simple question I asked me was:
983 > > "Do we really need to invent this (big) tool?"
984 >
985 > Well... if somebody invented it for us already. :)
986
987 Yes but a big tool imply development, extensions, upgrades...
988
989 > > Especially for a bug tracker we need recipes, protocols more than a
990 > > nice interface.
991 >
992 > Now we are talking! ...and when trying to choose a tool, we need to
993 > think about what we need it to do for us.
994
995 I would say that we need a collection of small and clear tools.
996
997 > I tried to pick the requirements you used.
998 >
999 > > So we need a web interface for non technical users, great.
1000 >
1001 > OK, this seems reasonable requirement.
1002 >
1003 > > What about a pre-formatted email explained on a single web-page for
1004 > > reporting bugs.
1005 > ...
1006 > > A bot will receive emails on the mailing-list and process those
1007 > > which are in the right format.
1008 >
1009 > Requirement: Bug submission by email?
1010 > I'd say we need that.
1011
1012 Yes some people tend to really dislike web UIs, and while it is not
1013 my case I prefer to keep a "by email" option anyway.
1014
1015 > > I think that the bot will not have a lot of information to store:
1016 > >
1017 > > (correct me if you find something else)
1018 > >
1019 > > * Issue type, severity, priority, category, person assigned,
1020 > > progress status, incriminated version and platform, planned
1021 > > milestone/released.
1022 > >
1023 > > * Issue details, discussion, answers, attachments.
1024 >
1025 > This is pretty traditional. I'd still want to challenge a bit. Why
1026 > do we need severity and priority? What would they be used for?
1027
1028 I don't say that we need all of those, that the flexibility point.
1029
1030 The configuration will be something like:
1031
1032 attributes:
1033 type: [defect, enhancement, task]
1034 severity: [critical, ...]
1035 priority: [high, low, ...]
1036 category: [UI, index, ...]
1037 assigned to: [someone, someoneelse, ...]
1038 progress status: [waiting, open, started, closed]
1039 ...
1040
1041 This can be tweaked as needed, if we need one more 'type' we add it,
1042 if we do not need severity we remove it.
1043
1044 > > I would store and manage the first category using a simple YAML
1045 > > file. The bot acknowledges its updates by simply answering to the
1046 > > discussion.
1047 >
1048 > Requirement: Email notifications to ticket "subscribers"?
1049 > That's reasonable.
1050
1051 I would say that the mailing-list is the only subscriber, people
1052 choose to follow the discussion or not with their email-client.
1053
1054 This only miss the "vote for this issue" feature, which we can avoid
1055 in the mean time and delegate to a polling tool afterward.
1056
1057 > > Those of the second category can be managed using a single email
1058 > > discussion.
1059 >
1060 > Requirement: Issue comments/attachments and status changes by email?
1061
1062 Right.
1063
1064 > > I don't know yet how many issues I've forgotten
1065 >
1066 > I can't figure out anything really necessary you would have missed.
1067
1068 I got some more input via other channels about the need of an UI to
1069 search, triage, sort issues. I would say that all of this can easily be
1070 done by playing with the YAML file. The only tool I see would be one
1071 to fetch the email discussion given a Message-ID, but this is a matter
1072 of another separated tool.
1073
1074 Thanks for your input!
1075
1076
1077 --
1078 Nicolas Pouillard
1079 http://nicolaspouillard.fr
1080
1081 From isra@herraiz.org Mon Nov 2 04:14:52 2009
1082 From: isra@herraiz.org (Israel Herraiz)
1083 Date: Mon, 02 Nov 2009 10:14:52 +0100
1084 Subject: [sup-talk] Sup Issues Task Force (SITF)
1085 In-Reply-To: <1257146404-sup-9768@tilus.net>
1086 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
1087 <1256760970-sup-8118@arrakis.es.net>
1088 <1256939476-sup-2864@masanjin.net> <1256987483-sup-338@tilus.net>
1089 <1257086191-sup-1136@masanjin.net> <1257146404-sup-9768@tilus.net>
1090 Message-ID: <1257153269-sup-1434@elly>
1091
1092 Excerpts from Tero Tilus's message of Mon Nov 02 08:25:38 +0100 2009:
1093 > How about SITF responsible of the boring suff
1094 > - First line processing of inbound issues (relevance, duplication, ...)
1095 > - Issue overview
1096 > - Supervise that fixed/handled issues get closed appropriately
1097 > - Draw attention to triaged "bad" bugs
1098 >
1099 > I'm in. Who else?
1100
1101 Me too.
1102
1103 From tero@tilus.net Mon Nov 2 04:50:07 2009
1104 From: tero@tilus.net (Tero Tilus)
1105 Date: Mon, 02 Nov 2009 11:50:07 +0200
1106 Subject: [sup-talk] Choosing a bug tracker for Sup
1107 In-Reply-To: <1257150627-sup-1843@peray>
1108 References: <1257111816-sup-4397@peray> <1257143690-sup-7839@tilus.net>
1109 <1257150627-sup-1843@peray>
1110 Message-ID: <1257154664-sup-90@tilus.net>
1111
1112 Nicolas Pouillard, 2009-11-02 10:46:
1113 > Excerpts from Tero Tilus's message of Mon Nov 02 08:01:31 +0100 2009:
1114 >>> "Do we really need to invent this (big) tool?"
1115 >>
1116 >> Well... if somebody invented it for us already. :)
1117 >
1118 > Yes but a big tool imply development, extensions, upgrades...
1119
1120 Unless you take service, not the bare tool. We are already using
1121 gitorius and rubyforge (at least to some extent). I'd go for a issue
1122 tracking service that suits our needs.
1123
1124 >> Requirement: Email notifications to ticket "subscribers"?
1125 >> That's reasonable.
1126 >
1127 > I would say that the mailing-list is the only subscriber, people
1128 > choose to follow the discussion or not with their email-client.
1129
1130 Thats exactly why there were quotes around the word subscribers. ;)
1131
1132 What I was thinking was that you could be a first class citized no
1133 matter the client. You could choose to comment and follow the
1134 discussion on issues using your mua or web interface. Kinda like what
1135 Alue[1] does for discussions in general.
1136
1137 [1] http://antti-juhani.kaijanaho.fi/newblog/archives/572
1138
1139 --
1140 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
1141
1142 From wmorgan-sup@masanjin.net Mon Nov 2 06:53:39 2009
1143 From: wmorgan-sup@masanjin.net (William Morgan)
1144 Date: Mon, 02 Nov 2009 03:53:39 -0800
1145 Subject: [sup-talk] Recovering a busted ferret db?
1146 In-Reply-To: <e06498070911011203s66ece542mac80378442073369@mail.gmail.com>
1147 References: <e06498070910301017g57b156cclec9abb3689bde243@mail.gmail.com>
1148 <1256939095-sup-4201@masanjin.net>
1149 <e06498070910301514ud4efe49ic0fb40d181156fab@mail.gmail.com>
1150 <1257087035-sup-2014@masanjin.net>
1151 <e06498070911011203s66ece542mac80378442073369@mail.gmail.com>
1152 Message-ID: <1257162594-sup-7077@masanjin.net>
1153
1154 [cc'ing list]
1155
1156 Reformatted excerpts from Steven Walter's message of 2009-11-01:
1157 > Hooray, that worked. There is an email with an exceptionally long
1158 > recipient list with the tag in question, and I received it around the
1159 > time I first noticed the bad behavior in sup. The Cc: field is 6878
1160 > bytes long, containing 281 email addresses.
1161
1162 Weird, because I can call split_on_commas on a string that's that size,
1163 with that many commas, in a few milliseconds. Must be something strange
1164 about that particular string that's causing the worst-case behavior.
1165
1166 I'm going to apply the patch, but with a bigger limit.
1167 --
1168 William <wmorgan-sup at masanjin.net>
1169
1170 From gregor@hoffleit.de Mon Nov 2 07:06:36 2009
1171 From: gregor@hoffleit.de (Gregor Hoffleit)
1172 Date: Mon, 02 Nov 2009 13:06:36 +0100
1173 Subject: [sup-talk] Patch for ncursesw branch (use panelw and formw)
1174 Message-ID: <1257162838-sup-737@sam.mediasupervision.de>
1175
1176 I noticed that the ncursesw branch implements only the first part of the
1177 wide-char fixes suggested in the extconf patch in
1178 http://rubyforge.org/pipermail/sup-talk/2007-October/000297.html.
1179
1180 Entering UTF-8 characters in the textfields ('To', 'Subject', 'Alias')
1181 still doesn't work.
1182
1183 It worked fine, though, applied the second part of the patch as well.
1184 This is the diff against ncursesw:
1185
1186 diff --git a/ncurses-0.9.1/extconf.rb b/ncurses-0.9.1/extconf.rb
1187 index a559385..7c4d2c2 100644
1188 --- a/ncurses-0.9.1/extconf.rb
1189 +++ b/ncurses-0.9.1/extconf.rb
1190 @@ -118,11 +118,11 @@ have_func("attr_get")
1191
1192 puts "checking for the panel library..."
1193 if have_header("panel.h")
1194 - have_library("panel", "panel_hidden")
1195 + have_library("panelw", "panel_hidden")
1196 end
1197 puts "checking for the form library..."
1198 if have_header("form.h")
1199 - have_library("form", "new_form")
1200 + have_library("formw", "new_form")
1201 end
1202
1203 create_makefile('ncurses')
1204
1205 From wmorgan-sup@masanjin.net Mon Nov 2 07:08:09 2009
1206 From: wmorgan-sup@masanjin.net (William Morgan)
1207 Date: Mon, 02 Nov 2009 04:08:09 -0800
1208 Subject: [sup-talk] updated xapian experimental branch
1209 In-Reply-To: <1257118189-sup-7392@zyrg.net>
1210 References: <1257118189-sup-7392@zyrg.net>
1211 Message-ID: <1257163403-sup-9032@masanjin.net>
1212
1213 Reformatted excerpts from Rich Lane's message of 2009-11-01:
1214 > The major feature on this branch is the immediate label updates I've
1215 > mentioned before on the list.
1216
1217 Awesome, really awesome.
1218
1219 > Use of Xapian for thread relevance checks
1220 > - Instead of hardcoding the policy into InboxMode
1221
1222 Awesome.
1223
1224 > - New 'z' key to clear irrelevant threads
1225 > - Not strictly necessary, but removing messages in response to index
1226 > events is difficult with the current UI code
1227
1228 Can you describe this a bit?
1229
1230 > Fallout from async message saving
1231 > - UpdateManager messages handled in main event loop
1232 > - Avoids many races but can lag UI unless we're careful
1233
1234 I think this is a great idea.
1235
1236 Thanks for all of this, Rich.
1237 --
1238 William <wmorgan-sup at masanjin.net>
1239
1240 From wmorgan-sup@masanjin.net Mon Nov 2 07:12:41 2009
1241 From: wmorgan-sup@masanjin.net (William Morgan)
1242 Date: Mon, 02 Nov 2009 04:12:41 -0800
1243 Subject: [sup-talk] i18n?
1244 In-Reply-To: <1256295847-sup-9437@viajero>
1245 References: <1254353101-sup-1021@thinkpad-ubuntu>
1246 <1254415145-sup-635@masanjin.net>
1247 <1254420802-sup-3742@thinkpad-ubuntu>
1248 <1254421405-sup-8083@masanjin.net>
1249 <1254442420-sup-3771@thinkpad-ubuntu>
1250 <1254487575-sup-5468@thinkpad-ubuntu>
1251 <1256280223-sup-736@tilus.net> <1256295847-sup-9437@viajero>
1252 Message-ID: <1257163780-sup-1357@masanjin.net>
1253
1254 Reformatted excerpts from Fabio Riga's message of 2009-10-23:
1255 > Well, I finally read the code and I agree with Tero. I also think that
1256 > the use of gettext will be simpler for both developer and translator.
1257 > In this way, every time a developer add a new string he need to write
1258 > it twice, or another developer has to hack it. Instead with gettext
1259 > the developer write his string, surrounded with _() or n_() and he's
1260 > done (tell me, if I'm wrong).
1261
1262 Tero's comment wasn't about gettext, as far as I understand it. There
1263 are Ruby gettext bindings but they look like a pain in the ass to use,
1264 and it's pretty trivial to replace it a language like Ruby.
1265
1266 > Furthermore people used to .po files (like me) will know what to do
1267 > and are already provided with tools for that purpose (i.e. Vim :-) ).
1268
1269 That is a downside, definitely.
1270
1271 > Can anyone explain me where and why a translated string in the UI should be
1272 > searchable with a regular expression? (Maybe this question is due to the
1273 > fact that I still don't understand sup internals...)
1274
1275 I believe he was thinking about something like git grep. You see a weird
1276 message displayed by Sup, you want to find the code that's generating
1277 it, you can git grep the source for the message directly.
1278 --
1279 William <wmorgan-sup at masanjin.net>
1280
1281 From wmorgan-sup@masanjin.net Mon Nov 2 07:13:01 2009
1282 From: wmorgan-sup@masanjin.net (William Morgan)
1283 Date: Mon, 02 Nov 2009 04:13:01 -0800
1284 Subject: [sup-talk] i18n?
1285 In-Reply-To: <1256280223-sup-736@tilus.net>
1286 References: <1254353101-sup-1021@thinkpad-ubuntu>
1287 <1254415145-sup-635@masanjin.net>
1288 <1254420802-sup-3742@thinkpad-ubuntu>
1289 <1254421405-sup-8083@masanjin.net>
1290 <1254442420-sup-3771@thinkpad-ubuntu>
1291 <1254487575-sup-5468@thinkpad-ubuntu>
1292 <1256280223-sup-736@tilus.net>
1293 Message-ID: <1257163967-sup-5554@masanjin.net>
1294
1295 Reformatted excerpts from Tero Tilus's message of 2009-10-23:
1296 > Why not default to the english strings as translation keys and
1297 > fallback to key itself in case of missing translation?
1298
1299 Christopher, what do you think?
1300 --
1301 William <wmorgan-sup at masanjin.net>
1302
1303 From wmorgan-sup@masanjin.net Mon Nov 2 07:16:04 2009
1304 From: wmorgan-sup@masanjin.net (William Morgan)
1305 Date: Mon, 02 Nov 2009 04:16:04 -0800
1306 Subject: [sup-talk] (Orphaned?) bug tracker at rubyforge.org?
1307 In-Reply-To: <1256216959-sup-8012@sam.mediasupervision.de>
1308 References: <1256216959-sup-8012@sam.mediasupervision.de>
1309 Message-ID: <1257164155-sup-371@masanjin.net>
1310
1311 Reformatted excerpts from Gregor Hoffleit's message of 2009-10-22:
1312 > If the bug tracker is not to be acticely used any longer, shouldn't it
1313 > be removed from the Sup Gitorious page?
1314
1315 Removed, thanks!
1316 --
1317 William <wmorgan-sup at masanjin.net>
1318
1319 From wmorgan-sup@masanjin.net Mon Nov 2 07:23:16 2009
1320 From: wmorgan-sup@masanjin.net (William Morgan)
1321 Date: Mon, 02 Nov 2009 04:23:16 -0800
1322 Subject: [sup-talk] Localized date on mbox From line in sent messages
1323 In-Reply-To: <1256276875-sup-5782@tilus.net>
1324 References: <1256276875-sup-5782@tilus.net>
1325 Message-ID: <1257164552-sup-2382@masanjin.net>
1326
1327 Reformatted excerpts from Tero Tilus's message of 2009-10-22:
1328 > This might be known. I accidentally used 0.8.1 instead of git next
1329 > once and it screwed up my sent box. After forwarding a mail sup
1330 > started to blow up (what felt like) after initiall poll.
1331
1332 This was fixed in bfe40c05dc6dc2656a4dde11948ff617f2fa00d6, released in
1333 0.9.
1334 --
1335 William <wmorgan-sup at masanjin.net>
1336
1337 From wmorgan-sup@masanjin.net Mon Nov 2 07:35:21 2009
1338 From: wmorgan-sup@masanjin.net (William Morgan)
1339 Date: Mon, 02 Nov 2009 04:35:21 -0800
1340 Subject: [sup-talk] Recovering a busted ferret db?
1341 In-Reply-To: <1257162594-sup-7077@masanjin.net>
1342 References: <e06498070910301017g57b156cclec9abb3689bde243@mail.gmail.com>
1343 <1256939095-sup-4201@masanjin.net>
1344 <e06498070910301514ud4efe49ic0fb40d181156fab@mail.gmail.com>
1345 <1257087035-sup-2014@masanjin.net>
1346 <e06498070911011203s66ece542mac80378442073369@mail.gmail.com>
1347 <1257162594-sup-7077@masanjin.net>
1348 Message-ID: <1257165314-sup-679@masanjin.net>
1349
1350 Reformatted excerpts from William Morgan's message of 2009-11-02:
1351 > I'm going to apply the patch, but with a bigger limit.
1352
1353 Actually, strike that. The patch would mean we effectively limit the
1354 number of recipients in a to, cc, or bcc field, which seems crazy. It
1355 would be better to reimplement the regexp as a little state machine, as
1356 irritating as that might be.
1357
1358 Steven, can you privately send me the header that's causing this? You
1359 can obscure it somewhat if you want, just leave the quotes and commas
1360 alone.
1361 --
1362 William <wmorgan-sup at masanjin.net>
1363
1364 From tero@tilus.net Mon Nov 2 08:58:09 2009
1365 From: tero@tilus.net (Tero Tilus)
1366 Date: Mon, 02 Nov 2009 15:58:09 +0200
1367 Subject: [sup-talk] i18n?
1368 In-Reply-To: <1257163780-sup-1357@masanjin.net>
1369 References: <1254353101-sup-1021@thinkpad-ubuntu>
1370 <1254415145-sup-635@masanjin.net>
1371 <1254420802-sup-3742@thinkpad-ubuntu>
1372 <1254421405-sup-8083@masanjin.net>
1373 <1254442420-sup-3771@thinkpad-ubuntu>
1374 <1254487575-sup-5468@thinkpad-ubuntu>
1375 <1256280223-sup-736@tilus.net> <1256295847-sup-9437@viajero>
1376 <1257163780-sup-1357@masanjin.net>
1377 Message-ID: <1257169884-sup-2615@tilus.net>
1378
1379 William Morgan, 2009-11-02 14:12:
1380 > Reformatted excerpts from Fabio Riga's message of 2009-10-23:
1381 >> Well, I finally read the code and I agree with Tero. I also think that
1382 >> the use of gettext will be simpler for both developer and translator.
1383 >
1384 > Tero's comment wasn't about gettext, as far as I understand it.
1385
1386 You had me right. I was talking about the approach to i18n in general.
1387
1388 > There are Ruby gettext bindings but they look like a pain in the ass
1389 > to use, and it's pretty trivial to replace it a language like Ruby.
1390
1391 Also they are pretty trivial to wrap behind nice interface in a
1392 language like Ruby. "Been there, done that!".t :)
1393
1394 >> Can anyone explain me where and why a translated string in the UI
1395 >> should be searchable with a regular expression?
1396 >
1397 > I believe he was thinking about something like git grep. You see a
1398 > weird message displayed by Sup, you want to find the code that's
1399 > generating it, you can git grep the source for the message directly.
1400
1401 That was exactly what I was thinking.
1402
1403 Having weird keys in code imo also slows down development. If I want
1404 to (write code to) display a simple message to user, with "original
1405 language as key" approac i just write "my message".t (or whatever the
1406 l10n interface is) instead of modifying some yaml file somewhere and
1407 then copy-pasting the key from there to code. I just plain code and
1408 let somebody else figure out the translation later or.
1409
1410 --
1411 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
1412
1413 From wmorgan-sup@masanjin.net Mon Nov 2 09:50:08 2009
1414 From: wmorgan-sup@masanjin.net (William Morgan)
1415 Date: Mon, 02 Nov 2009 06:50:08 -0800
1416 Subject: [sup-talk] Choosing a bug tracker for Sup
1417 In-Reply-To: <1257111816-sup-4397@peray>
1418 References: <1257111816-sup-4397@peray>
1419 Message-ID: <1257169654-sup-6224@masanjin.net>
1420
1421 Nice writeup. Just brainstorming, here are the features I personally
1422 find vital for an issue tracker that would make me happy:
1423
1424 1. Web submission. The burden of creating a record should be on the
1425 submitter---it's not too much to ask, and it saves developer time. This
1426 also encourages reporters to provide relevant information like version,
1427 platform, Ruby version, etc. upfront, since they can be prompted for
1428 those data explicitly.
1429
1430 2. Developer discussion via email. This is vital. There's no way I would
1431 want to have a technical discussion using text boxes on a website. And
1432 this discussion should be attached to the issue, of course.
1433
1434 3. Canonicality. I want one name for a bug, and I want one URL that I
1435 can point people to when referring to it. That URL should have the
1436 entire history, including developer discussion, of the issue.
1437
1438 4. Browseability. There should be some public way of getting a view of
1439 all the open issues, at a minimum. (Web seems natural.) Other stuff like
1440 sorting by priority, attachign to releases, etc. are icing on the cake,
1441 but if people are going to be chipping in on development effort, or
1442 searching to see if other people have had this bug, they have to be able
1443 to browse what's out there.
1444
1445 > About the issues identifier I see two options, either we try to
1446 > allocate simple integers like most of the trackers or we just keep the
1447 > unique (long) identifier.
1448
1449 I want a simple one. I can remember JIRA-style "ABC-123" names and
1450 that's really handy sometimes.
1451
1452 Just my two cents.
1453 --
1454 William <wmorgan-sup at masanjin.net>
1455
1456 From wmorgan-sup@masanjin.net Mon Nov 2 09:53:08 2009
1457 From: wmorgan-sup@masanjin.net (William Morgan)
1458 Date: Mon, 02 Nov 2009 06:53:08 -0800
1459 Subject: [sup-talk] Choosing a bug tracker for Sup
1460 In-Reply-To: <1257143690-sup-7839@tilus.net>
1461 References: <1257111816-sup-4397@peray> <1257143690-sup-7839@tilus.net>
1462 Message-ID: <1257173444-sup-295@masanjin.net>
1463
1464 Reformatted excerpts from Tero Tilus's message of 2009-11-01:
1465 > Requirement: Bug submission by email?
1466 > I'd say we need that.
1467
1468 That's what we have now, basically, and what we had when we were using
1469 ditz, and I didn't like having to do the extra work of making an issue.
1470
1471 > This is pretty traditional. I'd still want to challenge a bit. Why
1472 > do we need severity and priority? What would they be used for?
1473
1474 At least one type of ordering would be nice. There are a large class of
1475 feature requests where my basic feeling is "sure, that would be nice,
1476 but I've got a million other things more important to do", which I would
1477 like to keep around as food for later thought, if nothing else, but
1478 would like to basically ignore in the near term.
1479 --
1480 William <wmorgan-sup at masanjin.net>
1481
1482 From wmorgan-sup@masanjin.net Mon Nov 2 09:58:18 2009
1483 From: wmorgan-sup@masanjin.net (William Morgan)
1484 Date: Mon, 02 Nov 2009 06:58:18 -0800
1485 Subject: [sup-talk] Choosing a bug tracker for Sup
1486 In-Reply-To: <1257154664-sup-90@tilus.net>
1487 References: <1257111816-sup-4397@peray> <1257143690-sup-7839@tilus.net>
1488 <1257150627-sup-1843@peray> <1257154664-sup-90@tilus.net>
1489 Message-ID: <1257173616-sup-9298@masanjin.net>
1490
1491 Reformatted excerpts from Tero Tilus's message of 2009-11-02:
1492 > Unless you take service, not the bare tool. We are already using
1493 > gitorius and rubyforge (at least to some extent). I'd go for a issue
1494 > tracking service that suits our needs.
1495
1496 I'm not dead-set against a hosted solution, but I am wary of making too
1497 much of the development cycle reliant on third parties. E.g. I see
1498 people who can't get any work done when Github is down. Well, that's not
1499 Github's fault, per se, but they've integrated it into their process to
1500 such an extent that they're now reliant on it.
1501
1502 Not to say that that would happen with just an issue tracker. But still,
1503 our use of Gitorious and Rubyforge is pretty minimal right now, and I
1504 feel good about that.
1505
1506 (And honestly I find Gitorious merge requests a little irritating,
1507 because they're invariably not rebased properly against master and I
1508 have to have the same discussion every time.)
1509 --
1510 William <wmorgan-sup at masanjin.net>
1511
1512 From wmorgan-sup@masanjin.net Mon Nov 2 09:59:48 2009
1513 From: wmorgan-sup@masanjin.net (William Morgan)
1514 Date: Mon, 02 Nov 2009 06:59:48 -0800
1515 Subject: [sup-talk] i18n?
1516 In-Reply-To: <1257169884-sup-2615@tilus.net>
1517 References: <1254353101-sup-1021@thinkpad-ubuntu>
1518 <1254415145-sup-635@masanjin.net>
1519 <1254420802-sup-3742@thinkpad-ubuntu>
1520 <1254421405-sup-8083@masanjin.net>
1521 <1254442420-sup-3771@thinkpad-ubuntu>
1522 <1254487575-sup-5468@thinkpad-ubuntu>
1523 <1256280223-sup-736@tilus.net> <1256295847-sup-9437@viajero>
1524 <1257163780-sup-1357@masanjin.net> <1257169884-sup-2615@tilus.net>
1525 Message-ID: <1257173950-sup-4883@masanjin.net>
1526
1527 Reformatted excerpts from Tero Tilus's message of 2009-11-02:
1528 > Having weird keys in code imo also slows down development. If I want
1529 > to (write code to) display a simple message to user, with "original
1530 > language as key" approac i just write "my message".t (or whatever the
1531 > l10n interface is) instead of modifying some yaml file somewhere and
1532 > then copy-pasting the key from there to code. I just plain code and
1533 > let somebody else figure out the translation later or.
1534
1535 I tend to agree.
1536 --
1537 William <wmorgan-sup at masanjin.net>
1538
1539 From wmorgan-sup@masanjin.net Mon Nov 2 10:07:31 2009
1540 From: wmorgan-sup@masanjin.net (William Morgan)
1541 Date: Mon, 02 Nov 2009 07:07:31 -0800
1542 Subject: [sup-talk] [PATCH] minor nits in exception apology message
1543 In-Reply-To: <1257107371-sup-3361@onnadayr.ca>
1544 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
1545 <1256760970-sup-8118@arrakis.es.net>
1546 <1256939476-sup-2864@masanjin.net> <1256987483-sup-338@tilus.net>
1547 <1257086191-sup-1136@masanjin.net>
1548 <1257107371-sup-3361@onnadayr.ca>
1549 Message-ID: <1257174251-sup-3662@masanjin.net>
1550
1551 Reformatted excerpts from rick.tessner's message of 2009-11-01:
1552 > Would a move to github be considered since they now have an issue
1553 > tracker. It provides tagging of issues and voting.
1554
1555 I will move development discussion to a flat sequence of web textareas
1556 the day you pry Sup from my cold dead hands.
1557
1558 Well, ok. I will at least take a look at it.
1559 --
1560 William <wmorgan-sup at masanjin.net>
1561
1562 From wmorgan-sup@masanjin.net Mon Nov 2 10:08:48 2009
1563 From: wmorgan-sup@masanjin.net (William Morgan)
1564 Date: Mon, 02 Nov 2009 07:08:48 -0800
1565 Subject: [sup-talk] Sup Issues Task Force (SITF)
1566 In-Reply-To: <1257146404-sup-9768@tilus.net>
1567 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
1568 <1256760970-sup-8118@arrakis.es.net>
1569 <1256939476-sup-2864@masanjin.net> <1256987483-sup-338@tilus.net>
1570 <1257086191-sup-1136@masanjin.net> <1257146404-sup-9768@tilus.net>
1571 Message-ID: <1257174456-sup-5631@masanjin.net>
1572
1573 Reformatted excerpts from Tero Tilus's message of 2009-11-01:
1574 > How about SITF responsible of the boring suff
1575 > - First line processing of inbound issues (relevance, duplication, ...)
1576 > - Issue overview
1577 > - Supervise that fixed/handled issues get closed appropriately
1578 > - Draw attention to triaged "bad" bugs
1579 >
1580 > I'm in. Who else?
1581
1582 That sounds great. I think it needs to be combined with some kind of
1583 formal issue tracker though.
1584 --
1585 William <wmorgan-sup at masanjin.net>
1586
1587 From wmorgan-sup@masanjin.net Mon Nov 2 10:57:50 2009
1588 From: wmorgan-sup@masanjin.net (William Morgan)
1589 Date: Mon, 02 Nov 2009 07:57:50 -0800
1590 Subject: [sup-talk] Using TLS instead of ssl
1591 In-Reply-To: <2b29d9f30910270434k65550eaqf5187d048b604020@mail.gmail.com>
1592 References: <2b29d9f30910270434k65550eaqf5187d048b604020@mail.gmail.com>
1593 Message-ID: <1257177347-sup-2023@masanjin.net>
1594
1595 Reformatted excerpts from k.v.ramakrishna reddy's message of 2009-10-27:
1596 > What are the changes that i need to make so that sup uses TLS instead
1597 > of ssl when connecting to my source ?
1598
1599 Honestly I'm not sure. I'm not that familiar with IMAP. Is that
1600 something that's negotiated during setting up a connection?
1601
1602 > Further more how can i delete a source ?
1603
1604 There's not a great way right now. You can remove it from
1605 ~/.sup/sources.yaml manually, and then you can remove the messages from
1606 the index with something like this:
1607
1608 $ sh devel/console.sh
1609 >> q = Index.parse_query "source_id:4"
1610 => # ...
1611 >> Index.each_id(q) { |id| Index.delete id }
1612 => nil
1613 >> Index.save
1614 --
1615 William <wmorgan-sup at masanjin.net>
1616
1617 From wmorgan-sup@masanjin.net Mon Nov 2 10:58:45 2009
1618 From: wmorgan-sup@masanjin.net (William Morgan)
1619 Date: Mon, 02 Nov 2009 07:58:45 -0800
1620 Subject: [sup-talk] Completion for search queries
1621 In-Reply-To: <1256199860-sup-4407@thinkpad-ubuntu>
1622 References: <1256199860-sup-4407@thinkpad-ubuntu>
1623 Message-ID: <1257177490-sup-4126@masanjin.net>
1624
1625 Reformatted excerpts from Christopher Bertels's message of 2009-10-22:
1626 > Anyone else who would like to have this feature in sup?
1627
1628 Sounds good to me. Probably wouldn't be too hard since we have a fairly
1629 general tab-completion mechanism in place already.
1630 --
1631 William <wmorgan-sup at masanjin.net>
1632
1633 From wmorgan-sup@masanjin.net Mon Nov 2 11:03:41 2009
1634 From: wmorgan-sup@masanjin.net (William Morgan)
1635 Date: Mon, 02 Nov 2009 08:03:41 -0800
1636 Subject: [sup-talk] exception in mainline
1637 In-Reply-To: <1256749083-sup-3681@arrakis.es.net>
1638 References: <1256749083-sup-3681@arrakis.es.net>
1639 Message-ID: <1257177587-sup-5889@masanjin.net>
1640
1641 Hi Jon,
1642
1643 Reformatted excerpts from Jon Dugan's message of 2009-10-28:
1644 > i now get this when i start sup. i'm running mainline.
1645 >
1646 > --- RuntimeError from thread: load threads for thread-index-mode
1647 > wrong id called on nil
1648 > ./lib/sup.rb:17:in `id'
1649 > ./lib/sup/modes/thread-index-mode.rb:225:in `update'
1650
1651 I posted this workaround patch earlier. I'm working on a better solution in the
1652 meanwhile.
1653
1654 diff --git a/lib/sup/modes/thread-index-mode.rb
1655 b/lib/sup/modes/thread-index-mode.rb
1656 index 82f258b..17d5836 100644
1657 --- a/lib/sup/modes/thread-index-mode.rb
1658 +++ b/lib/sup/modes/thread-index-mode.rb
1659 @@ -222,7 +222,7 @@ EOS
1660 def update
1661 @mutex.synchronize do
1662 ## let's see you do THIS in python
1663 - @threads = @ts.threads.select { |t| !@hidden_threads[t] }.sort_by { |t| [t.date, t.first.id] }.reverse
1664 + @threads = @ts.threads.select { |t| !@hidden_threads[t] }.select { |t| t.first }.sort_by { |t| [t.date, t.first.id] }.reverse
1665 @size_widgets = @threads.map { |t| size_widget_for_thread t }
1666 @size_widget_width = @size_widgets.max_of { |w| w.display_length }
1667 end
1668
1669 > ./lib/sup/hook.rb:122:in `sort_by'
1670 > ./lib/sup/modes/thread-index-mode.rb:225:in `each'
1671 > ./lib/sup/modes/thread-index-mode.rb:225:in `sort_by'
1672 > ./lib/sup/modes/thread-index-mode.rb:225:in `update'
1673 > ./lib/sup/modes/thread-index-mode.rb:223:in `synchronize'
1674 > ./lib/sup/modes/thread-index-mode.rb:223:in `update'
1675 > ./lib/sup/modes/thread-index-mode.rb:628:in `__unprotected_load_n_threads'
1676 > ./lib/sup/thread.rb:334:in `load_n_threads'
1677 > ./lib/sup/xapian_index.rb:151:in `each_id_by_date'
1678 > ./lib/sup/xapian_index.rb:144:in `each_id'
1679 > ./lib/sup/xapian_index.rb:144:in `each'
1680 > ./lib/sup/xapian_index.rb:144:in `each_id'
1681 > ./lib/sup/xapian_index.rb:151:in `each_id_by_date'
1682 > ./lib/sup/thread.rb:328:in `load_n_threads'
1683 > ./lib/sup/modes/thread-index-mode.rb:625:in `__unprotected_load_n_threads'
1684 > (eval):12:in `load_n_threads'
1685 > ./lib/sup/modes/thread-index-mode.rb:609:in `load_n_threads_background'
1686 > ./lib/sup.rb:77:in `reporting_thread'
1687 > ./lib/sup.rb:75:in `initialize'
1688 > ./lib/sup.rb:75:in `new'
1689 > ./lib/sup.rb:75:in `reporting_thread'
1690 > ./lib/sup/modes/thread-index-mode.rb:608:in `load_n_threads_background'
1691 > ./lib/sup/modes/thread-index-mode.rb:679:in `__unprotected_load_threads'
1692 > (eval):12:in `load_threads'
1693 > bin/sup:199
1694 >
1695 --
1696 William <wmorgan-sup at masanjin.net>
1697
1698 From stevenrwalter@gmail.com Mon Nov 2 11:47:51 2009
1699 From: stevenrwalter@gmail.com (Steven Walter)
1700 Date: Mon, 2 Nov 2009 11:47:51 -0500
1701 Subject: [sup-talk] "Force tags to be joined" doesn't save
1702 Message-ID: <e06498070911020847v6e91024am4af1d4901dee7ef6@mail.gmail.com>
1703
1704 If I select two threads and combine them with #, sup seems to combine
1705 them, and the current view becomes "modified." If I save ($) and
1706 reload (@), the threads show up separately again. Is this expected
1707 behavior?
1708 --
1709 -Steven Walter <stevenrwalter at gmail.com>
1710
1711 From nicolas.pouillard@gmail.com Mon Nov 2 12:38:54 2009
1712 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
1713 Date: Mon, 02 Nov 2009 18:38:54 +0100
1714 Subject: [sup-talk] Choosing a bug tracker for Sup
1715 In-Reply-To: <1257173444-sup-295@masanjin.net>
1716 References: <1257111816-sup-4397@peray> <1257143690-sup-7839@tilus.net>
1717 <1257173444-sup-295@masanjin.net>
1718 Message-ID: <1257183478-sup-7820@peray>
1719
1720 Excerpts from William Morgan's message of Mon Nov 02 15:53:08 +0100 2009:
1721 > Reformatted excerpts from Tero Tilus's message of 2009-11-01:
1722 > > Requirement: Bug submission by email?
1723 > > I'd say we need that.
1724 >
1725 > That's what we have now, basically, and what we had when we were using
1726 > ditz, and I didn't like having to do the extra work of making an issue.
1727
1728 Right, but in this setup only well formatted bug reports are accepted, so
1729 no extra burden on devs.
1730
1731 --
1732 Nicolas Pouillard
1733 http://nicolaspouillard.fr
1734
1735 From nicolas.pouillard@gmail.com Mon Nov 2 12:47:19 2009
1736 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
1737 Date: Mon, 02 Nov 2009 18:47:19 +0100
1738 Subject: [sup-talk] Choosing a bug tracker for Sup
1739 In-Reply-To: <1257169654-sup-6224@masanjin.net>
1740 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
1741 Message-ID: <1257183536-sup-1174@peray>
1742
1743 Excerpts from William Morgan's message of Mon Nov 02 15:50:08 +0100 2009:
1744 > Nice writeup. Just brainstorming, here are the features I personally
1745 > find vital for an issue tracker that would make me happy:
1746 >
1747 > 1. Web submission. The burden of creating a record should be on the
1748 > submitter---it's not too much to ask, and it saves developer time. This
1749 > also encourages reporters to provide relevant information like version,
1750 > platform, Ruby version, etc. upfront, since they can be prompted for
1751 > those data explicitly.
1752
1753 > 2. Developer discussion via email. This is vital. There's no way I would
1754 > want to have a technical discussion using text boxes on a website. And
1755 > this discussion should be attached to the issue, of course.
1756
1757 1,2: Same for me.
1758
1759 > 3. Canonicality. I want one name for a bug, and I want one URL that I
1760 > can point people to when referring to it. That URL should have the
1761 > entire history, including developer discussion, of the issue.
1762
1763 > 4. Browseability. There should be some public way of getting a view of
1764 > all the open issues, at a minimum. (Web seems natural.) Other stuff like
1765 > sorting by priority, attachign to releases, etc. are icing on the cake,
1766 > but if people are going to be chipping in on development effort, or
1767 > searching to see if other people have had this bug, they have to be able
1768 > to browse what's out there.
1769
1770 3,4:
1771
1772 Right, I think this is part of the web-page generation tool. Which
1773 given the YAML file will produce web-pages. The only unclear point to
1774 me is: "how to find the archive URL for a discussion given the message-ID?"
1775
1776 > > About the issues identifier I see two options, either we try to
1777 > > allocate simple integers like most of the trackers or we just keep the
1778 > > unique (long) identifier.
1779 >
1780 > I want a simple one. I can remember JIRA-style "ABC-123" names and
1781 > that's really handy sometimes.
1782
1783 Right, we want short issue numbers. I'm would still be a bit sad of completely
1784 loosing the distributed property. Maybe a solution would be to allow issues
1785 to have an optional short name. In practice it will be just temporarily,
1786 the time the issue makes its way to the central repository, or being just a
1787 local issue.
1788
1789 --
1790 Nicolas Pouillard
1791 http://nicolaspouillard.fr
1792
1793 From wmorgan-sup@masanjin.net Mon Nov 2 14:20:32 2009
1794 From: wmorgan-sup@masanjin.net (William Morgan)
1795 Date: Mon, 02 Nov 2009 11:20:32 -0800
1796 Subject: [sup-talk] Choosing a bug tracker for Sup
1797 In-Reply-To: <1257183536-sup-1174@peray>
1798 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
1799 <1257183536-sup-1174@peray>
1800 Message-ID: <1257189278-sup-7991@masanjin.net>
1801
1802 Reformatted excerpts from Nicolas Pouillard's message of 2009-11-02:
1803 > Right, we want short issue numbers. I'm would still be a bit sad of
1804 > completely loosing the distributed property. Maybe a solution would be
1805 > to allow issues to have an optional short name. In practice it will be
1806 > just temporarily, the time the issue makes its way to the central
1807 > repository, or being just a local issue.
1808
1809 I just think it would be really useful to say stuff like "this is a
1810 duplicate of #154" or "fixing this depends on index-48" or whatever, and
1811 have everyone be able to find that easily, e.g. by going to
1812 http://sup.com/bugs/index-48. Having to refer to the hashes in Ditz was
1813 irritating.
1814 --
1815 William <wmorgan-sup at masanjin.net>
1816
1817 From wmorgan-sup@masanjin.net Mon Nov 2 14:22:48 2009
1818 From: wmorgan-sup@masanjin.net (William Morgan)
1819 Date: Mon, 02 Nov 2009 11:22:48 -0800
1820 Subject: [sup-talk] "Force tags to be joined" doesn't save
1821 In-Reply-To: <e06498070911020847v6e91024am4af1d4901dee7ef6@mail.gmail.com>
1822 References: <e06498070911020847v6e91024am4af1d4901dee7ef6@mail.gmail.com>
1823 Message-ID: <1257189701-sup-8211@masanjin.net>
1824
1825 Reformatted excerpts from Steven Walter's message of 2009-11-02:
1826 > If I select two threads and combine them with #, sup seems to combine
1827 > them, and the current view becomes "modified." If I save ($) and
1828 > reload (@), the threads show up separately again. Is this expected
1829 > behavior?
1830
1831 I pushed a fix for this to master yesterday. Do you still have this with
1832 a recent git? (I.e. one with cc2359bf87bd982501e57f703fbf4368b7f9cb5f).
1833 --
1834 William <wmorgan-sup at masanjin.net>
1835
1836 From wmorgan-sup@masanjin.net Mon Nov 2 14:28:03 2009
1837 From: wmorgan-sup@masanjin.net (William Morgan)
1838 Date: Mon, 02 Nov 2009 11:28:03 -0800
1839 Subject: [sup-talk] [PATCH] xapian: replace DocumentMethods module with
1840 plain monkeypatching
1841 In-Reply-To: <1256019247-6046-1-git-send-email-rlane@club.cc.cmu.edu>
1842 References: <20091012223449.GB31940@tilus.net>
1843 <1256019247-6046-1-git-send-email-rlane@club.cc.cmu.edu>
1844 Message-ID: <1257190065-sup-2886@masanjin.net>
1845
1846 Branch xapian-bugfix, merged into next. Thanks!
1847 --
1848 William <wmorgan-sup at masanjin.net>
1849
1850 From wmorgan-sup@masanjin.net Mon Nov 2 14:31:38 2009
1851 From: wmorgan-sup@masanjin.net (William Morgan)
1852 Date: Mon, 02 Nov 2009 11:31:38 -0800
1853 Subject: [sup-talk] releasing 0.9.1 in the next day or so
1854 Message-ID: <1257190099-sup-9880@masanjin.net>
1855
1856 Hi all,
1857
1858 I'm going to release an 0.9.1 based off the current master in the next
1859 day or so. This is just a heads-up.
1860
1861 There are a couple bugfixes that are still cooking in next, but I want
1862 to keep this as stable as possible. Changes since 0.9 will be:
1863
1864 $ git log release-0.9..master --pretty=oneline
1865 84d9313bfd73e86c8fea95fabc8ff8544f70b1f0 make doc/NewUserGuide.txt markdown
1866 269cd03b183669c86df1f7336ade8fff5c566ebd fix mbox date parsing: catch ArgumentError
1867 409ddd9c5668b5cdf67dbebea761c476a317c53a give exception log relative to BASE_DIR in exception message
1868 2dfd378b616243d03203e49f5ee29636051d3cbf fix bug in which custom-search substitutions are not used
1869 4a32776f523039cdcbb6165d58e24bd9753b256b increase numbers in contact-list-mode
1870 d19eda45643dff558324c6c2f34aa0148f9d65d0 don't downcase a nil content-type
1871 a8b5c6db0587fe4383758dc3400aaab85ad22d8b fix --compose option, and add a --subject option
1872 c924164c22a7bdb3fb66f9ce4ca5ac8b19dfcccf include hook filename in error messages
1873 93b5552730c10e2a352bd33f5ee98800bcd8679e more release-script updates
1874 --
1875 William <wmorgan-sup at masanjin.net>
1876
1877 From wmorgan-sup@masanjin.net Mon Nov 2 14:32:36 2009
1878 From: wmorgan-sup@masanjin.net (William Morgan)
1879 Date: Mon, 02 Nov 2009 11:32:36 -0800
1880 Subject: [sup-talk] "Force tags to be joined" doesn't save
1881 In-Reply-To: <1257189701-sup-8211@masanjin.net>
1882 References: <e06498070911020847v6e91024am4af1d4901dee7ef6@mail.gmail.com>
1883 <1257189701-sup-8211@masanjin.net>
1884 Message-ID: <1257190312-sup-7892@masanjin.net>
1885
1886 Reformatted excerpts from William Morgan's message of 2009-11-02:
1887 > I pushed a fix for this to master yesterday. Do you still have this
1888 > with a recent git? (I.e. one with
1889 > cc2359bf87bd982501e57f703fbf4368b7f9cb5f).
1890
1891 Sorry, this is in next only for the moment.
1892 --
1893 William <wmorgan-sup at masanjin.net>
1894
1895 From nicolas.pouillard@gmail.com Mon Nov 2 15:23:58 2009
1896 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
1897 Date: Mon, 02 Nov 2009 21:23:58 +0100
1898 Subject: [sup-talk] Choosing a bug tracker for Sup
1899 In-Reply-To: <1257189278-sup-7991@masanjin.net>
1900 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
1901 <1257183536-sup-1174@peray> <1257189278-sup-7991@masanjin.net>
1902 Message-ID: <1257193412-sup-5939@peray>
1903
1904 Excerpts from William Morgan's message of Mon Nov 02 20:20:32 +0100 2009:
1905 > Reformatted excerpts from Nicolas Pouillard's message of 2009-11-02:
1906 > > Right, we want short issue numbers. I'm would still be a bit sad of
1907 > > completely loosing the distributed property. Maybe a solution would be
1908 > > to allow issues to have an optional short name. In practice it will be
1909 > > just temporarily, the time the issue makes its way to the central
1910 > > repository, or being just a local issue.
1911 >
1912 > I just think it would be really useful to say stuff like "this is a
1913 > duplicate of #154" or "fixing this depends on index-48" or whatever, and
1914 > have everyone be able to find that easily, e.g. by going to
1915 > http://sup.com/bugs/index-48. Having to refer to the hashes in Ditz was
1916 > irritating.
1917
1918 I agree, that's way I proposed it.
1919
1920 --
1921 Nicolas Pouillard
1922 http://nicolaspouillard.fr
1923
1924 From joe@talkhouse.com Mon Nov 2 15:40:21 2009
1925 From: joe@talkhouse.com (=?utf-8?q?Joe_W=C3=B6lfel?=)
1926 Date: Mon, 02 Nov 2009 15:40:21 -0500
1927 Subject: [sup-talk] Choosing a bug tracker for Sup
1928 In-Reply-To: <1257169654-sup-6224@masanjin.net>
1929 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
1930 Message-ID: <1257193345-sup-3174@maui.local>
1931
1932 Excerpts from William Morgan's message of Mon Nov 02 09:50:08 -0500 2009:
1933 > 1. Web submission. The burden of creating a record should be on the
1934 > submitter---it's not too much to ask, and it saves developer time. This
1935 > also encourages reporters to provide relevant information like version,
1936 > platform, Ruby version, etc. upfront, since they can be prompted for
1937 > those data explicitly.
1938 >
1939 > 2. Developer discussion via email. This is vital. There's no way I would
1940 > want to have a technical discussion using text boxes on a website. And
1941 > this discussion should be attached to the issue, of course.
1942
1943 Please ignore this suggestion if you feel it is stupid, but couldn't an
1944 internal sup-based bug submission perform prompting and validation tasks just
1945 as easily as a web form? Also, wouldn't it be better for automatically
1946 including or verifying operating system info, version info, libraries, etc?
1947
1948 It seems like this might make for a more natural transition to email-based
1949 developer discussion, reduce the need for centralized infrastructure, make it
1950 easier for users to figure out how and where to submit a bug, and possibly make
1951 critical system and library information more accurate and detailed.
1952
1953 Cheers,
1954 Joe
1955
1956 From nicolas.pouillard@gmail.com Mon Nov 2 16:49:39 2009
1957 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
1958 Date: Mon, 02 Nov 2009 22:49:39 +0100
1959 Subject: [sup-talk] Choosing a bug tracker for Sup
1960 In-Reply-To: <1257193345-sup-3174@maui.local>
1961 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
1962 <1257193345-sup-3174@maui.local>
1963 Message-ID: <1257198369-sup-9036@peray>
1964
1965 Excerpts from Joe W?lfel's message of Mon Nov 02 21:40:21 +0100 2009:
1966 > Excerpts from William Morgan's message of Mon Nov 02 09:50:08 -0500 2009:
1967 > > 1. Web submission. The burden of creating a record should be on the
1968 > > submitter---it's not too much to ask, and it saves developer time. This
1969 > > also encourages reporters to provide relevant information like version,
1970 > > platform, Ruby version, etc. upfront, since they can be prompted for
1971 > > those data explicitly.
1972 > >
1973 > > 2. Developer discussion via email. This is vital. There's no way I would
1974 > > want to have a technical discussion using text boxes on a website. And
1975 > > this discussion should be attached to the issue, of course.
1976 >
1977 > Please ignore this suggestion if you feel it is stupid, but couldn't an
1978 > internal sup-based bug submission perform prompting and validation tasks just
1979 > as easily as a web form? Also, wouldn't it be better for automatically
1980 > including or verifying operating system info, version info, libraries, etc?
1981 >
1982 > It seems like this might make for a more natural transition to email-based
1983 > developer discussion, reduce the need for centralized infrastructure, make it
1984 > easier for users to figure out how and where to submit a bug, and possibly make
1985 > critical system and library information more accurate and detailed.
1986
1987 This is indeed a nice option. Add to sup a way to send a bug report. It could
1988 simply be an email in the chosen format for bug reporting. And indeed the
1989 bonus is more precise information.
1990
1991 However in the long run this only complementary with other way to report bugs.
1992
1993 --
1994 Nicolas Pouillard
1995 http://nicolaspouillard.fr
1996
1997 From david.pflug@hostdime.com Mon Nov 2 16:53:52 2009
1998 From: david.pflug@hostdime.com (David Pflug)
1999 Date: Mon, 02 Nov 2009 16:53:52 -0500
2000 Subject: [sup-talk] Exception during message polling
2001 Message-ID: <1257198730-sup-5007@dpflug-desktop>
2002
2003 I don't know what mail it's dying on, but this is sup 0.9 using Xapian.
2004
2005 --- ArgumentError from thread: poll after loading inbox
2006 invalid byte sequence in US-ASCII
2007 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:284:in `gsub'
2008 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:284:in `normalize_whitespace'
2009 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/message.rb:511:in `message_to_chunks'
2010 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/message.rb:435:in `block in message_to_chunks'
2011 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/message.rb:435:in `map'
2012 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/message.rb:435:in `message_to_chunks'
2013 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/message.rb:239:in `load_from_source!'
2014 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/message.rb:335:in `build_from_source'
2015 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/poll.rb:145:in `block in each_message_from'
2016 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/imap.rb:197:in `block in each'
2017 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/imap.rb:185:in `upto'
2018 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/imap.rb:185:in `each'
2019 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:560:in `__pass'
2020 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:547:in `method_missing'
2021 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/poll.rb:139:in `each_message_from'
2022 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/poll.rb:93:in `block (2 levels) in do_poll'
2023 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/poll.rb:81:in `each'
2024 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/poll.rb:81:in `block in do_poll'
2025 <internal:prelude>:8:in `synchronize'
2026 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/poll.rb:80:in `do_poll'
2027 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:520:in `method_missing'
2028 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/modes/poll-mode.rb:15:in `poll'
2029 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/poll.rb:48:in `poll'
2030 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:520:in `method_missing'
2031 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/bin/sup:196:in `block (2 levels) in <module:Redwood>'
2032 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup.rb:77:in `block in reporting_thread'
2033
2034 --
2035 David Pflug
2036 System Technician
2037 Hostdime.com, Inc.
2038
2039 From usul@aruba.it Mon Nov 2 19:01:08 2009
2040 From: usul@aruba.it (Fabio Riga)
2041 Date: Tue, 03 Nov 2009 01:01:08 +0100
2042 Subject: [sup-talk] i18n?
2043 In-Reply-To: <1257169884-sup-2615@tilus.net>
2044 References: <1254353101-sup-1021@thinkpad-ubuntu>
2045 <1254415145-sup-635@masanjin.net>
2046 <1254420802-sup-3742@thinkpad-ubuntu>
2047 <1254421405-sup-8083@masanjin.net>
2048 <1254442420-sup-3771@thinkpad-ubuntu>
2049 <1254487575-sup-5468@thinkpad-ubuntu>
2050 <1256280223-sup-736@tilus.net> <1256295847-sup-9437@viajero>
2051 <1257163780-sup-1357@masanjin.net> <1257169884-sup-2615@tilus.net>
2052 Message-ID: <1257202138-sup-5711@viajero>
2053
2054 Excerpts from Tero Tilus's message of lun nov 02 14:58:09 +0100 2009:
2055 > William Morgan, 2009-11-02 14:12:
2056 > > Tero's comment wasn't about gettext, as far as I understand it.
2057 >
2058 > You had me right. I was talking about the approach to i18n in general.
2059
2060 Sorry, I think the problem here is my English. I understood Tero's
2061 comment wasn't about gettext, I was the one suggesting: "everybody's
2062 using gettext, why don't we?"
2063
2064 > > There are Ruby gettext bindings but they look like a pain in the ass
2065 > > to use, and it's pretty trivial to replace it a language like Ruby.
2066 >
2067 > Also they are pretty trivial to wrap behind nice interface in a
2068 > language like Ruby. "Been there, done that!".t :)
2069
2070 And you both answered that question... I'm just a hobbyist ruby
2071 programmer, never used gettext. I transleted a program that use it (my
2072 previous mail client :D) so I can read a .po file (I don't understand
2073 why this is a problem, though). I thought it was an easy, ready-made
2074 thing to implement, if I'm wrong, no problem, there is always a better
2075 solution.
2076
2077 > > I believe he was thinking about something like git grep. You see a
2078 > > weird message displayed by Sup, you want to find the code that's
2079 > > generating it, you can git grep the source for the message directly.
2080 >
2081 > That was exactly what I was thinking.
2082 >
2083 > Having weird keys in code imo also slows down development. If I want
2084 > to (write code to) display a simple message to user, with "original
2085 > language as key" approac i just write "my message".t (or whatever the
2086 > l10n interface is) instead of modifying some yaml file somewhere and
2087 > then copy-pasting the key from there to code. I just plain code and
2088 > let somebody else figure out the translation later or.
2089 >
2090 Sorry, I don't understand what you mean. The idea is to (1) have a branch
2091 for every language? Translators directly write in the code? Or (2) "original
2092 language as key" means a way to substitute "on the fly" the original
2093 string with another one in the current locale? In this way you always need a
2094 yaml file, or a ruby hash, or a .po file (you can implement it in another
2095 way, but is the gettext approach...).
2096
2097 So, I played a little with irb... do you mean something like:
2098
2099 class String
2100 def t
2101 l10n_hash[self] || self
2102 end
2103 end
2104
2105 Sounds good to me...
2106
2107 "bye bye".t
2108 => "ciao ciao"
2109
2110 From tero@tilus.net Mon Nov 2 20:22:44 2009
2111 From: tero@tilus.net (Tero Tilus)
2112 Date: Tue, 03 Nov 2009 03:22:44 +0200
2113 Subject: [sup-talk] i18n?
2114 In-Reply-To: <1257202138-sup-5711@viajero>
2115 References: <1254353101-sup-1021@thinkpad-ubuntu>
2116 <1254415145-sup-635@masanjin.net>
2117 <1254420802-sup-3742@thinkpad-ubuntu>
2118 <1254421405-sup-8083@masanjin.net>
2119 <1254442420-sup-3771@thinkpad-ubuntu>
2120 <1254487575-sup-5468@thinkpad-ubuntu>
2121 <1256280223-sup-736@tilus.net> <1256295847-sup-9437@viajero>
2122 <1257163780-sup-1357@masanjin.net>
2123 <1257169884-sup-2615@tilus.net> <1257202138-sup-5711@viajero>
2124 Message-ID: <1257210858-sup-5218@tilus.net>
2125
2126 Fabio Riga, 2009-11-03 02:01:
2127 > Sorry, I don't understand what you mean. The idea is to (1) have a
2128 > branch for every language? Translators directly write in the code?
2129 > Or (2) "original language as key" means a way to substitute "on the
2130 > fly" the original string with another one in the current locale?
2131
2132 The second one, yes. God save us from the first!
2133
2134 > So, I played a little with irb... do you mean something like:
2135 >
2136 > class String
2137 > def t
2138 > l10n_hash[self] || self
2139 > end
2140 > end
2141
2142 Exactly.
2143
2144 --
2145 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
2146
2147 From tero@tilus.net Mon Nov 2 20:45:24 2009
2148 From: tero@tilus.net (Tero Tilus)
2149 Date: Tue, 03 Nov 2009 03:45:24 +0200
2150 Subject: [sup-talk] Sup Issues Task Force (SITF)
2151 In-Reply-To: <1257174456-sup-5631@masanjin.net>
2152 References: <1256749942-sup-4831@arrakis.es.net> <1256760295-sup-9873@peray>
2153 <1256760970-sup-8118@arrakis.es.net>
2154 <1256939476-sup-2864@masanjin.net> <1256987483-sup-338@tilus.net>
2155 <1257086191-sup-1136@masanjin.net> <1257146404-sup-9768@tilus.net>
2156 <1257174456-sup-5631@masanjin.net>
2157 Message-ID: <1257212675-sup-1610@tilus.net>
2158
2159 William Morgan, 2009-11-02 17:08:
2160 > I think it needs to be combined with some kind of formal issue
2161 > tracker though.
2162
2163 Most definitely yes. Let's see where the tracker discussion goes.
2164
2165 --
2166 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
2167
2168 From rlane@club.cc.cmu.edu Mon Nov 2 22:48:10 2009
2169 From: rlane@club.cc.cmu.edu (Rich Lane)
2170 Date: Mon, 02 Nov 2009 22:48:10 -0500
2171 Subject: [sup-talk] updated xapian experimental branch
2172 In-Reply-To: <1257163403-sup-9032@masanjin.net>
2173 References: <1257118189-sup-7392@zyrg.net> <1257163403-sup-9032@masanjin.net>
2174 Message-ID: <1257196293-sup-6882@zyrg.net>
2175
2176 Excerpts from William Morgan's message of Mon Nov 02 07:08:09 -0500 2009:
2177 > > - New 'z' key to clear irrelevant threads
2178 > > - Not strictly necessary, but removing messages in response to index
2179 > > events is difficult with the current UI code
2180 >
2181 > Can you describe this a bit?
2182
2183 In general, we can only determine thread relevance by querying xapian.
2184 The actual write to the db is done async, so it will happen a little
2185 after you (for example) remove a label. The index fires a message event
2186 when the new state hits the db, and the UI then checks if the thread is
2187 still relevant to the query. So, the UI would only know to hide a newly
2188 irrelevant thread after the user has potentially gone on and done other
2189 actions. Having threads randomly disappear would be unfriendly, so
2190 instead the UI displays a red X. 'z' will drop these irrelevant threads.
2191
2192 For 'simple' queries we can determine relevance without xapian, so we
2193 could synchronously remove irrelevant threads in that case. However,
2194 this would lead to unintuitive situations where queries that appear
2195 similar have different irrelevance behaviors. The option that I will
2196 probably implement is choosing the behavior per-mode, so that inbox-mode
2197 could keep it's old behavior. That's the most important one anyway.
2198
2199 From nicolas.pouillard@gmail.com Tue Nov 3 03:39:48 2009
2200 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
2201 Date: Tue, 03 Nov 2009 09:39:48 +0100
2202 Subject: [sup-talk] updated xapian experimental branch
2203 In-Reply-To: <1257196293-sup-6882@zyrg.net>
2204 References: <1257118189-sup-7392@zyrg.net> <1257163403-sup-9032@masanjin.net>
2205 <1257196293-sup-6882@zyrg.net>
2206 Message-ID: <1257237468-sup-5663@peray>
2207
2208 Excerpts from Rich Lane's message of Tue Nov 03 04:48:10 +0100 2009:
2209 > Excerpts from William Morgan's message of Mon Nov 02 07:08:09 -0500 2009:
2210 > > > - New 'z' key to clear irrelevant threads
2211 > > > - Not strictly necessary, but removing messages in response to index
2212 > > > events is difficult with the current UI code
2213 > >
2214 > > Can you describe this a bit?
2215 >
2216 > In general, we can only determine thread relevance by querying xapian.
2217 > The actual write to the db is done async, so it will happen a little
2218 > after you (for example) remove a label. The index fires a message event
2219 > when the new state hits the db, and the UI then checks if the thread is
2220 > still relevant to the query. So, the UI would only know to hide a newly
2221 > irrelevant thread after the user has potentially gone on and done other
2222 > actions. Having threads randomly disappear would be unfriendly, so
2223 > instead the UI displays a red X. 'z' will drop these irrelevant threads.
2224 >
2225 > For 'simple' queries we can determine relevance without xapian, so we
2226 > could synchronously remove irrelevant threads in that case. However,
2227 > this would lead to unintuitive situations where queries that appear
2228 > similar have different irrelevance behaviors. The option that I will
2229 > probably implement is choosing the behavior per-mode, so that inbox-mode
2230 > could keep it's old behavior. That's the most important one anyway.
2231
2232 What are non simple queries which would cause 'red X's to appear? My guess
2233 is that since we cannot change other attributes than the labels, we can
2234 statically know if the thread is still relevant without the label. No?
2235
2236 --
2237 Nicolas Pouillard
2238 http://nicolaspouillard.fr
2239
2240 From wmorgan-sup@masanjin.net Tue Nov 3 08:43:25 2009
2241 From: wmorgan-sup@masanjin.net (William Morgan)
2242 Date: Tue, 03 Nov 2009 05:43:25 -0800
2243 Subject: [sup-talk] Sup crashing upon save changes ($)
2244 In-Reply-To: <1256178926-sup-1780@Richard-Sandilandss-MacBook-Pro.local>
2245 References: <1256178926-sup-1780@Richard-Sandilandss-MacBook-Pro.local>
2246 Message-ID: <1257255713-sup-617@masanjin.net>
2247
2248 Reformatted excerpts from Richard Sandilands's message of 2009-10-21:
2249 > I'm tracking next and when I hit $, sup crashes and logs this:
2250 >
2251 > Any clues on how to get things ironed out would be appreciated.
2252 >
2253 > Exception log:
2254 >
2255 > --- Errno::ENOENT from thread: load messages for thread-view-mode
2256 > No such file or directory - /Users/richard/.sup/drafts/18
2257
2258 It looks like Sup's expecting a draft message that disappeared from disk
2259 somehow. You should be able to fix this by reindexing the drafts folder:
2260
2261 sup-sync --all -v sup://drafts
2262
2263 But you may want to find out why that file disappeared.
2264 --
2265 William <wmorgan-sup at masanjin.net>
2266
2267 From mailinglist@flasht.de Tue Nov 3 09:05:01 2009
2268 From: mailinglist@flasht.de (Christopher Bertels)
2269 Date: Tue, 03 Nov 2009 15:05:01 +0100
2270 Subject: [sup-talk] i18n?
2271 In-Reply-To: <1257163967-sup-5554@masanjin.net>
2272 References: <1254353101-sup-1021@thinkpad-ubuntu>
2273 <1254415145-sup-635@masanjin.net>
2274 <1254420802-sup-3742@thinkpad-ubuntu>
2275 <1254421405-sup-8083@masanjin.net>
2276 <1254442420-sup-3771@thinkpad-ubuntu>
2277 <1254487575-sup-5468@thinkpad-ubuntu>
2278 <1256280223-sup-736@tilus.net> <1257163967-sup-5554@masanjin.net>
2279 Message-ID: <1257256976-sup-1266@thinkpad-ubuntu>
2280
2281 Excerpts from William Morgan's message of Mo Nov 02 13:13:01 +0100 2009:
2282 > Reformatted excerpts from Tero Tilus's message of 2009-10-23:
2283 > > Why not default to the english strings as translation keys and
2284 > > fallback to key itself in case of missing translation?
2285 >
2286 > Christopher, what do you think?
2287
2288 Sounds OK to me. Should we use gettext then or rely on .yaml files for
2289 any additional translations then? I haven't used gettext yet and from
2290 what I remember it lookes weird, at least the ruby binding did.
2291 Maybe it's very easy though.
2292 --
2293 ================================
2294 Christopher Bertels
2295 http://www.adztec-independent.de
2296 GPG Key ID: 0x2345b203
2297 -------------- next part --------------
2298 A non-text attachment was scrubbed...
2299 Name: signature.asc
2300 Type: application/pgp-signature
2301 Size: 835 bytes
2302 Desc: not available
2303 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091103/7be8d5b7/attachment.bin>
2304
2305 From pioto@pioto.org Tue Nov 3 09:50:55 2009
2306 From: pioto@pioto.org (Mike Kelly)
2307 Date: Tue, 03 Nov 2009 09:50:55 -0500
2308 Subject: [sup-talk] Choosing a bug tracker for Sup
2309 In-Reply-To: <1257169654-sup-6224@masanjin.net>
2310 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
2311 Message-ID: <02055f053011496a2dcb9085b7e7535f@localhost>
2312
2313
2314 On Mon, 02 Nov 2009 06:50:08 -0800, William Morgan
2315 <wmorgan-sup at masanjin.net> wrote:
2316 > Nice writeup. Just brainstorming, here are the features I personally
2317 > find vital for an issue tracker that would make me happy:
2318 >
2319 > 1. Web submission.
2320 >
2321 > 2. Developer discussion via email.
2322 >
2323 > 3. Canonicality.
2324 >
2325 > 4. Browseability.
2326 >
2327 > I want a simple one. I can remember JIRA-style "ABC-123" names and
2328 > that's really handy sometimes.
2329
2330 As much as I hate to suggest it... RT[1] should have all of these
2331 qualities. It's used by CPAN, among other things. And, a sample ticket of
2332 mine[2].
2333
2334 [1] http://bestpractical.com/rt
2335 [2] https://rt.cpan.org/Public/Bug/Display.html?id=45040
2336
2337 --
2338 Mike Kelly
2339
2340 From tero@tilus.net Tue Nov 3 10:08:00 2009
2341 From: tero@tilus.net (Tero Tilus)
2342 Date: Tue, 03 Nov 2009 17:08:00 +0200
2343 Subject: [sup-talk] i18n?
2344 In-Reply-To: <1257256976-sup-1266@thinkpad-ubuntu>
2345 References: <1254353101-sup-1021@thinkpad-ubuntu>
2346 <1254415145-sup-635@masanjin.net>
2347 <1254420802-sup-3742@thinkpad-ubuntu>
2348 <1254421405-sup-8083@masanjin.net>
2349 <1254442420-sup-3771@thinkpad-ubuntu>
2350 <1254487575-sup-5468@thinkpad-ubuntu>
2351 <1256280223-sup-736@tilus.net> <1257163967-sup-5554@masanjin.net>
2352 <1257256976-sup-1266@thinkpad-ubuntu>
2353 Message-ID: <1257260315-sup-830@tilus.net>
2354
2355 Christopher Bertels, 2009-11-03 16:05:
2356 > Should we use gettext then or rely on .yaml files for any additional
2357 > translations then? I haven't used gettext yet and from what I
2358 > remember it lookes weird, at least the ruby binding did. Maybe it's
2359 > very easy though.
2360
2361 The l10n backend is an implementation detail. If we really need to we
2362 can change backend later down the road if it is decoupled enough from
2363 the i18n of sup itself. IMO you get to choose what we start with.
2364 And William gets to choose if he accepts the patches or not. ;)
2365
2366 --
2367 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
2368
2369 From wmorgan-sup@masanjin.net Tue Nov 3 10:13:10 2009
2370 From: wmorgan-sup@masanjin.net (William Morgan)
2371 Date: Tue, 03 Nov 2009 07:13:10 -0800
2372 Subject: [sup-talk] i18n?
2373 In-Reply-To: <1257260315-sup-830@tilus.net>
2374 References: <1254353101-sup-1021@thinkpad-ubuntu>
2375 <1254415145-sup-635@masanjin.net>
2376 <1254420802-sup-3742@thinkpad-ubuntu>
2377 <1254421405-sup-8083@masanjin.net>
2378 <1254442420-sup-3771@thinkpad-ubuntu>
2379 <1254487575-sup-5468@thinkpad-ubuntu>
2380 <1256280223-sup-736@tilus.net> <1257163967-sup-5554@masanjin.net>
2381 <1257256976-sup-1266@thinkpad-ubuntu>
2382 <1257260315-sup-830@tilus.net>
2383 Message-ID: <1257261122-sup-5192@masanjin.net>
2384
2385 Reformatted excerpts from Tero Tilus's message of 2009-11-03:
2386 > IMO you get to choose what we start with.
2387
2388 Yeah, Christopher has a working implementation of this already using
2389 yaml, and I'm happy to merge it if he changes the keys to strings as
2390 discussed.
2391 --
2392 William <wmorgan-sup at masanjin.net>
2393
2394 From wmorgan-sup@masanjin.net Tue Nov 3 10:16:15 2009
2395 From: wmorgan-sup@masanjin.net (William Morgan)
2396 Date: Tue, 03 Nov 2009 07:16:15 -0800
2397 Subject: [sup-talk] Choosing a bug tracker for Sup
2398 In-Reply-To: <02055f053011496a2dcb9085b7e7535f@localhost>
2399 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
2400 <02055f053011496a2dcb9085b7e7535f@localhost>
2401 Message-ID: <1257261315-sup-977@masanjin.net>
2402
2403 Reformatted excerpts from Mike Kelly's message of 2009-11-03:
2404 > As much as I hate to suggest it... RT should have all of these
2405 > qualities.
2406
2407 Rrrrrrrrreally. Is it a pain to set up? Why do you hate to suggest it?
2408 (I've heard people complain about it before, but I don't remember any of
2409 the details.)
2410 --
2411 William <wmorgan-sup at masanjin.net>
2412
2413 From pioto@pioto.org Tue Nov 3 10:34:24 2009
2414 From: pioto@pioto.org (Mike Kelly)
2415 Date: Tue, 03 Nov 2009 10:34:24 -0500
2416 Subject: [sup-talk] Choosing a bug tracker for Sup
2417 In-Reply-To: <1257261315-sup-977@masanjin.net>
2418 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
2419 <02055f053011496a2dcb9085b7e7535f@localhost>
2420 <1257261315-sup-977@masanjin.net>
2421 Message-ID: <afd0a1d89ddee05080dcaf20f03bdefa@localhost>
2422
2423
2424 On Tue, 03 Nov 2009 07:16:15 -0800, William Morgan
2425 <wmorgan-sup at masanjin.net> wrote:
2426 > Reformatted excerpts from Mike Kelly's message of 2009-11-03:
2427 >> As much as I hate to suggest it... RT should have all of these
2428 >> qualities.
2429 >
2430 > Rrrrrrrrreally. Is it a pain to set up? Why do you hate to suggest it?
2431 > (I've heard people complain about it before, but I don't remember any of
2432 > the details.)
2433
2434 Yes, somewhat, IIRC. But, I haven't really ever had to set it up. It's one
2435 of those things which requires half of CPAN to work. So, it was annoying
2436 when I made an attempt to package it for a distro, but if you're just
2437 installing it following their directions, it's probably not that bad.
2438
2439 But, someone is able to get away with charging $3250 a month for a
2440 "platinum" managed install of it. (Then again, some enterprises will pay
2441 anything for hosting...)
2442
2443 Let me try a test install real quick, and I'll get back to you.
2444
2445 --
2446 Mike Kelly
2447
2448 From reid.thompson@ateb.com Tue Nov 3 11:49:53 2009
2449 From: reid.thompson@ateb.com (Reid Thompson)
2450 Date: Tue, 3 Nov 2009 11:49:53 -0500
2451 Subject: [sup-talk] Choosing a bug tracker for Sup
2452 In-Reply-To: <afd0a1d89ddee05080dcaf20f03bdefa@localhost>
2453 Message-ID: <20091103164953.GA20359@ateb.com>
2454
2455 On Tue, Nov 03, 2009 at 10:34:24AM -0500, Mike Kelly wrote:
2456 >
2457 > On Tue, 03 Nov 2009 07:16:15 -0800, William Morgan
2458 > <wmorgan-sup at masanjin.net> wrote:
2459 > > Reformatted excerpts from Mike Kelly's message of 2009-11-03:
2460 > >> As much as I hate to suggest it... RT should have all of these
2461 > >> qualities.
2462 > >
2463 > > Rrrrrrrrreally. Is it a pain to set up? Why do you hate to suggest it?
2464 > > (I've heard people complain about it before, but I don't remember any of
2465 > > the details.)
2466 >
2467 > Yes, somewhat, IIRC. But, I haven't really ever had to set it up. It's one
2468 > of those things which requires half of CPAN to work. So, it was annoying
2469 > when I made an attempt to package it for a distro, but if you're just
2470 > installing it following their directions, it's probably not that bad.
2471 >
2472 > But, someone is able to get away with charging $3250 a month for a
2473 > "platinum" managed install of it. (Then again, some enterprises will pay
2474 > anything for hosting...)
2475 >
2476 > Let me try a test install real quick, and I'll get back to you.
2477
2478 I just started looking at it, so not sure if it fits all needs but
2479 fossil has a built in bugtracker
2480
2481 http://www.fossil-scm.org/index.html/doc/tip/www/index.wiki
2482
2483
2484
2485 From reid.thompson@ateb.com Tue Nov 3 12:03:38 2009
2486 From: reid.thompson@ateb.com (Reid Thompson)
2487 Date: Tue, 3 Nov 2009 12:03:38 -0500
2488 Subject: [sup-talk] Choosing a bug tracker for Sup
2489 In-Reply-To: <20091103164953.GA20359@ateb.com>
2490 References: <afd0a1d89ddee05080dcaf20f03bdefa@localhost>
2491 <20091103164953.GA20359@ateb.com>
2492 Message-ID: <20091103170338.GC20359@ateb.com>
2493
2494 On Tue, Nov 03, 2009 at 11:49:53AM -0500, Reid Thompson wrote:
2495 > On Tue, Nov 03, 2009 at 10:34:24AM -0500, Mike Kelly wrote:
2496 > >
2497 > > On Tue, 03 Nov 2009 07:16:15 -0800, William Morgan
2498 > > <wmorgan-sup at masanjin.net> wrote:
2499 > > > Reformatted excerpts from Mike Kelly's message of 2009-11-03:
2500 > > >> As much as I hate to suggest it... RT should have all of these
2501 > > >> qualities.
2502 > > >
2503 > > > Rrrrrrrrreally. Is it a pain to set up? Why do you hate to suggest it?
2504 > > > (I've heard people complain about it before, but I don't remember any of
2505 > > > the details.)
2506 > >
2507 > > Yes, somewhat, IIRC. But, I haven't really ever had to set it up. It's one
2508 > > of those things which requires half of CPAN to work. So, it was annoying
2509 > > when I made an attempt to package it for a distro, but if you're just
2510 > > installing it following their directions, it's probably not that bad.
2511 > >
2512 > > But, someone is able to get away with charging $3250 a month for a
2513 > > "platinum" managed install of it. (Then again, some enterprises will pay
2514 > > anything for hosting...)
2515 > >
2516 > > Let me try a test install real quick, and I'll get back to you.
2517 >
2518 > I just started looking at it, so not sure if it fits all needs but
2519 > fossil has a built in bugtracker
2520 >
2521 > http://www.fossil-scm.org/index.html/doc/tip/www/index.wiki
2522 >
2523 forgot to mention, it's developed by the same person as sqlite
2524
2525 From rlane@club.cc.cmu.edu Tue Nov 3 11:12:11 2009
2526 From: rlane@club.cc.cmu.edu (Rich Lane)
2527 Date: Tue, 03 Nov 2009 11:12:11 -0500
2528 Subject: [sup-talk] updated xapian experimental branch
2529 In-Reply-To: <1257237468-sup-5663@peray>
2530 References: <1257118189-sup-7392@zyrg.net> <1257163403-sup-9032@masanjin.net>
2531 <1257196293-sup-6882@zyrg.net> <1257237468-sup-5663@peray>
2532 Message-ID: <1257263951-sup-6837@zyrg.net>
2533
2534 Excerpts from Nicolas Pouillard's message of Tue Nov 03 03:39:48 -0500 2009:
2535 > What are non simple queries which would cause 'red X's to appear? My guess
2536 > is that since we cannot change other attributes than the labels, we can
2537 > statically know if the thread is still relevant without the label. No?
2538
2539 is:inbox OR foo
2540
2541 We have to use xapian to check relevance here because of the fulltext
2542 term 'foo'.
2543
2544 From nicolas.pouillard@gmail.com Tue Nov 3 11:15:23 2009
2545 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
2546 Date: Tue, 03 Nov 2009 17:15:23 +0100
2547 Subject: [sup-talk] updated xapian experimental branch
2548 In-Reply-To: <1257263951-sup-6837@zyrg.net>
2549 References: <1257118189-sup-7392@zyrg.net> <1257163403-sup-9032@masanjin.net>
2550 <1257196293-sup-6882@zyrg.net> <1257237468-sup-5663@peray>
2551 <1257263951-sup-6837@zyrg.net>
2552 Message-ID: <1257264825-sup-7924@peray>
2553
2554 Excerpts from Rich Lane's message of Tue Nov 03 17:12:11 +0100 2009:
2555 > Excerpts from Nicolas Pouillard's message of Tue Nov 03 03:39:48 -0500 2009:
2556 > > What are non simple queries which would cause 'red X's to appear? My guess
2557 > > is that since we cannot change other attributes than the labels, we can
2558 > > statically know if the thread is still relevant without the label. No?
2559 >
2560 > is:inbox OR foo
2561 >
2562 > We have to use xapian to check relevance here because of the fulltext
2563 > term 'foo'.
2564
2565 Hum... Right. This is because we don't want to look into the fulltext of
2566 the threads we have... this does makes sense.
2567
2568 --
2569 Nicolas Pouillard
2570 http://nicolaspouillard.fr
2571
2572 From seschwar@googlemail.com Tue Nov 3 11:20:47 2009
2573 From: seschwar@googlemail.com (Sebastian Schwarz)
2574 Date: Tue, 3 Nov 2009 17:20:47 +0100
2575 Subject: [sup-talk] Choosing a bug tracker for Sup
2576 In-Reply-To: <1257261315-sup-977@masanjin.net>
2577 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
2578 <02055f053011496a2dcb9085b7e7535f@localhost>
2579 <1257261315-sup-977@masanjin.net>
2580 Message-ID: <20091103162047.GD2963@pineapple.q.wohnheim-jahnplatz.de>
2581
2582 On 2009-11-03 at 07:16 -0800, William Morgan wrote:
2583 > Is it a pain to set up?
2584
2585 I have never installed, administered or used RT before, but curiously
2586 digging around its homepage I found this:
2587
2588 http://bestpractical.com/rt/features.html praises it as "Easy to
2589 install". However on http://wiki.bestpractical.com/view/HomePage
2590 it says:
2591
2592 > RT doesn't come with a formal, formatted users or administrators
2593 > guide, but it's likely most of what you need to know to use and run it
2594 > is contained somewhere within this wiki, so look around a little, be
2595 > patient... and try not to install RT on a Sunday night when you need
2596 > to run it in production on Monday: it's big, and learning how to set
2597 > it up can take some time.
2598
2599 Can anyone with more experience with RT comment on this?
2600
2601 Moreover I'd like to advertise/suggest [Roundup][1]. Apart form a slim
2602 web interface -- [here][2] Python's issue tracker as an example -- it
2603 also offers a fully functional [email interface][3], which allows --
2604 from what I understand -- creating, discussing and setting properties
2605 like status and labels of issues.
2606
2607 As a note on the ease of installation: Roundup's [documentation on
2608 installation][4] begins with: "Set aside 15-30 minutes." But again
2609 I have no personal experience to back this claim up. Can anyone
2610 comment on this or Roundup in general?
2611
2612 [1]: http://roundup.sourceforge.net/
2613 [2]: http://bugs.python.org/
2614 [3]: http://roundup.sourceforge.net/docs/user_guide.html#e-mail-gateway
2615 [4]: http://www.roundup-tracker.org/docs/installation.html#installation
2616
2617 From mailinglist@flasht.de Tue Nov 3 10:23:52 2009
2618 From: mailinglist@flasht.de (Christopher Bertels)
2619 Date: Tue, 03 Nov 2009 16:23:52 +0100
2620 Subject: [sup-talk] i18n?
2621 In-Reply-To: <1257261122-sup-5192@masanjin.net>
2622 References: <1254353101-sup-1021@thinkpad-ubuntu>
2623 <1254415145-sup-635@masanjin.net>
2624 <1254420802-sup-3742@thinkpad-ubuntu>
2625 <1254421405-sup-8083@masanjin.net>
2626 <1254442420-sup-3771@thinkpad-ubuntu>
2627 <1254487575-sup-5468@thinkpad-ubuntu>
2628 <1256280223-sup-736@tilus.net> <1257163967-sup-5554@masanjin.net>
2629 <1257256976-sup-1266@thinkpad-ubuntu>
2630 <1257260315-sup-830@tilus.net> <1257261122-sup-5192@masanjin.net>
2631 Message-ID: <1257261780-sup-4231@thinkpad-ubuntu>
2632
2633 Excerpts from William Morgan's message of Di Nov 03 16:13:10 +0100 2009:
2634 > Reformatted excerpts from Tero Tilus's message of 2009-11-03:
2635 > > IMO you get to choose what we start with.
2636 >
2637 > Yeah, Christopher has a working implementation of this already using
2638 > yaml, and I'm happy to merge it if he changes the keys to strings as
2639 > discussed.
2640
2641 Alright, I'll change that then and tell you here when I'm done.
2642 --
2643 ================================
2644 Christopher Bertels
2645 http://www.adztec-independent.de
2646 GPG Key ID: 0x2345b203
2647 -------------- next part --------------
2648 A non-text attachment was scrubbed...
2649 Name: signature.asc
2650 Type: application/pgp-signature
2651 Size: 902 bytes
2652 Desc: not available
2653 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091103/9af3a0f4/attachment.bin>
2654
2655 From mailinglist@flasht.de Tue Nov 3 11:31:25 2009
2656 From: mailinglist@flasht.de (Christopher Bertels)
2657 Date: Tue, 03 Nov 2009 17:31:25 +0100
2658 Subject: [sup-talk] Completion for search queries
2659 In-Reply-To: <1257177490-sup-4126@masanjin.net>
2660 References: <1256199860-sup-4407@thinkpad-ubuntu>
2661 <1257177490-sup-4126@masanjin.net>
2662 Message-ID: <1257265840-sup-9752@thinkpad-ubuntu>
2663
2664 Excerpts from William Morgan's message of Mo Nov 02 16:58:45 +0100 2009:
2665 > Reformatted excerpts from Christopher Bertels's message of 2009-10-22:
2666 > > Anyone else who would like to have this feature in sup?
2667 >
2668 > Sounds good to me. Probably wouldn't be too hard since we have a fairly
2669 > general tab-completion mechanism in place already.
2670
2671 Cool, anyone who knows how & wants to implement this? ;)
2672 --
2673 ================================
2674 Christopher Bertels
2675 http://www.adztec-independent.de
2676 GPG Key ID: 0x2345b203
2677 -------------- next part --------------
2678 A non-text attachment was scrubbed...
2679 Name: signature.asc
2680 Type: application/pgp-signature
2681 Size: 835 bytes
2682 Desc: not available
2683 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091103/012a1929/attachment.bin>
2684
2685 From wmorgan-sup@masanjin.net Tue Nov 3 12:16:32 2009
2686 From: wmorgan-sup@masanjin.net (William Morgan)
2687 Date: Tue, 03 Nov 2009 09:16:32 -0800
2688 Subject: [sup-talk] [PATCH] detect and set charset on text/* attachments
2689 In-Reply-To: <1255961127-sup-3168@tihlde.org>
2690 References: <1255961127-sup-3168@tihlde.org>
2691 Message-ID: <1257264198-sup-8152@masanjin.net>
2692
2693 Reformatted excerpts from Helge Titlestad's message of 2009-10-19:
2694 > I got some feedback from non-suppers that my utf-8 text attachments
2695 > were messed up. When I checked they (the MIME headers) lacked any info
2696 > on charset, which I believe should be set for text/*.
2697
2698 After reviewing the RFCs, yeah, I think you're basically right. The
2699 charset parameter is not required to be set for text/* mime types, but
2700 if it's unset, the part is assumed to be us-ascii.
2701
2702 > Here's a patch that uses the chardet gem to (try to) detect the
2703 > appropriate charset and sets it in the Content-Type header.
2704
2705 Although I don't relish adding yet another gem dependency, I think this
2706 is the right approach.
2707
2708 It looks like the chardet gem is unmaintained. But someone decided to
2709 make their own special version called rchardet which is completely
2710 equivalent version but *is* maintained. (What is it with these goddamn
2711 ruby people.)
2712
2713 I suggest we use rchardet instead of chardet. Would you like to change
2714 the patch? If not, I will get to it at some point.
2715
2716 > Please tell me if I should use some different way of sending
2717 > patches... This git flow is a bit new to me. (=
2718
2719 Nope, this is perfect. Thanks!
2720 --
2721 William <wmorgan-sup at masanjin.net>
2722
2723 From wmorgan-sup@masanjin.net Tue Nov 3 12:25:29 2009
2724 From: wmorgan-sup@masanjin.net (William Morgan)
2725 Date: Tue, 03 Nov 2009 09:25:29 -0800
2726 Subject: [sup-talk] Choosing a bug tracker for Sup
2727 In-Reply-To: <20091103162047.GD2963@pineapple.q.wohnheim-jahnplatz.de>
2728 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
2729 <02055f053011496a2dcb9085b7e7535f@localhost>
2730 <1257261315-sup-977@masanjin.net>
2731 <20091103162047.GD2963@pineapple.q.wohnheim-jahnplatz.de>
2732 Message-ID: <1257268977-sup-4810@masanjin.net>
2733
2734 Reformatted excerpts from Sebastian Schwarz's message of 2009-11-03:
2735 > Moreover I'd like to advertise/suggest [Roundup][1]. Apart form a slim
2736 > web interface -- [here][2] Python's issue tracker as an example -- it
2737 > also offers a fully functional [email interface][3], which allows --
2738 > from what I understand -- creating, discussing and setting properties
2739 > like status and labels of issues.
2740
2741 Nicolas suggested this too. I tried installing it locally (late on a
2742 Sunday night, with a screaming infant in my ear) and couldn't get it to
2743 behave. But, bugs.python.org looks great, and it looks like they're using
2744 email to discuss and change issue state, which is awesome. I'll give it
2745 another shot.
2746 --
2747 William <wmorgan-sup at masanjin.net>
2748
2749 From wmorgan-sup@masanjin.net Tue Nov 3 12:35:34 2009
2750 From: wmorgan-sup@masanjin.net (William Morgan)
2751 Date: Tue, 03 Nov 2009 09:35:34 -0800
2752 Subject: [sup-talk] Completion for search queries
2753 In-Reply-To: <1257265840-sup-9752@thinkpad-ubuntu>
2754 References: <1256199860-sup-4407@thinkpad-ubuntu>
2755 <1257177490-sup-4126@masanjin.net>
2756 <1257265840-sup-9752@thinkpad-ubuntu>
2757 Message-ID: <1257269366-sup-159@masanjin.net>
2758
2759 Reformatted excerpts from Christopher Bertels's message of 2009-11-03:
2760 > Cool, anyone who knows how & wants to implement this? ;)
2761
2762 If anyone is interested, I would suggest this approach: have each index
2763 (Ferret and Xapian) have a method that returns a list of query terms,
2764 and then look at how BufferManager#ask_many_emails_with_completions
2765 works, and implement something similar called ask_for_search_query or
2766 the like. Then have bin/sup circa line 275 call that instead of #ask.
2767 --
2768 William <wmorgan-sup at masanjin.net>
2769
2770 From danfalcone@gmail.com Tue Nov 3 12:37:22 2009
2771 From: danfalcone@gmail.com (Dan Falcone)
2772 Date: Tue, 3 Nov 2009 13:37:22 -0400
2773 Subject: [sup-talk] Choosing a bug tracker for Sup
2774 In-Reply-To: <1257268977-sup-4810@masanjin.net>
2775 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
2776 <02055f053011496a2dcb9085b7e7535f@localhost>
2777 <1257261315-sup-977@masanjin.net>
2778 <20091103162047.GD2963@pineapple.q.wohnheim-jahnplatz.de>
2779 <1257268977-sup-4810@masanjin.net>
2780 Message-ID: <ed5557340911030937u7f36b4e7p21415f532aac395d@mail.gmail.com>
2781
2782 Hi all,
2783
2784 Thought I'd chime in regarding RT. I've never configured it, but we use it
2785 internally where I work, so I can comment on it from a user perspective. I
2786 mainly use the email interface, which is very finicky. If you include
2787 attachments that are too large, RT will ignore your message and will not
2788 attach it to an existing ticket or open a new ticket. Our instance is well
2789 known to modify attachments (changing the md5sums), which causes all kinds
2790 of problems for us. Maybe this part is user error, but it also sends 2
2791 copies of every message and doesn't always CC everyone on the ticket when it
2792 is supposed to. So you either get 2 copies of each email, or zero. Either
2793 way it sucks. We have lots of processes in place to work around the issues
2794 RT creates for us. Basically the only reason we use it is for archival
2795 purposes.
2796
2797 Again, I did not install and do not administer this instance, so there could
2798 be configuration issues or possibly newer versions that address these
2799 shortcomings. However, given my past experience, I wouldn't recommend it.
2800
2801 -Dan
2802
2803 On Tue, Nov 3, 2009 at 1:25 PM, William Morgan <wmorgan-sup at masanjin.net>wrote:
2804
2805 > Reformatted excerpts from Sebastian Schwarz's message of 2009-11-03:
2806 > > Moreover I'd like to advertise/suggest [Roundup][1]. Apart form a slim
2807 > > web interface -- [here][2] Python's issue tracker as an example -- it
2808 > > also offers a fully functional [email interface][3], which allows --
2809 > > from what I understand -- creating, discussing and setting properties
2810 > > like status and labels of issues.
2811 >
2812 > Nicolas suggested this too. I tried installing it locally (late on a
2813 > Sunday night, with a screaming infant in my ear) and couldn't get it to
2814 > behave. But, bugs.python.org looks great, and it looks like they're using
2815 > email to discuss and change issue state, which is awesome. I'll give it
2816 > another shot.
2817 > --
2818 > William <wmorgan-sup at masanjin.net>
2819 > _______________________________________________
2820 > sup-talk mailing list
2821 > sup-talk at rubyforge.org
2822 > http://rubyforge.org/mailman/listinfo/sup-talk
2823 >
2824 -------------- next part --------------
2825 An HTML attachment was scrubbed...
2826 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091103/2c2cb645/attachment.html>
2827
2828 From daemianmack@gmail.com Tue Nov 3 12:03:38 2009
2829 From: daemianmack@gmail.com (Daemian Mack)
2830 Date: Tue, 03 Nov 2009 12:03:38 -0500
2831 Subject: [sup-talk] Choosing a bug tracker for Sup
2832 In-Reply-To: <20091103162047.GD2963@pineapple.q.wohnheim-jahnplatz.de>
2833 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
2834 <02055f053011496a2dcb9085b7e7535f@localhost>
2835 <1257261315-sup-977@masanjin.net>
2836 <20091103162047.GD2963@pineapple.q.wohnheim-jahnplatz.de>
2837 Message-ID: <1257266599-sup-1535@lenin>
2838
2839 Excerpts from Sebastian Schwarz's message of Tue Nov 03 11:20:47 -0500 2009:
2840 > > RT doesn't come with a formal, formatted users or administrators
2841 > > guide, but it's likely most of what you need to know to use and run it
2842 > > is contained somewhere within this wiki, so look around a little, be
2843 > > patient... and try not to install RT on a Sunday night when you need
2844 > > to run it in production on Monday: it's big, and learning how to set
2845 > > it up can take some time.
2846 >
2847 > Can anyone with more experience with RT comment on this?
2848
2849 Having evaluated RT3 for fairly-intense production use at a prior
2850 job, I can't really say I'd recommend it for our use here. As an
2851 'enterprise-ready' solution, it's a bit ungainly out of the box, and
2852 the bulk of its feature-set would probably be overkill for sup's
2853 needs. It makes heavy use of the 'departmental queue' model whereby
2854 many departments, consisting each of many employees, have some
2855 permission set for many queues. Customization was a bit opaque (though
2856 perhaps less so if you're very familiar with Perl), and though there's
2857 an O'Reilly book for RT, I found it often fell short of my needs.
2858
2859 I'd suspect, with the glut of ticket-tracker software available,
2860 there's something a good deal better-suited for sup out there. I'll
2861 chime in again if I manage to find something that seems helpful.
2862 --
2863 http://daemianmack.com/
2864
2865
2866 From wmorgan-sup@masanjin.net Tue Nov 3 13:04:26 2009
2867 From: wmorgan-sup@masanjin.net (William Morgan)
2868 Date: Tue, 03 Nov 2009 10:04:26 -0800
2869 Subject: [sup-talk] Choosing a bug tracker for Sup
2870 In-Reply-To: <20091103164953.GA20359@ateb.com>
2871 References: <afd0a1d89ddee05080dcaf20f03bdefa@localhost>
2872 <20091103164953.GA20359@ateb.com>
2873 Message-ID: <1257271383-sup-3116@masanjin.net>
2874
2875 Reformatted excerpts from Reid Thompson's message of 2009-11-03:
2876 > I just started looking at it, so not sure if it fits all needs but
2877 > fossil has a built in bugtracker
2878 >
2879 > http://www.fossil-scm.org/index.html/doc/tip/www/index.wiki
2880
2881 Is it possible to use the bug tracker without keeping all the code in
2882 Fossil itself? My impression is no. I'm very happy with git and
2883 changing development to a brand new SCM is extremely unlikely to happen
2884 at this point.
2885 --
2886 William <wmorgan-sup at masanjin.net>
2887
2888 From pioto@pioto.org Tue Nov 3 13:06:52 2009
2889 From: pioto@pioto.org (Mike Kelly)
2890 Date: Tue, 03 Nov 2009 13:06:52 -0500
2891 Subject: [sup-talk] Choosing a bug tracker for Sup
2892 In-Reply-To: <1257266599-sup-1535@lenin>
2893 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
2894 <02055f053011496a2dcb9085b7e7535f@localhost>
2895 <1257261315-sup-977@masanjin.net>
2896 <20091103162047.GD2963@pineapple.q.wohnheim-jahnplatz.de>
2897 <1257266599-sup-1535@lenin>
2898 Message-ID: <3e1dd7cf334013e45e4e161e3ff512a4@localhost>
2899
2900
2901 On Tue, 03 Nov 2009 12:03:38 -0500, Daemian Mack <daemianmack at gmail.com>
2902 wrote:
2903 > Having evaluated RT3 for fairly-intense production use at a prior
2904 > job, I can't really say I'd recommend it for our use here.
2905 >
2906 > I'd suspect, with the glut of ticket-tracker software available,
2907 > there's something a good deal better-suited for sup out there. I'll
2908 > chime in again if I manage to find something that seems helpful.
2909
2910 Yes, feel free to ignore me. It's a pain in the butt to get going. :p
2911
2912 On the hopefully-less-sucky front, there's Bugzilla. There is apparently a
2913 plugin for it that lets you reply to tickets by email, but I haven't set it
2914 up myself.
2915
2916 But, I'm a perl guy, so I'm likely highly biased... :)
2917
2918 --
2919 Mike Kelly
2920
2921 From wmorgan-sup@masanjin.net Tue Nov 3 13:14:37 2009
2922 From: wmorgan-sup@masanjin.net (William Morgan)
2923 Date: Tue, 03 Nov 2009 10:14:37 -0800
2924 Subject: [sup-talk] slowly catching up
2925 In-Reply-To: <1257146774-sup-9810@tilus.net>
2926 References: <1256997213-sup-2725@masanjin.net> <1257146774-sup-9810@tilus.net>
2927 Message-ID: <1257272059-sup-9800@masanjin.net>
2928
2929 Reformatted excerpts from Tero Tilus's message of 2009-11-01:
2930 > Congratulations! Take your time. Your family needs it now.
2931 >
2932 > I've got two lovely kids, having the first one is a very special
2933 > thing.
2934
2935 Thanks guys. It's been great so far.
2936 --
2937 William <wmorgan-sup at masanjin.net>
2938
2939 From tero@tilus.net Tue Nov 3 13:33:04 2009
2940 From: tero@tilus.net (Tero Tilus)
2941 Date: Tue, 03 Nov 2009 20:33:04 +0200
2942 Subject: [sup-talk] Choosing a bug tracker for Sup
2943 In-Reply-To: <20091103162047.GD2963@pineapple.q.wohnheim-jahnplatz.de>
2944 References: <1257111816-sup-4397@peray> <1257169654-sup-6224@masanjin.net>
2945 <02055f053011496a2dcb9085b7e7535f@localhost>
2946 <1257261315-sup-977@masanjin.net>
2947 <20091103162047.GD2963@pineapple.q.wohnheim-jahnplatz.de>
2948 Message-ID: <1257272880-sup-941@tilus.net>
2949
2950 Sebastian Schwarz, 2009-11-03 18:20:
2951 > Moreover I'd like to advertise/suggest [Roundup][1].
2952
2953 Now that you mention it, I've used it in couple of projects and liked
2954 very much.
2955
2956 > As a note on the ease of installation: Roundup's [documentation on
2957 > installation][4] begins with: "Set aside 15-30 minutes." But again
2958 > I have no personal experience to back this claim up. Can anyone
2959 > comment on this or Roundup in general?
2960
2961 I've set it up once long time ago and I don't remember anything about
2962 it really. Installation was fluent I guess. ;)
2963
2964 Another one I like is Redmine, but its whole a lot different kind of
2965 tool, nice and fluent tho. It also might do pretty much what we want,
2966 but I'd guess Roundup does it with less tuning and pluginnig.
2967
2968 --
2969 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
2970
2971 From wmorgan-sup@masanjin.net Tue Nov 3 14:00:39 2009
2972 From: wmorgan-sup@masanjin.net (William Morgan)
2973 Date: Tue, 03 Nov 2009 11:00:39 -0800
2974 Subject: [sup-talk] new list: sup-devel
2975 Message-ID: <1257272092-sup-9031@masanjin.net>
2976
2977 Hi all,
2978
2979 I've created a new list for Sup developer discussion. This has been
2980 requested a couple times, and I finally think the traffic level warrants
2981 it.
2982
2983 If you're interested, please subscribe here:
2984
2985 http://rubyforge.org/mailman/listinfo/sup-devel
2986
2987 I'm not going to be too strict about it, and we can finish up the bug
2988 tracker conversation here, but I would like sup-talk to eventually be a
2989 place for user questions and discussions, and for future conversations
2990 about code, bugs, bug trackers, etc to talk place over there.
2991
2992 I'm going to change the bug report email address in 0.9.1 to sup-devel
2993 as well. (And hopefully to a URL in 0.10.)
2994 --
2995 William <wmorgan-sup at masanjin.net>
2996
2997 From helgedt@tihlde.org Tue Nov 3 14:23:28 2009
2998 From: helgedt@tihlde.org (Helge Titlestad)
2999 Date: Tue, 03 Nov 2009 20:23:28 +0100
3000 Subject: [sup-talk] [PATCH] detect and set charset on text/* attachments
3001 In-Reply-To: <1257264198-sup-8152@masanjin.net>
3002 References: <1255961127-sup-3168@tihlde.org> <1257264198-sup-8152@masanjin.net>
3003 Message-ID: <1257275607-sup-583@tihlde.org>
3004
3005 Excerpts from William Morgan's message of Tue Nov 03 18:16:32 +0100 2009:
3006 > It looks like the chardet gem is unmaintained. But someone decided to
3007 > make their own special version called rchardet which is completely
3008 > equivalent version but *is* maintained.
3009 >
3010 > I suggest we use rchardet instead of chardet. Would you like to change
3011 > the patch? If not, I will get to it at some point.
3012
3013 Here you go!
3014
3015 One thing I noticed when trying it out: It will set charset 'ascii' for ascii
3016 text, which is allowed by the RFC but "US-ASCII" is preferred. I think I prefer
3017 to not create a special case in the code to change it to US-ASCII or remove the
3018 charset for ascii text, but other people might disagree.
3019 --
3020 alge
3021 -------------- next part --------------
3022 A non-text attachment was scrubbed...
3023 Name: 0001-Detect-charset-for-text-file-attachments.patch
3024 Type: application/octet-stream
3025 Size: 1919 bytes
3026 Desc: not available
3027 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091103/bcbaa6d8/attachment.obj>
3028
3029 From reid.thompson@ateb.com Tue Nov 3 14:30:23 2009
3030 From: reid.thompson@ateb.com (Reid Thompson)
3031 Date: Tue, 03 Nov 2009 14:30:23 -0500
3032 Subject: [sup-talk] Choosing a bug tracker for Sup
3033 In-Reply-To: <1257271383-sup-3116@masanjin.net>
3034 References: <afd0a1d89ddee05080dcaf20f03bdefa@localhost>
3035 <20091103164953.GA20359@ateb.com> <1257271383-sup-3116@masanjin.net>
3036 Message-ID: <1257276623.6780.4.camel@raker.ateb.com>
3037
3038 On Tue, 2009-11-03 at 10:04 -0800, William Morgan wrote:
3039 > Is it possible to use the bug tracker without keeping all the code in
3040 > Fossil itself?
3041
3042 I just created an empty repository. Contains no source code files.
3043
3044 $ fossil new bugtracker-only
3045 $ fossil open bugtracker-only
3046 $ ls -rlt /tmp/bugtracker-only
3047 -rw-r--r-- 1 rthompso staff 50176 2009-11-03 14:23 /tmp/bugtracker-only
3048
3049 $ fossil ui
3050
3051 did minimal admin/config -> http://localhost:8080/setup_config
3052 then added tickets etc, looks like the data entry is free-form, so not
3053 tied to a source version existing etc.
3054
3055 attached png.
3056
3057
3058 -------------- next part --------------
3059 A non-text attachment was scrubbed...
3060 Name: TestBugTrackerOnly.png
3061 Type: image/png
3062 Size: 127986 bytes
3063 Desc: not available
3064 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091103/fc6d6f50/attachment-0001.png>
3065
3066 From jim@gonzul.net Tue Nov 3 18:11:31 2009
3067 From: jim@gonzul.net (Jim Cheetham)
3068 Date: Wed, 4 Nov 2009 12:11:31 +1300
3069 Subject: [sup-talk] Choosing a bug tracker for Sup
3070 In-Reply-To: <1257111816-sup-4397@peray>
3071 References: <1257111816-sup-4397@peray>
3072 Message-ID: <f4cc59760911031511m7f99a4bck4d9b31f4aa7704e2@mail.gmail.com>
3073
3074 On Mon, Nov 2, 2009 at 10:52 AM, Nicolas Pouillard
3075 <nicolas.pouillard at gmail.com> wrote:
3076 > I would like to discuss more the issue of choosing a bug tracker for sup.
3077
3078 Having had a quick read of this thread, I think that trac
3079 (http://trac.edgewall.com) would meet your goals.
3080
3081 It's a simple single-project combination of wiki, ticketing engine and
3082 repository browser. Tickets can be received by email, ticket updates
3083 can be emailed to a set of interested subscribers, and checkins to the
3084 repository can close tickets (via simple hooks). The wiki markup
3085 provides simple access to changes, tickets & files.
3086
3087 -jim
3088
3089 From pioto@pioto.org Tue Nov 3 19:07:24 2009
3090 From: pioto@pioto.org (Mike Kelly)
3091 Date: Tue, 3 Nov 2009 19:07:24 -0500
3092 Subject: [sup-talk] Choosing a bug tracker for Sup
3093 In-Reply-To: <f4cc59760911031511m7f99a4bck4d9b31f4aa7704e2@mail.gmail.com>
3094 References: <1257111816-sup-4397@peray>
3095 <f4cc59760911031511m7f99a4bck4d9b31f4aa7704e2@mail.gmail.com>
3096 Message-ID: <20091103190724.1dd5d891@aether.home.pioto.org>
3097
3098 On Wed, 4 Nov 2009 12:11:31 +1300
3099 Jim Cheetham <jim at gonzul.net> wrote:
3100
3101 > On Mon, Nov 2, 2009 at 10:52 AM, Nicolas Pouillard
3102 > <nicolas.pouillard at gmail.com> wrote:
3103 > > I would like to discuss more the issue of choosing a bug tracker
3104 > > for sup.
3105 >
3106 > Having had a quick read of this thread, I think that trac
3107 > (http://trac.edgewall.com) would meet your goals.
3108 >
3109 > It's a simple single-project combination of wiki, ticketing engine and
3110 > repository browser. Tickets can be received by email, ticket updates
3111 > can be emailed to a set of interested subscribers, and checkins to the
3112 > repository can close tickets (via simple hooks). The wiki markup
3113 > provides simple access to changes, tickets & files.
3114
3115 Trac doesn't really allow you to reply to tickets by email. At least,
3116 not with any plugin that I've used.
3117
3118 Also, I've used trac for years for another project, and I wouldn't
3119 recommend it. (It's been a memory hog, among other things).
3120
3121 --
3122 Mike Kelly
3123
3124 From pi+sup@pihost.us Tue Nov 3 22:05:19 2009
3125 From: pi+sup@pihost.us (Anthony Martinez)
3126 Date: Tue, 3 Nov 2009 20:05:19 -0700
3127 Subject: [sup-talk] [PATCH] If we have a COLUMNS environment variable,
3128 wrap to that instead of 80.
3129 Message-ID: <1257303919-30524-1-git-send-email-pi+sup@pihost.us>
3130
3131 From: Anthony Martinez <pi at pihost.us>
3132
3133 I find that this provides a much smoother terminal experience,
3134 especially with dumped HTML output. At least on Linux+zsh, this
3135 environment variable is automatically updated, and if it doesn't exist,
3136 sup will continue to happily default to 80.
3137 ---
3138 lib/sup/message-chunks.rb | 2 +-
3139 1 files changed, 1 insertions(+), 1 deletions(-)
3140
3141 diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
3142 index 581b707..881ac4b 100644
3143 --- a/lib/sup/message-chunks.rb
3144 +++ b/lib/sup/message-chunks.rb
3145 @@ -41,7 +41,7 @@ end
3146
3147 module Redwood
3148 module Chunk
3149 - WRAP_LEN = 80 # wrap messages and text attachments at this width
3150 + WRAP_LEN = ENV["COLUMNS"] || 80 # wrap messages and text attachments at this width
3151
3152 class Attachment
3153 HookManager.register "mime-decode", <<EOS
3154 --
3155 1.6.5
3156
3157
3158 From pi+sup@pihost.us Tue Nov 3 22:22:24 2009
3159 From: pi+sup@pihost.us (Anthony Martinez)
3160 Date: Tue, 03 Nov 2009 20:22:24 -0700
3161 Subject: [sup-talk] [PATCH] If we have a COLUMNS environment variable,
3162 wrap to that instead of 80.
3163 In-Reply-To: <1257303919-30524-1-git-send-email-pi+sup@pihost.us>
3164 References: <1257303919-30524-1-git-send-email-pi+sup@pihost.us>
3165 Message-ID: <1257304795-sup-5302@home.mrtheplague.net>
3166
3167 Excerpts from Anthony Martinez's message of Tue Nov 03 20:05:19 -0700 2009:
3168 > I find that this provides a much smoother terminal experience,
3169 Or it would if I tested it. Sorry about the bad patch, seems today isn't my day.
3170 :)
3171
3172 Either way, I'd like to see something like this. Discussion?
3173
3174 From pi+sup@pihost.us Tue Nov 3 22:51:46 2009
3175 From: pi+sup@pihost.us (Anthony Martinez)
3176 Date: Tue, 03 Nov 2009 20:51:46 -0700
3177 Subject: [sup-talk] [CORRECTED PATCH] If we can get the terminal width,
3178 use that for WRAP_LEN.
3179 In-Reply-To: <1257303919-30524-1-git-send-email-pi+sup@pihost.us>
3180 References: <1257303919-30524-1-git-send-email-pi+sup@pihost.us>
3181 Message-ID: <1257306460-sup-1506@home.mrtheplague.net>
3182
3183 I find that this provides a much smoother terminal experience,
3184 especially with elinks configured to dump to the same size in hook
3185 scripts.
3186
3187 At least on Linux, "stty size"'s second numerical output is the number
3188 of columns, and if that fails somehow, sup will continue to happily
3189 default to 80.
3190 ---
3191 lib/sup/message-chunks.rb | 3 ++-
3192 1 files changed, 2 insertions(+), 1 deletions(-)
3193
3194 diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
3195 index 581b707..56ddf1e 100644
3196 --- a/lib/sup/message-chunks.rb
3197 +++ b/lib/sup/message-chunks.rb
3198 @@ -41,7 +41,8 @@ end
3199
3200 module Redwood
3201 module Chunk
3202 - WRAP_LEN = 80 # wrap messages and text attachments at this width
3203 + TERM_WIDTH = `stty size 2>/dev/null`.split[1].to_i # to_i returns 0 if it fails.
3204 + WRAP_LEN = TERM_WIDTH > 0 && TERM_WIDTH || 80 # wrap messages and text attachments at this width
3205
3206 class Attachment
3207 HookManager.register "mime-decode", <<EOS
3208
3209 From tero@tilus.net Wed Nov 4 00:48:51 2009
3210 From: tero@tilus.net (Tero Tilus)
3211 Date: Wed, 04 Nov 2009 07:48:51 +0200
3212 Subject: [sup-talk] [PATCH] If we have a COLUMNS environment variable,
3213 wrap to that instead of 80.
3214 In-Reply-To: <1257304795-sup-5302@home.mrtheplague.net>
3215 References: <1257303919-30524-1-git-send-email-pi+sup@pihost.us>
3216 <1257304795-sup-5302@home.mrtheplague.net>
3217 Message-ID: <1257313462-sup-7125@tilus.net>
3218
3219 Anthony Martinez, 2009-11-04 05:22:
3220 > Either way, I'd like to see something like this. Discussion?
3221
3222 Dunno why, but I myself rarely use terms wider (or narrower) than 80
3223 chars. This could be nice for people who do.
3224
3225 --
3226 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
3227
3228 From michael+sup@stapelberg.de Wed Nov 4 04:38:20 2009
3229 From: michael+sup@stapelberg.de (Michael Stapelberg)
3230 Date: Wed, 04 Nov 2009 10:38:20 +0100
3231 Subject: [sup-talk] Choosing a bug tracker for Sup
3232 In-Reply-To: <20091103190724.1dd5d891@aether.home.pioto.org>
3233 References: <1257111816-sup-4397@peray>
3234 <f4cc59760911031511m7f99a4bck4d9b31f4aa7704e2@mail.gmail.com>
3235 <20091103190724.1dd5d891@aether.home.pioto.org>
3236 Message-ID: <1257327410-sup-3421@midna.zekjur.net>
3237
3238 Hi,
3239
3240 Excerpts from Mike Kelly's message of Mi Nov 04 01:07:24 +0100 2009:
3241 > Also, I've used trac for years for another project, and I wouldn't
3242 > recommend it. (It's been a memory hog, among other things).
3243 I?ve also used trac for quite some time now and I don?t recommend it
3244 either. As soon as the spammers find your website, problems start. trac
3245 has no built-in possibility to delete a comment/ticket, nor do any of
3246 the anti-spam plugins work as they should (either they don?t recognize
3247 spam, they have false-positives or they are totally cumbersome for the
3248 user).
3249
3250 Best regards,
3251 Michael
3252
3253 From isra@herraiz.org Wed Nov 4 04:44:02 2009
3254 From: isra@herraiz.org (Israel Herraiz)
3255 Date: Wed, 04 Nov 2009 10:44:02 +0100
3256 Subject: [sup-talk] Choosing a bug tracker for Sup
3257 In-Reply-To: <1257327410-sup-3421@midna.zekjur.net>
3258 References: <1257111816-sup-4397@peray>
3259 <f4cc59760911031511m7f99a4bck4d9b31f4aa7704e2@mail.gmail.com>
3260 <20091103190724.1dd5d891@aether.home.pioto.org>
3261 <1257327410-sup-3421@midna.zekjur.net>
3262 Message-ID: <1257327692-sup-7174@elly>
3263
3264 Excerpts from Michael Stapelberg's message of Wed Nov 04 10:38:20 +0100 2009:
3265 > I?ve also used trac for quite some time now and I don?t recommend it
3266 > either. As soon as the spammers find your website, problems start. trac
3267 > has no built-in possibility to delete a comment/ticket, nor do any of
3268 > the anti-spam plugins work as they should (either they don?t recognize
3269 > spam, they have false-positives or they are totally cumbersome for the
3270 > user).
3271
3272 I am not going to recommend Trac, because it does not fulfill the
3273 requirements listed by William, but that thing you say is simply not
3274 true.
3275
3276 I have been using Trac since a couple of years now, and it is sensible
3277 to spam, ok, but you can always delete comments, tickets, or anything
3278 in general, and force people to register to post comments or tickets,
3279 to fight against spam.
3280
3281 Cheers,
3282 Israel
3283
3284 From michael+sup@stapelberg.de Wed Nov 4 05:00:43 2009
3285 From: michael+sup@stapelberg.de (Michael Stapelberg)
3286 Date: Wed, 04 Nov 2009 11:00:43 +0100
3287 Subject: [sup-talk] Choosing a bug tracker for Sup
3288 In-Reply-To: <1257327692-sup-7174@elly>
3289 References: <1257111816-sup-4397@peray>
3290 <f4cc59760911031511m7f99a4bck4d9b31f4aa7704e2@mail.gmail.com>
3291 <20091103190724.1dd5d891@aether.home.pioto.org>
3292 <1257327410-sup-3421@midna.zekjur.net> <1257327692-sup-7174@elly>
3293 Message-ID: <1257328487-sup-8593@midna.zekjur.net>
3294
3295 Hi,
3296
3297 Excerpts from Israel Herraiz's message of Mi Nov 04 10:44:02 +0100 2009:
3298 > I have been using Trac since a couple of years now, and it is sensible
3299 > to spam, ok, but you can always delete comments, tickets, or anything
3300 I am referring to trac 0.11.5, which does not have a possibility to delete
3301 comments or tickets without installing a third-party plugin (which is
3302 hard to use because you have to use ticket IDs). If I am wrong, please tell me
3303 where they hid the possibility, so I don?t need the plugin anymore.
3304
3305 > in general, and force people to register to post comments or tickets,
3306 > to fight against spam.
3307 I consider forcing people to register to post comments/tickets as the end of
3308 bug reports for my project. I personally would only register at a bugtracker if
3309 the bug was *really* important and there would be *no* other possibility to
3310 contact the author of the software. However, I want to get every bugreport for
3311 my software and thus lower the requirements for users to actually help me
3312 improve my software by submitting bugreports.
3313
3314 Best regards,
3315 Michael
3316
3317 From isra@herraiz.org Wed Nov 4 05:05:45 2009
3318 From: isra@herraiz.org (Israel Herraiz)
3319 Date: Wed, 04 Nov 2009 11:05:45 +0100
3320 Subject: [sup-talk] Choosing a bug tracker for Sup
3321 In-Reply-To: <1257328487-sup-8593@midna.zekjur.net>
3322 References: <1257111816-sup-4397@peray>
3323 <f4cc59760911031511m7f99a4bck4d9b31f4aa7704e2@mail.gmail.com>
3324 <20091103190724.1dd5d891@aether.home.pioto.org>
3325 <1257327410-sup-3421@midna.zekjur.net> <1257327692-sup-7174@elly>
3326 <1257328487-sup-8593@midna.zekjur.net>
3327 Message-ID: <1257328897-sup-4720@elly>
3328
3329 Excerpts from Michael Stapelberg's message of Wed Nov 04 11:00:43 +0100 2009:
3330 > I am referring to trac 0.11.5, which does not have a possibility to delete
3331 > comments or tickets without installing a third-party plugin (which is
3332 > hard to use because you have to use ticket IDs). If I am wrong, please tell me
3333 > where they hid the possibility, so I don?t need the plugin anymore.
3334
3335 Check the *_ADMIN permissions. Any user with say TICKET_ADMIN
3336 permission can remove tickets. Same applies to WIKI_ADMIN (remove wiki
3337 pages), etc.
3338
3339 > I consider forcing people to register to post comments/tickets as the end of
3340 > bug reports for my project. I personally would only register at a bugtracker if
3341 > the bug was *really* important and there would be *no* other possibility to
3342 > contact the author of the software. However, I want to get every bugreport for
3343 > my software and thus lower the requirements for users to actually help me
3344 > improve my software by submitting bugreports.
3345
3346 Right. It is not the best elegant solution at all.
3347
3348 Cheers,
3349 Israel
3350
3351 From marka@pobox.com Wed Nov 4 14:06:01 2009
3352 From: marka@pobox.com (Mark Alexander)
3353 Date: Wed, 04 Nov 2009 14:06:01 -0500
3354 Subject: [sup-talk] [PATCH] If we have a COLUMNS environment variable,
3355 wrap to that instead of 80.
3356 In-Reply-To: <1257303919-30524-1-git-send-email-pi+sup@pihost.us>
3357 References: <1257303919-30524-1-git-send-email-pi+sup@pihost.us>
3358 Message-ID: <1257361498-sup-7950@r50p>
3359
3360 Excerpts from Anthony Martinez's message of Tue Nov 03 22:05:19 -0500 2009:
3361 > + WRAP_LEN = ENV["COLUMNS"] || 80 # wrap messages and text attachments at this width
3362
3363 How about using Ncurses.cols? That's what I did in a similar patch on
3364 my copy of sup.
3365
3366 From isra@herraiz.org Wed Nov 4 18:40:22 2009
3367 From: isra@herraiz.org (Israel Herraiz)
3368 Date: Thu, 05 Nov 2009 00:40:22 +0100
3369 Subject: [sup-talk] Choosing a bug tracker for Sup
3370 In-Reply-To: <1257328897-sup-4720@elly>
3371 References: <1257111816-sup-4397@peray>
3372 <f4cc59760911031511m7f99a4bck4d9b31f4aa7704e2@mail.gmail.com>
3373 <20091103190724.1dd5d891@aether.home.pioto.org>
3374 <1257327410-sup-3421@midna.zekjur.net> <1257327692-sup-7174@elly>
3375 <1257328487-sup-8593@midna.zekjur.net> <1257328897-sup-4720@elly>
3376 Message-ID: <1257377988-sup-7526@elly>
3377
3378 Excerpts from Israel Herraiz's message of Wed Nov 04 11:05:45 +0100 2009:
3379 > Check the *_ADMIN permissions. Any user with say TICKET_ADMIN
3380 > permission can remove tickets. Same applies to WIKI_ADMIN (remove wiki
3381 > pages), etc.
3382
3383 I am afraid I am wrong with this. Tickets can only be deleted by
3384 manipulating the database. So Michael was right.
3385
3386 Sorry for the noise.
3387
3388 Israel
3389
3390 From rlane@club.cc.cmu.edu Thu Nov 5 00:45:18 2009
3391 From: rlane@club.cc.cmu.edu (Rich Lane)
3392 Date: Wed, 4 Nov 2009 21:45:18 -0800
3393 Subject: [sup-talk] [PATCH 1/4] factor saving out of thread/message classes
3394 Message-ID: <1257399921-26813-1-git-send-email-rlane@club.cc.cmu.edu>
3395
3396 ---
3397 lib/sup/index.rb | 7 +++++++
3398 lib/sup/message.rb | 5 +----
3399 lib/sup/modes/thread-index-mode.rb | 2 +-
3400 lib/sup/thread.rb | 2 +-
3401 4 files changed, 10 insertions(+), 6 deletions(-)
3402
3403 diff --git a/lib/sup/index.rb b/lib/sup/index.rb
3404 index ff03f19..5d8d714 100644
3405 --- a/lib/sup/index.rb
3406 +++ b/lib/sup/index.rb
3407 @@ -172,6 +172,13 @@ class BaseIndex
3408 def parse_query s
3409 unimplemented
3410 end
3411 +
3412 + def save_thread t
3413 + t.each_dirty_message do |m|
3414 + update_message_state m
3415 + m.clear_dirty
3416 + end
3417 + end
3418 end
3419
3420 index_name = ENV['SUP_INDEX'] || $config[:index] || DEFAULT_INDEX
3421 diff --git a/lib/sup/message.rb b/lib/sup/message.rb
3422 index a147c42..95ae050 100644
3423 --- a/lib/sup/message.rb
3424 +++ b/lib/sup/message.rb
3425 @@ -182,11 +182,8 @@ class Message
3426 ## don't tempt me.
3427 def sanitize_message_id mid; mid.gsub(/(\s|[^\000-\177])+/, "")[0..254] end
3428
3429 - def save_state index
3430 - return unless @dirty
3431 - index.update_message_state self
3432 + def clear_dirty
3433 @dirty = false
3434 - true
3435 end
3436
3437 def has_label? t; @labels.member? t; end
3438 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
3439 index 12a76f9..370903a 100644
3440 --- a/lib/sup/modes/thread-index-mode.rb
3441 +++ b/lib/sup/modes/thread-index-mode.rb
3442 @@ -477,7 +477,7 @@ EOS
3443 BufferManager.say("Saving threads...") do |say_id|
3444 dirty_threads.each_with_index do |t, i|
3445 BufferManager.say "Saving modified thread #{i + 1} of #{dirty_threads.length}...", say_id
3446 - t.save_state Index
3447 + Index.save_thread t
3448 end
3449 end
3450 end
3451 diff --git a/lib/sup/thread.rb b/lib/sup/thread.rb
3452 index 2300305..3fdf1f6 100644
3453 --- a/lib/sup/thread.rb
3454 +++ b/lib/sup/thread.rb
3455 @@ -112,7 +112,7 @@ class Thread
3456
3457 def set_labels l; each { |m, *o| m && m.labels = l }; end
3458 def has_label? t; any? { |m, *o| m && m.has_label?(t) }; end
3459 - def save_state index; each { |m, *o| m && m.save_state(index) }; end
3460 + def each_dirty_message; each { |m, *o| m && m.dirty? && yield(m) }; end
3461
3462 def direct_participants
3463 map { |m, *o| [m.from] + m.to if m }.flatten.compact.uniq
3464 --
3465 1.6.4.2
3466
3467
3468 From rlane@club.cc.cmu.edu Thu Nov 5 00:45:19 2009
3469 From: rlane@club.cc.cmu.edu (Rich Lane)
3470 Date: Wed, 4 Nov 2009 21:45:19 -0800
3471 Subject: [sup-talk] [PATCH 2/4] async thread indexing
3472 In-Reply-To: <1257399921-26813-1-git-send-email-rlane@club.cc.cmu.edu>
3473 References: <1257399921-26813-1-git-send-email-rlane@club.cc.cmu.edu>
3474 Message-ID: <1257399921-26813-2-git-send-email-rlane@club.cc.cmu.edu>
3475
3476 ---
3477 bin/sup | 2 ++
3478 lib/sup/index.rb | 26 +++++++++++++++++++++++++-
3479 lib/sup/modes/thread-index-mode.rb | 2 +-
3480 3 files changed, 28 insertions(+), 2 deletions(-)
3481
3482 diff --git a/bin/sup b/bin/sup
3483 index 78c396a..910ff12 100755
3484 --- a/bin/sup
3485 +++ b/bin/sup
3486 @@ -142,6 +142,7 @@ Index.lock_interactively or exit
3487 begin
3488 Redwood::start
3489 Index.load
3490 + Index.start_sync_worker unless $opts[:no_threads]
3491
3492 $die = false
3493 trap("TERM") { |x| $die = true }
3494 @@ -335,6 +336,7 @@ ensure
3495
3496 HookManager.run "shutdown"
3497
3498 + Index.stop_sync_worker
3499 Redwood::finish
3500 stop_cursing
3501 Redwood::Logger.remove_all_sinks!
3502 diff --git a/lib/sup/index.rb b/lib/sup/index.rb
3503 index 5d8d714..1131ec7 100644
3504 --- a/lib/sup/index.rb
3505 +++ b/lib/sup/index.rb
3506 @@ -28,6 +28,8 @@ class BaseIndex
3507 def initialize dir=BASE_DIR
3508 @dir = dir
3509 @lock = Lockfile.new lockfile, :retries => 0, :max_age => nil
3510 + @sync_worker = nil
3511 + @sync_queue = Queue.new
3512 end
3513
3514 def lockfile; File.join @dir, "lock" end
3515 @@ -175,10 +177,32 @@ class BaseIndex
3516
3517 def save_thread t
3518 t.each_dirty_message do |m|
3519 - update_message_state m
3520 + if @sync_worker
3521 + @sync_queue << m
3522 + else
3523 + update_message_state m
3524 + end
3525 m.clear_dirty
3526 end
3527 end
3528 +
3529 + def start_sync_worker
3530 + @sync_worker = Redwood::reporting_thread('index sync') { run_sync_worker }
3531 + end
3532 +
3533 + def stop_sync_worker
3534 + return unless worker = @sync_worker
3535 + @sync_worker = nil
3536 + @sync_queue << :die
3537 + worker.join
3538 + end
3539 +
3540 + def run_sync_worker
3541 + while m = @sync_queue.deq
3542 + return if m == :die
3543 + update_message_state m
3544 + end
3545 + end
3546 end
3547
3548 index_name = ENV['SUP_INDEX'] || $config[:index] || DEFAULT_INDEX
3549 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
3550 index 370903a..d2b1651 100644
3551 --- a/lib/sup/modes/thread-index-mode.rb
3552 +++ b/lib/sup/modes/thread-index-mode.rb
3553 @@ -477,7 +477,7 @@ EOS
3554 BufferManager.say("Saving threads...") do |say_id|
3555 dirty_threads.each_with_index do |t, i|
3556 BufferManager.say "Saving modified thread #{i + 1} of #{dirty_threads.length}...", say_id
3557 - Index.save_thread t
3558 + Index.save_thread_async t
3559 end
3560 end
3561 end
3562 --
3563 1.6.4.2
3564
3565
3566 From rlane@club.cc.cmu.edu Thu Nov 5 00:45:20 2009
3567 From: rlane@club.cc.cmu.edu (Rich Lane)
3568 Date: Wed, 4 Nov 2009 21:45:20 -0800
3569 Subject: [sup-talk] [PATCH 3/4] immediate thread indexing
3570 In-Reply-To: <1257399921-26813-2-git-send-email-rlane@club.cc.cmu.edu>
3571 References: <1257399921-26813-1-git-send-email-rlane@club.cc.cmu.edu>
3572 <1257399921-26813-2-git-send-email-rlane@club.cc.cmu.edu>
3573 Message-ID: <1257399921-26813-3-git-send-email-rlane@club.cc.cmu.edu>
3574
3575 ---
3576 lib/sup/modes/inbox-mode.rb | 4 +++
3577 lib/sup/modes/thread-index-mode.rb | 40 +++++++++++++----------------------
3578 lib/sup/modes/thread-view-mode.rb | 7 ++++++
3579 3 files changed, 26 insertions(+), 25 deletions(-)
3580
3581 diff --git a/lib/sup/modes/inbox-mode.rb b/lib/sup/modes/inbox-mode.rb
3582 index 6c2244a..ad3a864 100644
3583 --- a/lib/sup/modes/inbox-mode.rb
3584 +++ b/lib/sup/modes/inbox-mode.rb
3585 @@ -42,6 +42,7 @@ class InboxMode < ThreadIndexMode
3586 cursor_thread.remove_label :inbox
3587 hide_thread cursor_thread
3588 regen_text
3589 + Index.save_thread thread
3590 end
3591
3592 def multi_archive threads
3593 @@ -58,6 +59,7 @@ class InboxMode < ThreadIndexMode
3594 hide_thread t
3595 end
3596 regen_text
3597 + threads.each { |t| Index.save_thread t }
3598 end
3599
3600 def read_and_archive
3601 @@ -74,6 +76,7 @@ class InboxMode < ThreadIndexMode
3602 cursor_thread.remove_label :inbox
3603 hide_thread cursor_thread
3604 regen_text
3605 + Index.save_thread thread
3606 end
3607
3608 def multi_read_and_archive threads
3609 @@ -94,6 +97,7 @@ class InboxMode < ThreadIndexMode
3610 regen_text
3611 end
3612
3613 + threads.each { |t| Index.save_thread t }
3614 end
3615
3616 def handle_unarchived_update sender, m
3617 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
3618 index d2b1651..bf3f646 100644
3619 --- a/lib/sup/modes/thread-index-mode.rb
3620 +++ b/lib/sup/modes/thread-index-mode.rb
3621 @@ -37,7 +37,6 @@ EOS
3622 k.add :toggle_spam, "Mark/unmark thread as spam", 'S'
3623 k.add :toggle_deleted, "Delete/undelete thread", 'd'
3624 k.add :kill, "Kill thread (never to be seen in inbox again)", '&'
3625 - k.add :save, "Save changes now", '$'
3626 k.add :jump_to_next_new, "Jump to next new thread", :tab
3627 k.add :reply, "Reply to latest message in a thread", 'r'
3628 k.add :reply_all, "Reply to all participants of the latest message in a thread", 'G'
3629 @@ -269,12 +268,14 @@ EOS
3630 UndoManager.register "toggling thread starred status", undo
3631 update_text_for_line curpos
3632 cursor_down
3633 + Index.save_thread t
3634 end
3635
3636 def multi_toggle_starred threads
3637 UndoManager.register "toggling #{threads.size.pluralize 'thread'} starred status",
3638 threads.map { |t| actually_toggle_starred t }
3639 regen_text
3640 + threads.each { |t| Index.save_thread t }
3641 end
3642
3643 ## returns an undo lambda
3644 @@ -352,12 +353,14 @@ EOS
3645 undo = actually_toggle_archived t
3646 UndoManager.register "deleting/undeleting thread #{t.first.id}", undo, lambda { update_text_for_line curpos }
3647 update_text_for_line curpos
3648 + Index.save_thread t
3649 end
3650
3651 def multi_toggle_archived threads
3652 undos = threads.map { |t| actually_toggle_archived t }
3653 UndoManager.register "deleting/undeleting #{threads.size.pluralize 'thread'}", undos, lambda { regen_text }
3654 regen_text
3655 + threads.each { |t| Index.save_thread t }
3656 end
3657
3658 def toggle_new
3659 @@ -365,11 +368,13 @@ EOS
3660 t.toggle_label :unread
3661 update_text_for_line curpos
3662 cursor_down
3663 + Index.save_thread t
3664 end
3665
3666 def multi_toggle_new threads
3667 threads.each { |t| t.toggle_label :unread }
3668 regen_text
3669 + threads.each { |t| Index.save_thread t }
3670 end
3671
3672 def multi_toggle_tagged threads
3673 @@ -385,6 +390,7 @@ EOS
3674
3675 def multi_join_threads threads
3676 @ts.join_threads threads or return
3677 + threads.each { |t| Index.save_thread t }
3678 @tags.drop_all_tags # otherwise we have tag pointers to invalid threads!
3679 update
3680 end
3681 @@ -421,6 +427,7 @@ EOS
3682 UndoManager.register "marking/unmarking #{threads.size.pluralize 'thread'} as spam",
3683 undos, lambda { regen_text }
3684 regen_text
3685 + threads.each { Index.save_thread async t }
3686 end
3687
3688 def toggle_deleted
3689 @@ -434,6 +441,7 @@ EOS
3690 UndoManager.register "deleting/undeleting #{threads.size.pluralize 'thread'}",
3691 undos, lambda { regen_text }
3692 regen_text
3693 + threads.each { Index.save_thread async t }
3694 end
3695
3696 def kill
3697 @@ -458,29 +466,7 @@ EOS
3698
3699 regen_text
3700 BufferManager.flash "#{threads.size.pluralize 'thread'} killed."
3701 - end
3702 -
3703 - def save background=true
3704 - if background
3705 - Redwood::reporting_thread("saving thread") { actually_save }
3706 - else
3707 - actually_save
3708 - end
3709 - end
3710 -
3711 - def actually_save
3712 - @save_thread_mutex.synchronize do
3713 - BufferManager.say("Saving contacts...") { ContactManager.instance.save }
3714 - dirty_threads = @mutex.synchronize { (@threads + @hidden_threads.keys).select { |t| t.dirty? } }
3715 - next if dirty_threads.empty?
3716 -
3717 - BufferManager.say("Saving threads...") do |say_id|
3718 - dirty_threads.each_with_index do |t, i|
3719 - BufferManager.say "Saving modified thread #{i + 1} of #{dirty_threads.length}...", say_id
3720 - Index.save_thread_async t
3721 - end
3722 - end
3723 - end
3724 + threads.each { |t| Index.save_thread async t }
3725 end
3726
3727 def cleanup
3728 @@ -492,7 +478,8 @@ EOS
3729 sleep 0.1 # TODO: necessary?
3730 BufferManager.erase_flash
3731 end
3732 - save false
3733 + dirty_threads = @mutex.synchronize { (@threads + @hidden_threads.keys).select { |t| t.dirty? } }
3734 + fail "dirty threads remain" unless dirty_threads.empty?
3735 super
3736 end
3737
3738 @@ -546,6 +533,7 @@ EOS
3739 end
3740
3741 UpdateManager.relay self, :labeled, thread.first
3742 + Index.save_thread thread
3743 end
3744
3745 def multi_edit_labels threads
3746 @@ -582,6 +570,8 @@ EOS
3747 end
3748 regen_text
3749 end
3750 +
3751 + threads.each { |t| Index.save_thread t }
3752 end
3753
3754 def reply type_arg=nil
3755 diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
3756 index 2da0555..e59112e 100644
3757 --- a/lib/sup/modes/thread-view-mode.rb
3758 +++ b/lib/sup/modes/thread-view-mode.rb
3759 @@ -132,6 +132,7 @@ EOS
3760 @layout[earliest].state = :detailed if earliest.has_label?(:unread) || @thread.size == 1
3761
3762 @thread.remove_label :unread
3763 + Index.save_thread @thread
3764 regen_text
3765 end
3766
3767 @@ -263,6 +264,7 @@ EOS
3768 new_labels.each { |l| LabelManager << l }
3769 update
3770 UpdateManager.relay self, :labeled, @thread.first
3771 + Index.save_thread @thread
3772 end
3773
3774 def toggle_starred
3775 @@ -285,6 +287,7 @@ EOS
3776 ## star to the display
3777 update
3778 UpdateManager.relay self, :single_message_labeled, m
3779 + Index.save_thread @thread
3780 end
3781
3782 ## called when someone presses enter when the cursor is highlighting
3783 @@ -503,6 +506,7 @@ EOS
3784 dispatch op do
3785 @thread.remove_label :inbox
3786 UpdateManager.relay self, :archived, @thread.first
3787 + Index.save_thread @thread
3788 end
3789 end
3790
3791 @@ -510,6 +514,7 @@ EOS
3792 dispatch op do
3793 @thread.apply_label :spam
3794 UpdateManager.relay self, :spammed, @thread.first
3795 + Index.save_thread @thread
3796 end
3797 end
3798
3799 @@ -517,6 +522,7 @@ EOS
3800 dispatch op do
3801 @thread.apply_label :deleted
3802 UpdateManager.relay self, :deleted, @thread.first
3803 + Index.save_thread @thread
3804 end
3805 end
3806
3807 @@ -524,6 +530,7 @@ EOS
3808 dispatch op do
3809 @thread.apply_label :unread
3810 UpdateManager.relay self, :unread, @thread.first
3811 + Index.save_thread @thread
3812 end
3813 end
3814
3815 --
3816 1.6.4.2
3817
3818
3819 From rlane@club.cc.cmu.edu Thu Nov 5 00:45:21 2009
3820 From: rlane@club.cc.cmu.edu (Rich Lane)
3821 Date: Wed, 4 Nov 2009 21:45:21 -0800
3822 Subject: [sup-talk] [PATCH 4/4] force the index sync thread to give up the
3823 cpu
3824 In-Reply-To: <1257399921-26813-3-git-send-email-rlane@club.cc.cmu.edu>
3825 References: <1257399921-26813-1-git-send-email-rlane@club.cc.cmu.edu>
3826 <1257399921-26813-2-git-send-email-rlane@club.cc.cmu.edu>
3827 <1257399921-26813-3-git-send-email-rlane@club.cc.cmu.edu>
3828 Message-ID: <1257399921-26813-4-git-send-email-rlane@club.cc.cmu.edu>
3829
3830 ---
3831 lib/sup/index.rb | 2 ++
3832 1 files changed, 2 insertions(+), 0 deletions(-)
3833
3834 diff --git a/lib/sup/index.rb b/lib/sup/index.rb
3835 index 1131ec7..4f491d6 100644
3836 --- a/lib/sup/index.rb
3837 +++ b/lib/sup/index.rb
3838 @@ -201,6 +201,8 @@ class BaseIndex
3839 while m = @sync_queue.deq
3840 return if m == :die
3841 update_message_state m
3842 + # Necessary to keep Xapian calls from lagging the UI too much.
3843 + sleep 0.03
3844 end
3845 end
3846 end
3847 --
3848 1.6.4.2
3849
3850
3851 From matthias.guedemann@ovgu.de Thu Nov 5 03:27:25 2009
3852 From: matthias.guedemann@ovgu.de (Matthias Guedemann)
3853 Date: Thu, 05 Nov 2009 09:27:25 +0100
3854 Subject: [sup-talk] Problems with undo archive and thread focus
3855 Message-ID: <1257409101-sup-7780@pc44es141.cs.uni-magdeburg.de>
3856
3857
3858 Hi,
3859
3860 while using sup for a while now I came across surprising behavior in the
3861 following situations.
3862
3863 One is, if you hit 'a' in thread view mode, the thread is archived but undo does
3864 not work. If you go back to index view and hit 'u' the just archived thread does
3865 not appear, but the one before.
3866
3867 The second is, if I respond to a thread and send the mail, I normally want to
3868 either archive that mail directly or label and archive it. But the thread is put
3869 to the front and the focus is on the last place of the thread. Therefore I
3870 sometimes archive the wrong thread (but undo comes in handy)
3871
3872
3873 The first seems to be a bug, the second may be a problem only for me.
3874
3875 best regards,
3876
3877 Matthias
3878 --
3879 __________________________________________________________
3880 ___ __ __
3881 Dipl. Inf. Matthias Guedemann / __\/ _\ /__\
3882 Computer Systems in Engineering / / \ \ /_\
3883 Otto-von-Guericke Universitaet Magdeburg / /___ _\ \//__
3884 Tel.: 0391 / 67-19359 \____/ \__/\__/
3885 __________________________________________________________
3886
3887 From markr.anderson@amd.com Thu Nov 5 15:29:23 2009
3888 From: markr.anderson@amd.com (Mark Anderson)
3889 Date: Thu, 5 Nov 2009 13:29:23 -0700
3890 Subject: [sup-talk] Sup-sync exception
3891 Message-ID: <1257452860-sup-7983@testarossa>
3892
3893
3894 I have an offlineimap synced IMAP Maildir area, and for some reason I get an error when I try to run sup-sync.
3895
3896 Any ideas?
3897
3898 -Mark
3899
3900 144> sup-sync
3901 /home/manderso/src/sup-git/mainline/lib/sup/util.rb:9: warning: method redefined; discarding old gen_lock_id
3902 /home/manderso/src/sup-git/mainline/lib/sup/util.rb:20: warning: method redefined; discarding old dump_lock_id
3903 [Thu Nov 05 13:25:38 -0700 2009] WARNING: can't find character set by using locale, defaulting to utf-8
3904 /home/manderso/src/sup-git/mainline/lib/sup/message-chunks.rb:36: warning: method redefined; discarding old make_tmpname
3905 /home/manderso/src/sup-git/mainline/lib/sup/imap.rb:119: warning: ambiguous first argument; put parentheses or even spaces
3906 [Thu Nov 05 13:25:39 -0700 2009] using index Redwood::FerretIndex
3907 /home/manderso/src/sup-git/mainline/bin/sup-sync:11: warning: method redefined; discarding old to_s
3908 [Thu Nov 05 13:25:40 -0700 2009] crypto: detected gpg binary in /usr/bin/gpg
3909 [Thu Nov 05 13:25:40 -0700 2009] locking /home/manderso/.sup/lock...
3910 [Thu Nov 05 13:25:40 -0700 2009] loading index...
3911 [Thu Nov 05 13:25:40 -0700 2009] loaded index of 3830 messages
3912 [Thu Nov 05 13:25:40 -0700 2009] scanning maildir /home/manderso/MailExchange/INBOX...
3913 [Thu Nov 05 13:25:42 -0700 2009] done scanning maildir
3914 Scanning maildir:/home/manderso/MailExchange/INBOX...
3915 [Thu Nov 05 13:25:42 -0700 2009] unlocking /home/manderso/.sup/lock...
3916 /home/manderso/src/sup-git/mainline/lib/sup/buffer.rb:15:in `cols': undefined local variable or method `stdscr' for Ncurses:Module (NameError)
3917 from /home/manderso/src/sup-git/mainline/lib/sup/message-chunks.rb:165:in `initialize'
3918 from /home/manderso/src/sup-git/mainline/lib/sup/message-chunks.rb:165:in `map'
3919 from /home/manderso/src/sup-git/mainline/lib/sup/message-chunks.rb:165:in `initialize'
3920 from /home/manderso/src/sup-git/mainline/lib/sup/message.rb:591:in `new'
3921 from /home/manderso/src/sup-git/mainline/lib/sup/message.rb:591:in `text_to_chunks'
3922 from /home/manderso/src/sup-git/mainline/lib/sup/message.rb:511:in `message_to_chunks'
3923 from /home/manderso/src/sup-git/mainline/lib/sup/message.rb:239:in `load_from_source!'
3924 from /home/manderso/src/sup-git/mainline/lib/sup/message.rb:335:in `build_from_source'
3925 from /home/manderso/src/sup-git/mainline/lib/sup/poll.rb:145:in `each_message_from'
3926 from /home/manderso/src/sup-git/mainline/lib/sup/maildir.rb:160:in `each'
3927 from /home/manderso/src/sup-git/mainline/lib/sup/maildir.rb:157:in `upto'
3928 from /home/manderso/src/sup-git/mainline/lib/sup/maildir.rb:157:in `each'
3929 from /home/manderso/src/sup-git/mainline/lib/sup/util.rb:560:in `send'
3930 from /home/manderso/src/sup-git/mainline/lib/sup/util.rb:560:in `__pass'
3931 from /home/manderso/src/sup-git/mainline/lib/sup/util.rb:547:in `method_missing'
3932 from /home/manderso/src/sup-git/mainline/lib/sup/poll.rb:139:in `each_message_from'
3933 from /home/manderso/src/sup-git/mainline/lib/sup/util.rb:520:in `send'
3934 from /home/manderso/src/sup-git/mainline/lib/sup/util.rb:520:in `method_missing'
3935 from /home/manderso/src/sup-git/mainline/bin/sup-sync:146
3936 from /home/manderso/src/sup-git/mainline/bin/sup-sync:141:in `each'
3937 from /home/manderso/src/sup-git/mainline/bin/sup-sync:141
3938
3939
3940 From garoth@gmail.com Thu Nov 5 20:58:27 2009
3941 From: garoth@gmail.com (Andrei Thorp)
3942 Date: Thu, 5 Nov 2009 20:58:27 -0500
3943 Subject: [sup-talk] Arch Linux Sup Package (Ruby 1.9.1 + Sup 0.9)
3944 In-Reply-To: <1257092475-sup-4321@masanjin.net>
3945 References: <80055d7c0910180805v5da8a9a0o57851093ee17813e@mail.gmail.com>
3946 <1257092475-sup-4321@masanjin.net>
3947 Message-ID: <80055d7c0911051758p815b66eu722ebb15993b7f0d@mail.gmail.com>
3948
3949 Sorry, William. I've been busy and haven't monitered the list. I'll
3950 probably set up a proper mail system tonight so I don't screw this up
3951 again.
3952
3953 > Reformatted excerpts from Andrei Thorp's message of 2009-10-18:
3954 >> ?- I've applyed Lloyd's patch for fixing the UTF-8 check.
3955 >
3956 > Which patch was this? The only "Lloyd patch" one I'm aware of is:
3957 > http://github.com/lloyd/sup/commit/d07986419b87053b41f7ed4bd7b6d1e537704864
3958
3959 No, that's not it... the patch that I applied is
3960 http://aur.archlinux.org/packages/sup/sup/fix-utf8-hack.patch. At
3961 least' that's my copy of it that I uploaded to the AUR. I'm assuming
3962 that Lloyd still has this in his repos somewhere. I'm not sure this
3963 patch is strictly necessary, but at the time I was under the
3964 impression that it seemed reasonable. Admittedly, I'm not a great Ruby
3965 programmer.
3966
3967 Ah, here it is.
3968 http://github.com/lloyd/sup/commit/e32c48c4abfb921c60d337354634cd905f7e9149
3969
3970 >> The error up there doesn't really make sense. Each not defined on
3971 >> buffer strings?
3972 >
3973 >It makes sense to me. There's no String#each in Ruby 1.9, so this is
3974 >probably a (trivially fixable) bug in the lockfile gem for 1.9.
3975
3976 I'm still not sure why this bug doesn't happen for me. Oh wait!
3977 Discovery! Sean left a comment on my AUR page stating, "It was just a
3978 stale lock file. removed ~/.sup/lock and it started up nicely." So
3979 never mind that, lockfile's fine in 1.9.
3980
3981 As for trying things like ,n, I'll give it a whirl tonight. I need to
3982 set up my mail... I've been busy/putting it off :).
3983
3984 Cheers!
3985
3986 -Andrei Thorp
3987
3988 From garoth@gmail.com Thu Nov 5 21:34:31 2009
3989 From: garoth@gmail.com (Andrei Thorp)
3990 Date: Thu, 5 Nov 2009 21:34:31 -0500
3991 Subject: [sup-talk] [Ruby 1.9] sup-sync error
3992 Message-ID: <80055d7c0911051834u4c08786aiecc37fcdb77d75b5@mail.gmail.com>
3993
3994 Looks like another one of those simple to fix but annoying sup errors:
3995
3996 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/source.rb:88:in `done?':
3997 undefined method `>=' for true:TrueClass (NoMethodError)
3998 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:560:in `__pass'
3999 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:547:in
4000 `method_missing'
4001 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/poll.rb:137:in
4002 `each_message_from'
4003 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:520:in
4004 `method_missing'
4005 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/bin/sup-sync:146:in `block
4006 in <top (required)>'
4007 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/bin/sup-sync:141:in `each'
4008 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/bin/sup-sync:141:in `<top
4009 (required)>'
4010 from /usr/bin/supbin/sup-sync:19:in `load'
4011 from /usr/bin/supbin/sup-sync:19:in `<main>'
4012
4013 This occurs when attempting to import mail from Maildirs
4014
4015 From garoth@gmail.com Thu Nov 5 21:38:26 2009
4016 From: garoth@gmail.com (Andrei Thorp)
4017 Date: Thu, 5 Nov 2009 21:38:26 -0500
4018 Subject: [sup-talk] slowly catching up
4019 In-Reply-To: <1256997213-sup-2725@masanjin.net>
4020 References: <1256997213-sup-2725@masanjin.net>
4021 Message-ID: <80055d7c0911051838m855262bi93d149549de2da8c@mail.gmail.com>
4022
4023 On Sat, Oct 31, 2009 at 9:03 AM, William Morgan
4024 <wmorgan-sup at masanjin.net> wrote:
4025 > Suggestions welcome.
4026
4027 I propose promoting Rich Lane to commiter if he's up for it and
4028 doesn't have access yet. From what I can tell, he's done a terrific
4029 job thus far, and has a lot of experience with Sup.
4030
4031 -AT
4032
4033 From rlane@club.cc.cmu.edu Thu Nov 5 23:13:05 2009
4034 From: rlane@club.cc.cmu.edu (Rich Lane)
4035 Date: Thu, 05 Nov 2009 23:13:05 -0500
4036 Subject: [sup-talk] slowly catching up
4037 In-Reply-To: <80055d7c0911051838m855262bi93d149549de2da8c@mail.gmail.com>
4038 References: <1256997213-sup-2725@masanjin.net>
4039 <80055d7c0911051838m855262bi93d149549de2da8c@mail.gmail.com>
4040 Message-ID: <1257476207-sup-3459@zyrg.net>
4041
4042 Excerpts from Andrei Thorp's message of Thu Nov 05 21:38:26 -0500 2009:
4043 > On Sat, Oct 31, 2009 at 9:03 AM, William Morgan
4044 > <wmorgan-sup at masanjin.net> wrote:
4045 > > Suggestions welcome.
4046 >
4047 > I propose promoting Rich Lane to commiter if he's up for it and
4048 > doesn't have access yet. From what I can tell, he's done a terrific
4049 > job thus far, and has a lot of experience with Sup.
4050
4051 Thanks! If William doesn't have the free time, I would be glad to help
4052 out. Rather than committing directly to mainline, I'd rather keep a
4053 public repo that I apply incoming patches to and that William can pull
4054 from. This way I could do a lot of the first-line work and he could get
4055 a more stable flow of patches to make releases from.
4056
4057 For my own process suggestion:
4058
4059 I can imagine that a lot of William's work caused by being the central
4060 repository is reviewing the patches that get sent in. I'd like for
4061 anyone who feels interested to read through incoming patches and comment
4062 on them. I don't want any strict processes just yet, but I'd like to see
4063 a couple of positive reviews (depending on the complexity of the patch,
4064 etc) before things get merged.
4065
4066 Distributing the workload and ensuring code quality are only a couple of
4067 my motives here. I know I feel more comfortable sending out a patch if
4068 I'm sure someone will catch my mistakes before it's merged. Also, it's a
4069 great way for people who aren't yet familiar with the codebase to start
4070 contributing.
4071
4072 If anyone's interested and wants to get started right away, definitely
4073 take a look at the immediate-updates patches I sent in yesterday.
4074
4075 From wmorgan-sup@masanjin.net Fri Nov 6 08:47:51 2009
4076 From: wmorgan-sup@masanjin.net (William Morgan)
4077 Date: Fri, 06 Nov 2009 05:47:51 -0800
4078 Subject: [sup-talk] slowly catching up
4079 In-Reply-To: <1257476207-sup-3459@zyrg.net>
4080 References: <1256997213-sup-2725@masanjin.net>
4081 <80055d7c0911051838m855262bi93d149549de2da8c@mail.gmail.com>
4082 <1257476207-sup-3459@zyrg.net>
4083 Message-ID: <1257509523-sup-3428@masanjin.net>
4084
4085 Reformatted excerpts from Rich Lane's message of 2009-11-05:
4086 > Rather than committing directly to mainline, I'd rather keep a public
4087 > repo that I apply incoming patches to and that William can pull from.
4088 > This way I could do a lot of the first-line work and he could get a
4089 > more stable flow of patches to make releases from.
4090
4091 That sounds good to me. I'm happy to add you to the gitorious repo, of
4092 course, but this is definitely more in line with the git lifestyle.
4093
4094 We have a couple options on how to organize this, but I think the best
4095 would be for you to maintain one or more branches that I treat as
4096 integration branches, and periodically merge into master whenever you
4097 tell me they're ready. That's a very minimal amount of work for me. I
4098 can just merge it and forget it.
4099
4100 The only things to be careful about in such a setup are not merging next
4101 into your branch (merging master in is fine and good to keep up with
4102 other stable changes), and not rebasing. And we will have to coordinate
4103 on releases, if nothing else so that I can make reasonable changelogs
4104 and release notes.
4105
4106 How does that sound?
4107
4108 > I can imagine that a lot of William's work caused by being the central
4109 > repository is reviewing the patches that get sent in. I'd like for
4110 > anyone who feels interested to read through incoming patches and comment
4111 > on them. I don't want any strict processes just yet, but I'd like to see
4112 > a couple of positive reviews (depending on the complexity of the patch,
4113 > etc) before things get merged.
4114
4115 That would be great. Or heck, even an "I applied it and it works for
4116 me" is useful.
4117 --
4118 William <wmorgan-sup at masanjin.net>
4119
4120 From rick.tessner@gmail.com Fri Nov 6 10:13:19 2009
4121 From: rick.tessner@gmail.com (rick.tessner)
4122 Date: Fri, 06 Nov 2009 07:13:19 -0800
4123 Subject: [sup-talk] Sup-sync exception
4124 In-Reply-To: <1257452860-sup-7983@testarossa>
4125 References: <1257452860-sup-7983@testarossa>
4126 Message-ID: <1257520288-sup-8595@onnadayr.ca>
4127
4128 Hi,
4129
4130 Excerpts from Mark Anderson's message of Thu Nov 05 12:29:23 -0800 2009:
4131 >
4132 > I have an offlineimap synced IMAP Maildir area, and for some reason I get an error when I try to run
4133 > sup-sync.
4134
4135 I had that exact same thing. If you applied a patch that used
4136 Ncurses.cols rather than WRAP_LEN to determine screen width, you'll have
4137 that problem in the non-curses based sup applications.
4138
4139 The patch came from an email with the subject
4140
4141 [PATCH] Use terminal width instead of hardcoded 80 as the wrap length.
4142
4143 I initially didn't have any problems whatsoever with that patch until I ran
4144 sup-sync. I fixed it with the attached commit.
4145
4146 This patch just does a rescue on that call. The patch is only
4147 applicable if you had applied a patch that came through previously on
4148 this list for using Ncurses.cols rather than WRAP_LEN in
4149 lib/sup/message-chunks.rb
4150 --
4151 Rick Tessner
4152 rick.tessner at gmail.com
4153 -------------- next part --------------
4154 A non-text attachment was scrubbed...
4155 Name: 0001-Corrects-Use-terminal-width-instead-of-hardcoded-80-.patch
4156 Type: application/octet-stream
4157 Size: 1637 bytes
4158 Desc: not available
4159 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091106/d2c16dff/attachment.obj>
4160
4161 From wmorgan-sup@masanjin.net Fri Nov 6 11:33:03 2009
4162 From: wmorgan-sup@masanjin.net (William Morgan)
4163 Date: Fri, 06 Nov 2009 08:33:03 -0800
4164 Subject: [sup-talk] sup bug tracker
4165 Message-ID: <1257524700-sup-9112@masanjin.net>
4166
4167 Hi all,
4168
4169 I've put a slightly modified Roundup installation here for tracking Sup
4170 bugs:
4171
4172 http://masanjin.net/sup-bugs/
4173
4174 Please use this to submit your bug reports and feature requests. If you
4175 have existing bug reports or feature requests and you don't want to rely
4176 on my faulty memory any more, feel free to resubmit them here.
4177
4178 You should be able to create new issues without having to register.
4179 However, if you want to receive email about an issue when updates
4180 happen, you will have to register. Sorry! On the plus side, registration
4181 is super quick because I've disabled the email confirmation step.
4182
4183 If anyone has written Roundup detectors in the past, let me know. There
4184 are a couple things I'd like to tweak.
4185
4186 I'm going to point the 0.9.1 crash message there too.
4187 --
4188 William <wmorgan-sup at masanjin.net>
4189
4190 From markr.anderson@amd.com Fri Nov 6 15:06:17 2009
4191 From: markr.anderson@amd.com (Mark Anderson)
4192 Date: Fri, 6 Nov 2009 13:06:17 -0700
4193 Subject: [sup-talk] Sup-sync exception
4194 In-Reply-To: <1257520288-sup-8595@onnadayr.ca>
4195 References: <1257452860-sup-7983@testarossa> <1257520288-sup-8595@onnadayr.ca>
4196 Message-ID: <1257537789-sup-1961@testarossa>
4197
4198 Excerpts from rick.tessner's message of Fri Nov 06 08:13:19 -0700 2009:
4199 > I had that exact same thing. If you applied a patch that used
4200 > Ncurses.cols rather than WRAP_LEN to determine screen width, you'll have
4201 > that problem in the non-curses based sup applications.
4202 >
4203 > The patch came from an email with the subject
4204 >
4205 > [PATCH] Use terminal width instead of hardcoded 80 as the wrap length.
4206
4207 I had applied that previous patch, as you guessed.
4208
4209 There was another patch that is complementary in getting the console to recognize the width of the terminal, I forget the tname, but here's what I have in my message-chunks.rb:
4210
4211 TERM_WIDTH = `stty size 2>/dev/null`.split[1].to_i # to_i returns 0 if it fails
4212 WRAP_LEN = TERM_WIDTH > 0 && TERM_WIDTH || 80 # wrap messages and text attachments at this width
4213
4214 I don't know why that patch preferred `stty` to ENV["COLUMNS"], since that one had worked for me.
4215
4216 > I initially didn't have any problems whatsoever with that patch until I ran
4217 > sup-sync. I fixed it with the attached commit.
4218 >
4219 > This patch just does a rescue on that call. The patch is only
4220 > applicable if you had applied a patch that came through previously on
4221 > this list for using Ncurses.cols rather than WRAP_LEN in
4222 > lib/sup/message-chunks.rb
4223
4224 Thanks, it is much happier now.
4225
4226 -Mark
4227
4228
4229 From pi+sup@pihost.us Fri Nov 6 21:16:42 2009
4230 From: pi+sup@pihost.us (Anthony Martinez)
4231 Date: Fri, 06 Nov 2009 19:16:42 -0700
4232 Subject: [sup-talk] Sup-sync exception
4233 In-Reply-To: <1257537789-sup-1961@testarossa>
4234 References: <1257452860-sup-7983@testarossa> <1257520288-sup-8595@onnadayr.ca>
4235 <1257537789-sup-1961@testarossa>
4236 Message-ID: <1257556260-sup-1272@home.mrtheplague.net>
4237
4238 Excerpts from Mark Anderson's message of Fri Nov 06 13:06:17 -0700 2009:
4239 > There was another patch that is complementary in getting the console to
4240 > recognize the width of the terminal, I forget the tname, but here's what I
4241 > have in my message-chunks.rb:
4242 >
4243 > TERM_WIDTH = `stty size 2>/dev/null`.split[1].to_i # to_i returns 0 if it fails
4244 > WRAP_LEN = TERM_WIDTH > 0 && TERM_WIDTH || 80 # wrap messages and text attachments at this width
4245 >
4246 > I don't know why that patch preferred `stty` to ENV["COLUMNS"], since that one
4247 > had worked for me.
4248
4249 That'd be my patch. I used stty because ENV["COLUMNS"] doesn't consistently work
4250 for me:
4251
4252 $ echo $COLUMNS
4253 132
4254 $ perl -wE 'say $ENV{COLUMNS}'
4255 Use of uninitialized value in say at -e line 1.
4256
4257 $ ruby -e 'puts ENV["COLUMNS"]'
4258 nil
4259 $ irb
4260 irb(main):001:0> ENV["COLUMNS"]
4261 => "132"
4262
4263 In Sup's console mode, ENV["COLUMNS"] is set, but when I tried
4264 WRAP_LEN = ENV["COLUMNS"]
4265 in message-chunks.rb, it gets nil. It appears to have something to do with
4266 readline:
4267
4268 $ irb --noreadline
4269 irb(main):001:0> ENV["COLUMNS"]
4270 => nil
4271
4272 I also tried Ncurses.cols, as suggested on sup-devel, and got a similar
4273 exception to yours. `stty`, albeit cheesy, works well enough for right now (even
4274 though I'm not quite happy with it, since, in addition to its reliance on the
4275 output of an external command, it also won't react to window size changes)
4276
4277 Perhaps this should be a configuration option -- give it a number to wrap to
4278 that width, :auto to wrap to the terminal size (in some fashion that will allow
4279 it to resize when the terminal does), and in the absence of any configuration,
4280 80.
4281
4282 --
4283 Every program has at least one bug and can be shortened by at least one
4284 instruction -- from which, by induction, one can deduce that every
4285 program can be reduced to one instruction which doesn't work.
4286
4287 From garoth@gmail.com Fri Nov 6 22:22:28 2009
4288 From: garoth@gmail.com (Andrei Thorp)
4289 Date: Fri, 6 Nov 2009 22:22:28 -0500
4290 Subject: [sup-talk] Ruby 1.9: encodings
4291 Message-ID: <80055d7c0911061922w64ef7cb0qf0c7bed008cc728c@mail.gmail.com>
4292
4293 Eh, bad news.
4294
4295 So I've been testing Sup in an 1.9 environment further, and I have
4296 found that there are a great deal of problems with regards to
4297 encodings. "invalid byte sequence in US-ASCII" is something you'll see
4298 frequently. This seems to be when parsing messages that have non-ascii
4299 chararacters.
4300
4301 Ouch :(
4302
4303 Has this already been taken care of in the git somewhere?
4304
4305 -AT
4306
4307 From marka@pobox.com Fri Nov 6 23:10:33 2009
4308 From: marka@pobox.com (Mark Alexander)
4309 Date: Fri, 06 Nov 2009 23:10:33 -0500
4310 Subject: [sup-talk] Sup-sync exception
4311 In-Reply-To: <1257556260-sup-1272@home.mrtheplague.net>
4312 References: <1257452860-sup-7983@testarossa> <1257520288-sup-8595@onnadayr.ca>
4313 <1257537789-sup-1961@testarossa>
4314 <1257556260-sup-1272@home.mrtheplague.net>
4315 Message-ID: <1257566953-sup-306@r50p>
4316
4317 Excerpts from Anthony Martinez's message of Fri Nov 06 21:16:42 -0500 2009:
4318 > That'd be my patch. I used stty because ENV["COLUMNS"] doesn't consistently work
4319 > for me:
4320 >
4321 > $ echo $COLUMNS
4322 > 132
4323 > $ perl -wE 'say $ENV{COLUMNS}'
4324 > Use of uninitialized value in say at -e line 1.
4325
4326 It sounds like you didn't do this:
4327
4328 export COLUMNS
4329
4330 From rlane@club.cc.cmu.edu Sat Nov 7 02:09:36 2009
4331 From: rlane@club.cc.cmu.edu (Rich Lane)
4332 Date: Sat, 07 Nov 2009 02:09:36 -0500
4333 Subject: [sup-talk] slowly catching up
4334 In-Reply-To: <1257509523-sup-3428@masanjin.net>
4335 References: <1256997213-sup-2725@masanjin.net>
4336 <80055d7c0911051838m855262bi93d149549de2da8c@mail.gmail.com>
4337 <1257476207-sup-3459@zyrg.net> <1257509523-sup-3428@masanjin.net>
4338 Message-ID: <1257562722-sup-9854@zyrg.net>
4339
4340 Excerpts from William Morgan's message of Fri Nov 06 08:47:51 -0500 2009:
4341 > Reformatted excerpts from Rich Lane's message of 2009-11-05:
4342 > > Rather than committing directly to mainline, I'd rather keep a public
4343 > > repo that I apply incoming patches to and that William can pull from.
4344 > > This way I could do a lot of the first-line work and he could get a
4345 > > more stable flow of patches to make releases from.
4346 >
4347 > That sounds good to me. I'm happy to add you to the gitorious repo, of
4348 > course, but this is definitely more in line with the git lifestyle.
4349 >
4350 > We have a couple options on how to organize this, but I think the best
4351 > would be for you to maintain one or more branches that I treat as
4352 > integration branches, and periodically merge into master whenever you
4353 > tell me they're ready. That's a very minimal amount of work for me. I
4354 > can just merge it and forget it.
4355 >
4356 > The only things to be careful about in such a setup are not merging next
4357 > into your branch (merging master in is fine and good to keep up with
4358 > other stable changes), and not rebasing. And we will have to coordinate
4359 > on releases, if nothing else so that I can make reasonable changelogs
4360 > and release notes.
4361 >
4362 > How does that sound?
4363
4364 Sounds good. I'll keep using my clone at http://github.com/rlane/sup/tree/master
4365 unless people would prefer I move it to gitorious.
4366
4367 When I see a new patchset I'll create a branch for it, like William has
4368 been doing. One difference is that I'll hold off on merging to my master
4369 (where new patches cook before being sent upstream) until I see some
4370 positive feedback on the list. Initially this might just come from me,
4371 but like I said before I'm hoping others will join in too. My intention
4372 in creating the branch quickly after the patch is mailed is to make it
4373 trivial for people tracking my repo to try out the newest patches.
4374
4375 As for getting changes to William, I'll occasionally (weekly?) apply the
4376 patches I deem stable on top of his master branch and send mail to
4377 the list. This way it should be a fast-forward when he pulls and we
4378 won't have to worry about resolving merges differently.
4379
4380 As a side note, I just created a Wishlist wiki page for feature requests:
4381 http://sup.rubyforge.org/wiki/wiki.pl?Wishlist
4382
4383 From tero@tilus.net Sat Nov 7 04:34:38 2009
4384 From: tero@tilus.net (Tero Tilus)
4385 Date: Sat, 07 Nov 2009 11:34:38 +0200
4386 Subject: [sup-talk] slowly catching up
4387 In-Reply-To: <1257562722-sup-9854@zyrg.net>
4388 References: <1256997213-sup-2725@masanjin.net>
4389 <80055d7c0911051838m855262bi93d149549de2da8c@mail.gmail.com>
4390 <1257476207-sup-3459@zyrg.net> <1257509523-sup-3428@masanjin.net>
4391 <1257562722-sup-9854@zyrg.net>
4392 Message-ID: <1257585999-sup-5436@tilus.net>
4393
4394 Rich Lane, 2009-11-07 09:09:
4395 > Sounds good. I'll keep using my clone at
4396 > http://github.com/rlane/sup/tree/master unless people would prefer I
4397 > move it to gitorious.
4398
4399 Does it really make that big difference? I don't think.
4400
4401 > As a side note, I just created a Wishlist wiki page for feature
4402 > requests: http://sup.rubyforge.org/wiki/wiki.pl?Wishlist
4403
4404 Why not use tracker for feature requests too? If I don't hear any
4405 reasons why, I'll go put the wishlist items there too.
4406
4407 --
4408 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
4409
4410 From tero@tilus.net Sat Nov 7 06:15:56 2009
4411 From: tero@tilus.net (Tero Tilus)
4412 Date: Sat, 07 Nov 2009 13:15:56 +0200
4413 Subject: [sup-talk] sup bug tracker
4414 In-Reply-To: <1257524700-sup-9112@masanjin.net>
4415 References: <1257524700-sup-9112@masanjin.net>
4416 Message-ID: <1257591624-sup-8158@tilus.net>
4417
4418 William Morgan, 2009-11-06 18:33:
4419 > If you have existing bug reports or feature requests and you don't
4420 > want to rely on my faulty memory any more, feel free to resubmit
4421 > them here.
4422
4423 What should be the policy with issues are reported/discussed on irc or
4424 mailinglist but are not reported to tracker? Should The Sup Issues
4425 Task Force(TM) ;) report them to tracker or try to push the original
4426 reporter to do it?
4427
4428 Should we (The SITF) skim mailinglist archives and transfer reported
4429 unfixed bugs (with links to archives) to tracker?
4430
4431 > I'm going to point the 0.9.1 crash message there too.
4432
4433 Sup home http://sup.rubyforge.org/ is not yet pointing there.
4434
4435 --
4436 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
4437
4438 From wmorgan-sup@masanjin.net Sat Nov 7 11:32:08 2009
4439 From: wmorgan-sup@masanjin.net (William Morgan)
4440 Date: Sat, 07 Nov 2009 08:32:08 -0800
4441 Subject: [sup-talk] sup bug tracker
4442 In-Reply-To: <1257591624-sup-8158@tilus.net>
4443 References: <1257524700-sup-9112@masanjin.net> <1257591624-sup-8158@tilus.net>
4444 Message-ID: <1257610340-sup-9345@masanjin.net>
4445
4446 Reformatted excerpts from Tero Tilus's message of 2009-11-07:
4447 > What should be the policy with issues are reported/discussed on irc or
4448 > mailinglist but are not reported to tracker? Should The Sup Issues
4449 > Task Force(TM) ;) report them to tracker or try to push the original
4450 > reporter to do it?
4451
4452 I would like all new issues to go on the tracker, and I think it's
4453 completely reasonable to tell people who report things to the mailing
4454 list or IRC to instead use the issue tracker instead.
4455
4456 > Should we (The SITF) skim mailinglist archives and transfer reported
4457 > unfixed bugs (with links to archives) to tracker?
4458
4459 If the SITF wants to creating issues for existing bug reports, that
4460 would be very helpful. But please don't do it to the point that you get
4461 sick of it.
4462
4463 > Sup home http://sup.rubyforge.org/ is not yet pointing there.
4464
4465 Fixed, thanks!
4466 --
4467 William <wmorgan-sup at masanjin.net>
4468
4469 From wmorgan-sup@masanjin.net Sat Nov 7 11:56:10 2009
4470 From: wmorgan-sup@masanjin.net (William Morgan)
4471 Date: Sat, 07 Nov 2009 08:56:10 -0800
4472 Subject: [sup-talk] slowly catching up
4473 In-Reply-To: <1257562722-sup-9854@zyrg.net>
4474 References: <1256997213-sup-2725@masanjin.net>
4475 <80055d7c0911051838m855262bi93d149549de2da8c@mail.gmail.com>
4476 <1257476207-sup-3459@zyrg.net> <1257509523-sup-3428@masanjin.net>
4477 <1257562722-sup-9854@zyrg.net>
4478 Message-ID: <1257612219-sup-7066@masanjin.net>
4479
4480 Reformatted excerpts from Rich Lane's message of 2009-11-06:
4481 > As for getting changes to William, I'll occasionally (weekly?) apply
4482 > the patches I deem stable on top of his master branch and send mail to
4483 > the list. This way it should be a fast-forward when he pulls and we
4484 > won't have to worry about resolving merges differently.
4485
4486 Sounds good to me. I'm not even that concerned about fastforward vs
4487 merge.
4488
4489 > As a side note, I just created a Wishlist wiki page for feature requests:
4490 > http://sup.rubyforge.org/wiki/wiki.pl?Wishlist
4491
4492 I agree that these would be great to have on the issue tracker.
4493 --
4494 William <wmorgan-sup at masanjin.net>
4495
4496 From macwright@gmail.com Sat Nov 7 12:01:31 2009
4497 From: macwright@gmail.com (tom)
4498 Date: Sat, 7 Nov 2009 09:01:31 -0800 (PST)
4499 Subject: [sup-talk] Apple Address Book integration for Sup?
4500 Message-ID: <cbbc2289-94b5-4217-82fd-5b2dcf28466b@a31g2000yqn.googlegroups.com>
4501
4502 Hey,
4503
4504 Could anyone point me towards where I should start hacking or looking
4505 to get my address book contacts as options in Sup? I'm up for the task
4506 if the contact list is pluggable, but obviously documentation is
4507 somewhat minimal here.
4508
4509 Thanks!
4510
4511 Tom
4512
4513 From rlane@club.cc.cmu.edu Sat Nov 7 12:18:51 2009
4514 From: rlane@club.cc.cmu.edu (Rich Lane)
4515 Date: Sat, 07 Nov 2009 12:18:51 -0500
4516 Subject: [sup-talk] Apple Address Book integration for Sup?
4517 In-Reply-To: <cbbc2289-94b5-4217-82fd-5b2dcf28466b@a31g2000yqn.googlegroups.com>
4518 References: <cbbc2289-94b5-4217-82fd-5b2dcf28466b@a31g2000yqn.googlegroups.com>
4519 Message-ID: <1257613929-sup-2902@zyrg.net>
4520
4521 Excerpts from tom's message of Sat Nov 07 12:01:31 -0500 2009:
4522 > Hey,
4523 >
4524 > Could anyone point me towards where I should start hacking or looking
4525 > to get my address book contacts as options in Sup? I'm up for the task
4526 > if the contact list is pluggable, but obviously documentation is
4527 > somewhat minimal here.
4528 >
4529 > Thanks!
4530 >
4531 > Tom
4532
4533 Hi Tom,
4534
4535 If you're just looking to get tab-completion for these contacts you can
4536 create a extra-contact-addresses hook script that imports them.
4537
4538 - Rich
4539
4540 From eugeneiiim@gmail.com Mon Nov 9 01:02:07 2009
4541 From: eugeneiiim@gmail.com (Eugene Marinelli)
4542 Date: Sun, 8 Nov 2009 22:02:07 -0800
4543 Subject: [sup-talk] [PATCH 2/4] async thread indexing
4544 In-Reply-To: <1257399921-26813-2-git-send-email-rlane@club.cc.cmu.edu>
4545 References: <1257399921-26813-1-git-send-email-rlane@club.cc.cmu.edu>
4546 <1257399921-26813-2-git-send-email-rlane@club.cc.cmu.edu>
4547 Message-ID: <69d60e3a0911082202t31561f18mf5e24dda7a108b58@mail.gmail.com>
4548
4549 > - Index.save_thread t
4550 > + Index.save_thread_async t
4551 Where is the "save_thread_async" function?
4552
4553 In patch 3/4, this looks like a syntax error:
4554 > - end
4555 > + threads.each { |t| Index.save_thread async t }
4556 > end
4557
4558 - Eugene Marinelli
4559
4560 On Wed, Nov 4, 2009 at 9:45 PM, Rich Lane <rlane at club.cc.cmu.edu> wrote:
4561 > ---
4562 > ?bin/sup ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ? ?2 ++
4563 > ?lib/sup/index.rb ? ? ? ? ? ? ? ? ? | ? 26 +++++++++++++++++++++++++-
4564 > ?lib/sup/modes/thread-index-mode.rb | ? ?2 +-
4565 > ?3 files changed, 28 insertions(+), 2 deletions(-)
4566 >
4567 > diff --git a/bin/sup b/bin/sup
4568 > index 78c396a..910ff12 100755
4569 > --- a/bin/sup
4570 > +++ b/bin/sup
4571 > @@ -142,6 +142,7 @@ Index.lock_interactively or exit
4572 > ?begin
4573 > ? Redwood::start
4574 > ? Index.load
4575 > + ?Index.start_sync_worker unless $opts[:no_threads]
4576 >
4577 > ? $die = false
4578 > ? trap("TERM") { |x| $die = true }
4579 > @@ -335,6 +336,7 @@ ensure
4580 >
4581 > ? HookManager.run "shutdown"
4582 >
4583 > + ?Index.stop_sync_worker
4584 > ? Redwood::finish
4585 > ? stop_cursing
4586 > ? Redwood::Logger.remove_all_sinks!
4587 > diff --git a/lib/sup/index.rb b/lib/sup/index.rb
4588 > index 5d8d714..1131ec7 100644
4589 > --- a/lib/sup/index.rb
4590 > +++ b/lib/sup/index.rb
4591 > @@ -28,6 +28,8 @@ class BaseIndex
4592 > ? def initialize dir=BASE_DIR
4593 > ? ? @dir = dir
4594 > ? ? @lock = Lockfile.new lockfile, :retries => 0, :max_age => nil
4595 > + ? ?@sync_worker = nil
4596 > + ? ?@sync_queue = Queue.new
4597 > ? end
4598 >
4599 > ? def lockfile; File.join @dir, "lock" end
4600 > @@ -175,10 +177,32 @@ class BaseIndex
4601 >
4602 > ? def save_thread t
4603 > ? ? t.each_dirty_message do |m|
4604 > - ? ? ?update_message_state m
4605 > + ? ? ?if @sync_worker
4606 > + ? ? ? ?@sync_queue << m
4607 > + ? ? ?else
4608 > + ? ? ? ?update_message_state m
4609 > + ? ? ?end
4610 > ? ? ? m.clear_dirty
4611 > ? ? end
4612 > ? end
4613 > +
4614 > + ?def start_sync_worker
4615 > + ? ?@sync_worker = Redwood::reporting_thread('index sync') { run_sync_worker }
4616 > + ?end
4617 > +
4618 > + ?def stop_sync_worker
4619 > + ? ?return unless worker = @sync_worker
4620 > + ? ?@sync_worker = nil
4621 > + ? ?@sync_queue << :die
4622 > + ? ?worker.join
4623 > + ?end
4624 > +
4625 > + ?def run_sync_worker
4626 > + ? ?while m = @sync_queue.deq
4627 > + ? ? ?return if m == :die
4628 > + ? ? ?update_message_state m
4629 > + ? ?end
4630 > + ?end
4631 > ?end
4632 >
4633 > ?index_name = ENV['SUP_INDEX'] || $config[:index] || DEFAULT_INDEX
4634 > diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
4635 > index 370903a..d2b1651 100644
4636 > --- a/lib/sup/modes/thread-index-mode.rb
4637 > +++ b/lib/sup/modes/thread-index-mode.rb
4638 > @@ -477,7 +477,7 @@ EOS
4639 > ? ? ? BufferManager.say("Saving threads...") do |say_id|
4640 > ? ? ? ? dirty_threads.each_with_index do |t, i|
4641 > ? ? ? ? ? BufferManager.say "Saving modified thread #{i + 1} of #{dirty_threads.length}...", say_id
4642 > - ? ? ? ? ?Index.save_thread t
4643 > + ? ? ? ? ?Index.save_thread_async t
4644 > ? ? ? ? end
4645 > ? ? ? end
4646 > ? ? end
4647 > --
4648 > 1.6.4.2
4649 >
4650 > _______________________________________________
4651 > sup-talk mailing list
4652 > sup-talk at rubyforge.org
4653 > http://rubyforge.org/mailman/listinfo/sup-talk
4654 >
4655
4656 From rlane@club.cc.cmu.edu Mon Nov 9 01:22:03 2009
4657 From: rlane@club.cc.cmu.edu (Rich Lane)
4658 Date: Mon, 09 Nov 2009 01:22:03 -0500
4659 Subject: [sup-talk] [PATCH 2/4] async thread indexing
4660 In-Reply-To: <69d60e3a0911082202t31561f18mf5e24dda7a108b58@mail.gmail.com>
4661 References: <1257399921-26813-1-git-send-email-rlane@club.cc.cmu.edu>
4662 <1257399921-26813-2-git-send-email-rlane@club.cc.cmu.edu>
4663 <69d60e3a0911082202t31561f18mf5e24dda7a108b58@mail.gmail.com>
4664 Message-ID: <1257747131-sup-7562@zyrg.net>
4665
4666 Excerpts from Eugene Marinelli's message of Mon Nov 09 01:02:07 -0500 2009:
4667 > > - Index.save_thread t
4668 > > + Index.save_thread_async t
4669 > Where is the "save_thread_async" function?
4670 >
4671 > In patch 3/4, this looks like a syntax error:
4672 > > - end
4673 > > + threads.each { |t| Index.save_thread async t }
4674 > > end
4675
4676 Nice catch. I'd originally named the method save_thread_async and it
4677 looks like my search-and-replace wasn't complete. I've fixed this on the
4678 immediate-updates branch. Thanks for the review!
4679
4680 From kvrkreddy@gmail.com Tue Nov 10 04:23:22 2009
4681 From: kvrkreddy@gmail.com (k.v.ramakrishna reddy)
4682 Date: Tue, 10 Nov 2009 14:53:22 +0530
4683 Subject: [sup-talk] Error upon starting sup
4684 Message-ID: <2b29d9f30911100123j4b14f3dr721329306b93b5cb@mail.gmail.com>
4685
4686 --- RuntimeError from thread: load threads for thread-index-mode
4687 invalid source 3
4688 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup/ferret_index.rb:260:in
4689 `build_message'
4690 /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
4691 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup/ferret_index.rb:256:in
4692 `build_message'
4693 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup/ferret_index.rb:163:in
4694 `each_id_by_date'
4695 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup/thread.rb:332:in `call'
4696 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup/thread.rb:332:in
4697 `load_n_threads'
4698 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup/ferret_index.rb:163:in
4699 `each_id_by_date'
4700 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup/ferret_index.rb:162:in `each'
4701 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup/ferret_index.rb:162:in
4702 `each_id_by_date'
4703 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup/thread.rb:328:in
4704 `load_n_threads'
4705 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup/modes/thread-index-mode.rb:625:in
4706 `__unprotected_load_n_threads'
4707 (eval):12:in `load_n_threads'
4708 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup/modes/thread-index-mode.rb:609:in
4709 `load_n_threads_background'
4710 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup.rb:77:in `reporting_thread'
4711 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup.rb:75:in `initialize'
4712 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup.rb:75:in `new'
4713 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup.rb:75:in `reporting_thread'
4714 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup/modes/thread-index-mode.rb:608:in
4715 `load_n_threads_background'
4716 /home/karri/.gem/ruby/1.8/gems/sup-0.9/lib/sup/modes/thread-index-mode.rb:679:in
4717 `__unprotected_load_threads'
4718 (eval):12:in `load_threads'
4719 /home/karri/.gem/ruby/1.8/gems/sup-0.9/bin/sup:196
4720 /home/karri/.gem/ruby/1.8/bin/sup:19:in `load'
4721 /home/karri/.gem/ruby/1.8/bin/sup:19
4722 thanks
4723 karri
4724 -------------- next part --------------
4725 An HTML attachment was scrubbed...
4726 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091110/2486ba5d/attachment-0001.html>
4727
4728 From rlane@club.cc.cmu.edu Tue Nov 10 12:10:42 2009
4729 From: rlane@club.cc.cmu.edu (Rich Lane)
4730 Date: Tue, 10 Nov 2009 12:10:42 -0500
4731 Subject: [sup-talk] Error upon starting sup
4732 In-Reply-To: <2b29d9f30911100123j4b14f3dr721329306b93b5cb@mail.gmail.com>
4733 References: <2b29d9f30911100123j4b14f3dr721329306b93b5cb@mail.gmail.com>
4734 Message-ID: <1257872765-sup-828@zyrg.net>
4735
4736 Excerpts from k.v.ramakrishna reddy's message of Tue Nov 10 04:23:22 -0500 2009:
4737 > --- RuntimeError from thread: load threads for thread-index-mode
4738 > invalid source 3
4739
4740 It looks like you removed a source. If you remember what it was, you can
4741 just re-add it (and tweak the id in sources.yaml). Otherwise, a
4742 sup-dump, deleting the ferret db, and sup-sync -a --restore will solve
4743 the problem.
4744
4745 From micah@riseup.net Tue Nov 10 18:47:18 2009
4746 From: micah@riseup.net (Micah Anderson)
4747 Date: Tue, 10 Nov 2009 18:47:18 -0500
4748 Subject: [sup-talk] Getting gpg to work
4749 References: <87k5462s8q.fsf@pond.riseup.net> <1243441483-sup-2270@entry>
4750 <8763fkwng3.fsf@pond.riseup.net> <1243730754-sup-8672@entry>
4751 Message-ID: <87fx8mkkmx.fsf@pond.riseup.net>
4752
4753 William Morgan <wmorgan-sup at masanjin.net> writes:
4754
4755 > Reformatted excerpts from Micah Anderson's message of 2009-05-28:
4756 >> [Fri May 29 00:17:42 -0400 2009] crypto: detected gpg binary in /usr/bin/gpg
4757 >
4758 > Any other obvious messages in the log about multipart/encrypted?
4759
4760 I failed to respond to this message, partly because I think I decided to
4761 give up on sup at the time. But I am back now, because sup is so
4762 alluring, and I'm trying harder to switch this time :)
4763
4764 This time, gpg works fine... although it is using the wrong gpg keyid
4765 when I try to send. I did manage to find and set the gpgkey configurable
4766 in the .sup/config.yaml:
4767
4768 :accounts:
4769 :default:
4770 :signature: /home/micah/.signature
4771 :email: micah at riseup.net
4772 :sendmail: /usr/sbin/sendmail -oem -ti
4773 :name: micah anderson
4774 :gpgkey: 0xDEADBEEF
4775
4776 but still, that key does not get used, and instead the first key in my
4777 keyring for my email at address gets used instead. I do not want that,
4778 because that key is set to expire in about a week.
4779
4780 micah
4781
4782
4783 From micah@riseup.net Tue Nov 10 23:08:22 2009
4784 From: micah@riseup.net (Micah Anderson)
4785 Date: Tue, 10 Nov 2009 23:08:22 -0500
4786 Subject: [sup-talk] mark-as-spam.rb and writing hooks
4787 Message-ID: <87bpj9ln49.fsf@pond.riseup.net>
4788
4789
4790 Howdy folks,
4791
4792 Normally, spam is automatically put into my imap Spam folder, but
4793 something gets through, then I move it to the Mistakes folder, and send
4794 it back to the imap server. Anything put in the Mistakes folder gets
4795 processed for Spam/Ham scenarios (conversely, if I move something from
4796 the Spam folder that is actually not spam and put it in the Mistakes
4797 folder, then spamassassin trains bayes to learn that is actually Ham,
4798 not Spam). This is a pretty common Bayes training
4799 setup.
4800
4801 Sadly, this is something that Sup doesn't do, so I am stuck getting all
4802 of this spam in my inbox. so I think what I need to do is use the
4803 mark-as-spam hook to copy the message to another location. I'm using
4804 offlineimap, so I can just do a file copy of the actual file to the
4805 right spot and let sup do the rest. This seems like the most logical
4806 place to look, use this hook to make a copy of the mail to my Mistakes
4807 maildir folder when I press 'S', and then the offlineimap process will
4808 go and put it back on the IMAP server for processing.
4809
4810 It seems like a hook could do this fairly easily, but because I dont
4811 know ruby its a lot harder for me, also I couldn't find much information
4812 about how to use hooks. I read the hooks.txt file in the debian package,
4813 but it wans't so useful.
4814
4815 Spent some time today trying to figure out how hooks work. Couldn't find
4816 much information out there, but eventually figured out that there are a
4817 handful of hooks available, which you can list via 'sup -l', for
4818 example:
4819
4820 mark-as-spam
4821 ------------
4822 File: /home/micah/.sup/hooks/mark-as-spam.rb
4823 This hook is run when a thread is marked as spam
4824 Variables: thread: The message thread being marked as spam.
4825
4826 basically what this means is that if you put a file in
4827 .sup/hooks/mark-as-spam.rb with ruby code it will be executed when you
4828 hit the S key, and the "thread" variable is available to this hook.
4829
4830 The above took me quite some time to determine, not being a ruby person
4831 and all, now that I got that, I want to use it!
4832
4833 So what is that thread variable? I only really found it in thread.rb, so
4834 I looked at that for a while, I find that a thread is a bunch of
4835 messages, so I figure I need to enumerate the array. Then I taught
4836 myself some ruby looping and variable interpolation, and came up with
4837 this:
4838
4839 log "Marking thread #{thread.to_s} of size #{thread.size} as spam..."
4840 thread.each { |message| system 'cp', message, '/home/me/Maildir/Personal/INBOX.Mistakes/cur' }
4841
4842 and hey, it almost works, just incorrectly, my sup log gets:
4843
4844 hook[mark-as-spam]: Marking thread <thread containing: <20091110072526.5236749428B at waldenburg.org>> of size 1 as spam...
4845
4846 But... I dont know how to get the thread array to tell me where the
4847 actual file is. I spent some more quality time with the source, and I am
4848 pretty sure that a @thread is an array of Containers which contain the
4849 different Messages, which are accessed via Store... but i dont know if I
4850 can access any of that, there is a Thread class, Container class,
4851 Message class and finally a Source class, and I think the problem is
4852 that thread.each isn't an actual file its more of a thread object of
4853 some sort, and if I knew how to get at the actual file, I could just
4854 use a simple system call to copy it where I need to.
4855
4856 There has to be some way to have sup actually move a message, isn't
4857 there?
4858
4859 thanks for any help!
4860 micah
4861
4862
4863 From rlane@club.cc.cmu.edu Wed Nov 11 23:30:56 2009
4864 From: rlane@club.cc.cmu.edu (Rich Lane)
4865 Date: Wed, 11 Nov 2009 23:30:56 -0500
4866 Subject: [sup-talk] [PATCH] moved deriving the cmd for bouncing to
4867 Account and fixed a bug in it
4868 In-Reply-To: <1255159160-sup-8754@tilus.net>
4869 References: <1255159160-sup-8754@tilus.net>
4870 Message-ID: <1258000130-sup-4084@zyrg.net>
4871
4872 Excerpts from Tero Tilus's message of Sat Oct 10 03:21:33 -0400 2009:
4873 > The default sendmail command used for bouncing mail was derived from
4874 > Account#sendmail in ThreadViewMode#bounce. Moved it to
4875 > Account#bounce_sendmail. Part of work towards more DRY mail bouncing
4876 > within mark-as-spam hook. The code also had a bug, "$1" (instead of $1
4877 > or "#{$1}"). Fixed it.
4878 >
4879 > Signed-off-by: Tero Tilus <tero at tilus.net>
4880 > ---
4881 > lib/sup/account.rb | 11 +++++++++++
4882 > lib/sup/modes/thread-view-mode.rb | 7 +------
4883 > 2 files changed, 12 insertions(+), 6 deletions(-)
4884
4885 Looks good to me. Pushed to branch fix-bounce-cmd in my repo* and merged
4886 to master.
4887
4888 * git://github.com/rlane/sup
4889
4890 From rlane@club.cc.cmu.edu Thu Nov 12 01:40:14 2009
4891 From: rlane@club.cc.cmu.edu (Rich Lane)
4892 Date: Thu, 12 Nov 2009 01:40:14 -0500
4893 Subject: [sup-talk] mark-as-spam.rb and writing hooks
4894 In-Reply-To: <87bpj9ln49.fsf@pond.riseup.net>
4895 References: <87bpj9ln49.fsf@pond.riseup.net>
4896 Message-ID: <1258006050-sup-2926@zyrg.net>
4897
4898 Hi Micah,
4899
4900 Something like the following could work:
4901
4902 spam = thread.labels.member? :spam
4903 what = spam ? 'spam' : 'ham'
4904 source_uri = "maildir:///tmp/mistakes"
4905 source = SourceManager.source_for(source_uri) or fail "source not found"
4906 thread.each do |m,a,b|
4907 next if !m or m == :fake_root
4908 info "marking message #{m.id} as #{what}"
4909 source.store_message m.date, m.from.email do |f|
4910 m.each_raw_message_line { |l| f.puts l }
4911 end
4912 end
4913
4914 This code assumes a maildir (/tmp/mistakes) and that you've added it as
4915 a sup "source" with "sup-add -u maildir:///tmp/mistakes". When you mark
4916 a thread as spam/ham, it will store the messages into that maildir. One
4917 problem with the above code is that it does store the entire thread, so
4918 if only one message was miscategorized you'll end up confusing your spam
4919 filter. Depending on your exact mail setup you can probably do something
4920 smarter here.
4921
4922 Excerpts from Micah Anderson's message of Tue Nov 10 23:08:22 -0500 2009:
4923 > There has to be some way to have sup actually move a message, isn't
4924 > there?
4925
4926 Sup really doesn't like it when messages are deleted from a source.
4927 Best to just keep it a copy.
4928
4929 For other sup developers: it shouldn't take this much hook code to do
4930 this. I suggest renaming Source#store_message to Source#store_raw. A new
4931 Source#store_message should take a Message as the first argument and let
4932 the mbox From header address and date be optional with reasonable
4933 defaults. We should also have a Thread#each_message which ignores any
4934 result of Thread#each that isn't a Message. These two changes would make
4935 the hook above a lot less magical. What other API changes could we do
4936 to make writing hooks easier?
4937
4938 From andrew@pimlott.net Thu Nov 12 12:30:01 2009
4939 From: andrew@pimlott.net (Andrew Pimlott)
4940 Date: Thu, 12 Nov 2009 09:30:01 -0800
4941 Subject: [sup-talk] Problems with undo archive and thread focus
4942 In-Reply-To: <1257409101-sup-7780@pc44es141.cs.uni-magdeburg.de>
4943 References: <1257409101-sup-7780@pc44es141.cs.uni-magdeburg.de>
4944 Message-ID: <1258045702-sup-9760@pimlott.net>
4945
4946 Excerpts from Matthias Guedemann's message of Thu Nov 05 00:27:25 -0800 2009:
4947 > One is, if you hit 'a' in thread view mode, the thread is archived but undo does
4948 > not work. If you go back to index view and hit 'u' the just archived thread does
4949 > not appear, but the one before.
4950
4951 I was annoyed by this too and found that undo is minimally implemented.
4952 I added undo to thread view, at least for the cases that I care about or
4953 were easy. I have to say I was discouraged that this was necessary: the
4954 code to archive a thread should all be in one place, and the undo
4955 record should be created there. There's a lot of code duplication, and
4956 I can't tell if it's because the model and view are too coupled, or
4957 because nobody has bothered to factor it out.
4958
4959 The patch is appended. (This is the first time I've done this with git.)
4960
4961 > The second is, if I respond to a thread and send the mail, I normally want to
4962 > either archive that mail directly or label and archive it. But the thread is put
4963 > to the front and the focus is on the last place of the thread. Therefore I
4964 > sometimes archive the wrong thread (but undo comes in handy)
4965
4966 That's the next most annying thing for me. Hope to get a chance to work
4967 on it.
4968
4969 Andrew
4970
4971 Subject: [PATCH] create undo records in thread view
4972
4973 ---
4974 lib/sup/modes/thread-view-mode.rb | 19 ++++++++++++++++++-
4975 1 files changed, 18 insertions(+), 1 deletions(-)
4976
4977 diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
4978 index 81197c2..2f2d564 100644
4979 --- a/lib/sup/modes/thread-view-mode.rb
4980 +++ b/lib/sup/modes/thread-view-mode.rb
4981 @@ -254,7 +254,8 @@ EOS
4982 end
4983
4984 def edit_labels
4985 - reserved_labels = @thread.labels.select { |l| LabelManager::RESERVED_LABELS.include? l }
4986 + old_labels = @thread.labels
4987 + reserved_labels = old_labels.select { |l| LabelManager::RESERVED_LABELS.include? l }
4988 new_labels = BufferManager.ask_for_labels :label, "Labels for thread: ", @thread.labels
4989
4990 return unless new_labels
4991 @@ -262,6 +263,10 @@ EOS
4992 new_labels.each { |l| LabelManager << l }
4993 update
4994 UpdateManager.relay self, :labeled, @thread.first
4995 + UndoManager.register "labeling thread" do
4996 + @thread.labels = old_labels
4997 + UpdateManager.relay self, :labeled, @thread.first
4998 + end
4999 end
5000
5001 def toggle_starred
5002 @@ -476,6 +481,10 @@ EOS
5003 dispatch op do
5004 @thread.remove_label :inbox
5005 UpdateManager.relay self, :archived, @thread.first
5006 + UndoManager.register "archiving 1 thread" do
5007 + @thread.apply_label :inbox
5008 + UpdateManager.relay self, :unarchived, @thread.first
5009 + end
5010 end
5011 end
5012
5013 @@ -483,6 +492,10 @@ EOS
5014 dispatch op do
5015 @thread.apply_label :spam
5016 UpdateManager.relay self, :spammed, @thread.first
5017 + UndoManager.register "marking 1 thread as spam" do
5018 + @thread.remove_label :spam
5019 + UpdateManager.relay self, :unspammed, @thread.first
5020 + end
5021 end
5022 end
5023
5024 @@ -490,6 +503,10 @@ EOS
5025 dispatch op do
5026 @thread.apply_label :deleted
5027 UpdateManager.relay self, :deleted, @thread.first
5028 + UndoManager.register "deleting 1 thread" do
5029 + @thread.remove_label :deleted
5030 + UpdateManager.relay self, :undeleted, @thread.first
5031 + end
5032 end
5033 end
5034
5035 --
5036 1.5.6.5
5037
5038 --
5039 I've decided to go back to school. Kindergarden.
5040
5041 From rlane@club.cc.cmu.edu Thu Nov 12 13:50:54 2009
5042 From: rlane@club.cc.cmu.edu (Rich Lane)
5043 Date: Thu, 12 Nov 2009 13:50:54 -0500
5044 Subject: [sup-talk] mark-as-spam.rb and writing hooks
5045 In-Reply-To: <1258040153-sup-741@pond.riseup.net>
5046 References: <87bpj9ln49.fsf@pond.riseup.net> <1258006050-sup-2926@zyrg.net>
5047 <1258040153-sup-741@pond.riseup.net>
5048 Message-ID: <1258046671-sup-7062@zyrg.net>
5049
5050 Excerpts from micah anderson's message of Thu Nov 12 10:35:59 -0500 2009:
5051 > > spam = thread.labels.member? :spam
5052 > > what = spam ? 'spam' : 'ham'
5053 >
5054 > I'm curious about this 'what' piece. It seems like it is a way to
5055 > specify the message as 'spam' or 'ham', which is the second half of the
5056 > puzzle: go into my Spam source and review the messages there, if there
5057 > is a incorrectly categorized as spam message, I would typically stuff
5058 > that into Mistakes as well. It seems like you *have* built this into
5059 > this hook, but I don't understand how it is able to determine one from
5060 > the other? There is the 'S' mark-as-spam key, but there is no 'H'
5061 > mark-as-ham :)
5062
5063 There's only 'S' and the mark-as-spam hook, but you can tell whether the
5064 user has marked the thread as spam or ham by checking the labels. If the
5065 thread is labelled 'spam', it's spam.
5066
5067 > Yeah, I had realized this thread problem when I saw that the thread
5068 > variable was available for this hook. I think that this is mostly ok, I
5069 > think getting threaded spam is somewhat unusual... but I will pay
5070 > attention to see how frequently this happens. In the case that it
5071 > happens, i'll probably fire up mutt, categorize it as Spam, and then
5072 > re-index my sup index, which is what I was doing before.
5073
5074 If you can configure your spam filter so it reads from two folders,
5075 'spam' and 'ham', then you can safely store extra messages in them
5076 (assuming you don't have true-spam threaded with true-ham). My own setup
5077 is slightly different - I write the raw message to a tempfile and run
5078 sa-learn on it with --spam or --ham.
5079
5080 > > We should also have a Thread#each_message which ignores any
5081 > > result of Thread#each that isn't a Message. These two changes would make
5082 > > the hook above a lot less magical. What other API changes could we do
5083 > > to make writing hooks easier?
5084 >
5085 > Would that make it so the above thread problem would go away?
5086
5087 Nope, it would just mean easier iteration over the messages in a thread.
5088
5089 From carlosgc@gnome.org Fri Nov 13 04:11:38 2009
5090 From: carlosgc@gnome.org (Carlos Garcia Campos)
5091 Date: Fri, 13 Nov 2009 10:11:38 +0100
5092 Subject: [sup-talk] Sup not working anymore after abrupt reboot
5093 Message-ID: <21063fcb0911130111h234098b5oabe77bfdd14a0dab@mail.gmail.com>
5094
5095 Hi all,
5096
5097 my laptop ran out of battery while sup was polling new mail and now sup
5098 always fails to start.
5099 I don't know whether my ferret index is corrupt, this is the exception I
5100 get:
5101
5102 ----------------------------------------------------------------
5103 --- IOError from thread: main
5104 IO Error occured at <except.c>:93 in xraise
5105 Error occured in index.c:901 - sis_find_segments_file
5106 Error reading the segment infos. Store listing was
5107
5108
5109 /usr/lib/ruby/1.8/ferret/index.rb:736:in `initialize'
5110 /usr/lib/ruby/1.8/ferret/index.rb:736:in `new'
5111 /usr/lib/ruby/1.8/ferret/index.rb:736:in `ensure_reader_open'
5112 /usr/lib/ruby/1.8/ferret/index.rb:591:in `size'
5113 /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
5114 /usr/lib/ruby/1.8/ferret/index.rb:590:in `size'
5115 ./lib/sup/ferret_index.rb:31:in `load_index'
5116 /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
5117 ./lib/sup/ferret_index.rb:29:in `load_index'
5118 ./lib/sup/index.rb:67:in `load'
5119 ./lib/sup/util.rb:520:in `send'
5120 ./lib/sup/util.rb:520:in `method_missing'
5121 bin/sup:144
5122
5123 is there any way to recover it? (if possible without losing mi index . . . )
5124
5125 Thanks in advance.
5126 -------------- next part --------------
5127 An HTML attachment was scrubbed...
5128 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091113/59536d70/attachment.html>
5129
5130 From tero@tilus.net Fri Nov 13 06:10:17 2009
5131 From: tero@tilus.net (Tero Tilus)
5132 Date: Fri, 13 Nov 2009 13:10:17 +0200
5133 Subject: [sup-talk] Sup not working anymore after abrupt reboot
5134 In-Reply-To: <21063fcb0911130111h234098b5oabe77bfdd14a0dab@mail.gmail.com>
5135 References: <21063fcb0911130111h234098b5oabe77bfdd14a0dab@mail.gmail.com>
5136 Message-ID: <1258109288-sup-5579@tilus.net>
5137
5138 Carlos Garcia Campos, 2009-11-13 11:11:
5139 > I don't know whether my ferret index is corrupt, this is the exception I
5140 > get:
5141 >
5142 > ----------------------------------------------------------------
5143 > Error occured in index.c:901 - sis_find_segments_file
5144 > Error reading the segment infos.
5145
5146 I'm not familiar with the internals of ferret, but the error looks
5147 pretty bad. It might have lost part of index data files. Do you
5148 happen to have index or dump backups or find deleted files under
5149 ferret/ with using undelete tools?
5150
5151 Lessons learned...
5152
5153 Always have regular (automatic, if possible) backups of your index
5154 dump, ALWAYS! I have sup-dump in my backup2l before-hook.
5155
5156 Hum. I think for people who don't do cron backups it wouldn't be a
5157 bad idea to create (optional) rotating sup-dumps on every start. (and
5158 stop?)
5159
5160 --
5161 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
5162
5163 From eg@gaute.vetsj.com Fri Nov 13 06:57:05 2009
5164 From: eg@gaute.vetsj.com (Gaute Hope)
5165 Date: Fri, 13 Nov 2009 12:57:05 +0100
5166 Subject: [sup-talk] Sup not working anymore after abrupt reboot
5167 In-Reply-To: <21063fcb0911130111h234098b5oabe77bfdd14a0dab@mail.gmail.com>
5168 References: <21063fcb0911130111h234098b5oabe77bfdd14a0dab@mail.gmail.com>
5169 Message-ID: <1258113332-sup-7090@dolk>
5170
5171 Excerpts from Carlos Garcia Campos's message of fr. nov. 13 10:11:38 +0100 2009:
5172 > Hi all,
5173 >
5174 > my laptop ran out of battery while sup was polling new mail and now sup
5175 > always fails to start.
5176 > I don't know whether my ferret index is corrupt, this is the exception I
5177 > get:
5178 >
5179 > ----------------------------------------------------------------
5180 > --- IOError from thread: main
5181 > IO Error occured at <except.c>:93 in xraise
5182 > Error occured in index.c:901 - sis_find_segments_file
5183 > Error reading the segment infos. Store listing was
5184 >
5185 >
5186 > /usr/lib/ruby/1.8/ferret/index.rb:736:in `initialize'
5187 > /usr/lib/ruby/1.8/ferret/index.rb:736:in `new'
5188 > /usr/lib/ruby/1.8/ferret/index.rb:736:in `ensure_reader_open'
5189 > /usr/lib/ruby/1.8/ferret/index.rb:591:in `size'
5190 > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
5191 > /usr/lib/ruby/1.8/ferret/index.rb:590:in `size'
5192 > ./lib/sup/ferret_index.rb:31:in `load_index'
5193 > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
5194 > ./lib/sup/ferret_index.rb:29:in `load_index'
5195 > ./lib/sup/index.rb:67:in `load'
5196 > ./lib/sup/util.rb:520:in `send'
5197 > ./lib/sup/util.rb:520:in `method_missing'
5198 > bin/sup:144
5199
5200 Also, the xapian backend works better (doesn't help you now thou, im
5201 afraid).
5202
5203 - gaute
5204
5205 From micah@riseup.net Fri Nov 13 10:53:15 2009
5206 From: micah@riseup.net (Micah Anderson)
5207 Date: Fri, 13 Nov 2009 10:53:15 -0500
5208 Subject: [sup-talk] offlineimap before-poll.rb undefined method
5209 'usual_sources'
5210 Message-ID: <877htul8us.fsf@pond.riseup.net>
5211
5212
5213 The before-poll.rb wiki example[0] seems to be what I am interested in,
5214 however it doesn't work and provides a traceback. It reads as follows:
5215
5216 def offlineimap(*folders)
5217 cmd = "offlineimap -q -u Noninteractive.Basic"
5218 cmd << " -f #{folders * ','}" unless folders.compact.empty?
5219 `#{cmd}`
5220 end
5221
5222 def folder_names(sources)
5223 sources.map { |s| s.uri.split('/').last }
5224 end
5225
5226 def inbox_sources(sources = Index.usual_sources)
5227 sources.find_all { |s| !s.archived? }.sort_by {|s| s.id }
5228 end
5229
5230 if (@last_fetch || Time.at(0)) < Time.now - 120
5231 say "Running offlineimap..."
5232 # only check non-auto-archived sources on the first run
5233 log offlineimap(@last_fetch ? nil : folder_names(inbox_sources))
5234 say "Finished offlineimap run."
5235 end
5236 @last_fetch = Time.now
5237
5238 When I use this hook, i get this traceback in my sup log:
5239
5240 [Fri Nov 13 10:51:28 -0500 2009] hook: error running hook: undefined method `usual_sources' for #<Redwood::FerretIndex:0xb7520a64>
5241 [Fri Nov 13 10:51:28 -0500 2009] hook: /usr/lib/ruby/1.8/sup/util.rb:520:in `send'
5242 /usr/lib/ruby/1.8/sup/util.rb:520:in `method_missing'
5243 /home/micah/.sup/hooks/before-poll.rb:11:in `inbox_sources'
5244 /home/micah/.sup/hooks/before-poll.rb:18:in `__run'
5245 /usr/lib/ruby/1.8/sup/hook.rb:42:in `__run'
5246 /usr/lib/ruby/1.8/sup/hook.rb:82:in `run'
5247 /usr/lib/ruby/1.8/sup/util.rb:520:in `send'
5248 /usr/lib/ruby/1.8/sup/util.rb:520:in `method_missing'
5249 /usr/lib/ruby/1.8/sup/poll.rb:45:in `poll'
5250 /usr/lib/ruby/1.8/sup/util.rb:520:in `send'
5251 /usr/lib/ruby/1.8/sup/util.rb:520:in `method_missing'
5252 /usr/bin/sup-mail:195
5253 /usr/lib/ruby/1.8/sup.rb:76:in `reporting_thread'
5254 /usr/lib/ruby/1.8/sup.rb:74:in `initialize'
5255 /usr/lib/ruby/1.8/sup.rb:74:in `new'
5256 /usr/lib/ruby/1.8/sup.rb:74:in `reporting_thread'
5257 /usr/bin/sup-mail:195
5258 /usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:669:in `call'
5259 /usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:669:in `__unprotected_load_threads'
5260 /usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:610:in `call'
5261 /usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:610:in `load_n_threads_background'
5262 /usr/lib/ruby/1.8/sup.rb:76:in `reporting_thread'
5263 /usr/lib/ruby/1.8/sup.rb:74:in `initialize'
5264 /usr/lib/ruby/1.8/sup.rb:74:in `new'
5265 /usr/lib/ruby/1.8/sup.rb:74:in `reporting_thread'
5266 /usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:608:in `load_n_threads_background'
5267 /usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:679:in `__unprotected_load_threads'
5268 (eval):12:in `load_threads'
5269 /usr/bin/sup-mail:195
5270
5271 Thanks,
5272 micah
5273
5274
5275 0. http://sup.rubyforge.org/wiki/wiki.pl?Hooks
5276
5277
5278 From eg@gaute.vetsj.com Fri Nov 13 19:12:04 2009
5279 From: eg@gaute.vetsj.com (Gaute Hope)
5280 Date: Sat, 14 Nov 2009 01:12:04 +0100
5281 Subject: [sup-talk] offlineimap before-poll.rb undefined method
5282 'usual_sources'
5283 In-Reply-To: <877htul8us.fsf@pond.riseup.net>
5284 References: <877htul8us.fsf@pond.riseup.net>
5285 Message-ID: <1258157447-sup-5782@dolk>
5286
5287 Excerpts from Micah Anderson's message of fr. nov. 13 16:53:15 +0100 2009:
5288 >
5289 > The before-poll.rb wiki example[0] seems to be what I am interested in,
5290 > however it doesn't work and provides a traceback. It reads as follows:
5291 >
5292 > def offlineimap(*folders)
5293 > cmd = "offlineimap -q -u Noninteractive.Basic"
5294 > cmd << " -f #{folders * ','}" unless folders.compact.empty?
5295 > `#{cmd}`
5296 > end
5297 >
5298 > def folder_names(sources)
5299 > sources.map { |s| s.uri.split('/').last }
5300 > end
5301 >
5302 > def inbox_sources(sources = Index.usual_sources)
5303 > sources.find_all { |s| !s.archived? }.sort_by {|s| s.id }
5304 > end
5305 >
5306 > if (@last_fetch || Time.at(0)) < Time.now - 120
5307 > say "Running offlineimap..."
5308 > # only check non-auto-archived sources on the first run
5309 > log offlineimap(@last_fetch ? nil : folder_names(inbox_sources))
5310 > say "Finished offlineimap run."
5311 > end
5312 > @last_fetch = Time.now
5313
5314 Im using this modified version; and I filter the folders in
5315 offlineimaprc.
5316
5317
5318 def offlineimap(*folders)
5319 cmd = "offlineimap -u Noninteractive.Basic 2>&1"
5320 #cmd << " -f #{folders * ','}" unless folders.compact.empty?
5321 `#{cmd}`
5322 end
5323
5324 def folder_names(sources)
5325 sources.map { |s| s.uri.split('/').last }
5326 end
5327
5328 def inbox_sources(sources = SourceManager.sources)
5329 sources.find_all { |s| !s.archived? }.sort_by {|s| s.id }
5330 end
5331
5332 if (@last_fetch || Time.at(0)) < Time.now - 20
5333 say "Running offlineimap..."
5334 # only check non-auto-archived sources on the first run
5335 log offlineimap(@last_fetch ? nil : folder_names(inbox_sources))
5336 say "Finished offlineimap."
5337 end
5338 @last_fetch = Time.now
5339
5340 - gaute
5341 -------------- next part --------------
5342 A non-text attachment was scrubbed...
5343 Name: signature.asc
5344 Type: application/pgp-signature
5345 Size: 198 bytes
5346 Desc: not available
5347 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091114/359a15f2/attachment.bin>
5348
5349 From carlosgc@gnome.org Sat Nov 14 08:22:50 2009
5350 From: carlosgc@gnome.org (Carlos Garcia Campos)
5351 Date: Sat, 14 Nov 2009 14:22:50 +0100
5352 Subject: [sup-talk] Sup not working anymore after abrupt reboot
5353 In-Reply-To: <1258109288-sup-5579@tilus.net>
5354 References: <21063fcb0911130111h234098b5oabe77bfdd14a0dab@mail.gmail.com>
5355 <1258109288-sup-5579@tilus.net>
5356 Message-ID: <1258204741-sup-4254@charmaleon>
5357
5358 Excerpts from Tero Tilus's message of vie nov 13 12:10:17 +0100 2009:
5359 > Carlos Garcia Campos, 2009-11-13 11:11:
5360 > > I don't know whether my ferret index is corrupt, this is the exception I
5361 > > get:
5362 > >
5363 > > ----------------------------------------------------------------
5364 > > Error occured in index.c:901 - sis_find_segments_file
5365 > > Error reading the segment infos.
5366 >
5367 > I'm not familiar with the internals of ferret, but the error looks
5368 > pretty bad. It might have lost part of index data files.
5369
5370 indeed, I have had to build a new index scratch.
5371
5372 > Do you
5373 > happen to have index or dump backups or find deleted files under
5374 > ferret/ with using undelete tools?
5375
5376 No :-/
5377
5378 > Lessons learned...
5379 >
5380 > Always have regular (automatic, if possible) backups of your index
5381 > dump, ALWAYS! I have sup-dump in my backup2l before-hook.
5382
5383 Yes, I have a daily cron script for it now.
5384
5385 > Hum. I think for people who don't do cron backups it wouldn't be a
5386 > bad idea to create (optional) rotating sup-dumps on every start. (and
5387 > stop?)
5388 >
5389
5390 Thank you very much.
5391 --
5392 Carlos Garcia Campos
5393 PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
5394 -------------- next part --------------
5395 A non-text attachment was scrubbed...
5396 Name: signature.asc
5397 Type: application/pgp-signature
5398 Size: 197 bytes
5399 Desc: not available
5400 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091114/e7a99505/attachment.bin>
5401
5402 From matthias.guedemann@ovgu.de Mon Nov 16 04:42:18 2009
5403 From: matthias.guedemann@ovgu.de (Matthias Guedemann)
5404 Date: Mon, 16 Nov 2009 10:42:18 +0100
5405 Subject: [sup-talk] Problems with undo archive and thread focus
5406 In-Reply-To: <1258045702-sup-9760@pimlott.net>
5407 References: <1257409101-sup-7780@pc44es141.cs.uni-magdeburg.de>
5408 <1258045702-sup-9760@pimlott.net>
5409 Message-ID: <1258363822-sup-5470@pc44es141.cs.uni-magdeburg.de>
5410
5411
5412 Hi Andrew,
5413
5414 > The patch is appended. (This is the first time I've done this with git.)
5415
5416 thanks, works perfectly.
5417
5418 > That's the next most annying thing for me. Hope to get a chance to work
5419 > on it.
5420
5421 I had a look at the code and it should not be too hard, basically when a reply
5422 buffer is spawned (e.g. thread-view-mode line 168), a hook to call set_sursor_pos
5423 0 (as ThreadViewMode is a subclass of LineCursorMode) after successful sending of
5424 the reply should do the job.
5425
5426 But unfortunately I don't know too much about the inner workings of sup (can the
5427 HookManager be used for this? or should the hook be supplied as attribute to the
5428 reply-buffer?), or even Ruby, to do it at the moment.
5429
5430 best regards
5431
5432 Matthias
5433
5434
5435 --
5436 __________________________________________________________
5437 ___ __ __
5438 Dipl. Inf. Matthias Guedemann / __\/ _\ /__\
5439 Computer Systems in Engineering / / \ \ /_\
5440 Otto-von-Guericke Universitaet Magdeburg / /___ _\ \//__
5441 Tel.: 0391 / 67-19359 \____/ \__/\__/
5442 __________________________________________________________
5443
5444 From dhaval.giani@gmail.com Tue Nov 17 14:04:27 2009
5445 From: dhaval.giani@gmail.com (Dhaval Giani)
5446 Date: Wed, 18 Nov 2009 00:34:27 +0530
5447 Subject: [sup-talk] Bug report, importing emails into sup
5448 Message-ID: <8aa016e10911171104t7fd3e913y96e85e039c53ce98@mail.gmail.com>
5449
5450 Hi,
5451
5452 Attached an exception log.
5453
5454 Failure occured when trying to import mails from mbox after setting up
5455 using sup-config whicch failed and i tried to run sup after that
5456
5457 [dhaval at gondor sup]$ sup --version
5458 sup v0.9
5459 [dhaval at gondor sup]$
5460
5461
5462 Thanks,
5463 Dhaval
5464 --
5465
5466 Joan Crawford - "I, Joan Crawford, I believe in the dollar.
5467 Everything I earn, I spend." -
5468 http://www.brainyquote.com/quotes/authors/j/joan_crawford.html
5469 -------------- next part --------------
5470 --- NoMethodError from thread: poll after loading inbox
5471 undefined method `downcase' for nil:NilClass
5472 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/message.rb:502:in `message_to_chunks'
5473 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/message.rb:239:in `load_from_source!'
5474 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/message.rb:335:in `build_from_source'
5475 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/poll.rb:145:in `each_message_from'
5476 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/source.rb:104:in `each'
5477 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/util.rb:560:in `send'
5478 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/util.rb:560:in `__pass'
5479 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/util.rb:547:in `method_missing'
5480 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/poll.rb:139:in `each_message_from'
5481 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/poll.rb:93:in `do_poll'
5482 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/poll.rb:81:in `each'
5483 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/poll.rb:81:in `do_poll'
5484 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/poll.rb:80:in `synchronize'
5485 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/poll.rb:80:in `do_poll'
5486 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/util.rb:520:in `send'
5487 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/util.rb:520:in `method_missing'
5488 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/modes/poll-mode.rb:15:in `poll'
5489 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/poll.rb:48:in `poll'
5490 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/util.rb:520:in `send'
5491 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/util.rb:520:in `method_missing'
5492 /usr/lib/ruby/gems/1.8/gems/sup-0.9/bin/sup:196
5493 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup.rb:77:in `reporting_thread'
5494 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup.rb:75:in `initialize'
5495 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup.rb:75:in `new'
5496 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup.rb:75:in `reporting_thread'
5497 /usr/lib/ruby/gems/1.8/gems/sup-0.9/bin/sup:196
5498 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/modes/thread-index-mode.rb:669:in `call'
5499 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/modes/thread-index-mode.rb:669:in `__unprotected_load_threads'
5500 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/modes/thread-index-mode.rb:610:in `call'
5501 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/modes/thread-index-mode.rb:610:in `load_n_threads_background'
5502 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup.rb:77:in `reporting_thread'
5503 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup.rb:75:in `initialize'
5504 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup.rb:75:in `new'
5505 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup.rb:75:in `reporting_thread'
5506 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/modes/thread-index-mode.rb:608:in `load_n_threads_background'
5507 /usr/lib/ruby/gems/1.8/gems/sup-0.9/lib/sup/modes/thread-index-mode.rb:679:in `__unprotected_load_threads'
5508 (eval):12:in `load_threads'
5509 /usr/lib/ruby/gems/1.8/gems/sup-0.9/bin/sup:196
5510 /usr/bin/sup:19:in `load'
5511 /usr/bin/sup:19
5512
5513 From tero@tilus.net Wed Nov 18 07:38:25 2009
5514 From: tero@tilus.net (Tero Tilus)
5515 Date: Wed, 18 Nov 2009 14:38:25 +0200
5516 Subject: [sup-talk] Bug report, importing emails into sup
5517 In-Reply-To: <8aa016e10911171104t7fd3e913y96e85e039c53ce98@mail.gmail.com>
5518 References: <8aa016e10911171104t7fd3e913y96e85e039c53ce98@mail.gmail.com>
5519 Message-ID: <1258547658-sup-5136@tilus.net>
5520
5521 Dhaval Giani, 2009-11-17 21:04:
5522 > Failure occured when trying to import mails from mbox after setting up
5523 > using sup-config whicch failed and i tried to run sup after that
5524
5525 The trace is from sup, but you say it happened "when trying to import
5526 mails", which is usually done with sup-sync. What was your procedure?
5527 How did sup-config fail?
5528
5529 btw, we now have a brand new tracker <http://masanjin.net/sup-bugs/>
5530
5531 --
5532 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
5533
5534 From rlane@club.cc.cmu.edu Thu Nov 19 23:51:22 2009
5535 From: rlane@club.cc.cmu.edu (Rich Lane)
5536 Date: Thu, 19 Nov 2009 23:51:22 -0500
5537 Subject: [sup-talk] Problems with undo archive and thread focus
5538 In-Reply-To: <1258045702-sup-9760@pimlott.net>
5539 References: <1257409101-sup-7780@pc44es141.cs.uni-magdeburg.de>
5540 <1258045702-sup-9760@pimlott.net>
5541 Message-ID: <1258692213-sup-2324@zyrg.net>
5542
5543 Excerpts from Andrew Pimlott's message of Thu Nov 12 12:30:01 -0500 2009:
5544 > Excerpts from Matthias Guedemann's message of Thu Nov 05 00:27:25 -0800 2009:
5545 > > One is, if you hit 'a' in thread view mode, the thread is archived but undo does
5546 > > not work. If you go back to index view and hit 'u' the just archived thread does
5547 > > not appear, but the one before.
5548 >
5549 > I was annoyed by this too and found that undo is minimally implemented.
5550 > I added undo to thread view, at least for the cases that I care about or
5551 > were easy. I have to say I was discouraged that this was necessary: the
5552 > code to archive a thread should all be in one place, and the undo
5553 > record should be created there. There's a lot of code duplication, and
5554 > I can't tell if it's because the model and view are too coupled, or
5555 > because nobody has bothered to factor it out.
5556 >
5557 > The patch is appended. (This is the first time I've done this with git.)
5558
5559 Branch thread-view-mode-undo, merged to master at
5560 git://github.com/rlane/sup
5561
5562 From edwardludd@gmail.com Fri Nov 20 10:50:47 2009
5563 From: edwardludd@gmail.com (Ned Ludd)
5564 Date: Fri, 20 Nov 2009 10:50:47 -0500
5565 Subject: [sup-talk] Sup-sync exception
5566 Message-ID: <65a36ed50911200750q53cda26h5c5d374c6228a5a@mail.gmail.com>
5567
5568 There was a message about this a week or so ago. Did anyone ever find a fix?
5569
5570 When I run "sup-sync", regardless or the source (I tried IMAP and
5571 Maildir), I get this error:
5572
5573 $ sup-sync
5574 Scanning maildir:/home/nedludd/.mail/INBOX...
5575 /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/source.rb:88:in `done?':
5576 undefined method `>=' for true:TrueClass (NoMethodError)
5577 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:560:in `__pass'
5578 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:547:in
5579 `method_missing'
5580 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/poll.rb:137:in
5581 `each_message_from'
5582 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:520:in
5583 `method_missing'
5584 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/bin/sup-sync:146:in `block
5585 in <top (required)>'
5586 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/bin/sup-sync:141:in `each'
5587 from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/bin/sup-sync:141:in `<top
5588 (required)>'
5589 from /usr/bin/supbin/sup-sync:19:in `load'
5590 from /usr/bin/supbin/sup-sync:19:in `<main>'
5591
5592
5593 [I'm on Arch with sup 0.9 and Ruby 1.9.1]
5594
5595 -----
5596 Ned Ludd
5597
5598 From garoth@gmail.com Sat Nov 21 00:18:28 2009
5599 From: garoth@gmail.com (Andrei Thorp)
5600 Date: Sat, 21 Nov 2009 00:18:28 -0500
5601 Subject: [sup-talk] Sup-sync exception
5602 In-Reply-To: <65a36ed50911200750q53cda26h5c5d374c6228a5a@mail.gmail.com>
5603 References: <65a36ed50911200750q53cda26h5c5d374c6228a5a@mail.gmail.com>
5604 Message-ID: <80055d7c0911202118v4360f880n373676a90a92d3a3@mail.gmail.com>
5605
5606 You can solve this particular problem (I have), but then it uncovers
5607 quite a few other probems with sup and Ruby 1.9. As the maintainer of
5608 the sup package in the AUR, I pretty much recommend using ruby 1.8
5609 until the dev team can beat sup into working.
5610
5611 Sorry,
5612
5613 -AT
5614
5615 On Fri, Nov 20, 2009 at 10:50 AM, Ned Ludd <edwardludd at gmail.com> wrote:
5616 > There was a message about this a week or so ago. ?Did anyone ever find a fix?
5617 >
5618 > When I run "sup-sync", regardless or the source (I tried IMAP and
5619 > Maildir), I get this error:
5620 >
5621 > $ sup-sync
5622 > Scanning maildir:/home/nedludd/.mail/INBOX...
5623 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/source.rb:88:in `done?':
5624 > undefined method `>=' for true:TrueClass (NoMethodError)
5625 > ? ? ? ?from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:560:in `__pass'
5626 > ? ? ? ?from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:547:in
5627 > `method_missing'
5628 > ? ? ? ?from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/poll.rb:137:in
5629 > `each_message_from'
5630 > ? ? ? ?from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:520:in
5631 > `method_missing'
5632 > ? ? ? ?from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/bin/sup-sync:146:in `block
5633 > in <top (required)>'
5634 > ? ? ? ?from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/bin/sup-sync:141:in `each'
5635 > ? ? ? ?from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/bin/sup-sync:141:in `<top
5636 > (required)>'
5637 > ? ? ? ?from /usr/bin/supbin/sup-sync:19:in `load'
5638 > ? ? ? ?from /usr/bin/supbin/sup-sync:19:in `<main>'
5639 >
5640 >
5641 > [I'm on Arch with sup 0.9 and Ruby 1.9.1]
5642 >
5643 > -----
5644 > Ned Ludd
5645 > _______________________________________________
5646 > sup-talk mailing list
5647 > sup-talk at rubyforge.org
5648 > http://rubyforge.org/mailman/listinfo/sup-talk
5649 >
5650
5651 From rlane@club.cc.cmu.edu Mon Nov 23 18:33:06 2009
5652 From: rlane@club.cc.cmu.edu (Rich Lane)
5653 Date: Mon, 23 Nov 2009 18:33:06 -0500
5654 Subject: [sup-talk] Sup-sync exception
5655 In-Reply-To: <65a36ed50911200750q53cda26h5c5d374c6228a5a@mail.gmail.com>
5656 References: <65a36ed50911200750q53cda26h5c5d374c6228a5a@mail.gmail.com>
5657 Message-ID: <1259018950-sup-9876@zyrg.net>
5658
5659 Excerpts from Ned Ludd's message of Fri Nov 20 10:50:47 -0500 2009:
5660 > There was a message about this a week or so ago. Did anyone ever find a fix?
5661 >
5662 > When I run "sup-sync", regardless or the source (I tried IMAP and
5663 > Maildir), I get this error:
5664 >
5665 > $ sup-sync
5666 > Scanning maildir:/home/nedludd/.mail/INBOX...
5667 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/source.rb:88:in `done?':
5668 > undefined method `>=' for true:TrueClass (NoMethodError)
5669 > from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:560:in `__pass'
5670 > from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:547:in
5671 > `method_missing'
5672 > from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/poll.rb:137:in
5673 > `each_message_from'
5674 > from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/lib/sup/util.rb:520:in
5675 > `method_missing'
5676 > from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/bin/sup-sync:146:in `block
5677 > in <top (required)>'
5678 > from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/bin/sup-sync:141:in `each'
5679 > from /usr/lib/ruby/gems/1.9.1/gems/sup-0.9/bin/sup-sync:141:in `<top
5680 > (required)>'
5681 > from /usr/bin/supbin/sup-sync:19:in `load'
5682 > from /usr/bin/supbin/sup-sync:19:in `<main>'
5683 >
5684 >
5685 > [I'm on Arch with sup 0.9 and Ruby 1.9.1]
5686
5687 Is there a cur_offset key for every source in sources.yaml? If not (or
5688 if it is nil/blank) see if setting cur_offset to 0 fixes it.
5689
5690 From eg@gaute.vetsj.com Wed Nov 25 12:27:53 2009
5691 From: eg@gaute.vetsj.com (Gaute Hope)
5692 Date: Wed, 25 Nov 2009 18:27:53 +0100
5693 Subject: [sup-talk] browser filter / attachment ideas
5694 Message-ID: <1259170070-sup-7628@dolk>
5695
5696 Greetings,
5697
5698 Is there already a way to put a filter on the file browser?
5699 i.e: exclude anything that start with a '.' ? is there a hook for this?
5700
5701 I know there is a way of saving all attachments to a folder, but is
5702 there a way to save a single attachment to a folder, now when I want to
5703 save it I have to remove the file name to get tab-completion, and then
5704 type the file name again when I want to save it.
5705
5706 And sup doesn't understand attachment names with inline encoding:
5707 i.e.: =?ISO-8859-1?Q?framside_sm=E5_stader_STORE_VYER.jpg?=
5708 which should be displayed as: framside_sm?_stader_STORE_VYER.jpg
5709
5710 (see issue 24)
5711
5712 - gaute
5713
5714 From tero@tilus.net Thu Nov 26 07:13:18 2009
5715 From: tero@tilus.net (Tero Tilus)
5716 Date: Thu, 26 Nov 2009 14:13:18 +0200
5717 Subject: [sup-talk] browser filter / attachment ideas
5718 In-Reply-To: <1259170070-sup-7628@dolk>
5719 References: <1259170070-sup-7628@dolk>
5720 Message-ID: <1259237544-sup-7216@tilus.net>
5721
5722 Gaute Hope, 2009-11-25 19:27:
5723 > And sup doesn't understand attachment names with inline encoding:
5724 > i.e.: =?ISO-8859-1?Q?framside_sm=E5_stader_STORE_VYER.jpg?=
5725 > which should be displayed as: framside_sm?_stader_STORE_VYER.jpg
5726
5727 I think I have this fixed, but haven committed/pushed it. Shame on
5728 me. Should try to find time to do that...
5729
5730 --
5731 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
5732
5733 From guillaume.quintard@gmail.com Sun Nov 29 08:39:56 2009
5734 From: guillaume.quintard@gmail.com (Guillaume Quintard)
5735 Date: Sun, 29 Nov 2009 14:39:56 +0100
5736 Subject: [sup-talk] sup-add won't work.
5737 Message-ID: <1e5fdab70911290539j75355e9ds23468c866abae66b@mail.gmail.com>
5738
5739 Here, I have a somewhat clean install of sup (gems + next branch), and
5740 here's what I get at the end of sup-config :
5741
5742 Ok, trying to run "bin/sup-add mbox:/home/shivan/.gmail.mbox"...
5743 /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
5744 `gem_original_require': no such file to load -- sup (LoadError)
5745 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
5746 from bin/sup-add:7
5747
5748 Something changed?
5749
5750 --
5751 Guillaume
5752