community/pipermail-archives/sup-talk/2008-11.txt (177423B) - raw
1 From tpo2@sourcepole.ch Sat Nov 1 18:13:44 2008
2 From: tpo2@sourcepole.ch (Tomas Pospisek ML)
3 Date: Sat, 01 Nov 2008 22:13:44 +0000
4 Subject: [sup-talk] bug: reproducable Sup crash, ferret-less rewrite?
5 In-Reply-To: <C5313447.2C02%chrisw@rice.edu>
6 Message-ID: <J4OdBBA7.1225577624.9061510.tpo2@192.168.3.7>
7
8
9 On 11/1/2008, "Christopher Warrington" <chrisw at rice.edu> wrote:
10
11 >"Tomas Pospisek ML" <tpo2 at sourcepole.ch> @ 2008-10-31 6:52 PM:
12 >
13 >> I can not find any trace of the latter, i.e. Sup's source code
14 >> repository at Gitorious [3] doesn't show any ferret amputation. Are
15 >> you, William Morgan working on a Sup version that doesn't show that
16 >> supposedly ferret induced crashiness? Possibly your "private" branch
17 >> is not ready yet and not accessible?
18 >
19 >See these blog posts about "Sup: The Server!"
20 >http://all-thing.net/search/label/sup
21
22 Very interesting, thanks. So, while William Morgan is pursuing his
23 ambitous project [1]:
24 - has anybody tried to swap Ferret with any other indexer [also in [1]]?
25 - has anybody tried to fix the index corruption / ferret crash bug [2]?
26 *t
27
28 [1] http://rubyforge.org/pipermail/sup-talk/2008-July/001593.html
29 [2] http://ferret.davebalmain.com/trac/ticket/279
30
31 From decklin@red-bean.com Sun Nov 2 12:40:12 2008
32 From: decklin@red-bean.com (Decklin Foster)
33 Date: Sun, 02 Nov 2008 12:40:12 -0500
34 Subject: [sup-talk] EOFError crash
35 In-Reply-To: <1225392037-sup-9224@gillespie.rupamsunyata.org>
36 References: <1225392037-sup-9224@gillespie.rupamsunyata.org>
37 Message-ID: <1225647558-sup-7206@gillespie.rupamsunyata.org>
38
39 Excerpts from Decklin Foster's message of Thu Oct 30 14:42:40 -0400 2008:
40 > --- EOFError from thread: main
41
42 This just happened again. Should I put it into ditz or something? (I feel
43 exceedingly lame, but I don't have time to debug it today either.)
44
45 --
46 things change.
47 decklin at red-bean.com
48
49 From wmorgan-sup@masanjin.net Sun Nov 2 13:30:54 2008
50 From: wmorgan-sup@masanjin.net (William Morgan)
51 Date: Sun, 02 Nov 2008 10:30:54 -0800
52 Subject: [sup-talk] bug: reproducable Sup crash, ferret-less rewrite?
53 In-Reply-To: <J4OdBBA7.1225577624.9061510.tpo2@192.168.3.7>
54 References: <C5313447.2C02%chrisw@rice.edu>
55 <J4OdBBA7.1225577624.9061510.tpo2@192.168.3.7>
56 Message-ID: <1225650088-sup-7423@entry>
57
58 Reformatted excerpts from Tomas Pospisek ML's message of 2008-11-01:
59 > - has anybody tried to swap Ferret with any other indexer [also in
60 > [1]]?
61
62 Not AFAIK. There are a couple indexing options with Ruby bindings:
63 Sphinx, Xapian, Solr, and HyperEstraier, off the top of my head. When I
64 last looked, they all had their problems: Sphinx requires a daemon, is
65 overly tied to databases, and has no incremental indexing, Xapian is
66 confusing and doesn't seem to support document fields, Solr is Java,
67 HyperEstraier doesn't seem to have anyone using it, etc.
68
69 > - has anybody tried to fix the index corruption / ferret crash bug [2]?
70
71 I'd love for someone to do this! Ferret has the best API and document
72 model, by far, of any of the alternatives.
73 --
74 William <wmorgan-sup at masanjin.net>
75
76 From wmorgan-sup@masanjin.net Sun Nov 2 13:50:36 2008
77 From: wmorgan-sup@masanjin.net (William Morgan)
78 Date: Sun, 02 Nov 2008 10:50:36 -0800
79 Subject: [sup-talk] CPU at 99%
80 In-Reply-To: <6K5DuLg4.1225497709.2001540.tpo2@192.168.3.7>
81 References: <1225497126-sup-2054@entry>
82 <6K5DuLg4.1225497709.2001540.tpo2@192.168.3.7>
83 Message-ID: <1225651661-sup-1958@entry>
84
85 Reformatted excerpts from Tomas Pospisek ML's message of 2008-10-31:
86 > The "[poll-mode]" buffer shows an "infinite amount" of the following
87 > message:
88 > [...]
89 > Found message at 44352220 with labels {Sent, unread}
90 > Found message at 44352220 with labels {Sent, unread}
91 > Found message at 44352220 with labels {Sent, unread}
92 > Found message at 44352220 with labels {Sent, unread}
93 > Found message at 44352220 with labels {Sent, unread}
94
95 What kind of source is this? I'm guessing mbox. Can you try to figure
96 out what is around byte offset 44352220 in that file? Sup isn't
97 advancing beyond that for some reason.
98
99 > When I do that I get an "eternal" (?) output of:
100 >
101 > [Sam Nov 01 01:00:53 +0100 2008] faking from for message
102 > sup-faked-b5d74cf19a1ebaf02e979448d059d0f4: Sup Auto-generated Fake
103 > Sender <sup at fake.sender.example.com>
104 > [Sam Nov 01 01:00:53 +0100 2008] faking date header for
105 > sup-faked-b5d74cf19a1ebaf02e979448d059d0f4
106 > [Sam Nov 01 01:00:53 +0100 2008] faking message-id for message from Sup
107 > Auto-generated Fake Sender <sup at fake.sender.example.com>:
108 > sup-faked-b5d74cf19a1ebaf02e979448d059d0f4
109 > [Sam Nov 01 01:00:53 +0100 2008] faking from for message
110 > sup-faked-b5d74cf19a1ebaf02e979448d059d0f4: Sup Auto-generated Fake
111 > Sender <sup at fake.sender.example.com>
112 > [Sam Nov 01 01:00:53 +0100 2008] faking date header for
113 > sup-faked-b5d74cf19a1ebaf02e979448d059d0f4
114
115 This is almost definitely the same problem as above.
116 --
117 William <wmorgan-sup at masanjin.net>
118
119 From wmorgan-sup@masanjin.net Sun Nov 2 13:54:59 2008
120 From: wmorgan-sup@masanjin.net (William Morgan)
121 Date: Sun, 02 Nov 2008 10:54:59 -0800
122 Subject: [sup-talk] patch: accept "yes" when asked so
123 In-Reply-To: <7ny3wDtl.1225410022.1981460.tpo2@192.168.3.7>
124 References: <7ny3wDtl.1225410022.1981460.tpo2@192.168.3.7>
125 Message-ID: <1225652091-sup-4877@entry>
126
127 Reformatted excerpts from Tomas Pospisek ML's message of 2008-10-30:
128 > The patch below makes Sup accept a "yes" in addition to "y"
129
130 Applied, thanks!
131 --
132 William <wmorgan-sup at masanjin.net>
133
134 From wmorgan-sup@masanjin.net Sun Nov 2 13:58:05 2008
135 From: wmorgan-sup@masanjin.net (William Morgan)
136 Date: Sun, 02 Nov 2008 10:58:05 -0800
137 Subject: [sup-talk] patch: pluralize minute(s) second(s)
138 In-Reply-To: <jmft2NPp.1225409887.1308060.tpo2@192.168.3.7>
139 References: <jmft2NPp.1225409887.1308060.tpo2@192.168.3.7>
140 Message-ID: <1225652108-sup-1903@entry>
141
142 Reformatted excerpts from Tomas Pospisek ML's message of 2008-10-30:
143 > The patch below makes Sup say "1 second" instead of "1 seconds". Same
144 > for minute(s).
145
146 Applied, thanks! It will be a little easier for me in the future if you
147 can use git to generate the patches. But it's not vital. See
148 http://sup.rubyforge.org/wiki/wiki.pl?Contributing
149 --
150 William <wmorgan-sup at masanjin.net>
151
152 From wmorgan-sup@masanjin.net Sun Nov 2 14:30:54 2008
153 From: wmorgan-sup@masanjin.net (William Morgan)
154 Date: Sun, 02 Nov 2008 11:30:54 -0800
155 Subject: [sup-talk] improvement: add self as recipient on crypted sent
156 messages
157 In-Reply-To: <7tCX6GnV.1225386225.8453510.tpo2@192.168.3.7>
158 References: <v0HRsyuE.1225375036.4997550.tpo2@192.168.3.7>
159 <7tCX6GnV.1225386225.8453510.tpo2@192.168.3.7>
160 Message-ID: <1225654227-sup-7841@entry>
161
162 Reformatted excerpts from Tomas Pospisek ML's message of 2008-10-30:
163 > Patch is below. Two comments:
164
165 Applied, thanks!
166
167 > 1. is there a less ugly way to create a new Array with an additional
168 > element?
169
170 Nope, that's the right way.
171
172 > 2. the patch assumes that adding "From: " to gpg's" --recipient"s is a
173 > sensible thing to do and thus it does it with no questions asked
174
175 Seems reasonable to me.
176 --
177 William <wmorgan-sup at masanjin.net>
178
179 From tpo2@sourcepole.ch Mon Nov 3 15:45:27 2008
180 From: tpo2@sourcepole.ch (Tomas Pospisek ML)
181 Date: Mon, 03 Nov 2008 20:45:27 +0000
182 Subject: [sup-talk] CPU at 99%
183 In-Reply-To: <1225651661-sup-1958@entry>
184 Message-ID: <UIFTpH6o.1225745127.6308280.tpo2@192.168.3.7>
185
186
187 On 11/2/2008, "William Morgan" <wmorgan-sup at masanjin.net> wrote:
188
189 >Reformatted excerpts from Tomas Pospisek ML's message of 2008-10-31:
190 >> The "[poll-mode]" buffer shows an "infinite amount" of the following
191 >> message:
192 >> [...]
193 >> Found message at 44352220 with labels {Sent, unread}
194 >> Found message at 44352220 with labels {Sent, unread}
195 >> Found message at 44352220 with labels {Sent, unread}
196 >> Found message at 44352220 with labels {Sent, unread}
197 >> Found message at 44352220 with labels {Sent, unread}
198 >
199 >What kind of source is this? I'm guessing mbox.
200
201 Correct, that's mbox.
202
203 > Can you try to figure out what is around byte offset 44352220 in that file? Sup isn't
204 >advancing beyond that for some reason.
205
206 $ hexdump -C -s 44352219 -n 80 /home/tpo/mail/sent-mail/sent-mail-jan-2008
207 02a4c2db 0a 46 72 6f 6d 20 74 70 6f 32 2e 6c 6f 63 61 6c |.From
208 tpo2.local|
209 02a4c2eb 20 28 31 30 2e 32 2e 31 35 39 2e 35 30 29 20 69 |
210 (10.2.159.50) i|
211 02a4c2fb 63 6d 70 5f 73 65 71 3d 35 37 35 35 20 44 65 73 |cmp_seq=5755
212 Des|
213 02a4c30b 74 69 6e 61 74 69 6f 6e 20 48 6f 73 74 20 55 6e |tination
214 Host Un|
215 02a4c31b 72 65 61 63 68 61 62 6c 65 0a 46 72 6f 6d 20 74
216 |reachable.From t|
217
218 Thus the byte just before offset 44352220 is a 'a0' thus a newline with
219 a "^From" on the next line and thus I guess it's the same problem as:
220
221 http://rubyforge.org/pipermail/sup-talk/2008-October/001719.html
222
223 Regarding the "Sent" label mentioned in the log above I need to add
224 that I did something like this:
225
226 $ for i in $HOME/mail/sent-mail/*; do sup-add mbox:$i -a -l Sent ; done
227
228 That went OK, however, when I list labels in Sup I get this:
229
230 [...]
231 Sent 13 messages, 2 unread
232 Sent 6415 messages, 3271 unread
233 [...]
234
235 Thus apparently Sup get's a bit mixed up about the 'Sent' label.
236
237 *t
238
239 From tpo2@sourcepole.ch Mon Nov 3 16:29:30 2008
240 From: tpo2@sourcepole.ch (Tomas Pospisek ML)
241 Date: Mon, 03 Nov 2008 21:29:30 +0000
242 Subject: [sup-talk] CPU at 99%
243 In-Reply-To: <UIFTpH6o.1225745127.6308280.tpo2@192.168.3.7>
244 Message-ID: <Y0P2qz1p.1225747770.7655610.tpo2@192.168.3.7>
245
246
247 On 11/3/2008, "Tomas Pospisek ML" <tpo2 at sourcepole.ch> wrote:
248
249 >
250 >On 11/2/2008, "William Morgan" <wmorgan-sup at masanjin.net> wrote:
251 >
252 >>Reformatted excerpts from Tomas Pospisek ML's message of 2008-10-31:
253 >>> The "[poll-mode]" buffer shows an "infinite amount" of the following
254 >>> message:
255 >>> [...]
256 >>> Found message at 44352220 with labels {Sent, unread}
257 >>> Found message at 44352220 with labels {Sent, unread}
258 >>> Found message at 44352220 with labels {Sent, unread}
259 >>> Found message at 44352220 with labels {Sent, unread}
260 >>> Found message at 44352220 with labels {Sent, unread}
261 >>
262 >>What kind of source is this? I'm guessing mbox.
263 >
264 >Correct, that's mbox.
265 >
266 >> Can you try to figure out what is around byte offset 44352220 in that file? Sup isn't
267 >>advancing beyond that for some reason.
268 >
269 >$ hexdump -C -s 44352219 -n 80 /home/tpo/mail/sent-mail/sent-mail-jan-2008
270 >02a4c2db 0a 46 72 6f 6d 20 74 70 6f 32 2e 6c 6f 63 61 6c |.From
271 >tpo2.local|
272 >02a4c2eb 20 28 31 30 2e 32 2e 31 35 39 2e 35 30 29 20 69 |
273 >(10.2.159.50) i|
274 >02a4c2fb 63 6d 70 5f 73 65 71 3d 35 37 35 35 20 44 65 73 |cmp_seq=5755
275 >Des|
276 >02a4c30b 74 69 6e 61 74 69 6f 6e 20 48 6f 73 74 20 55 6e |tination
277 >Host Un|
278 >02a4c31b 72 65 61 63 68 61 62 6c 65 0a 46 72 6f 6d 20 74
279 >|reachable.From t|
280 >
281 >Thus the byte just before offset 44352220 is a 'a0' thus a newline with
282 >a "^From" on the next line and thus I guess it's the same problem as:
283 >
284 >http://rubyforge.org/pipermail/sup-talk/2008-October/001719.html
285
286 Oh, and I'm getting the impression, that Sup doesn't like:
287
288 "
289 >From
290 >>From
291 "
292
293 lines either...
294 *t
295
296 From israel.herraiz@gmail.com Mon Nov 3 19:08:41 2008
297 From: israel.herraiz@gmail.com (Israel Herraiz)
298 Date: Tue, 04 Nov 2008 01:08:41 +0100
299 Subject: [sup-talk] [PATCH] Wrap text attachments
300 Message-ID: <1225757268-sup-9251@elly>
301
302 Hi,
303
304 this patch wrap text attachaments, as well as messages. For me is
305 quite annoying to have to scroll to see the text attachments. Perhaps
306 it is useful for others too.
307
308 Cheers,
309 Israel
310
311 ---
312 lib/sup/message-chunks.rb | 3 +++
313 1 files changed, 3 insertions(+), 0 deletions(-)
314
315 diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
316 index cc895f3..99bd12b 100644
317 --- a/lib/sup/message-chunks.rb
318 +++ b/lib/sup/message-chunks.rb
319 @@ -65,6 +65,8 @@ Return value:
320 EOS
321 #' stupid ruby-mode
322
323 + WRAP_LEN = 80 # wrap text attachments at this width
324 +
325 ## raw_content is the post-MIME-decode content. this is used for
326 ## saving the attachment to disk.
327 attr_reader :content_type, :filename, :lines, :raw_content
328 @@ -95,6 +97,7 @@ EOS
329 @lines = nil
330 if text
331 @lines = text.gsub("\r\n", "\n").gsub(/\t/, " ").gsub(/\r/, "").split("\n")
332 + @lines = lines.map {|l| l.chomp.wrap WRAP_LEN}.flatten
333 @quotable = true
334 end
335 end
336 --
337 1.5.6.5
338
339 From nicolas.pouillard@gmail.com Tue Nov 4 08:29:40 2008
340 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
341 Date: Tue, 04 Nov 2008 14:29:40 +0100
342 Subject: [sup-talk] [PATCH] Wrap text attachments
343 In-Reply-To: <1225757268-sup-9251@elly>
344 References: <1225757268-sup-9251@elly>
345 Message-ID: <1225805250-sup-3958@ausone.local>
346
347 Excerpts from Israel Herraiz's message of Tue Nov 04 01:08:41 +0100 2008:
348 > Hi,
349
350 Hi,
351
352 > this patch wrap text attachaments, as well as messages. For me is
353 > quite annoying to have to scroll to see the text attachments. Perhaps
354 > it is useful for others too.
355
356 I have no opinion about this change.
357
358 However there is already a WRAP_LEN constant in this file, please provide
359 a patch that reuse the same constant.
360
361 Best regards,
362
363 > ---
364 > lib/sup/message-chunks.rb | 3 +++
365 > 1 files changed, 3 insertions(+), 0 deletions(-)
366 >
367 > diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
368 > index cc895f3..99bd12b 100644
369 > --- a/lib/sup/message-chunks.rb
370 > +++ b/lib/sup/message-chunks.rb
371 > @@ -65,6 +65,8 @@ Return value:
372 > EOS
373 > #' stupid ruby-mode
374 >
375 > + WRAP_LEN = 80 # wrap text attachments at this width
376 > +
377 > ## raw_content is the post-MIME-decode content. this is used for
378 > ## saving the attachment to disk.
379 > attr_reader :content_type, :filename, :lines, :raw_content
380 > @@ -95,6 +97,7 @@ EOS
381 > @lines = nil
382 > if text
383 > @lines = text.gsub("\r\n", "\n").gsub(/\t/, " ").gsub(/\r/, "").split("\n")
384 > + @lines = lines.map {|l| l.chomp.wrap WRAP_LEN}.flatten
385 > @quotable = true
386 > end
387 > end
388
389 --
390 Nicolas Pouillard aka Ertai
391
392 From israel.herraiz@gmail.com Tue Nov 4 09:07:21 2008
393 From: israel.herraiz@gmail.com (Israel Herraiz)
394 Date: Tue, 04 Nov 2008 15:07:21 +0100
395 Subject: [sup-talk] [PATCH] Wrap text attachments
396 In-Reply-To: <1225805250-sup-3958@ausone.local>
397 References: <1225757268-sup-9251@elly> <1225805250-sup-3958@ausone.local>
398 Message-ID: <1225807479-sup-1191@elly>
399
400 Excerpts from Nicolas's message on Nov 4, 2008 about 2 PM:
401 > However there is already a WRAP_LEN constant in this file, please provide
402 > a patch that reuse the same constant.
403
404 Find it below. I have moved the constant out of the Attachment and
405 Text classes, and it is now in the context of the Chunk module.
406
407 Cheers,
408 Israel
409
410
411 ---
412 lib/sup/message-chunks.rb | 4 +++-
413 1 files changed, 3 insertions(+), 1 deletions(-)
414
415 diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
416 index cc895f3..5b5c314 100644
417 --- a/lib/sup/message-chunks.rb
418 +++ b/lib/sup/message-chunks.rb
419 @@ -41,6 +41,8 @@ end
420
421 module Redwood
422 module Chunk
423 + WRAP_LEN = 80 # wrap messages and text attachments at this width
424 +
425 class Attachment
426 HookManager.register "mime-decode", <<EOS
427 Executes when decoding a MIME attachment.
428 @@ -95,6 +97,7 @@ EOS
429 @lines = nil
430 if text
431 @lines = text.gsub("\r\n", "\n").gsub(/\t/, " ").gsub(/\r/, "").split("\n")
432 + @lines = lines.map {|l| l.chomp.wrap WRAP_LEN}.flatten
433 @quotable = true
434 end
435 end
436 @@ -143,7 +146,6 @@ EOS
437 end
438
439 class Text
440 - WRAP_LEN = 80 # wrap at this width
441
442 attr_reader :lines
443 def initialize lines
444 --
445 1.5.6.5
446
447 From sgoldman@tower-research.com Tue Nov 4 10:59:17 2008
448 From: sgoldman@tower-research.com (Steve Goldman)
449 Date: Tue, 04 Nov 2008 10:59:17 -0500
450 Subject: [sup-talk] How can I make sup use word wrap in the message preview
451 buffer?
452 Message-ID: <1225814283-sup-1783@sgoldmanlinux.tower-research.com>
453
454
455 I write a message in emacs and then save it, and then the message is displayed to me with signature, etc., in a preview buffer. But the paragraphs are displayed as long lines. Life is too short for this. Please advise.
456
457 Thanks.
458 --
459
460 Steve Goldman
461 sgoldman at tower-research.com
462
463 T: 212.219.6014
464 F: 212.219.6007
465
466 Tower Research Capital, LLC
467 377 Broadway, 11th Fl.
468 New York, NY 10013
469
470 From sgoldman@tower-research.com Tue Nov 4 10:57:30 2008
471 From: sgoldman@tower-research.com (Steve Goldman)
472 Date: Tue, 04 Nov 2008 10:57:30 -0500
473 Subject: [sup-talk] Does sup have spell check?
474 Message-ID: <1225814181-sup-6494@sgoldmanlinux.tower-research.com>
475
476
477 This may have been answered in the archives of this list, but there is no good way to search them.
478
479 Thanks.
480 --
481
482 Steve Goldman
483 sgoldman at tower-research.com
484
485 T: 212.219.6014
486 F: 212.219.6007
487
488 Tower Research Capital, LLC
489 377 Broadway, 11th Fl.
490 New York, NY 10013
491
492 From sgoldman@tower-research.com Tue Nov 4 10:55:32 2008
493 From: sgoldman@tower-research.com (Steve Goldman)
494 Date: Tue, 04 Nov 2008 10:55:32 -0500
495 Subject: [sup-talk] How to make emacs position my cursor for me
496 Message-ID: <1225813971-sup-1137@sgoldmanlinux.tower-research.com>
497
498
499 I understand your religious fanaticism about top posting, etc. I'll buy into it if you can tell me how to make sup make emacs position my cursor in the correct place when I hit compose or reply. I want to hit 'c' or 'r' and immediately begin typing, instead of navigate around the buffer and dodge quoted text and a hundred signatures.
500
501 Thanks.
502 --
503
504 Steve Goldman
505 sgoldman at tower-research.com
506
507 T: 212.219.6014
508 F: 212.219.6007
509
510 Tower Research Capital, LLC
511 377 Broadway, 11th Fl.
512 New York, NY 10013
513
514 From johnbent@lanl.gov Tue Nov 4 11:11:32 2008
515 From: johnbent@lanl.gov (John Bent)
516 Date: Tue, 04 Nov 2008 09:11:32 -0700
517 Subject: [sup-talk] Does sup have spell check?
518 In-Reply-To: <1225814181-sup-6494@sgoldmanlinux.tower-research.com>
519 References: <1225814181-sup-6494@sgoldmanlinux.tower-research.com>
520 Message-ID: <1225814995-sup-5685@tangerine.lanl.gov>
521
522 Excerpts from Steve Goldman's message of Tue Nov 04 08:57:30 -0700 2008:
523 >
524 > This may have been answered in the archives of this list, but there is no good
525 > way to search them.
526 >
527 It doesn't. Most people use the spell checker with their editor.
528 For example, in my .sup/config.yaml, I have the following line:
529 :editor: vim -X -c 'set filetype=mail'
530
531 then I turn on spellcheck in my .vimrc for filetype=mail.
532
533 John
534 > Thanks.
535 > --
536 >
537 > Steve Goldman
538 > sgoldman at tower-research.com
539 >
540 > T: 212.219.6014
541 > F: 212.219.6007
542 >
543 > Tower Research Capital, LLC
544 > 377 Broadway, 11th Fl.
545 > New York, NY 10013
546
547 From steve@patter.mine.nu Tue Nov 4 11:25:42 2008
548 From: steve@patter.mine.nu (Stephen Patterson)
549 Date: Tue, 4 Nov 2008 16:25:42 +0000
550 Subject: [sup-talk] How to make emacs position my cursor for me
551 In-Reply-To: <1225813971-sup-1137@sgoldmanlinux.tower-research.com>
552 References: <1225813971-sup-1137@sgoldmanlinux.tower-research.com>
553 Message-ID: <20081104162542.GA25080@patter.mine.nu>
554
555 On 04 Nov 08, Steve Goldman (sgoldman at tower-research.com) wrote:
556 >
557 > I understand your religious fanaticism about top posting, etc. I'll buy into it if you can tell me how to make sup make emacs position my cursor in the correct place when I hit compose or reply. I want to hit 'c' or 'r' and immediately begin typing, instead of navigate around the buffer and dodge quoted text and a hundred signatures.
558
559 Not sure how you set the editor for sup, but "emacs +8" will start the
560 cursor on line 8. Mail clients (mutt) normally put the cursor at the top
561 though.
562
563 From steve@patter.mine.nu Tue Nov 4 11:26:26 2008
564 From: steve@patter.mine.nu (Stephen Patterson)
565 Date: Tue, 4 Nov 2008 16:26:26 +0000
566 Subject: [sup-talk] Does sup have spell check?
567 In-Reply-To: <1225814181-sup-6494@sgoldmanlinux.tower-research.com>
568 References: <1225814181-sup-6494@sgoldmanlinux.tower-research.com>
569 Message-ID: <20081104162626.GB25080@patter.mine.nu>
570
571 On 04 Nov 08, Steve Goldman (sgoldman at tower-research.com) wrote:
572 >
573 > This may have been answered in the archives of this list, but there is no good way to search them.
574
575 That would be handled by your editor, not sup. Try ispell-mode for
576 emacs.
577
578 From johnbent@lanl.gov Tue Nov 4 12:18:52 2008
579 From: johnbent@lanl.gov (John Bent)
580 Date: Tue, 04 Nov 2008 10:18:52 -0700
581 Subject: [sup-talk] How to make emacs position my cursor for me
582 In-Reply-To: <20081104162542.GA25080@patter.mine.nu>
583 References: <1225813971-sup-1137@sgoldmanlinux.tower-research.com>
584 <20081104162542.GA25080@patter.mine.nu>
585 Message-ID: <1225818851-sup-2254@tangerine.lanl.gov>
586
587 Excerpts from Stephen Patterson's message of Tue Nov 04 09:25:42 -0700 2008:
588 > On 04 Nov 08, Steve Goldman (sgoldman at tower-research.com) wrote:
589 > >
590 > > I understand your religious fanaticism about top posting, etc. I'll buy into it if you can tell me how to make sup make emacs position my cursor in the correct place when I hit compose or reply. I want to hit 'c' or 'r' and immediately begin typing, instead of navigate around the buffer and dodge quoted text and a hundred signatures.
591 >
592 > Not sure how you set the editor for sup, but "emacs +8" will start the
593 > cursor on line 8. Mail clients (mutt) normally put the cursor at the top
594 > though.
595 >
596 To set the editor for sup, just edit the :editor: line in
597 .sup/config.yaml.
598
599 vim has the same +N option but for email editing in sup I prefer
600 '+/^\s*\n' which sets the initial cursor position to the first blank
601 line (i.e. following the email headers).
602
603 John
604
605 From nicolas.pouillard@gmail.com Tue Nov 4 14:06:11 2008
606 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
607 Date: Tue, 04 Nov 2008 20:06:11 +0100
608 Subject: [sup-talk] How to make emacs position my cursor for me
609 In-Reply-To: <1225818851-sup-2254@tangerine.lanl.gov>
610 References: <1225813971-sup-1137@sgoldmanlinux.tower-research.com>
611 <20081104162542.GA25080@patter.mine.nu>
612 <1225818851-sup-2254@tangerine.lanl.gov>
613 Message-ID: <1225825527-sup-6138@ausone.local>
614
615 Excerpts from John Bent's message of Tue Nov 04 18:18:52 +0100 2008:
616 > Excerpts from Stephen Patterson's message of Tue Nov 04 09:25:42 -0700 2008:
617 > > On 04 Nov 08, Steve Goldman (sgoldman at tower-research.com) wrote:
618 > > >
619 > > > I understand your religious fanaticism about top posting, etc. I'll buy into it if you can tell me how to make sup make emacs position my cursor in the correct place when I hit compose or reply. I want to hit 'c' or 'r' and immediately begin typing, instead of navigate around the buffer and dodge quoted text and a hundred signatures.
620 > >
621 > > Not sure how you set the editor for sup, but "emacs +8" will start the
622 > > cursor on line 8. Mail clients (mutt) normally put the cursor at the top
623 > > though.
624 > >
625 > To set the editor for sup, just edit the :editor: line in
626 > .sup/config.yaml.
627 >
628 > vim has the same +N option but for email editing in sup I prefer
629 > '+/^\s*\n' which sets the initial cursor position to the first blank
630 > line (i.e. following the email headers).
631
632 Cool, thanks for the tip!
633
634 --
635 Nicolas Pouillard aka Ertai
636
637 From wmorgan-sup@masanjin.net Tue Nov 4 16:08:14 2008
638 From: wmorgan-sup@masanjin.net (William Morgan)
639 Date: Tue, 04 Nov 2008 13:08:14 -0800
640 Subject: [sup-talk] How can I make sup use word wrap in the message
641 preview buffer?
642 In-Reply-To: <1225814283-sup-1783@sgoldmanlinux.tower-research.com>
643 References: <1225814283-sup-1783@sgoldmanlinux.tower-research.com>
644 Message-ID: <1225832450-sup-3822@entry>
645
646 Hi Steve!
647
648 Reformatted excerpts from Steve Goldman's message of 2008-11-04:
649 > I write a message in emacs and then save it, and then the message is
650 > displayed to me with signature, etc., in a preview buffer. But the
651 > paragraphs are displayed as long lines.
652
653 Sup displays exactly what the email looks like. Emacs may be displaying
654 it wrapped, but it isn't actually wrapping it (i.e. putting \n's in.)
655 You need to press meta-Q or whatever the Emacs command is to actually
656 wrap those paragraphs.
657
658 I don't have Sup do any wrapping because it's better left to the
659 editor---there may very well be portions of the message you don't want
660 wrapped (code snippets, log file snippets, etc.)
661 --
662 William <wmorgan-sup at masanjin.net>
663
664 From tpo2@sourcepole.ch Tue Nov 4 16:28:35 2008
665 From: tpo2@sourcepole.ch (Tomas Pospisek ML)
666 Date: Tue, 04 Nov 2008 21:28:35 +0000
667 Subject: [sup-talk] Patch: jump to body on compose [was: Re: How to make
668 emacs position my cursor for me]
669 In-Reply-To: <1225825527-sup-6138@ausone.local>
670 Message-ID: <aojKlrxp.1225834115.9805500.tpo2@192.168.3.7>
671
672
673 On 11/4/2008, "Nicolas Pouillard" <nicolas.pouillard at gmail.com> wrote:
674
675 >Excerpts from John Bent's message of Tue Nov 04 18:18:52 +0100 2008:
676 >> Excerpts from Stephen Patterson's message of Tue Nov 04 09:25:42 -0700 2008:
677 >> > On 04 Nov 08, Steve Goldman (sgoldman at tower-research.com) wrote:
678 >> > >
679 >> > > I understand your religious fanaticism about top posting, etc. I'll buy into it if you can tell me how to make sup make emacs position my cursor in the correct place when I hit compose or reply. I want to hit 'c' or 'r' and immediately begin typing, instead of navigate around the buffer and dodge quoted text and a hundred signatures.
680 >> >
681 >> > Not sure how you set the editor for sup, but "emacs +8" will start the
682 >> > cursor on line 8. Mail clients (mutt) normally put the cursor at the top
683 >> > though.
684 >> >
685 >> To set the editor for sup, just edit the :editor: line in
686 >> .sup/config.yaml.
687 >>
688 >> vim has the same +N option but for email editing in sup I prefer
689 >> '+/^\s*\n' which sets the initial cursor position to the first blank
690 >> line (i.e. following the email headers).
691 >
692 >Cool, thanks for the tip!
693
694 Sounds like a reasonable default to me. (Sorry for not putting this into
695 a Git repo William. In case I get around hacking larger pieces of Sup
696 I'll do that I promise):
697
698 --- sup.rb.orig 2008-11-04 22:19:35.000000000 +0100
699 +++ sup.rb 2008-11-04 22:23:45.000000000 +0100
700 @@ -212,7 +212,8 @@
701 :signature => File.join(ENV["HOME"], ".signature")
702 }
703 },
704 - :editor => ENV["EDITOR"] || "/usr/bin/vim -f -c 'setlocal spell
705 spelllang=en_us' -c 'set filetype=mail'",
706 + :editor => ENV["EDITOR"] ||
707 + '/usr/bin/vim -f -c "setlocal spell spelllang=en_us"
708 -c "set filetype=mail" -c \'+/^\s*\n\'',
709 :thread_by_subject => false,
710 :edit_signature => false,
711 :ask_for_cc => true,
712
713 From tpo2@sourcepole.ch Tue Nov 4 16:30:31 2008
714 From: tpo2@sourcepole.ch (Tomas Pospisek ML)
715 Date: Tue, 04 Nov 2008 21:30:31 +0000
716 Subject: [sup-talk] Does sup have spell check?
717 In-Reply-To: <1225814995-sup-5685@tangerine.lanl.gov>
718 Message-ID: <LMhHHzmC.1225834231.9403150.tpo2@192.168.3.7>
719
720
721 On 11/4/2008, "John Bent" <johnbent at lanl.gov> wrote:
722
723 >Excerpts from Steve Goldman's message of Tue Nov 04 08:57:30 -0700 2008:
724 >>
725 >> This may have been answered in the archives of this list, but there is no good
726 >> way to search them.
727 >>
728 >It doesn't. Most people use the spell checker with their editor.
729 >For example, in my .sup/config.yaml, I have the following line:
730 >:editor: vim -X -c 'set filetype=mail'
731 >
732 >then I turn on spellcheck in my .vimrc for filetype=mail.
733
734 Sup 0.6 switches on spell checking for vim by default.
735 *t
736
737 From johnbent@lanl.gov Tue Nov 4 17:11:09 2008
738 From: johnbent@lanl.gov (John Bent)
739 Date: Tue, 04 Nov 2008 15:11:09 -0700
740 Subject: [sup-talk] Patch: jump to body on compose [was: Re: How to
741 make emacs position my cursor for me]
742 In-Reply-To: <aojKlrxp.1225834115.9805500.tpo2@192.168.3.7>
743 References: <1225825527-sup-6138@ausone.local>
744 <aojKlrxp.1225834115.9805500.tpo2@192.168.3.7>
745 Message-ID: <1225836311-sup-7605@tangerine.lanl.gov>
746
747 Excerpts from Tomas Pospisek ML's message of Tue Nov 04 14:28:35 -0700 2008:
748 >
749 > On 11/4/2008, "Nicolas Pouillard" <nicolas.pouillard at gmail.com> wrote:
750 >
751 > >Excerpts from John Bent's message of Tue Nov 04 18:18:52 +0100 2008:
752 > >> Excerpts from Stephen Patterson's message of Tue Nov 04 09:25:42 -0700 2008:
753 > >> > On 04 Nov 08, Steve Goldman (sgoldman at tower-research.com) wrote:
754 > >> > >
755 > >> > > I understand your religious fanaticism about top posting, etc. I'll buy into it if you can tell me how to make sup make emacs position my cursor in the correct place when I hit compose or reply. I want to hit 'c' or 'r' and immediately begin typing, instead of navigate around the buffer and dodge quoted text and a hundred signatures.
756 > >> >
757 > >> > Not sure how you set the editor for sup, but "emacs +8" will start the
758 > >> > cursor on line 8. Mail clients (mutt) normally put the cursor at the top
759 > >> > though.
760 > >> >
761 > >> To set the editor for sup, just edit the :editor: line in
762 > >> .sup/config.yaml.
763 > >>
764 > >> vim has the same +N option but for email editing in sup I prefer
765 > >> '+/^\s*\n' which sets the initial cursor position to the first blank
766 > >> line (i.e. following the email headers).
767 > >
768 > >Cool, thanks for the tip!
769 >
770 > Sounds like a reasonable default to me. (Sorry for not putting this into
771 > a Git repo William. In case I get around hacking larger pieces of Sup
772 > I'll do that I promise):
773 >
774 You don't want the preceding -c. The tics (') are to protect the
775 slashes and wildcards from the shell. This is what you want:
776
777 '/usr/bin/vim -f +/^\s*\n-c "setlocal spell spelllang=en_us" -c "set filetype=mail" '
778
779 I also like passing -X to make it go a little faster in a terminal....
780
781 John
782
783 > --- sup.rb.orig 2008-11-04 22:19:35.000000000 +0100
784 > +++ sup.rb 2008-11-04 22:23:45.000000000 +0100
785 > @@ -212,7 +212,8 @@
786 > :signature => File.join(ENV["HOME"], ".signature")
787 > }
788 > },
789 > - :editor => ENV["EDITOR"] || "/usr/bin/vim -f -c 'setlocal spell
790 > spelllang=en_us' -c 'set filetype=mail'",
791 > + :editor => ENV["EDITOR"] ||
792 > + '/usr/bin/vim -f -c "setlocal spell spelllang=en_us"
793 > -c "set filetype=mail" -c \'+/^\s*\n\'',
794 > :thread_by_subject => false,
795 > :edit_signature => false,
796 > :ask_for_cc => true,
797
798 From sgoldman@tower-research.com Tue Nov 4 17:55:57 2008
799 From: sgoldman@tower-research.com (Steve Goldman)
800 Date: Tue, 04 Nov 2008 17:55:57 -0500
801 Subject: [sup-talk] Can sup only "save threads" on exit??
802 Message-ID: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
803
804
805 When I quit, sup goes through a slow process where it "saves" all the
806 modified threads. This is problematic because 1) it takes a long
807 time, and 2) if sup crashes before I get a chance to exit, then I have
808 to rearchive everything again.
809
810 Thanks.
811 --
812
813 Steve Goldman
814 sgoldman at tower-research.com
815
816 T: 212.219.6014
817 F: 212.219.6007
818
819 Tower Research Capital, LLC
820 377 Broadway, 11th Fl.
821 New York, NY 10013
822
823 From sgoldman@tower-research.com Tue Nov 4 17:57:45 2008
824 From: sgoldman@tower-research.com (Steve Goldman)
825 Date: Tue, 04 Nov 2008 17:57:45 -0500
826 Subject: [sup-talk] How can I explicitly add a contact?
827 Message-ID: <1225839391-sup-4642@sgoldmanlinux.tower-research.com>
828
829
830 For instance, there is no auto complete when I try to mail this list
831 because the address isn't in my contacts list. The help menu does not
832 indicate a way to add it.
833
834 Slightly related, not sure how the contacts list guesses who my
835 favorites are, but people I email should have much higher priority
836 than people who email me.
837
838 Thanks.
839
840 --
841
842 Steve Goldman
843 sgoldman at tower-research.com
844
845 T: 212.219.6014
846 F: 212.219.6007
847
848 Tower Research Capital, LLC
849 377 Broadway, 11th Fl.
850 New York, NY 10013
851
852 From johnbent@lanl.gov Tue Nov 4 19:36:00 2008
853 From: johnbent@lanl.gov (John Bent)
854 Date: Tue, 04 Nov 2008 17:36:00 -0700
855 Subject: [sup-talk] Can sup only "save threads" on exit??
856 In-Reply-To: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
857 References: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
858 Message-ID: <1225845336-sup-7105@tangerine.lanl.gov>
859
860 Excerpts from Steve Goldman's message of Tue Nov 04 15:55:57 -0700 2008:
861 >
862 > When I quit, sup goes through a slow process where it "saves" all the
863 > modified threads. This is problematic because 1) it takes a long
864 > time, and 2) if sup crashes before I get a chance to exit, then I have
865 > to rearchive everything again.
866 >
867 Do a 'H' and look at the help. '$' does save now.
868
869 John
870 > Thanks.
871 > --
872 >
873 > Steve Goldman
874 > sgoldman at tower-research.com
875 >
876 > T: 212.219.6014
877 > F: 212.219.6007
878 >
879 > Tower Research Capital, LLC
880 > 377 Broadway, 11th Fl.
881 > New York, NY 10013
882
883 From johnbent@lanl.gov Tue Nov 4 19:46:36 2008
884 From: johnbent@lanl.gov (John Bent)
885 Date: Tue, 04 Nov 2008 17:46:36 -0700
886 Subject: [sup-talk] How can I explicitly add a contact?
887 In-Reply-To: <1225839391-sup-4642@sgoldmanlinux.tower-research.com>
888 References: <1225839391-sup-4642@sgoldmanlinux.tower-research.com>
889 Message-ID: <1225845897-sup-9430@tangerine.lanl.gov>
890
891 Excerpts from Steve Goldman's message of Tue Nov 04 15:57:45 -0700 2008:
892 >
893 > For instance, there is no auto complete when I try to mail this list
894 > because the address isn't in my contacts list. The help menu does not
895 > indicate a way to add it.
896 >
897 To add a contact, type 'i' while reading the email when focus is on the
898 contact name.
899
900 > Slightly related, not sure how the contacts list guesses who my
901 > favorites are, but people I email should have much higher priority
902 > than people who email me.
903 >
904 You might look on the wiki page for lbdb:
905 http://sup.rubyforge.org/wiki/wiki.pl?LbdbIntegration
906
907 For contacts, I've been using a combination of sup's built-in contacts and
908 lbdb. Also, I just saw this old thread about hooks for contacts:
909 http://www.nabble.com/External-contact-manager-address-book-td17110396.html
910
911 John
912 > Thanks.
913 >
914 > --
915 >
916 > Steve Goldman
917 > sgoldman at tower-research.com
918 >
919 > T: 212.219.6014
920 > F: 212.219.6007
921 >
922 > Tower Research Capital, LLC
923 > 377 Broadway, 11th Fl.
924 > New York, NY 10013
925
926 From johnbent@lanl.gov Tue Nov 4 19:47:49 2008
927 From: johnbent@lanl.gov (John Bent)
928 Date: Tue, 04 Nov 2008 17:47:49 -0700
929 Subject: [sup-talk] lbdb contact hook
930 Message-ID: <1225846009-sup-1388@tangerine.lanl.gov>
931
932 Has anyone written an extra-contact-addresses hook for lbdb? If so,
933 I'd really appreciate a copy.
934
935 Thanks,
936
937 John
938
939 From nicolas.pouillard@gmail.com Wed Nov 5 08:06:46 2008
940 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
941 Date: Wed, 05 Nov 2008 14:06:46 +0100
942 Subject: [sup-talk] Can sup only "save threads" on exit??
943 In-Reply-To: <1225845336-sup-7105@tangerine.lanl.gov>
944 References: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
945 <1225845336-sup-7105@tangerine.lanl.gov>
946 Message-ID: <1225890375-sup-623@ausone.inria.fr>
947
948 Excerpts from John Bent's message of Wed Nov 05 01:36:00 +0100 2008:
949 > Excerpts from Steve Goldman's message of Tue Nov 04 15:55:57 -0700 2008:
950 > >
951 > > When I quit, sup goes through a slow process where it "saves" all the
952 > > modified threads. This is problematic because 1) it takes a long
953 > > time, and 2) if sup crashes before I get a chance to exit, then I have
954 > > to rearchive everything again.
955 > >
956 > Do a 'H' and look at the help. '$' does save now.
957
958 The help is '?' actually.
959
960 --
961 Nicolas Pouillard aka Ertai
962
963 From ehabkost@raisama.net Wed Nov 5 09:17:00 2008
964 From: ehabkost@raisama.net (Eduardo Habkost)
965 Date: Wed, 5 Nov 2008 12:17:00 -0200
966 Subject: [sup-talk] Removing sources (+ crash after trying)
967 Message-ID: <20081105141700.GF5247@blackpad>
968
969 Hi,
970
971 While testing sup, sometimes I had typed incorrectly the path for sup-add,
972 and I've found any way to remove the sources I've added. Is there a way
973 to do that?
974
975 Risking doing something stupid, I simply removed the source from
976 ~/.sup/sources.yaml, and now I am getting this when running sup-sync:
977
978 [Wed Nov 05 11:54:15 -0200 2008] saving index and sources...
979 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/label.rb:81:in `sort': undefined method `<=>' for :"kvm-devel":Symbol (NoMethodError)
980 from /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/label.rb:81:in `save'
981 from /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/label.rb:81:in `open'
982 from /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/label.rb:81:in `save'
983 from /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/util.rb:499:in `send'
984 from /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/util.rb:499:in `method_missing'
985 from /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:131:in `finish'
986 from /usr/lib/ruby/gems/1.8/gems/sup-999/bin/sup-sync:243
987 from /usr/bin/sup-sync:19:in `load'
988 from /usr/bin/sup-sync:19
989
990 I have little ruby experience, so I have no clue on what could be causing
991 that error. I am not even sure if the error was really caused by the
992 mess I did on sources.yaml.
993
994 I am running sup from mainline.git.
995
996 I've did the 'sup-dump;rm -rf ~/.sup/ferret;sup-sync' stuff mentioned
997 on the FAQ, but the problem persists.
998
999 My labels.txt file is empty (maybe because of the crash?). My sources.yaml
1000 currently looks like this:
1001
1002 =========================================
1003 ---
1004 - !masanjin.net,2006-10-01/Redwood/Maildir
1005 uri: maildir:/home/ehabkost/mail/lkml-l/
1006 cur_offset: 12258932500006359
1007 usual: true
1008 archived: true
1009 id: 1
1010 labels:
1011 - lkml
1012 mtimes:
1013 cur: 2008-11-03 10:19:13 -02:00
1014 new: 2008-11-05 11:54:10 -02:00
1015 - !masanjin.net,2006-10-01/Redwood/Maildir
1016 uri: maildir:/home/ehabkost/mail/kvm-devel-l/
1017 cur_offset: 12258909480004381
1018 usual: true
1019 archived: true
1020 id: 2
1021 labels:
1022 - kvm-devel
1023 mtimes:
1024 cur: 2008-11-04 18:19:50 -02:00
1025 new: 2008-11-05 11:15:48 -02:00
1026 - !masanjin.net,2006-10-01/Redwood/Maildir
1027 uri: maildir:/home/ehabkost/mail/rh/memo-l/
1028 cur_offset: 12258930050005616
1029 usual: true
1030 archived: true
1031 id: 3
1032 labels:
1033 - rh-memo
1034 mtimes:
1035 cur: 2008-10-13 20:09:02 -03:00
1036 new: 2008-11-05 11:50:05 -02:00
1037 - !masanjin.net,2006-10-01/Redwood/Maildir
1038 uri: maildir:/home/ehabkost/mail/sup-talk-l/
1039 cur_offset: 12258880050004663
1040 usual: true
1041 archived: true
1042 id: 6
1043 labels:
1044 - sup-talk
1045 mtimes:
1046 cur: 2008-11-05 11:31:51 -02:00
1047 new: 2008-11-05 10:42:29 -02:00
1048 - !masanjin.net,2006-10-01/Redwood/SentLoader
1049 cur_offset: 919
1050 - !masanjin.net,2006-10-01/Redwood/DraftLoader
1051 cur_offset: 0
1052 =====================
1053
1054 --
1055 Eduardo
1056
1057 From sgoldman@tower-research.com Wed Nov 5 09:34:42 2008
1058 From: sgoldman@tower-research.com (Steve Goldman)
1059 Date: Wed, 05 Nov 2008 09:34:42 -0500
1060 Subject: [sup-talk] Can sup only "save threads" on exit??
1061 In-Reply-To: <1225845336-sup-7105@tangerine.lanl.gov>
1062 References: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
1063 <1225845336-sup-7105@tangerine.lanl.gov>
1064 Message-ID: <1225895601-sup-7171@sgoldmanlinux.tower-research.com>
1065
1066 Excerpts from John Bent's message of Tue Nov 04 19:36:00 -0500 2008:
1067 > Excerpts from Steve Goldman's message of Tue Nov 04 15:55:57 -0700 2008:
1068 > >
1069 > > When I quit, sup goes through a slow process where it "saves" all the
1070 > > modified threads. This is problematic because 1) it takes a long
1071 > > time, and 2) if sup crashes before I get a chance to exit, then I have
1072 > > to rearchive everything again.
1073 > >
1074 > Do a 'H' and look at the help. '$' does save now.
1075 >
1076 > John
1077
1078 Great. Is there a setting to make sup do this automatically every
1079 once in a while? It would be nice to be able to leave sup open all
1080 day, or many days, and not have to worry about remembering to hit '$'
1081 or a crash.
1082
1083 Thanks.
1084 --
1085
1086 Steve Goldman
1087 sgoldman at tower-research.com
1088
1089 T: 212.219.6014
1090 F: 212.219.6007
1091
1092 Tower Research Capital, LLC
1093 377 Broadway, 11th Fl.
1094 New York, NY 10013
1095
1096 From sgoldman@tower-research.com Wed Nov 5 10:08:09 2008
1097 From: sgoldman@tower-research.com (Steve Goldman)
1098 Date: Wed, 05 Nov 2008 10:08:09 -0500
1099 Subject: [sup-talk] Can't figure out how to use aliases
1100 Message-ID: <1225897590-sup-8793@sgoldmanlinux.tower-research.com>
1101
1102
1103 I can't get sup to replace an alias with its email address when I send
1104 To: an alias. This is really confusing.
1105
1106 Thanks.
1107 --
1108
1109 Steve Goldman
1110 sgoldman at tower-research.com
1111
1112 T: 212.219.6014
1113 F: 212.219.6007
1114
1115 Tower Research Capital, LLC
1116 377 Broadway, 11th Fl.
1117 New York, NY 10013
1118
1119 From wmorgan-sup@masanjin.net Wed Nov 5 12:48:34 2008
1120 From: wmorgan-sup@masanjin.net (William Morgan)
1121 Date: Wed, 05 Nov 2008 09:48:34 -0800
1122 Subject: [sup-talk] EOFError crash
1123 In-Reply-To: <1225647558-sup-7206@gillespie.rupamsunyata.org>
1124 References: <1225392037-sup-9224@gillespie.rupamsunyata.org>
1125 <1225647558-sup-7206@gillespie.rupamsunyata.org>
1126 Message-ID: <1225907100-sup-4816@entry>
1127
1128 Reformatted excerpts from Decklin Foster's message of 2008-11-02:
1129 > This just happened again. Should I put it into ditz or something? (I
1130 > feel exceedingly lame, but I don't have time to debug it today
1131 > either.)
1132
1133 No. Sadly, this is one of the innumerable Ferret errors that crop up
1134 from time to time, which spurred STS.
1135 --
1136 William <wmorgan-sup at masanjin.net>
1137
1138 From wmorgan-sup@masanjin.net Wed Nov 5 12:59:18 2008
1139 From: wmorgan-sup@masanjin.net (William Morgan)
1140 Date: Wed, 05 Nov 2008 09:59:18 -0800
1141 Subject: [sup-talk] Can sup only "save threads" on exit??
1142 In-Reply-To: <1225895601-sup-7171@sgoldmanlinux.tower-research.com>
1143 References: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
1144 <1225845336-sup-7105@tangerine.lanl.gov>
1145 <1225895601-sup-7171@sgoldmanlinux.tower-research.com>
1146 Message-ID: <1225907935-sup-8746@entry>
1147
1148 Reformatted excerpts from Steve Goldman's message of 2008-11-05:
1149 > Great. Is there a setting to make sup do this automatically every
1150 > once in a while? It would be nice to be able to leave sup open all
1151 > day, or many days, and not have to worry about remembering to hit '$'
1152 > or a crash.
1153
1154 There is not. Patches accepted!
1155 --
1156 William <wmorgan-sup at masanjin.net>
1157
1158 From wmorgan-sup@masanjin.net Wed Nov 5 13:34:13 2008
1159 From: wmorgan-sup@masanjin.net (William Morgan)
1160 Date: Wed, 05 Nov 2008 10:34:13 -0800
1161 Subject: [sup-talk] Removing sources (+ crash after trying)
1162 In-Reply-To: <20081105141700.GF5247@blackpad>
1163 References: <20081105141700.GF5247@blackpad>
1164 Message-ID: <1225909971-sup-384@entry>
1165
1166 Reformatted excerpts from Eduardo Habkost's message of 2008-11-05:
1167 > While testing sup, sometimes I had typed incorrectly the path for
1168 > sup-add, and I've found any way to remove the sources I've added. Is
1169 > there a way to do that?
1170
1171 What you did is the best option so far: edit sources.yaml directly.
1172
1173 > [Wed Nov 05 11:54:15 -0200 2008] saving index and sources...
1174 > /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/label.rb:81:in `sort':
1175 > undefined method `<=>' for :"kvm-devel":Symbol (NoMethodError)
1176
1177 Weird. I'm not sure what would've caused this, but I doubt it was the
1178 removal of that source.
1179
1180 At any rate, I've pushed a "defensive programming" patch that should fix
1181 this, so git pull and see if it works now.
1182 --
1183 William <wmorgan-sup at masanjin.net>
1184
1185 From wmorgan-sup@masanjin.net Wed Nov 5 13:40:02 2008
1186 From: wmorgan-sup@masanjin.net (William Morgan)
1187 Date: Wed, 05 Nov 2008 10:40:02 -0800
1188 Subject: [sup-talk] You've got the "From " bug, I'm afraid.
1189 In-Reply-To: <20081030034127.GK1092@digitalkingdom.org>
1190 References: <20081030034127.GK1092@digitalkingdom.org>
1191 Message-ID: <1225910189-sup-4581@entry>
1192
1193 Reformatted excerpts from Robin Lee Powell's message of 2008-10-29:
1194 > I'm trying out sup, coming from mutt, and I've hit what is, for me,
1195 > a show-stopper bug.
1196 >
1197 > sup things that the line:
1198 >
1199 > From bob:
1200 >
1201 > starts a new mail in mbox files.
1202 >
1203 > I put lines like that all over the place in my mails.
1204
1205 Do those lines actually occur raw in the mbox files? Because this is
1206 the standard, well-known mbox design flaw, but the solution is typically
1207 for clients to write ">From" instead of "From " when adding messages to
1208 the mbox.
1209
1210 If mutt writes those lines raw, then Sup may have to be more heuristic
1211 in my mbox scanning. OTOH, we've had a large number of Sup users who
1212 come from mutt (including me!), and I think you're the first who's
1213 complained of this.
1214 --
1215 William <wmorgan-sup at masanjin.net>
1216
1217 From wmorgan-sup@masanjin.net Wed Nov 5 13:41:58 2008
1218 From: wmorgan-sup@masanjin.net (William Morgan)
1219 Date: Wed, 05 Nov 2008 10:41:58 -0800
1220 Subject: [sup-talk] bug: "hoe" dependency missing
1221 In-Reply-To: <n1iftxuQ.1225351681.9861340.tpo2@192.168.3.7>
1222 References: <n1iftxuQ.1225351681.9861340.tpo2@192.168.3.7>
1223 Message-ID: <1225910416-sup-4468@entry>
1224
1225 Reformatted excerpts from Tomas Pospisek ML's message of 2008-10-30:
1226 > Is this a gem or a sup problem?
1227
1228 A Sup problem. I've just fixed it in git.
1229 --
1230 William <wmorgan-sup at masanjin.net>
1231
1232 From wmorgan-sup@masanjin.net Wed Nov 5 13:45:12 2008
1233 From: wmorgan-sup@masanjin.net (William Morgan)
1234 Date: Wed, 05 Nov 2008 10:45:12 -0800
1235 Subject: [sup-talk] improvement: mention sup-announce on sup's web page
1236 In-Reply-To: <9OtUANH0.1225352121.6313560.tpo2@192.168.3.7>
1237 References: <9OtUANH0.1225352121.6313560.tpo2@192.168.3.7>
1238 Message-ID: <1225910573-sup-450@entry>
1239
1240 Reformatted excerpts from Tomas Pospisek ML's message of 2008-10-30:
1241 > Therefore I fetched the www/index.html page from sup's git repository in
1242 > order to send in a patch to the list. However sup's homepage seems to
1243 > be generated by some tool from hel...sinki (producing massive amounts of
1244 > HTML "noise"). Would it be possible to:
1245
1246 Eh? That file is hand-written HTML. From this comment:
1247
1248 > - replace the index.html file with a "sane" one without the
1249 > CSS/everything inside tables/line numbering "noise"
1250
1251 I suspect you downloaded an annotated version from Gitorious. If you
1252 click the "raw blob data" link, you'll get the original, or if you do a
1253 regular git clone of sup, you'll see a www/index.html that is
1254 human-editable.
1255 --
1256 William <wmorgan-sup at masanjin.net>
1257
1258 From wmorgan-sup@masanjin.net Wed Nov 5 13:50:40 2008
1259 From: wmorgan-sup@masanjin.net (William Morgan)
1260 Date: Wed, 05 Nov 2008 10:50:40 -0800
1261 Subject: [sup-talk] UTF-8 in replies?
1262 In-Reply-To: <rTObwtfT.1225372572.3650890.tpo2@192.168.3.7>
1263 References: <rTObwtfT.1225372572.3650890.tpo2@192.168.3.7>
1264 Message-ID: <1225910991-sup-4786@entry>
1265
1266 Reformatted excerpts from Tomas Pospisek ML's message of 2008-10-30:
1267 > I wrote a message containing a lot of czech characters (using vim as
1268 > my editor). When ':wq'-ing from vim, Sup showed me the horrible
1269 > results... aparently it did not recognize, that the message was in
1270 > UTF-8 (as indicated by 'file' when giving it vim's temporary file).
1271 >
1272 > And apparently it doesn't seem to be possible to tell Sup either to
1273 > add an encoding to the message?
1274
1275 Sup is currently utf-8 only, but getting curses, utf-8 and ruby to play
1276 nicely together still requires some work on your part.
1277
1278 See: http://sup.rubyforge.org/wiki/wiki.pl?UTF8
1279 --
1280 William <wmorgan-sup at masanjin.net>
1281
1282 From ehabkost@raisama.net Wed Nov 5 13:54:50 2008
1283 From: ehabkost@raisama.net (Eduardo Habkost)
1284 Date: Wed, 05 Nov 2008 16:54:50 -0200
1285 Subject: [sup-talk] Removing sources (+ crash after trying)
1286 In-Reply-To: <1225909971-sup-384@entry>
1287 References: <20081105141700.GF5247@blackpad> <1225909971-sup-384@entry>
1288 Message-ID: <1225911069-sup-953@blackpad>
1289
1290 Excerpts from William Morgan's message of Wed Nov 05 16:34:13 -0200 2008:
1291 > Reformatted excerpts from Eduardo Habkost's message of 2008-11-05:
1292 > > [Wed Nov 05 11:54:15 -0200 2008] saving index and sources...
1293 > > /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/label.rb:81:in `sort':
1294 > > undefined method `<=>' for :"kvm-devel":Symbol (NoMethodError)
1295 >
1296 > Weird. I'm not sure what would've caused this, but I doubt it was the
1297 > removal of that source.
1298 >
1299 > At any rate, I've pushed a "defensive programming" patch that should fix
1300 > this, so git pull and see if it works now.
1301
1302 It worked. Thanks!
1303
1304 BTW, this is my first real e-mail message sent using sup. 8)
1305 --
1306 Eduardo
1307
1308 From tpo2@sourcepole.ch Wed Nov 5 15:00:28 2008
1309 From: tpo2@sourcepole.ch (Tomas Pospisek ML)
1310 Date: Wed, 05 Nov 2008 20:00:28 +0000
1311 Subject: [sup-talk] You've got the "From " bug, I'm afraid.
1312 In-Reply-To: <1225910189-sup-4581@entry>
1313 Message-ID: <W49eawbv.1225915228.1271020.tpo2@192.168.3.7>
1314
1315
1316 On 11/5/2008, "William Morgan" <wmorgan-sup at masanjin.net> wrote:
1317
1318 >Reformatted excerpts from Robin Lee Powell's message of 2008-10-29:
1319 >> I'm trying out sup, coming from mutt, and I've hit what is, for me,
1320 >> a show-stopper bug.
1321 >>
1322 >> sup things that the line:
1323 >>
1324 >> From bob:
1325 >>
1326 >> starts a new mail in mbox files.
1327 >>
1328 >> I put lines like that all over the place in my mails.
1329 >
1330 >Do those lines actually occur raw in the mbox files? Because this is
1331 >the standard, well-known mbox design flaw, but the solution is typically
1332 >for clients to write ">From" instead of "From " when adding messages to
1333 >the mbox.
1334 >
1335 >If mutt writes those lines raw, then Sup may have to be more heuristic
1336 >in my mbox scanning. OTOH, we've had a large number of Sup users who
1337 >come from mutt (including me!), and I think you're the first who's
1338 >complained of this.
1339
1340 I'm coming from (al)pine and alpine. There actually is a line like this
1341 in the raw mbox:
1342
1343 ----------------
1344 blablabla
1345 >From bla bli blu
1346 bla bla bla
1347 ----------------
1348
1349 Apparently (al)pine doesn't quote, when there's not _an empty line_
1350 before the "From" line. [1] seems to provide a little bit of a meager
1351 reference.
1352 *t
1353
1354 [1] http://qmail.org/qmail-manual-html/man5/mbox.html
1355
1356 From wmorgan-sup@masanjin.net Wed Nov 5 15:49:07 2008
1357 From: wmorgan-sup@masanjin.net (William Morgan)
1358 Date: Wed, 05 Nov 2008 12:49:07 -0800
1359 Subject: [sup-talk] Removing sources (+ crash after trying)
1360 In-Reply-To: <1225911069-sup-953@blackpad>
1361 References: <20081105141700.GF5247@blackpad> <1225909971-sup-384@entry>
1362 <1225911069-sup-953@blackpad>
1363 Message-ID: <1225918139-sup-6086@entry>
1364
1365 Reformatted excerpts from Eduardo Habkost's message of 2008-11-05:
1366 > BTW, this is my first real e-mail message sent using sup. 8)
1367
1368 Congrats!
1369 --
1370 William <wmorgan-sup at masanjin.net>
1371
1372 From barton.schaefer@gmail.com Wed Nov 5 20:16:51 2008
1373 From: barton.schaefer@gmail.com (Bart Schaefer)
1374 Date: Wed, 5 Nov 2008 17:16:51 -0800
1375 Subject: [sup-talk] You've got the "From " bug, I'm afraid.
1376 In-Reply-To: <W49eawbv.1225915228.1271020.tpo2@192.168.3.7>
1377 References: <1225910189-sup-4581@entry>
1378 <W49eawbv.1225915228.1271020.tpo2@192.168.3.7>
1379 Message-ID: <6bb609560811051716u26bb7e8dtfc215f293140b32b@mail.gmail.com>
1380
1381 On Wed, Nov 5, 2008 at 12:00 PM, Tomas Pospisek ML <tpo2 at sourcepole.ch> wrote:
1382 >
1383 > Apparently (al)pine doesn't quote, when there's not _an empty line_
1384 > before the "From" line. [1] seems to provide a little bit of a meager
1385 > reference.
1386
1387 Pine and by inheritance alpine have a very strict view of what
1388 constitutes valid syntax for the line that begins a new message in
1389 mbox format. It has to have the email address in the correct place,
1390 the date has to be in the correct format, etc., or it doesn't count.
1391 I believe it has a configuration option for whether it sticks a ">" in
1392 front of lines that begin with "From " but don't have the entire
1393 correct layout.
1394
1395 Other email clients have a much more liberal notion of what
1396 constitutes a so-called From_ line. Mush/Z-Mail, the email clients
1397 that I used to work on (as in, write the C code for) 15 years ago,
1398 would accept a fairly wide variety of formats, but they all had to
1399 have an address and something resembling a date.
1400
1401 From tpo2@sourcepole.ch Wed Nov 5 20:50:21 2008
1402 From: tpo2@sourcepole.ch (Tomas Pospisek ML)
1403 Date: Thu, 06 Nov 2008 01:50:21 +0000
1404 Subject: [sup-talk] You've got the "From " bug, I'm afraid.
1405 In-Reply-To: <6bb609560811051716u26bb7e8dtfc215f293140b32b@mail.gmail.com>
1406 Message-ID: <G7u3qtTP.1225936221.0933950.tpo2@192.168.3.7>
1407
1408
1409 On 11/6/2008, "Bart Schaefer" <barton.schaefer at gmail.com> wrote:
1410
1411 >On Wed, Nov 5, 2008 at 12:00 PM, Tomas Pospisek ML <tpo2 at sourcepole.ch> wrote:
1412 >>
1413 >> Apparently (al)pine doesn't quote, when there's not _an empty line_
1414 >> before the "From" line. [1] seems to provide a little bit of a meager
1415 >> reference.
1416 >
1417 >Pine and by inheritance alpine have a very strict view of what
1418 >constitutes valid syntax for the line that begins a new message in
1419 >mbox format. It has to have the email address in the correct place,
1420 >the date has to be in the correct format, etc., or it doesn't count.
1421 >I believe it has a configuration option for whether it sticks a ">" in
1422 >front of lines that begin with "From " but don't have the entire
1423 >correct layout.
1424 >
1425 >Other email clients have a much more liberal notion of what
1426 >constitutes a so-called From_ line. Mush/Z-Mail, the email clients
1427 >that I used to work on (as in, write the C code for) 15 years ago,
1428 >would accept a fairly wide variety of formats, but they all had to
1429 >have an address and something resembling a date.
1430
1431 Possibly (al)pine is following RFC 4155, that describes how the "From"
1432 delimiter should look like down in Appendix A... ?
1433 *t
1434
1435 From barton.schaefer@gmail.com Thu Nov 6 06:21:32 2008
1436 From: barton.schaefer@gmail.com (Bart Schaefer)
1437 Date: Thu, 6 Nov 2008 03:21:32 -0800
1438 Subject: [sup-talk] You've got the "From " bug, I'm afraid.
1439 In-Reply-To: <G7u3qtTP.1225936221.0933950.tpo2@192.168.3.7>
1440 References: <6bb609560811051716u26bb7e8dtfc215f293140b32b@mail.gmail.com>
1441 <G7u3qtTP.1225936221.0933950.tpo2@192.168.3.7>
1442 Message-ID: <6bb609560811060321m61dc3f6by5cf603c406980628@mail.gmail.com>
1443
1444 On Wed, Nov 5, 2008 at 5:50 PM, Tomas Pospisek ML <tpo2 at sourcepole.ch> wrote:
1445 >
1446 > Possibly (al)pine is following RFC 4155, that describes how the "From"
1447 > delimiter should look like down in Appendix A... ?
1448
1449 Given the history, I think it's equally likely that RFC 4155 follows
1450 Pine. :-) The original mbox driver from the UW c-client package
1451 predates that RFC by nearly 20 years. 4155 is a case of documenting
1452 folklore so that newcomers don't have to learn it by hearsay.
1453
1454 From ehabkost@raisama.net Thu Nov 6 09:33:23 2008
1455 From: ehabkost@raisama.net (Eduardo Habkost)
1456 Date: Thu, 06 Nov 2008 12:33:23 -0200
1457 Subject: [sup-talk] EOFError crash
1458 In-Reply-To: <1225907100-sup-4816@entry>
1459 References: <1225392037-sup-9224@gillespie.rupamsunyata.org>
1460 <1225647558-sup-7206@gillespie.rupamsunyata.org>
1461 <1225907100-sup-4816@entry>
1462 Message-ID: <1225981048-sup-9011@blackpad>
1463
1464 Excerpts from William Morgan's message of Wed Nov 05 15:48:34 -0200 2008:
1465 > Reformatted excerpts from Decklin Foster's message of 2008-11-02:
1466 > > This just happened again. Should I put it into ditz or something? (I
1467 > > feel exceedingly lame, but I don't have time to debug it today
1468 > > either.)
1469 >
1470 > No. Sadly, this is one of the innumerable Ferret errors that crop up
1471 > from time to time, which spurred STS.
1472
1473 I've been easily reproducing crashes similar to this one. The only thing
1474 I need to reproduce it is making sure I load another label while sup is
1475 still polling for new messages.
1476
1477 If I deliver a lot of new messages to a maildir source and don't run
1478 sup-sync, sup will spend a few seconds loading the new messages and
1479 there is plenty of time to hit L, go to a label (I don't know if it
1480 needs to be the same label the new messages being loaded are getting),
1481 and see the crash.
1482
1483 The "workaround" I am using here is being careful to never hit L when the
1484 "polling for new messages" message is shown on the screen.
1485
1486 I have a small collection of core files, also (6 of them, by now),
1487 all of them are from segfaults on the following line on ferret source:
1488
1489 #6 0x00421752 in is_seek (is=0xab75220, pos=31838147) at store.c:285
1490 285 is->m->seek_i(is, pos);
1491
1492 Where is->m is corrupted (either 0 or a bogus value such as 0x10c0).
1493
1494 I don't have the ruby abort message for all of them, but I remember one
1495 of them was triggered on lib/sup/index.rb, line 377 (at the
1496 'fake_header = { ... }' stuff). Unfortunately ruby doesn't produce a
1497 ruby stack trace on segfault, so I don't know what else was running at
1498 the time of the crash (especially on the other threads).
1499
1500 The C backtrace looks like this:
1501
1502 #0 0x00110416 in __kernel_vsyscall ()
1503 #1 0x00c76660 in raise () from /lib/libc.so.6
1504 #2 0x00c78028 in abort () from /lib/libc.so.6
1505 #3 0x004b6f08 in rb_bug (fmt=<value optimized out>) at error.c:214
1506 #4 0x00525dfb in sigsegv (sig=<value optimized out>) at signal.c:629
1507 #5 <signal handler called>
1508 #6 0x00421752 in is_seek (is=0xa67f3a0, pos=24745648) at store.c:285
1509 #7 0x003f42ea in cmpdi_read_i (is=0xafdbfa0, b=0xacda138 "\030\"?", len=170) at compound_io.c:140
1510 #8 0x00421605 in is_read_bytes (is=0xafdbfa0, buf=0xacda138 "\030\"?", len=170) at store.c:267
1511 #9 0x00432c93 in lazy_df_get_data (self=0xafe7100, i=<value optimized out>) at index.c:1207
1512 #10 0x0042b1c8 in frt_lazy_df_load (self=3063423180, rkey=13439246, lazy_df=0xafe7100) at r_index.c:1949
1513 #11 0x004ba02b in call_cfunc (func=<value optimized out>, recv=<value optimized out>, len=<value optimized out>, argc=<value optimized out>,
1514 argv=<value optimized out>) at eval.c:5721
1515 #12 0x004c4e66 in rb_call0 (klass=<value optimized out>, recv=<value optimized out>, id=<value optimized out>, oid=<value optimized out>, argc=<value optimized out>,
1516 argv=<value optimized out>, body=<value optimized out>, flags=<value optimized out>) at eval.c:5861
1517 #13 0x004c50ba in rb_call (klass=<value optimized out>, recv=<value optimized out>, mid=<value optimized out>, argc=<value optimized out>,
1518 argv=<value optimized out>, scope=<value optimized out>, self=<value optimized out>) at eval.c:6117
1519 #14 0x004c5e9c in vafuncall (recv=<value optimized out>, mid=<value optimized out>, n=<value optimized out>, ar=<value optimized out>) at eval.c:6194
1520 #15 0x004c6014 in rb_funcall (recv=Could not find the frame base for "rb_funcall".
1521 ) at eval.c:6211
1522 #16 0x004dcb3e in rb_hash_aref (hash=<value optimized out>, key=<value optimized out>) at hash.c:429
1523 #17 0x004ba02b in call_cfunc (func=<value optimized out>, recv=<value optimized out>, len=<value optimized out>, argc=<value optimized out>,
1524 argv=<value optimized out>) at eval.c:5721
1525 #18 0x004c4e66 in rb_call0 (klass=<value optimized out>, recv=<value optimized out>, id=<value optimized out>, oid=<value optimized out>, argc=<value optimized out>,
1526 argv=<value optimized out>, body=<value optimized out>, flags=<value optimized out>) at eval.c:5861
1527 #19 0x004c50ba in rb_call (klass=<value optimized out>, recv=<value optimized out>, mid=<value optimized out>, argc=<value optimized out>,
1528 argv=<value optimized out>, scope=<value optimized out>, self=<value optimized out>) at eval.c:6117
1529 #20 0x004bf821 in rb_eval (self=<value optimized out>, n=<value optimized out>) at eval.c:3490
1530 #21 0x004bf73a in rb_eval (self=<value optimized out>, n=<value optimized out>) at eval.c:3484
1531 #22 0x004bf73a in rb_eval (self=<value optimized out>, n=<value optimized out>) at eval.c:3484
1532 [lots of rb_eval calls]
1533 --
1534 Eduardo
1535
1536 From sgoldman@tower-research.com Thu Nov 6 09:38:44 2008
1537 From: sgoldman@tower-research.com (Steve Goldman)
1538 Date: Thu, 06 Nov 2008 09:38:44 -0500
1539 Subject: [sup-talk] Can sup only "save threads" on exit??
1540 In-Reply-To: <1225907935-sup-8746@entry>
1541 References: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
1542 <1225845336-sup-7105@tangerine.lanl.gov>
1543 <1225895601-sup-7171@sgoldmanlinux.tower-research.com>
1544 <1225907935-sup-8746@entry>
1545 Message-ID: <1225982260-sup-3050@sgoldmanlinux.tower-research.com>
1546
1547 Excerpts from William Morgan's message of Wed Nov 05 12:59:18 -0500 2008:
1548 > Reformatted excerpts from Steve Goldman's message of 2008-11-05:
1549 > > Great. Is there a setting to make sup do this automatically every
1550 > > once in a while? It would be nice to be able to leave sup open all
1551 > > day, or many days, and not have to worry about remembering to hit '$'
1552 > > or a crash.
1553 >
1554 > There is not. Patches accepted!
1555
1556 Point me to a beginning ruby tutorial! I've never contributed to
1557 anything open source before. So exciting.
1558 --
1559
1560 Steve Goldman
1561 sgoldman at tower-research.com
1562
1563 T: 212.219.6014
1564 F: 212.219.6007
1565
1566 Tower Research Capital, LLC
1567 377 Broadway, 11th Fl.
1568 New York, NY 10013
1569
1570 From nicolas.pouillard@gmail.com Thu Nov 6 09:40:52 2008
1571 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
1572 Date: Thu, 06 Nov 2008 15:40:52 +0100
1573 Subject: [sup-talk] Can sup only "save threads" on exit??
1574 In-Reply-To: <1225895601-sup-7171@sgoldmanlinux.tower-research.com>
1575 References: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
1576 <1225845336-sup-7105@tangerine.lanl.gov>
1577 <1225895601-sup-7171@sgoldmanlinux.tower-research.com>
1578 Message-ID: <1225982366-sup-3598@ausone.inria.fr>
1579
1580 Excerpts from Steve Goldman's message of Wed Nov 05 15:34:42 +0100 2008:
1581 > Excerpts from John Bent's message of Tue Nov 04 19:36:00 -0500 2008:
1582 > > Excerpts from Steve Goldman's message of Tue Nov 04 15:55:57 -0700 2008:
1583 > > >
1584 > > > When I quit, sup goes through a slow process where it "saves" all the
1585 > > > modified threads. This is problematic because 1) it takes a long
1586 > > > time, and 2) if sup crashes before I get a chance to exit, then I have
1587 > > > to rearchive everything again.
1588 > > >
1589 > > Do a 'H' and look at the help. '$' does save now.
1590 > >
1591 > > John
1592 >
1593 > Great. Is there a setting to make sup do this automatically every
1594 > once in a while? It would be nice to be able to leave sup open all
1595 > day, or many days, and not have to worry about remembering to hit '$'
1596 > or a crash.
1597
1598 I have this in my ~/.sup/hooks/before-poll.rb:
1599 say "Saving threads"
1600 InboxMode.instance.save
1601
1602 However saving from time to time would be nice also.
1603 Moreover saving the contacts.txt file on '$' would be also nice.
1604
1605 --
1606 Nicolas Pouillard aka Ertai
1607
1608 From nicolas.pouillard@gmail.com Thu Nov 6 10:00:02 2008
1609 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
1610 Date: Thu, 6 Nov 2008 16:00:02 +0100
1611 Subject: [sup-talk] [PATCH] save contacts.txt on '$'
1612 In-Reply-To: <1225982366-sup-3598@ausone.inria.fr>
1613 References: <1225982366-sup-3598@ausone.inria.fr>
1614 Message-ID: <1225983602-76791-1-git-send-email-nicolas.pouillard@gmail.com>
1615
1616 ---
1617 lib/sup/modes/thread-index-mode.rb | 1 +
1618 1 files changed, 1 insertions(+), 0 deletions(-)
1619
1620 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
1621 index 4de4613..3dd0498 100644
1622 --- a/lib/sup/modes/thread-index-mode.rb
1623 +++ b/lib/sup/modes/thread-index-mode.rb
1624 @@ -386,6 +386,7 @@ EOS
1625 end
1626
1627 def save
1628 + BufferManager.say("Saving contacts...") { ContactManager.instance.save }
1629 dirty_threads = @mutex.synchronize { (@threads + @hidden_threads.keys).select { |t| t.dirty? } }
1630 return if dirty_threads.empty?
1631
1632 --
1633 1.5.5.rc3
1634
1635
1636 From nicolas.pouillard@gmail.com Thu Nov 6 10:06:02 2008
1637 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
1638 Date: Thu, 06 Nov 2008 16:06:02 +0100
1639 Subject: [sup-talk] EOFError crash
1640 In-Reply-To: <1225981048-sup-9011@blackpad>
1641 References: <1225392037-sup-9224@gillespie.rupamsunyata.org>
1642 <1225647558-sup-7206@gillespie.rupamsunyata.org>
1643 <1225907100-sup-4816@entry> <1225981048-sup-9011@blackpad>
1644 Message-ID: <1225983752-sup-1166@ausone.inria.fr>
1645
1646 Excerpts from Eduardo Habkost's message of Thu Nov 06 15:33:23 +0100 2008:
1647 > Excerpts from William Morgan's message of Wed Nov 05 15:48:34 -0200 2008:
1648 > > Reformatted excerpts from Decklin Foster's message of 2008-11-02:
1649 > > > This just happened again. Should I put it into ditz or something? (I
1650 > > > feel exceedingly lame, but I don't have time to debug it today
1651 > > > either.)
1652 > >
1653 > > No. Sadly, this is one of the innumerable Ferret errors that crop up
1654 > > from time to time, which spurred STS.
1655 >
1656 > I've been easily reproducing crashes similar to this one. The only thing
1657 > I need to reproduce it is making sure I load another label while sup is
1658 > still polling for new messages.
1659 >
1660 > If I deliver a lot of new messages to a maildir source and don't run
1661 > sup-sync, sup will spend a few seconds loading the new messages and
1662 > there is plenty of time to hit L, go to a label (I don't know if it
1663 > needs to be the same label the new messages being loaded are getting),
1664 > and see the crash.
1665
1666 I rarely use 'L', however I often search for particular set of mails
1667 using '\', maybe it's a general problem with search during poll.
1668
1669 In this case perhaps making sup a little bit more sequential would make
1670 it more robust (this could help us to wait for STS).
1671
1672 Best regards,
1673
1674 --
1675 Nicolas Pouillard aka Ertai
1676
1677 From wmorgan-sup@masanjin.net Thu Nov 6 11:18:46 2008
1678 From: wmorgan-sup@masanjin.net (William Morgan)
1679 Date: Thu, 06 Nov 2008 08:18:46 -0800
1680 Subject: [sup-talk] Can sup only "save threads" on exit??
1681 In-Reply-To: <1225982260-sup-3050@sgoldmanlinux.tower-research.com>
1682 References: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
1683 <1225845336-sup-7105@tangerine.lanl.gov>
1684 <1225895601-sup-7171@sgoldmanlinux.tower-research.com>
1685 <1225907935-sup-8746@entry>
1686 <1225982260-sup-3050@sgoldmanlinux.tower-research.com>
1687 Message-ID: <1225987338-sup-6300@entry>
1688
1689 Reformatted excerpts from Steve Goldman's message of 2008-11-06:
1690 > Point me to a beginning ruby tutorial! I've never contributed to
1691 > anything open source before. So exciting.
1692
1693 There are a couple Ruby for beginners tutorials:
1694 - http://pine.fm/LearnToProgram/?Chapter=01,
1695 - http://poignantguide.net/ruby/ (best read while high),
1696 - http://tryruby.hobix.com/
1697
1698 But you might be better of with Ruby for Java programmers stuff:
1699 - http://onestepback.org/articles/10things/
1700 - http://www.jroller.com/obie/entry/ruby_primer_for_java_programmers
1701
1702 etc.
1703
1704 You'll also have to know git to contribute to Sup. See
1705 http://sup.rubyforge.org/wiki/wiki.pl?Contributing.
1706 --
1707 William <wmorgan-sup at masanjin.net>
1708
1709 From wmorgan-sup@masanjin.net Thu Nov 6 11:19:37 2008
1710 From: wmorgan-sup@masanjin.net (William Morgan)
1711 Date: Thu, 06 Nov 2008 08:19:37 -0800
1712 Subject: [sup-talk] Can sup only "save threads" on exit??
1713 In-Reply-To: <1225890375-sup-623@ausone.inria.fr>
1714 References: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
1715 <1225845336-sup-7105@tangerine.lanl.gov>
1716 <1225890375-sup-623@ausone.inria.fr>
1717 Message-ID: <1225988350-sup-3900@entry>
1718
1719 Reformatted excerpts from nicolas.pouillard's message of 2008-11-05:
1720 > The help is '?' actually.
1721
1722 'H' is help everywhere except thread-view-mode, where it's overridden
1723 to view headers. Maybe it shouldn't be.
1724 --
1725 William <wmorgan-sup at masanjin.net>
1726
1727 From wmorgan-sup@masanjin.net Thu Nov 6 14:49:47 2008
1728 From: wmorgan-sup@masanjin.net (William Morgan)
1729 Date: Thu, 06 Nov 2008 11:49:47 -0800
1730 Subject: [sup-talk] Can't figure out how to use aliases
1731 In-Reply-To: <1225897590-sup-8793@sgoldmanlinux.tower-research.com>
1732 References: <1225897590-sup-8793@sgoldmanlinux.tower-research.com>
1733 Message-ID: <1226000889-sup-5922@entry>
1734
1735 Reformatted excerpts from Steve Goldman's message of 2008-11-05:
1736 > I can't get sup to replace an alias with its email address when I send
1737 > To: an alias. This is really confusing.
1738
1739 This should happen automagically, if you enter the alias either when
1740 Sup prompts you, or if it's on a To/Cc/Bcc line when you exit the editor
1741 and return to Sup.
1742
1743 Are you sure you're typing in the right alias?
1744 --
1745 William <wmorgan-sup at masanjin.net>
1746
1747 From sgoldman@tower-research.com Thu Nov 6 15:15:15 2008
1748 From: sgoldman@tower-research.com (Steve Goldman)
1749 Date: Thu, 06 Nov 2008 15:15:15 -0500
1750 Subject: [sup-talk] Can't figure out how to use aliases
1751 In-Reply-To: <1226000889-sup-5922@entry>
1752 References: <1225897590-sup-8793@sgoldmanlinux.tower-research.com>
1753 <1226000889-sup-5922@entry>
1754 Message-ID: <1226002395-sup-9614@sgoldmanlinux.tower-research.com>
1755
1756 Testing it out, it seems to be a casing issue. When the alias I
1757 choose is all lowercase, it works. Looks like when sup throws me into
1758 my editor to compose the email, it lower cases the entire alias. Then
1759 when it comes back out, it can't match the lower cased alias if the
1760 alias had upper case letters.
1761
1762
1763 Excerpts from William Morgan's message of Thu Nov 06 14:49:47 -0500 2008:
1764 > Reformatted excerpts from Steve Goldman's message of 2008-11-05:
1765 > > I can't get sup to replace an alias with its email address when I send
1766 > > To: an alias. This is really confusing.
1767 >
1768 > This should happen automagically, if you enter the alias either when
1769 > Sup prompts you, or if it's on a To/Cc/Bcc line when you exit the editor
1770 > and return to Sup.
1771 >
1772 > Are you sure you're typing in the right alias?
1773 --
1774
1775 Steve Goldman
1776 sgoldman at tower-research.com
1777
1778 T: 212.219.6014
1779 F: 212.219.6007
1780
1781 Tower Research Capital, LLC
1782 377 Broadway, 11th Fl.
1783 New York, NY 10013
1784
1785 From wmorgan-sup@masanjin.net Thu Nov 6 16:40:17 2008
1786 From: wmorgan-sup@masanjin.net (William Morgan)
1787 Date: Thu, 06 Nov 2008 13:40:17 -0800
1788 Subject: [sup-talk] EOFError crash
1789 In-Reply-To: <1225981048-sup-9011@blackpad>
1790 References: <1225392037-sup-9224@gillespie.rupamsunyata.org>
1791 <1225647558-sup-7206@gillespie.rupamsunyata.org>
1792 <1225907100-sup-4816@entry> <1225981048-sup-9011@blackpad>
1793 Message-ID: <1226007592-sup-6295@entry>
1794
1795 Reformatted excerpts from Eduardo Habkost's message of 2008-11-06:
1796 > I've been easily reproducing crashes similar to this one. The only thing
1797 > I need to reproduce it is making sure I load another label while sup is
1798 > still polling for new messages.
1799
1800 Can you try the next branch? I've just pushed some patches there that
1801 might help this.
1802 --
1803 William <wmorgan-sup at masanjin.net>
1804
1805 From sgoldman@tower-research.com Thu Nov 6 17:07:57 2008
1806 From: sgoldman@tower-research.com (Steve Goldman)
1807 Date: Thu, 06 Nov 2008 17:07:57 -0500
1808 Subject: [sup-talk] Can't get emacs to open in flyspell-mode
1809 Message-ID: <1226009080-sup-663@sgoldmanlinux.tower-research.com>
1810
1811
1812 I set my editor in config.yaml to:
1813
1814 emacs -f flyspell-mode -nw +8
1815
1816 This command works correctly from the command line, but when sup opens
1817 emacs for composing, it uses -nw and +8 correctly but does not use
1818 flyspell-mode. Anyone have any luck with this?
1819
1820 Thanks.
1821 --
1822
1823 Steve Goldman
1824 sgoldman at tower-research.com
1825
1826 T: 212.219.6014
1827 F: 212.219.6007
1828
1829 Tower Research Capital, LLC
1830 377 Broadway, 11th Fl.
1831 New York, NY 10013
1832
1833 From wmorgan-sup@masanjin.net Thu Nov 6 17:35:13 2008
1834 From: wmorgan-sup@masanjin.net (William Morgan)
1835 Date: Thu, 06 Nov 2008 14:35:13 -0800
1836 Subject: [sup-talk] Can sup only "save threads" on exit??
1837 In-Reply-To: <1225895601-sup-7171@sgoldmanlinux.tower-research.com>
1838 References: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
1839 <1225845336-sup-7105@tangerine.lanl.gov>
1840 <1225895601-sup-7171@sgoldmanlinux.tower-research.com>
1841 Message-ID: <1226010841-sup-4962@entry>
1842
1843 Reformatted excerpts from Steve Goldman's message of 2008-11-05:
1844 > Is there a setting to make sup do this automatically every
1845 > once in a while? It would be nice to be able to leave sup open all
1846 > day, or many days, and not have to worry about remembering to hit '$'
1847 > or a crash.
1848
1849 I've been avoiding this because currently the only way to undo changes
1850 in thread-index-mode is to press @, which reverts you to the state you
1851 were last time you pressed $. Undo patches also welcome. :)
1852 --
1853 William <wmorgan-sup at masanjin.net>
1854
1855 From wmorgan-sup@masanjin.net Thu Nov 6 20:02:56 2008
1856 From: wmorgan-sup@masanjin.net (William Morgan)
1857 Date: Thu, 06 Nov 2008 17:02:56 -0800
1858 Subject: [sup-talk] Can't get emacs to open in flyspell-mode
1859 In-Reply-To: <1226009080-sup-663@sgoldmanlinux.tower-research.com>
1860 References: <1226009080-sup-663@sgoldmanlinux.tower-research.com>
1861 Message-ID: <1226019692-sup-835@entry>
1862
1863 Reformatted excerpts from Steve Goldman's message of 2008-11-06:
1864 > This command works correctly from the command line, but when sup opens
1865 > emacs for composing, it uses -nw and +8 correctly but does not use
1866 > flyspell-mode. Anyone have any luck with this?
1867
1868 Sup just does a system call to <editor> <filename>, with no fanciness,
1869 so it's hard to imagine what would be wrong, unless it's some Emacs
1870 wackiness. Time to switch to vi? :)
1871 --
1872 William <wmorgan-sup at masanjin.net>
1873
1874 From jdugan@es.net Thu Nov 6 20:51:19 2008
1875 From: jdugan@es.net (Jon Dugan)
1876 Date: Thu, 06 Nov 2008 17:51:19 -0800
1877 Subject: [sup-talk] Change URI for for a source?
1878 Message-ID: <1226022383-sup-1046@junction.es.net>
1879
1880 Hello,
1881
1882 I've been using sup for several months now and am quite happy with it.
1883
1884 In my next wave of reorganization I would like to move the box that sup reads
1885 from. Currently it's polling INBOX, but I'd like to take the current contents
1886 of INBOX and move them to SUPBOX. Is it possible to tell sup that a mailbox
1887 has a new URI but is otherwise the same?
1888
1889 Essentially I'd like to keep my index and tags and just rename my sup box.
1890
1891 I don't see an option in sup-sync for this sort of thing and I haven't had
1892 time to dig around in the code and see how hard this would be.
1893
1894 Any suggestions?
1895
1896 Thanks,
1897
1898 Jon
1899 --
1900 Jon M. Dugan <jdugan at es.net> | GTalk: jdugan.esnet
1901 ESnet Network Engineering Group | http://www.es.net/
1902 Lawrence Berkeley National Laboratory | http://www.lbl.gov/
1903
1904 From ehabkost@raisama.net Thu Nov 6 21:52:01 2008
1905 From: ehabkost@raisama.net (Eduardo Habkost)
1906 Date: Fri, 07 Nov 2008 00:52:01 -0200
1907 Subject: [sup-talk] EOFError crash
1908 In-Reply-To: <1226007592-sup-6295@entry>
1909 References: <1225392037-sup-9224@gillespie.rupamsunyata.org>
1910 <1225647558-sup-7206@gillespie.rupamsunyata.org>
1911 <1225907100-sup-4816@entry> <1225981048-sup-9011@blackpad>
1912 <1226007592-sup-6295@entry>
1913 Message-ID: <1226025882-sup-6197@blackpad>
1914
1915 Excerpts from William Morgan's message of Thu Nov 06 19:40:17 -0200 2008:
1916 > Reformatted excerpts from Eduardo Habkost's message of 2008-11-06:
1917 > > I've been easily reproducing crashes similar to this one. The only thing
1918 > > I need to reproduce it is making sure I load another label while sup is
1919 > > still polling for new messages.
1920 >
1921 > Can you try the next branch? I've just pushed some patches there that
1922 > might help this.
1923
1924 Just tried it (commit 6831c5966aa0a6021978bffc071734d03cabf2b1).
1925
1926 Triggered the same kind of exceptions of before (two samples below),
1927 when pressing P and M multiple times quickly on inbox-mode, followed by
1928 pressing 'end' and 'j'.
1929
1930 Trying to load a label while polling for new messages triggered a segfault
1931 with the same backtrace as before.
1932
1933
1934 ----------------------------------------------------------------
1935 --- IOError from thread: load threads for thread-index-mode
1936 IO Error occured at <except.c>:93 in xraise
1937 Error occured in fs_store.c:293 - fsi_seek_i
1938 seeking pos 20882841: <Descritor de arquivo inv?lido>
1939
1940 ./lib/sup/index.rb:399:in `default'
1941 ./lib/sup/index.rb:399:in `[]'
1942 ./lib/sup/index.rb:399:in `build_message'
1943 ./lib/sup/index.rb:369:in `each_message_in_thread_for'
1944 ./lib/sup/thread.rb:341:in `call'
1945 ./lib/sup/thread.rb:341:in `load_thread_for_message'
1946 ./lib/sup/index.rb:382:in `each_message_in_thread_for'
1947 ./lib/sup/index.rb:382:in `each'
1948 ./lib/sup/index.rb:382:in `each_message_in_thread_for'
1949 ./lib/sup/thread.rb:339:in `load_thread_for_message'
1950 ./lib/sup/thread.rb:331:in `load_n_threads'
1951 ./lib/sup/index.rb:288:in `each_id_by_date'
1952 ./lib/sup/index.rb:287:in `each'
1953 ./lib/sup/index.rb:287:in `each_id_by_date'
1954 ./lib/sup/thread.rb:326:in `load_n_threads'
1955 ./lib/sup/modes/thread-index-mode.rb:499:in `__unprotected_load_n_threads'
1956 (eval):12:in `load_n_threads'
1957 ./lib/sup/modes/thread-index-mode.rb:483:in `load_n_threads_background'
1958 ./lib/sup.rb:85:in `reporting_thread'
1959 ./lib/sup.rb:83:in `initialize'
1960 ./lib/sup.rb:83:in `new'
1961 ./lib/sup.rb:83:in `reporting_thread'
1962 ./lib/sup/modes/thread-index-mode.rb:482:in `load_n_threads_background'
1963 ./lib/sup/modes/thread-index-mode.rb:552:in `__unprotected_load_threads'
1964 (eval):12:in `load_threads'
1965 bin/sup:167
1966
1967
1968 ----------------------------------------------------------------
1969 --- EOFError from thread: load threads for thread-index-mode
1970 End-of-File Error occured at <except.c>:93 in xraise
1971 Error occured in compound_io.c:137 - cmpdi_read_i
1972 Tried to read past end of file. File length is <60759> and tried to read to <452160>
1973
1974 ./lib/sup/index.rb:396:in `default'
1975 ./lib/sup/index.rb:396:in `[]'
1976 ./lib/sup/index.rb:396:in `build_message'
1977 ./lib/sup/index.rb:288:in `each_id_by_date'
1978 ./lib/sup/thread.rb:330:in `call'
1979 ./lib/sup/thread.rb:330:in `load_n_threads'
1980 ./lib/sup/index.rb:288:in `each_id_by_date'
1981 ./lib/sup/index.rb:287:in `each'
1982 ./lib/sup/index.rb:287:in `each_id_by_date'
1983 ./lib/sup/thread.rb:326:in `load_n_threads'
1984 ./lib/sup/modes/thread-index-mode.rb:499:in `__unprotected_load_n_threads'
1985 (eval):12:in `load_n_threads'
1986 ./lib/sup/modes/thread-index-mode.rb:483:in `load_n_threads_background'
1987 ./lib/sup.rb:85:in `reporting_thread'
1988 ./lib/sup.rb:83:in `initialize'
1989 ./lib/sup.rb:83:in `new'
1990 ./lib/sup.rb:83:in `reporting_thread'
1991 ./lib/sup/modes/thread-index-mode.rb:482:in `load_n_threads_background'
1992 ./lib/sup/modes/thread-index-mode.rb:552:in `__unprotected_load_threads'
1993 (eval):12:in `load_threads'
1994 bin/sup:167
1995 --
1996 Eduardo
1997
1998 From wmorgan-sup@masanjin.net Fri Nov 7 00:51:15 2008
1999 From: wmorgan-sup@masanjin.net (William Morgan)
2000 Date: Thu, 06 Nov 2008 21:51:15 -0800
2001 Subject: [sup-talk] Change URI for for a source?
2002 In-Reply-To: <1226022383-sup-1046@junction.es.net>
2003 References: <1226022383-sup-1046@junction.es.net>
2004 Message-ID: <1226037008-sup-1099@entry>
2005
2006 Reformatted excerpts from Jon Dugan's message of 2008-11-06:
2007 > In my next wave of reorganization I would like to move the box that
2008 > sup reads from. Currently it's polling INBOX, but I'd like to take
2009 > the current contents of INBOX and move them to SUPBOX. Is it possible
2010 > to tell sup that a mailbox has a new URI but is otherwise the same?
2011
2012 You should be able to edit ~/.sup/sources.yaml and change the URI of the
2013 source as appropriate. As long as you don't change anything else, it
2014 should work. Keep a backup of sources.yaml just in case!
2015 --
2016 William <wmorgan-sup at masanjin.net>
2017
2018 From wmorgan-sup@masanjin.net Fri Nov 7 01:21:06 2008
2019 From: wmorgan-sup@masanjin.net (William Morgan)
2020 Date: Thu, 06 Nov 2008 22:21:06 -0800
2021 Subject: [sup-talk] EOFError crash
2022 In-Reply-To: <1226025882-sup-6197@blackpad>
2023 References: <1225392037-sup-9224@gillespie.rupamsunyata.org>
2024 <1225647558-sup-7206@gillespie.rupamsunyata.org>
2025 <1225907100-sup-4816@entry> <1225981048-sup-9011@blackpad>
2026 <1226007592-sup-6295@entry> <1226025882-sup-6197@blackpad>
2027 Message-ID: <1226038806-sup-9313@entry>
2028
2029 Reformatted excerpts from Eduardo Habkost's message of 2008-11-06:
2030 > Just tried it (commit 6831c5966aa0a6021978bffc071734d03cabf2b1).
2031 >
2032 > Triggered the same kind of exceptions of before (two samples below),
2033 > when pressing P and M multiple times quickly on inbox-mode, followed by
2034 > pressing 'end' and 'j'.
2035
2036 Interesting. I can't reproduce this on my end.
2037
2038 Can you please try commit d66cbee, which you can find if you check out
2039 the 'index-locking' branch?
2040
2041 Thanks for helping me test this!
2042 --
2043 William <wmorgan-sup at masanjin.net>
2044
2045 From ehabkost@raisama.net Fri Nov 7 06:32:07 2008
2046 From: ehabkost@raisama.net (Eduardo Habkost)
2047 Date: Fri, 07 Nov 2008 09:32:07 -0200
2048 Subject: [sup-talk] EOFError crash
2049 In-Reply-To: <1226038806-sup-9313@entry>
2050 References: <1225392037-sup-9224@gillespie.rupamsunyata.org>
2051 <1225647558-sup-7206@gillespie.rupamsunyata.org>
2052 <1225907100-sup-4816@entry> <1225981048-sup-9011@blackpad>
2053 <1226007592-sup-6295@entry> <1226025882-sup-6197@blackpad>
2054 <1226038806-sup-9313@entry>
2055 Message-ID: <1226057292-sup-676@blackpad>
2056
2057 Reformatted excerpts from William Morgan's message of Fri Nov 07 04:21:06 -0200 2008:
2058 >
2059 > Can you please try commit d66cbee, which you can find if you check out
2060 > the 'index-locking' branch?
2061 >
2062 > Thanks for helping me test this!
2063
2064 Looks better! :D
2065
2066 I didn't manage to reproduce the crash yet. With the previous version
2067 I could crash sup in a few seconds.
2068
2069
2070 > Interesting. I can't reproduce this on my end.
2071
2072 What version of ferret are you using?
2073
2074 In case the info is useful, my 'gem list' output is below. The rest of
2075 ruby packages are the latest ones from Fedora 9 updates ('rpm -qa | grep
2076 ruby' output below).
2077
2078 BTW, do you know what happened to the ferret project site
2079 (http://ferret.davebalmain.com/)? Maybe this is a known bug on ferret,
2080 or something that could be investigated and tracked on the ferret project,
2081 but the site seems to be offline for days.
2082
2083
2084 *** LOCAL GEMS ***
2085
2086 chronic (0.2.3)
2087 columnize (0.2)
2088 ditz (0.5)
2089 fastthread (1.0.1)
2090 ferret (0.11.6)
2091 gettext (1.93.0)
2092 highline (1.4.0)
2093 hoe (1.8.2)
2094 linecache (0.43)
2095 lockfile (1.4.3)
2096 mime-types (1.15)
2097 ncurses (0.9.1)
2098 net-ssh (2.0.4)
2099 rake (0.8.3)
2100 rmail (1.0.0)
2101 ruby-debug (0.10.2)
2102 ruby-debug-base (0.10.2)
2103 rubyforge (1.0.1)
2104 sup (999, 0.6)
2105 trollop (1.10.2)
2106
2107
2108 # rpm -qa | grep -i ruby
2109 libselinux-ruby-2.0.67-4.fc9.i386
2110 ruby-libs-1.8.6.287-2.fc9.i386
2111 ruby-devel-1.8.6.287-2.fc9.i386
2112 ruby-rdoc-1.8.6.287-2.fc9.i386
2113 rubygem-rubyforge-1.0.1-1.fc9.noarch
2114 ruby-1.8.6.287-2.fc9.i386
2115 ruby-irb-1.8.6.287-2.fc9.i386
2116 ruby-debuginfo-1.8.6.287-2.fc9.i386
2117 rubygems-1.2.0-2.fc9.noarch
2118 --
2119 Eduardo
2120
2121 From ehabkost@raisama.net Fri Nov 7 08:08:51 2008
2122 From: ehabkost@raisama.net (Eduardo Habkost)
2123 Date: Fri, 07 Nov 2008 11:08:51 -0200
2124 Subject: [sup-talk] EOFError crash
2125 In-Reply-To: <1226057292-sup-676@blackpad>
2126 References: <1225392037-sup-9224@gillespie.rupamsunyata.org>
2127 <1225647558-sup-7206@gillespie.rupamsunyata.org>
2128 <1225907100-sup-4816@entry> <1225981048-sup-9011@blackpad>
2129 <1226007592-sup-6295@entry> <1226025882-sup-6197@blackpad>
2130 <1226038806-sup-9313@entry> <1226057292-sup-676@blackpad>
2131 Message-ID: <1226063145-sup-529@blackpad>
2132
2133 Reformatted excerpts from Eduardo Habkost's message of Fri Nov 07 09:32:07 -0200 2008:
2134 > Reformatted excerpts from William Morgan's message of Fri Nov 07 04:21:06 -0200 2008:
2135 > >
2136 > > Can you please try commit d66cbee, which you can find if you check out
2137 > > the 'index-locking' branch?
2138 > >
2139 > > Thanks for helping me test this!
2140 >
2141 > Looks better! :D
2142 >
2143 > I didn't manage to reproduce the crash yet. With the previous version
2144 > I could crash sup in a few seconds.
2145
2146
2147 Got a different crash, now, while pressing P and M repeatedly on
2148 inbox-mode.
2149
2150 Maybe related: a killed thread somehow appeared on my inbox listing
2151 (then I killed it again), right before this crash.
2152
2153
2154 --- Ferret::StateError from thread: load threads for thread-index-mode
2155 State Error occured at <except.c>:93 in xraise
2156 Error occured in index.c:4150 - sr_get_lazy_doc
2157 Document 1 has already been deleted
2158
2159 /usr/lib/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:421:in `[]'
2160 /usr/lib/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:421:in `[]'
2161 /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
2162 /usr/lib/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:413:in `[]'
2163 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/index.rb:288:in `each_id_by_date'
2164 /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
2165 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/index.rb:288:in `each_id_by_date'
2166 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/index.rb:287:in `each'
2167 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/index.rb:287:in `each_id_by_date'
2168 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/thread.rb:326:in `load_n_threads'
2169 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:499:in `__unprotected_load_n_threads'
2170 (eval):12:in `load_n_threads'
2171 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:483:in `load_n_threads_background'
2172 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:85:in `reporting_thread'
2173 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:83:in `initialize'
2174 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:83:in `new'
2175 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:83:in `reporting_thread'
2176 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:482:in `load_n_threads_background'
2177 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:552:in `__unprotected_load_threads'
2178 (eval):12:in `load_threads'
2179 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/mode.rb:49:in `send'
2180 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/mode.rb:49:in `handle_input'
2181 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/buffer.rb:240:in `handle_input'
2182 /usr/lib/ruby/gems/1.8/gems/sup-999/bin/sup:190
2183 /usr/bin/sup:19:in `load'
2184 /usr/bin/sup:19
2185 --
2186 Eduardo
2187
2188 From nicolas.pouillard@gmail.com Fri Nov 7 09:18:16 2008
2189 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
2190 Date: Fri, 07 Nov 2008 15:18:16 +0100
2191 Subject: [sup-talk] Can sup only "save threads" on exit??
2192 In-Reply-To: <1225988350-sup-3900@entry>
2193 References: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
2194 <1225845336-sup-7105@tangerine.lanl.gov>
2195 <1225890375-sup-623@ausone.inria.fr> <1225988350-sup-3900@entry>
2196 Message-ID: <1226067332-sup-8801@ausone.inria.fr>
2197
2198 Excerpts from William Morgan's message of Thu Nov 06 17:19:37 +0100 2008:
2199 > Reformatted excerpts from nicolas.pouillard's message of 2008-11-05:
2200 > > The help is '?' actually.
2201 >
2202 > 'H' is help everywhere except thread-view-mode, where it's overridden
2203 > to view headers. Maybe it shouldn't be.
2204
2205 I often use 'H' for headers, it's pretty natural. I think the '?' binding is
2206 sufficient for help and that the 'H' alias could be removed.
2207
2208 Moreover to help newcomers having a little text in the bottom bar like "type
2209 '?' for help" would be nice.
2210
2211 --
2212 Nicolas Pouillard aka Ertai
2213
2214 From sgoldman@tower-research.com Fri Nov 7 09:23:08 2008
2215 From: sgoldman@tower-research.com (Steve Goldman)
2216 Date: Fri, 07 Nov 2008 09:23:08 -0500
2217 Subject: [sup-talk] Can't get emacs to open in flyspell-mode
2218 In-Reply-To: <1226019692-sup-835@entry>
2219 References: <1226009080-sup-663@sgoldmanlinux.tower-research.com>
2220 <1226019692-sup-835@entry>
2221 Message-ID: <1226067745-sup-6564@sgoldmanlinux.tower-research.com>
2222
2223 Excerpts from William Morgan's message of Thu Nov 06 20:02:56 -0500 2008:
2224 > Reformatted excerpts from Steve Goldman's message of 2008-11-06:
2225 > > This command works correctly from the command line, but when sup opens
2226 > > emacs for composing, it uses -nw and +8 correctly but does not use
2227 > > flyspell-mode. Anyone have any luck with this?
2228 >
2229 > Sup just does a system call to <editor> <filename>, with no fanciness,
2230 > so it's hard to imagine what would be wrong, unless it's some Emacs
2231 > wackiness. Time to switch to vi? :)
2232
2233 Yeah, looks like it's an emacs thing. When I run it from the command
2234 line with a file argument, it doesn't work. Sorry for the time
2235 waste...
2236 --
2237
2238 Steve Goldman
2239 sgoldman at tower-research.com
2240
2241 T: 212.219.6014
2242 F: 212.219.6007
2243
2244 Tower Research Capital, LLC
2245 377 Broadway, 11th Fl.
2246 New York, NY 10013
2247
2248 From wmorgan-sup@masanjin.net Fri Nov 7 11:55:56 2008
2249 From: wmorgan-sup@masanjin.net (William Morgan)
2250 Date: Fri, 07 Nov 2008 08:55:56 -0800
2251 Subject: [sup-talk] [PATCH] Wrap text attachments
2252 In-Reply-To: <1225807479-sup-1191@elly>
2253 References: <1225757268-sup-9251@elly> <1225805250-sup-3958@ausone.local>
2254 <1225807479-sup-1191@elly>
2255 Message-ID: <1226076945-sup-2588@entry>
2256
2257 Reformatted excerpts from israel.herraiz's message of 2008-11-04:
2258 > Find it below. I have moved the constant out of the Attachment and
2259 > Text classes, and it is now in the context of the Chunk module.
2260
2261 Applied, thanks!
2262 --
2263 William <wmorgan-sup at masanjin.net>
2264
2265 From stipim@rpi.edu Fri Nov 7 12:13:48 2008
2266 From: stipim@rpi.edu (Mike Stipicevic)
2267 Date: Fri, 07 Nov 2008 12:13:48 -0500
2268 Subject: [sup-talk] Can sup only "save threads" on exit??
2269 In-Reply-To: <1226010841-sup-4962@entry>
2270 References: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
2271 <1225845336-sup-7105@tangerine.lanl.gov>
2272 <1225895601-sup-7171@sgoldmanlinux.tower-research.com>
2273 <1226010841-sup-4962@entry>
2274 Message-ID: <1226078013-sup-1549@rmtacc26-la.rcs.rpi.edu>
2275
2276 I had hoped to work on this in a bit...
2277
2278 Excerpts from William Morgan's message of Thu Nov 06 17:35:13 -0500 2008:
2279 > Reformatted excerpts from Steve Goldman's message of 2008-11-05:
2280 > > Is there a setting to make sup do this automatically every
2281 > > once in a while? It would be nice to be able to leave sup open all
2282 > > day, or many days, and not have to worry about remembering to hit '$'
2283 > > or a crash.
2284 >
2285 > I've been avoiding this because currently the only way to undo changes
2286 > in thread-index-mode is to press @, which reverts you to the state you
2287 > were last time you pressed $. Undo patches also welcome. :)
2288 --
2289 Mike Stipicevic
2290 Chairman, RPI Student Branch of the IEEE
2291
2292 stipim at rpi.edu
2293 mstipicevic at ieee.org
2294
2295 From sgoldman@tower-research.com Fri Nov 7 13:46:07 2008
2296 From: sgoldman@tower-research.com (Steve Goldman)
2297 Date: Fri, 07 Nov 2008 13:46:07 -0500
2298 Subject: [sup-talk] Can't figure out how to use aliases
2299 In-Reply-To: <1226002395-sup-9614@sgoldmanlinux.tower-research.com>
2300 References: <1225897590-sup-8793@sgoldmanlinux.tower-research.com>
2301 <1226000889-sup-5922@entry>
2302 <1226002395-sup-9614@sgoldmanlinux.tower-research.com>
2303 Message-ID: <1226083370-sup-4870@sgoldmanlinux.tower-research.com>
2304
2305 diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
2306 index ebc3587..0447f61 100644
2307 --- a/lib/sup/buffer.rb
2308 +++ b/lib/sup/buffer.rb
2309 @@ -506,7 +506,7 @@ EOS
2310 answer = BufferManager.ask_many_emails_with_completions domain, question, completions, default
2311
2312 if answer
2313 - answer.split_on_commas.map { |x| ContactManager.contact_for(x.downcase) || PersonManager.person_for(x) }
2314 + answer.split_on_commas.map { |x| ContactManager.contact_for(x) || PersonManager.person_for(x) }
2315 end
2316 end
2317
2318 We shouldn't downcase names before we look them up in the alias to
2319 person hash since the keys of that hash are case sensitive. This
2320 brings up a more philosophical question of whether keys in that hash
2321 SHOULD be case sensitive. What does it mean to have two aliases
2322 "Steve" and "steve"?
2323
2324
2325 Excerpts from Steve Goldman's message of Thu Nov 06 15:15:15 -0500 2008:
2326 > Testing it out, it seems to be a casing issue. When the alias I
2327 > choose is all lowercase, it works. Looks like when sup throws me into
2328 > my editor to compose the email, it lower cases the entire alias. Then
2329 > when it comes back out, it can't match the lower cased alias if the
2330 > alias had upper case letters.
2331 >
2332 > Excerpts from William Morgan's message of Thu Nov 06 14:49:47 -0500 2008:
2333 > > Reformatted excerpts from Steve Goldman's message of 2008-11-05:
2334 > > > I can't get sup to replace an alias with its email address when I send
2335 > > > To: an alias. This is really confusing.
2336 > >
2337 > > This should happen automagically, if you enter the alias either when
2338 > > Sup prompts you, or if it's on a To/Cc/Bcc line when you exit the editor
2339 > > and return to Sup.
2340 > >
2341 > > Are you sure you're typing in the right alias?
2342 > --
2343 >
2344 > Steve Goldman
2345 > sgoldman at tower-research.com
2346 >
2347 > T: 212.219.6014
2348 > F: 212.219.6007
2349 >
2350 > Tower Research Capital, LLC
2351 > 377 Broadway, 11th Fl.
2352 > New York, NY 10013
2353 --
2354
2355 Steve Goldman
2356 sgoldman at tower-research.com
2357
2358 T: 212.219.6014
2359 F: 212.219.6007
2360
2361 Tower Research Capital, LLC
2362 377 Broadway, 11th Fl.
2363 New York, NY 10013
2364
2365 From sgoldman@tower-research.com Fri Nov 7 15:04:33 2008
2366 From: sgoldman@tower-research.com (Steve Goldman)
2367 Date: Fri, 07 Nov 2008 15:04:33 -0500
2368 Subject: [sup-talk] [PATCH] don't downcase names before looking them up in
2369 the alias to person map, since keys in that map aren't downcased.
2370 Message-ID: <1226088207-sup-2545@sgoldmanlinux.tower-research.com>
2371
2372 ---
2373 We shouldn't downcase names before we look them up in the alias to
2374 person hash since the keys of that hash are case sensitive. This
2375 brings up a more philosophical question of whether keys in that hash
2376 SHOULD be case sensitive. What does it mean to have two aliases
2377 "Steve" and "steve"?
2378
2379 lib/sup/buffer.rb | 2 +-
2380 1 files changed, 1 insertions(+), 1 deletions(-)
2381
2382 diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
2383 index ebc3587..0447f61 100644
2384 --- a/lib/sup/buffer.rb
2385 +++ b/lib/sup/buffer.rb
2386 @@ -506,7 +506,7 @@ EOS
2387 answer = BufferManager.ask_many_emails_with_completions domain, question, completions, default
2388
2389 if answer
2390 - answer.split_on_commas.map { |x| ContactManager.contact_for(x.downcase) || PersonManager.person_for(x) }
2391 + answer.split_on_commas.map { |x| ContactManager.contact_for(x) || PersonManager.person_for(x) }
2392 end
2393 end
2394
2395 --
2396 1.5.5
2397 --
2398
2399 Steve Goldman
2400 sgoldman at tower-research.com
2401
2402 T: 212.219.6014
2403 F: 212.219.6007
2404
2405 Tower Research Capital, LLC
2406 377 Broadway, 11th Fl.
2407 New York, NY 10013
2408
2409 From sgoldman@tower-research.com Fri Nov 7 16:05:35 2008
2410 From: sgoldman@tower-research.com (Steve Goldman)
2411 Date: Fri, 07 Nov 2008 16:05:35 -0500
2412 Subject: [sup-talk] [PATCH] show matching aliases before email addresses in
2413 auto complete
2414 Message-ID: <1226091602-sup-7664@sgoldmanlinux.tower-research.com>
2415
2416 ---
2417 Suppose I have an alias "william" for "William Morgan
2418 <name at domain.blah>". I hit compose, and in the "To:" field, I type
2419 "wil<TAB>". Sup has two suggestions, listing the longer one first,
2420 and it autocompletes as far as they match. So now my text field says,
2421 "To: William", which doesn't match the alias. If we sort the possible
2422 completions so that aliases are before non-aliases, then the field
2423 would read, "To: william", which would match the alias and work
2424 correctly.
2425
2426 lib/sup/buffer.rb | 6 ++++--
2427 1 files changed, 4 insertions(+), 2 deletions(-)
2428
2429 diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
2430 index 0447f61..fc9a0a2 100644
2431 --- a/lib/sup/buffer.rb
2432 +++ b/lib/sup/buffer.rb
2433 @@ -433,7 +433,9 @@ EOS
2434 prefix, target = partial.split_on_commas_with_remainder
2435 target ||= prefix.pop || ""
2436 prefix = prefix.join(", ") + (prefix.empty? ? "" : ", ")
2437 - completions.select { |x| x =~ /^#{Regexp::escape target}/i }.map { |x| [prefix + x, x] }
2438 + completions.select { |x| x =~ /^#{Regexp::escape target}/i }.
2439 + sort { |x,y| x_is_c = ContactManager.contact_for(x); y_is_c = ContactManager.contact_for(y); x_is_c && !y_is_c ? -1 : !x_is_c && y_is_c ? 1 : x <=> y }.
2440 + map { |x| [prefix + x, x] }
2441 end
2442 end
2443
2444 @@ -501,7 +503,7 @@ EOS
2445 recent = Index.load_contacts(AccountManager.user_emails, :num => 10).map { |c| [c.full_address, c.email] }
2446 contacts = ContactManager.contacts.map { |c| [ContactManager.alias_for(c), c.full_address, c.email] }
2447
2448 - completions = (recent + contacts).flatten.uniq.sort
2449 + completions = (contacts + recent).flatten.uniq
2450 completions += HookManager.run("extra-contact-addresses") || []
2451 answer = BufferManager.ask_many_emails_with_completions domain, question, completions, default
2452
2453 --
2454 1.5.5
2455 --
2456
2457 Steve Goldman
2458 sgoldman at tower-research.com
2459
2460 T: 212.219.6014
2461 F: 212.219.6007
2462
2463 Tower Research Capital, LLC
2464 377 Broadway, 11th Fl.
2465 New York, NY 10013
2466
2467 From chrisw@rice.edu Fri Nov 7 17:03:06 2008
2468 From: chrisw@rice.edu (Christopher Warrington)
2469 Date: Fri, 07 Nov 2008 16:03:06 -0600
2470 Subject: [sup-talk] Can't get emacs to open in flyspell-mode
2471 In-Reply-To: <1226009080-sup-663@sgoldmanlinux.tower-research.com>
2472 Message-ID: <C53A173A.2EA6%chrisw@rice.edu>
2473
2474 "Steve Goldman" <sgoldman at tower-research.com> @ 2008-11-6 4:07 PM:
2475 > I set my editor in config.yaml to:
2476 >
2477 > emacs -f flyspell-mode -nw +8
2478 >
2479 > This command works correctly from the command line, but when sup opens
2480 > emacs for composing, it uses -nw and +8 correctly but does not use
2481 > flyspell-mode. Anyone have any luck with this?
2482
2483 I set my editor to be emacsclient and added this to my .emacs:
2484
2485 ; disable longlines-mode for e-mail
2486 ; mail-mode runs text-mode first.
2487 (add-to-list 'auto-mode-alist
2488 '("sup\\.\\(compose\\|forward\\|reply\\|resume\\)-mode$" . mail-mode))
2489 (add-hook 'mail-mode-hook (function (lambda ()
2490 (longlines-mode 0)
2491 (auto-fill-mode 1))))
2492
2493 Using emacsclient keeps one copy of emacs open, but each invocation of
2494 emacsclient opens a new buffer with the given file. I always used sup while
2495 using a windowing environment at the same time.
2496 http://www.emacswiki.org/emacs-en/EmacsClient
2497
2498 Even if you don't use a windowing environment, the mail-mode modification
2499 should work. It will also give you some nice features like quote
2500 highlighting while editing (assuming font-lock is on).
2501
2502 --
2503 Christopher Warrington <chrisw at rice.edu>
2504
2505
2506
2507 From sgoldman@tower-research.com Fri Nov 7 17:24:38 2008
2508 From: sgoldman@tower-research.com (Steve Goldman)
2509 Date: Fri, 07 Nov 2008 17:24:38 -0500
2510 Subject: [sup-talk] Can't get emacs to open in flyspell-mode
2511 In-Reply-To: <C53A173A.2EA6%chrisw@rice.edu>
2512 References: <1226009080-sup-663@sgoldmanlinux.tower-research.com>
2513 <C53A173A.2EA6%chrisw@rice.edu>
2514 Message-ID: <1226096511-sup-2346@sgoldmanlinux.tower-research.com>
2515
2516 Excerpts from Christopher Warrington's message of Fri Nov 07 17:03:06 -0500 2008:
2517 > "Steve Goldman" <sgoldman at tower-research.com> @ 2008-11-6 4:07 PM:
2518 > > I set my editor in config.yaml to:
2519 > >
2520 > > emacs -f flyspell-mode -nw +8
2521 > >
2522 > > This command works correctly from the command line, but when sup opens
2523 > > emacs for composing, it uses -nw and +8 correctly but does not use
2524 > > flyspell-mode. Anyone have any luck with this?
2525 >
2526 > I set my editor to be emacsclient and added this to my .emacs:
2527 >
2528 > ; disable longlines-mode for e-mail
2529 > ; mail-mode runs text-mode first.
2530 > (add-to-list 'auto-mode-alist
2531 > '("sup\\.\\(compose\\|forward\\|reply\\|resume\\)-mode$" . mail-mode))
2532 > (add-hook 'mail-mode-hook (function (lambda ()
2533 > (longlines-mode 0)
2534 > (auto-fill-mode 1))))
2535 >
2536 > Using emacsclient keeps one copy of emacs open, but each invocation of
2537 > emacsclient opens a new buffer with the given file. I always used sup while
2538 > using a windowing environment at the same time.
2539 > http://www.emacswiki.org/emacs-en/EmacsClient
2540 >
2541 > Even if you don't use a windowing environment, the mail-mode modification
2542 > should work. It will also give you some nice features like quote
2543 > highlighting while editing (assuming font-lock is on).
2544 >
2545
2546 Combining Christopher's idea with something I found on the internet,
2547 putting the following in my .emacs opens sup buffers with
2548 flyspell-mode enabled. Warning, flyspell checks all the text in the
2549 buffer before letting you work, so if you are quoting a really long
2550 chain of emails, this can take a few seconds.
2551
2552 ;; flyspell stuff
2553 (add-to-list 'auto-mode-alist
2554 '("sup\\.\\(compose\\|forward\\|reply\\|resume\\)-mode$" . mail-mode))
2555
2556 (setq mail-mode-hook (quote (#[nil "\300\301!\207" [flyspell-mode 1] 2] flyspell-buffer mail-mode-hook-identify)))
2557 --
2558
2559 Steve Goldman
2560 sgoldman at tower-research.com
2561
2562 T: 212.219.6014
2563 F: 212.219.6007
2564
2565 Tower Research Capital, LLC
2566 377 Broadway, 11th Fl.
2567 New York, NY 10013
2568
2569 From jdugan@es.net Fri Nov 7 22:33:00 2008
2570 From: jdugan@es.net (Jon Dugan)
2571 Date: Fri, 07 Nov 2008 19:33:00 -0800
2572 Subject: [sup-talk] Change URI for for a source?
2573 In-Reply-To: <1226037008-sup-1099@entry>
2574 References: <1226022383-sup-1046@junction.es.net> <1226037008-sup-1099@entry>
2575 Message-ID: <1226115154-sup-7883@junction.es.net>
2576
2577 Excerpts from William Morgan's message of Thu Nov 06 21:51:15 -0800 2008:
2578 > Reformatted excerpts from Jon Dugan's message of 2008-11-06:
2579 > > In my next wave of reorganization I would like to move the box that
2580 > > sup reads from. Currently it's polling INBOX, but I'd like to take
2581 > > the current contents of INBOX and move them to SUPBOX. Is it possible
2582 > > to tell sup that a mailbox has a new URI but is otherwise the same?
2583 >
2584 > You should be able to edit ~/.sup/sources.yaml and change the URI of the
2585 > source as appropriate. As long as you don't change anything else, it
2586 > should work. Keep a backup of sources.yaml just in case!
2587
2588 Hot damn! That worked! Thanks William!
2589
2590 Jon
2591 --
2592 Jon M. Dugan <jdugan at es.net> | GTalk: jdugan.esnet
2593 ESnet Network Engineering Group | http://www.es.net/
2594 Lawrence Berkeley National Laboratory | http://www.lbl.gov/
2595
2596 From wmorgan-sup@masanjin.net Sun Nov 9 22:51:55 2008
2597 From: wmorgan-sup@masanjin.net (William Morgan)
2598 Date: Sun, 09 Nov 2008 19:51:55 -0800
2599 Subject: [sup-talk] Patch: jump to body on compose [was: Re: How to make
2600 emacs position my cursor for me]
2601 In-Reply-To: <1225836311-sup-7605@tangerine.lanl.gov>
2602 References: <1225825527-sup-6138@ausone.local>
2603 <aojKlrxp.1225834115.9805500.tpo2@192.168.3.7>
2604 <1225836311-sup-7605@tangerine.lanl.gov>
2605 Message-ID: <1226289098-sup-1638@entry>
2606
2607 Reformatted excerpts from John Bent's message of 2008-11-04:
2608 > '/usr/bin/vim -f +/^\s*\n-c "setlocal spell spelllang=en_us" -c "set
2609 > filetype=mail" '
2610
2611 I'll accept a patch to this effect if someone wants to whip one up!
2612 --
2613 William <wmorgan-sup at masanjin.net>
2614
2615 From wmorgan-sup@masanjin.net Sun Nov 9 22:58:00 2008
2616 From: wmorgan-sup@masanjin.net (William Morgan)
2617 Date: Sun, 09 Nov 2008 19:58:00 -0800
2618 Subject: [sup-talk] You've got the "From " bug, I'm afraid.
2619 In-Reply-To: <6bb609560811060321m61dc3f6by5cf603c406980628@mail.gmail.com>
2620 References: <6bb609560811051716u26bb7e8dtfc215f293140b32b@mail.gmail.com>
2621 <G7u3qtTP.1225936221.0933950.tpo2@192.168.3.7>
2622 <6bb609560811060321m61dc3f6by5cf603c406980628@mail.gmail.com>
2623 Message-ID: <1226289411-sup-3516@entry>
2624
2625 Reformatted excerpts from barton.schaefer's message of 2008-11-06:
2626 > Given the history, I think it's equally likely that RFC 4155 follows
2627 > Pine. :-) The original mbox driver from the UW c-client package
2628 > predates that RFC by nearly 20 years. 4155 is a case of documenting
2629 > folklore so that newcomers don't have to learn it by hearsay.
2630
2631 Okee doke, I've made an official ditz issue to replicate this
2632 20-year-old piece of work.
2633 --
2634 William <wmorgan-sup at masanjin.net>
2635
2636 From wmorgan-sup@masanjin.net Sun Nov 9 22:59:27 2008
2637 From: wmorgan-sup@masanjin.net (William Morgan)
2638 Date: Sun, 09 Nov 2008 19:59:27 -0800
2639 Subject: [sup-talk] EOFError crash
2640 In-Reply-To: <1226057292-sup-676@blackpad>
2641 References: <1225392037-sup-9224@gillespie.rupamsunyata.org>
2642 <1225647558-sup-7206@gillespie.rupamsunyata.org>
2643 <1225907100-sup-4816@entry> <1225981048-sup-9011@blackpad>
2644 <1226007592-sup-6295@entry> <1226025882-sup-6197@blackpad>
2645 <1226038806-sup-9313@entry> <1226057292-sup-676@blackpad>
2646 Message-ID: <1226289520-sup-538@entry>
2647
2648 Reformatted excerpts from Eduardo Habkost's message of 2008-11-07:
2649 > Looks better! :D
2650 >
2651 > I didn't manage to reproduce the crash yet. With the previous version
2652 > I could crash sup in a few seconds.
2653
2654 Great, I'm going to merge this into next then.
2655
2656 > What version of ferret are you using?
2657
2658 0.11.6, same as you.
2659
2660 > BTW, do you know what happened to the ferret project site
2661 > (http://ferret.davebalmain.com/)? Maybe this is a known bug on ferret,
2662 > or something that could be investigated and tracked on the ferret
2663 > project, but the site seems to be offline for days.
2664
2665 I haven't seen that up for a while. I think poor Ferret is very, very
2666 dead.
2667 --
2668 William <wmorgan-sup at masanjin.net>
2669
2670 From wmorgan-sup@masanjin.net Sun Nov 9 23:49:41 2008
2671 From: wmorgan-sup@masanjin.net (William Morgan)
2672 Date: Sun, 09 Nov 2008 20:49:41 -0800
2673 Subject: [sup-talk] Can sup only "save threads" on exit??
2674 In-Reply-To: <1226067332-sup-8801@ausone.inria.fr>
2675 References: <1225839289-sup-7273@sgoldmanlinux.tower-research.com>
2676 <1225845336-sup-7105@tangerine.lanl.gov>
2677 <1225890375-sup-623@ausone.inria.fr> <1225988350-sup-3900@entry>
2678 <1226067332-sup-8801@ausone.inria.fr>
2679 Message-ID: <1226292556-sup-3497@entry>
2680
2681 Reformatted excerpts from nicolas.pouillard's message of 2008-11-07:
2682 > I often use 'H' for headers, it's pretty natural. I think the '?'
2683 > binding is sufficient for help and that the 'H' alias could be
2684 > removed.
2685 >
2686 > Moreover to help newcomers having a little text in the bottom bar like
2687 > "type '?' for help" would be nice.
2688
2689 Your wish is my command!
2690 --
2691 William <wmorgan-sup at masanjin.net>
2692
2693 From wmorgan-sup@masanjin.net Sun Nov 9 23:51:23 2008
2694 From: wmorgan-sup@masanjin.net (William Morgan)
2695 Date: Sun, 09 Nov 2008 20:51:23 -0800
2696 Subject: [sup-talk] [PATCH] save contacts.txt on '$'
2697 In-Reply-To: <1225983602-76791-1-git-send-email-nicolas.pouillard@gmail.com>
2698 References: <1225982366-sup-3598@ausone.inria.fr>
2699 <1225983602-76791-1-git-send-email-nicolas.pouillard@gmail.com>
2700 Message-ID: <1226292674-sup-9612@entry>
2701
2702 Applied, thanks!
2703 --
2704 William <wmorgan-sup at masanjin.net>
2705
2706 From wmorgan-sup@masanjin.net Sun Nov 9 23:55:56 2008
2707 From: wmorgan-sup@masanjin.net (William Morgan)
2708 Date: Sun, 09 Nov 2008 20:55:56 -0800
2709 Subject: [sup-talk] [PATCH] don't downcase names before looking them up
2710 in the alias to person map, since keys in that map aren't downcased.
2711 In-Reply-To: <1226088207-sup-2545@sgoldmanlinux.tower-research.com>
2712 References: <1226088207-sup-2545@sgoldmanlinux.tower-research.com>
2713 Message-ID: <1226292778-sup-1719@entry>
2714
2715 Reformatted excerpts from Steve Goldman's message of 2008-11-07:
2716 > We shouldn't downcase names before we look them up in the alias to
2717 > person hash since the keys of that hash are case sensitive. This
2718 > brings up a more philosophical question of whether keys in that hash
2719 > SHOULD be case sensitive. What does it mean to have two aliases
2720 > "Steve" and "steve"?
2721
2722 Certainly, either everything should be case sensitive, or everything
2723 should be case insensitive. The problem here was that creating aliases
2724 was case sensitive, but looking them up wasn't.
2725
2726 Personally I'm fine with case-sensitive aliases. Applied, thanks!
2727 --
2728 William <wmorgan-sup at masanjin.net>
2729
2730 From wmorgan-sup@masanjin.net Mon Nov 10 00:11:30 2008
2731 From: wmorgan-sup@masanjin.net (William Morgan)
2732 Date: Sun, 09 Nov 2008 21:11:30 -0800
2733 Subject: [sup-talk] [PATCH] show matching aliases before email addresses
2734 in auto complete
2735 In-Reply-To: <1226091602-sup-7664@sgoldmanlinux.tower-research.com>
2736 References: <1226091602-sup-7664@sgoldmanlinux.tower-research.com>
2737 Message-ID: <1226293522-sup-862@entry>
2738
2739 Hi Steve,
2740
2741 Thanks for the patch! A couple comments:
2742
2743 Reformatted excerpts from Steve Goldman's message of 2008-11-07:
2744 > Suppose I have an alias "william" for "William Morgan
2745 > <name at domain.blah>".
2746
2747 It might be nice to put this helpful explanatory text in the commit
2748 message itself, so that it gets recorded along with the patch.
2749
2750 > + sort { |x,y| x_is_c = ContactManager.contact_for(x); y_is_c
2751 > = ContactManager.contact_for(y); x_is_c && !y_is_c ? -1 : !x_is_c && y_is_c ? 1
2752
2753 I think you can express this more succinctly with something like
2754
2755 sort_by { |c| [ContactManager.contact_for(c) ? 1 : 0, c] }
2756
2757 which makes use of both sort_by (Ruby's answer to the Schwartizan
2758 transform) and the fact that arrays are sorted element-by-element.
2759
2760 Other than that, looks good and I like the idea.
2761 --
2762 William <wmorgan-sup at masanjin.net>
2763
2764 From wmorgan-sup@masanjin.net Mon Nov 10 00:13:57 2008
2765 From: wmorgan-sup@masanjin.net (William Morgan)
2766 Date: Sun, 09 Nov 2008 21:13:57 -0800
2767 Subject: [sup-talk] Can't get emacs to open in flyspell-mode
2768 In-Reply-To: <1226096511-sup-2346@sgoldmanlinux.tower-research.com>
2769 References: <1226009080-sup-663@sgoldmanlinux.tower-research.com>
2770 <C53A173A.2EA6%chrisw@rice.edu>
2771 <1226096511-sup-2346@sgoldmanlinux.tower-research.com>
2772 Message-ID: <1226293993-sup-9586@entry>
2773
2774 Reformatted excerpts from Steve Goldman's message of 2008-11-07:
2775 > Combining Christopher's idea with something I found on the internet,
2776 > putting the following in my .emacs opens sup buffers with
2777 > flyspell-mode enabled.
2778
2779 A gold star, and a free copy of Sup, to whoever adds their precious
2780 knowledge to the Wiki:
2781
2782 http://sup.rubyforge.org/wiki/wiki.pl?EmacsIntegration
2783 --
2784 William <wmorgan-sup at masanjin.net>
2785
2786 From wmorgan-sup@masanjin.net Mon Nov 10 00:14:48 2008
2787 From: wmorgan-sup@masanjin.net (William Morgan)
2788 Date: Sun, 09 Nov 2008 21:14:48 -0800
2789 Subject: [sup-talk] [PATCH] show matching aliases before email addresses
2790 in auto complete
2791 In-Reply-To: <1226293522-sup-862@entry>
2792 References: <1226091602-sup-7664@sgoldmanlinux.tower-research.com>
2793 <1226293522-sup-862@entry>
2794 Message-ID: <1226294055-sup-4217@entry>
2795
2796 Reformatted excerpts from William Morgan's message of 2008-11-09:
2797 > sort_by { |c| [ContactManager.contact_for(c) ? 1 : 0, c] }
2798
2799 Oh, 0 : 1, maybe.
2800 --
2801 William <wmorgan-sup at masanjin.net>
2802
2803 From wmorgan-sup@masanjin.net Mon Nov 10 00:31:03 2008
2804 From: wmorgan-sup@masanjin.net (William Morgan)
2805 Date: Sun, 09 Nov 2008 21:31:03 -0800
2806 Subject: [sup-talk] sup Debian packages
2807 In-Reply-To: <1223170671-sup-9872@gillespie.rupamsunyata.org>
2808 References: <1223170671-sup-9872@gillespie.rupamsunyata.org>
2809 Message-ID: <1226295035-sup-8258@entry>
2810
2811 Since I never replied to this:
2812
2813 Reformatted excerpts from Decklin Foster's message of 2008-10-04:
2814 > I've built Debian packages for sup 0.6 and related libraries.
2815
2816 Whoooo!!!
2817 --
2818 William <wmorgan-sup at masanjin.net>
2819
2820 From decklin@red-bean.com Mon Nov 10 01:23:44 2008
2821 From: decklin@red-bean.com (Decklin Foster)
2822 Date: Mon, 10 Nov 2008 01:23:44 -0500
2823 Subject: [sup-talk] sup Debian packages
2824 In-Reply-To: <1226295035-sup-8258@entry>
2825 References: <1223170671-sup-9872@gillespie.rupamsunyata.org>
2826 <1226295035-sup-8258@entry>
2827 Message-ID: <1226296646-sup-4437@gillespie.rupamsunyata.org>
2828
2829 Excerpts from William Morgan's message of Mon Nov 10 00:31:03 -0500 2008:
2830 > Whoooo!!!
2831
2832 :-)
2833
2834 Still stuck in NEW, unfortunately. Let me make sure the latest is up
2835 for testing... here we go. I'm changing the URL, actually.
2836
2837 deb http://apt.rupamsunyata.org/sup/ ./
2838
2839 And while I'm at it, I'm throwing in my personally hacked-up-for-utf8
2840 packages of libncurses-ruby, too. (In a couple minutes...)
2841
2842 Debian/Ubuntu people: this really should Just Work, from a dead start
2843 (no gems), with "apt-get install sup-mail" (and "apt-get install
2844 libncurses-ruby" if you ever use anything except ASCII...[1]) This is
2845 how I did it, as I build/test the packages on my dev laptop and then
2846 install them from this test repository to my Linode where I read mail,
2847 but I'd love to hear from actual users. I'll update the wiki whenever
2848 the package officially gets in.
2849
2850 [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477366
2851 --
2852 things change.
2853 decklin at red-bean.com
2854
2855 From sgoldman@tower-research.com Mon Nov 10 09:55:18 2008
2856 From: sgoldman@tower-research.com (Steve Goldman)
2857 Date: Mon, 10 Nov 2008 09:55:18 -0500
2858 Subject: [sup-talk] [PATCH] show matching aliases before email addresses
2859 in auto complete
2860 In-Reply-To: <1226294055-sup-4217@entry>
2861 References: <1226091602-sup-7664@sgoldmanlinux.tower-research.com>
2862 <1226293522-sup-862@entry> <1226294055-sup-4217@entry>
2863 Message-ID: <1226328785-sup-310@sgoldmanlinux.tower-research.com>
2864
2865 Excerpts from William Morgan's message of Mon Nov 10 00:14:48 -0500 2008:
2866 > Reformatted excerpts from William Morgan's message of 2008-11-09:
2867 > > sort_by { |c| [ContactManager.contact_for(c) ? 1 : 0, c] }
2868 >
2869 > Oh, 0 : 1, maybe.
2870
2871 Ah, much cleaner. Thanks for the ruby lesson. And, yeah, the correct order is 0 : 1.
2872
2873 Thanks.
2874 --
2875
2876 Steve Goldman
2877 sgoldman at tower-research.com
2878
2879 T: 212.219.6014
2880 F: 212.219.6007
2881
2882 Tower Research Capital, LLC
2883 377 Broadway, 11th Fl.
2884 New York, NY 10013
2885
2886 From sup@davekap.com Mon Nov 10 13:12:24 2008
2887 From: sup@davekap.com (Gladwright)
2888 Date: Mon, 10 Nov 2008 12:12:24 -0600
2889 Subject: [sup-talk] Allow searching of sup wiki?
2890 Message-ID: <1226340574-sup-8764@ubuntu>
2891
2892 Hello, I noticed that sup is not allowing search engines to index it's
2893 wiki.
2894
2895 Is this necessary, or can we open that information up?
2896
2897 Cheers,
2898 Dave
2899
2900 From wmorgan-sup@masanjin.net Mon Nov 10 15:51:39 2008
2901 From: wmorgan-sup@masanjin.net (William Morgan)
2902 Date: Mon, 10 Nov 2008 12:51:39 -0800
2903 Subject: [sup-talk] Allow searching of sup wiki?
2904 In-Reply-To: <1226340574-sup-8764@ubuntu>
2905 References: <1226340574-sup-8764@ubuntu>
2906 Message-ID: <1226349907-sup-5412@entry>
2907
2908 Reformatted excerpts from Gladwright's message of 2008-11-10:
2909 > Hello, I noticed that sup is not allowing search engines to index it's
2910 > wiki.
2911 >
2912 > Is this necessary, or can we open that information up?
2913
2914 I've filed a bug report with the RubyForge guys.
2915
2916 http://rubyforge.org/tracker/index.php?func=detail&aid=22739&group_id=5&atid=101
2917 --
2918 William <wmorgan-sup at masanjin.net>
2919
2920 From rlane@club.cc.cmu.edu Tue Nov 11 12:52:50 2008
2921 From: rlane@club.cc.cmu.edu (Rich Lane)
2922 Date: Tue, 11 Nov 2008 12:52:50 -0500
2923 Subject: [sup-talk] [PATCH] fix class name collision in testcases
2924 Message-ID: <1226425970-7997-1-git-send-email-rlane@club.cc.cmu.edu>
2925
2926 'rake test' was broken because both testcases' classes had the same name and
2927 the setup method was overridden. This patch changes the class name in
2928 test_mbox_parsing.
2929 ---
2930 test/test_mbox_parsing.rb | 2 +-
2931 1 files changed, 1 insertions(+), 1 deletions(-)
2932
2933 diff --git a/test/test_mbox_parsing.rb b/test/test_mbox_parsing.rb
2934 index 070b152..3a6c2f8 100644
2935 --- a/test/test_mbox_parsing.rb
2936 +++ b/test/test_mbox_parsing.rb
2937 @@ -6,7 +6,7 @@ require 'stringio'
2938
2939 include Redwood
2940
2941 -class TestMessage < Test::Unit::TestCase
2942 +class TestMBoxParsing < Test::Unit::TestCase
2943 def setup
2944 end
2945
2946 --
2947 1.5.4.3
2948
2949
2950 From nicolas.pouillard@gmail.com Fri Nov 14 07:29:25 2008
2951 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
2952 Date: Fri, 14 Nov 2008 13:29:25 +0100
2953 Subject: [sup-talk] [PATCH] Add a --query option to sup-tweak-labels.
2954 Message-ID: <1226665765-32595-1-git-send-email-nicolas.pouillard@gmail.com>
2955
2956 ---
2957 bin/sup-tweak-labels | 5 +++++
2958 1 files changed, 5 insertions(+), 0 deletions(-)
2959
2960 diff --git a/bin/sup-tweak-labels b/bin/sup-tweak-labels
2961 index 21e766c..4d1313e 100644
2962 --- a/bin/sup-tweak-labels
2963 +++ b/bin/sup-tweak-labels
2964 @@ -39,6 +39,7 @@ Options:
2965 EOS
2966 opt :add, "One or more labels (comma-separated) to add to every message from the specified sources", :type => String
2967 opt :remove, "One or more labels (comma-separated) to remove from every message from the specified sources, if those labels are present", :type => String
2968 + opt :query, "A Sup search query", :type => String
2969
2970 text <<EOS
2971
2972 @@ -76,6 +77,10 @@ begin
2973 ## query to only messages with those labels
2974 query += " +(" + remove_labels.map { |l| "label:#{l}" }.join(" ") + ")"
2975 end
2976 + query += ' ' + opts[:query] if opts[:query]
2977 +
2978 + qobj, opts = Redwood::Index.parse_user_query_string query
2979 + query = Redwood::Index.build_query opts.merge(:qobj => qobj)
2980
2981 results = index.ferret.search query, :limit => :all
2982 num_total = results.total_hits
2983 --
2984 1.5.5.rc3
2985
2986
2987 From nicolas.pouillard@gmail.com Fri Nov 14 07:31:02 2008
2988 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
2989 Date: Fri, 14 Nov 2008 13:31:02 +0100
2990 Subject: [sup-talk] [PATCH] Factor the Iconv decoding code,
2991 and be more lenient on encodings.
2992 Message-ID: <1226665862-32637-1-git-send-email-nicolas.pouillard@gmail.com>
2993
2994 ---
2995 lib/sup/message.rb | 3 +--
2996 lib/sup/rfc2047.rb | 7 +------
2997 lib/sup/util.rb | 16 ++++++++++++++++
2998 3 files changed, 18 insertions(+), 8 deletions(-)
2999
3000 diff --git a/lib/sup/message.rb b/lib/sup/message.rb
3001 index 944dd88..e01e245 100644
3002 --- a/lib/sup/message.rb
3003 +++ b/lib/sup/message.rb
3004 @@ -434,11 +434,10 @@ private
3005 end
3006
3007 def self.convert_from body, charset
3008 - charset = "utf-8" if charset =~ /UTF_?8/i
3009 begin
3010 raise MessageFormatError, "RubyMail decode returned a null body" unless body
3011 return body unless charset
3012 - Iconv.iconv($encoding + "//IGNORE", charset, body + " ").join[0 .. -2]
3013 + Iconv.easy_decode($encoding, charset, body)
3014 rescue Errno::EINVAL, Iconv::InvalidEncoding, Iconv::IllegalSequence, MessageFormatError => e
3015 Redwood::log "warning: error (#{e.class.name}) decoding message body from #{charset}: #{e.message}"
3016 File.open(File.join(BASE_DIR,"unable-to-decode.txt"), "w") { |f| f.write body }
3017 diff --git a/lib/sup/rfc2047.rb b/lib/sup/rfc2047.rb
3018 index 947de02..fcd5cf0 100644
3019 --- a/lib/sup/rfc2047.rb
3020 +++ b/lib/sup/rfc2047.rb
3021 @@ -52,13 +52,8 @@ module Rfc2047
3022 # WORD.
3023 end
3024
3025 - charset = "utf-8" if charset =~ /UTF_?8/i
3026 -
3027 - # Convert:
3028 - #
3029 - # Remember - Iconv.open(to, from)!
3030 begin
3031 - text = Iconv.iconv(target + "//IGNORE", charset, text + " ").join[0 .. -2]
3032 + Iconv.easy_decode(target, charset, text)
3033 rescue Iconv::InvalidCharacter
3034 text
3035 end
3036 diff --git a/lib/sup/util.rb b/lib/sup/util.rb
3037 index 9909022..6a6da5e 100644
3038 --- a/lib/sup/util.rb
3039 +++ b/lib/sup/util.rb
3040 @@ -617,3 +617,19 @@ class FinishLine
3041 @m.synchronize { !@over && @over = true }
3042 end
3043 end
3044 +
3045 +class Iconv
3046 + def self.easy_decode target, charset, text
3047 + return text if charset =~ /^x-unknown$/i
3048 + charset = case charset
3049 + when /UTF[-_]?8/i: "utf-8"
3050 + when /(iso[-_])?latin[-_]?1$/i: "ISO-8859-1"
3051 + else charset
3052 + end
3053 +
3054 + # Convert:
3055 + #
3056 + # Remember - Iconv.open(to, from)!
3057 + Iconv.iconv(target + "//IGNORE", charset, text + " ").join[0 .. -2]
3058 + end
3059 +end
3060 --
3061 1.5.5.rc3
3062
3063
3064 From nicolas.pouillard@gmail.com Fri Nov 14 08:28:56 2008
3065 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
3066 Date: Fri, 14 Nov 2008 14:28:56 +0100
3067 Subject: [sup-talk] [PATCH] Do nothing on an unknown-8bit encoding.
3068 Message-ID: <1226669336-32978-1-git-send-email-nicolas.pouillard@gmail.com>
3069
3070 ---
3071 lib/sup/util.rb | 2 +-
3072 1 files changed, 1 insertions(+), 1 deletions(-)
3073
3074 diff --git a/lib/sup/util.rb b/lib/sup/util.rb
3075 index 6a6da5e..f3db95d 100644
3076 --- a/lib/sup/util.rb
3077 +++ b/lib/sup/util.rb
3078 @@ -620,7 +620,7 @@ end
3079
3080 class Iconv
3081 def self.easy_decode target, charset, text
3082 - return text if charset =~ /^x-unknown$/i
3083 + return text if charset =~ /^(x-unknown|unknown-8bit)$/i
3084 charset = case charset
3085 when /UTF[-_]?8/i: "utf-8"
3086 when /(iso[-_])?latin[-_]?1$/i: "ISO-8859-1"
3087 --
3088 1.5.5.rc3
3089
3090
3091 From nicolas.pouillard@gmail.com Sat Nov 15 12:53:26 2008
3092 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
3093 Date: Sat, 15 Nov 2008 18:53:26 +0100
3094 Subject: [sup-talk] Searching for after:(Jan 2008) before:(Feb 2008) yields
3095 nothing
3096 Message-ID: <1226771607-64254-1-git-send-email-nicolas.pouillard@gmail.com>
3097
3098
3099 Maybe others could confirm that before this issue to be merged...
3100
3101 From nicolas.pouillard@gmail.com Sat Nov 15 12:53:27 2008
3102 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
3103 Date: Sat, 15 Nov 2008 18:53:27 +0100
3104 Subject: [sup-talk] [PATCH] Add issue: Searching for after:(Jan 2008)
3105 before:(Feb 2008) yields nothing
3106 In-Reply-To: <1226771607-64254-1-git-send-email-nicolas.pouillard@gmail.com>
3107 References: <1226771607-64254-1-git-send-email-nicolas.pouillard@gmail.com>
3108 Message-ID: <1226771607-64254-2-git-send-email-nicolas.pouillard@gmail.com>
3109
3110 ---
3111 ...e-3ca7867637ab10e2433285a056fd326bbc61e84a.yaml | 21 ++++++++++++++++++++
3112 1 files changed, 21 insertions(+), 0 deletions(-)
3113 create mode 100644 bugs/issue-3ca7867637ab10e2433285a056fd326bbc61e84a.yaml
3114
3115 diff --git a/bugs/issue-3ca7867637ab10e2433285a056fd326bbc61e84a.yaml b/bugs/issue-3ca7867637ab10e2433285a056fd326bbc61e84a.yaml
3116 new file mode 100644
3117 index 0000000..7f86474
3118 --- /dev/null
3119 +++ b/bugs/issue-3ca7867637ab10e2433285a056fd326bbc61e84a.yaml
3120 @@ -0,0 +1,21 @@
3121 +--- !ditz.rubyforge.org,2008-03-06/issue
3122 +title: Searching for after:(Jan 2008) before:(Feb 2008) yields nothing
3123 +desc: |-
3124 + When I try these two parts separately it works however.
3125 + Moreover in that case during:(Jan 2008) is sufficient.
3126 +type: :bugfix
3127 +component: indexing
3128 +release:
3129 +reporter: Nicolas Pouillard <nicolas.pouillard at gmail.com>
3130 +status: :unstarted
3131 +disposition:
3132 +creation_time: 2008-11-15 17:47:46.194105 Z
3133 +references: []
3134 +
3135 +id: 3ca7867637ab10e2433285a056fd326bbc61e84a
3136 +log_events:
3137 +- - 2008-11-15 17:47:46.469898 Z
3138 + - Nicolas Pouillard <nicolas.pouillard at gmail.com>
3139 + - created
3140 + - ""
3141 +git_branch:
3142 --
3143 1.5.5.rc3
3144
3145
3146 From bburky@bburky.com Sat Nov 15 14:37:50 2008
3147 From: bburky@bburky.com (Blake Burkhart)
3148 Date: Sat, 15 Nov 2008 13:37:50 -0600
3149 Subject: [sup-talk] LibC on OpenBSD
3150 Message-ID: <1226777116-sup-6508@ellipsis.bburky.com>
3151
3152 I had been still using an old version of sup for quite a while. It was either 0.5 or a dev version from between 0.5 and 0.6. I decided I actually needed to update it for once.
3153
3154 I tried downloading the tgz (I never can get gem to do what I want) of 0.6 but it didn't seem to work. I gave up on 0.6 and tried the version from git. Still problems.
3155
3156 When I ran it I got these errors:
3157
3158 $ ruby -I lib -w bin/sup
3159 /usr/local/lib/ruby/1.8/dl/import.rb:29:in `initialize': File not found (RuntimeError)
3160 from /usr/local/lib/ruby/1.8/dl/import.rb:29:in `dlopen'
3161 from /usr/local/lib/ruby/1.8/dl/import.rb:29:in `dlload'
3162 from /usr/local/lib/ruby/1.8/dl/import.rb:27:in `each'
3163 from /usr/local/lib/ruby/1.8/dl/import.rb:27:in `dlload'
3164 from ./lib/sup.rb:17
3165 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
3166 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
3167 from bin/sup:9
3168
3169 Apparently it was breaking on loading LibC. I had no idea where LibC was supposed to be coming from so I searched my computer for it and finally found it called "libc.so.43.0"
3170
3171 I changed the "libc.so.6" part of lib/sup.rb:17 to "libc.so.43.0".
3172
3173 Basically, I was wondering if I had to do all that. Oh, and it does work perfectly fine now.
3174 --
3175 Blake Burkhart
3176
3177 From marcus-sup@bar-coded.net Sat Nov 15 17:16:19 2008
3178 From: marcus-sup@bar-coded.net (marcus-sup)
3179 Date: Sat, 15 Nov 2008 22:16:19 +0000
3180 Subject: [sup-talk] Searching for after:(Jan 2008) before:(Feb 2008)
3181 yields nothing
3182 In-Reply-To: <1226771607-64254-1-git-send-email-nicolas.pouillard@gmail.com>
3183 References: <1226771607-64254-1-git-send-email-nicolas.pouillard@gmail.com>
3184 Message-ID: <1226787180-sup-5286@tomsk>
3185
3186 On 15.11.2008, Nicolas Pouillard wrote:
3187 > Maybe others could confirm that before this issue to be merged...
3188
3189 It was deliberate - after:(jan 2008) means all email after the _end_
3190 of jan 2008, before:(feb 2008) means all email before the _beginning_
3191 of feb 2008. So there wouldnt be any email in the period in between :)
3192
3193 It uses the date ranges chronic gives back to get the beginning/end of
3194 the date period parsed.
3195
3196 Marcus
3197
3198 From wmorgan-sup@masanjin.net Sat Nov 15 19:02:33 2008
3199 From: wmorgan-sup@masanjin.net (William Morgan)
3200 Date: Sat, 15 Nov 2008 16:02:33 -0800
3201 Subject: [sup-talk] Searching for after:(Jan 2008) before:(Feb 2008)
3202 yields nothing
3203 In-Reply-To: <1226787180-sup-5286@tomsk>
3204 References: <1226771607-64254-1-git-send-email-nicolas.pouillard@gmail.com>
3205 <1226787180-sup-5286@tomsk>
3206 Message-ID: <1226793538-sup-2043@entry>
3207
3208 Reformatted excerpts from marcus-sup's message of 2008-11-15:
3209 > It was deliberate - after:(jan 2008) means all email after the _end_
3210 > of jan 2008, before:(feb 2008) means all email before the _beginning_
3211 > of feb 2008. So there wouldnt be any email in the period in between :)
3212
3213 Yep, I think this is the correct behavior. You can see the chronic
3214 interpretations in the log buffer, and you can use in:(jan 2008) to get
3215 what (I think) you're looking for.
3216 --
3217 William <wmorgan-sup at masanjin.net>
3218
3219 From wmorgan-sup@masanjin.net Sat Nov 15 19:14:28 2008
3220 From: wmorgan-sup@masanjin.net (William Morgan)
3221 Date: Sat, 15 Nov 2008 16:14:28 -0800
3222 Subject: [sup-talk] LibC on OpenBSD
3223 In-Reply-To: <1226777116-sup-6508@ellipsis.bburky.com>
3224 References: <1226777116-sup-6508@ellipsis.bburky.com>
3225 Message-ID: <1226794201-sup-4143@entry>
3226
3227 Reformatted excerpts from Blake Burkhart's message of 2008-11-15:
3228 > I changed the "libc.so.6" part of lib/sup.rb:17 to "libc.so.43.0".
3229
3230 Wow I REALLY don't want to play this game. But it looks like we have to,
3231 in order to get wide characters working with ncurses:
3232
3233 What does
3234 ruby -rrbconfig -e 'puts Config::CONFIG["arch"]'
3235 print on your system?
3236 --
3237 William <wmorgan-sup at masanjin.net>
3238
3239 From bburky@bburky.com Sat Nov 15 19:42:19 2008
3240 From: bburky@bburky.com (Blake Burkhart)
3241 Date: Sat, 15 Nov 2008 18:42:19 -0600
3242 Subject: [sup-talk] LibC on OpenBSD
3243 In-Reply-To: <1226794201-sup-4143@entry>
3244 References: <1226777116-sup-6508@ellipsis.bburky.com>
3245 <1226794201-sup-4143@entry>
3246 Message-ID: <1226796055-sup-4510@ellipsis.bburky.com>
3247
3248 Excerpts from William Morgan's message of Sat Nov 15 18:14:28 -0600 2008:
3249 > What does
3250 > ruby -rrbconfig -e 'puts Config::CONFIG["arch"]'
3251 > print on your system?
3252
3253 Here's the output:
3254
3255 $ ruby -rrbconfig -e 'puts Config::CONFIG["arch"]'
3256 i386-openbsd4.3
3257 --
3258 Blake Burkhart
3259
3260 From nicolas.pouillard@gmail.com Sun Nov 16 05:32:26 2008
3261 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
3262 Date: Sun, 16 Nov 2008 11:32:26 +0100
3263 Subject: [sup-talk] Searching for after:(Jan 2008) before:(Feb 2008)
3264 yields nothing
3265 In-Reply-To: <1226793538-sup-2043@entry>
3266 References: <1226771607-64254-1-git-send-email-nicolas.pouillard@gmail.com>
3267 <1226787180-sup-5286@tomsk> <1226793538-sup-2043@entry>
3268 Message-ID: <1226831536-sup-2712@ausone.local>
3269
3270 Excerpts from William Morgan's message of Sun Nov 16 01:02:33 +0100 2008:
3271 > Reformatted excerpts from marcus-sup's message of 2008-11-15:
3272 > > It was deliberate - after:(jan 2008) means all email after the _end_
3273 > > of jan 2008, before:(feb 2008) means all email before the _beginning_
3274 > > of feb 2008. So there wouldnt be any email in the period in between :)
3275 >
3276 > Yep, I think this is the correct behavior. You can see the chronic
3277 > interpretations in the log buffer, and you can use in:(jan 2008) to get
3278 > what (I think) you're looking for.
3279
3280 Fine
3281
3282 --
3283 Nicolas Pouillard aka Ertai
3284
3285 From marcus-sup@bar-coded.net Sun Nov 16 12:08:08 2008
3286 From: marcus-sup@bar-coded.net (marcus-sup)
3287 Date: Sun, 16 Nov 2008 17:08:08 +0000
3288 Subject: [sup-talk] LibC on OpenBSD
3289 In-Reply-To: <1226777116-sup-6508@ellipsis.bburky.com>
3290 References: <1226777116-sup-6508@ellipsis.bburky.com>
3291 Message-ID: <1226855216-sup-4590@tomsk>
3292
3293 On 15.11.2008, Blake Burkhart wrote:
3294 > Apparently it was breaking on loading LibC. I had no idea where LibC was
3295 > supposed to be coming from so I searched my computer for it and finally found
3296 > it called "libc.so.43.0"
3297
3298 I _think_ (but I'm no freebsd expert!) you need to install compat6x
3299 which will give you the libc.so.6 libs (and others). It may be that
3300 they are just soft links anyway.
3301
3302 MArcus
3303
3304 From nicolas.pouillard@gmail.com Sun Nov 16 12:17:59 2008
3305 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
3306 Date: Sun, 16 Nov 2008 18:17:59 +0100
3307 Subject: [sup-talk] [PATCH] Add a limit:<int> search operator to limit the
3308 number of results
3309 Message-ID: <1226855879-69629-1-git-send-email-nicolas.pouillard@gmail.com>
3310
3311 ---
3312 lib/sup/index.rb | 20 +++++++++++++++++---
3313 1 files changed, 17 insertions(+), 3 deletions(-)
3314
3315 diff --git a/lib/sup/index.rb b/lib/sup/index.rb
3316 index cda5cee..8af4edd 100644
3317 --- a/lib/sup/index.rb
3318 +++ b/lib/sup/index.rb
3319 @@ -282,13 +282,15 @@ EOS
3320 query = build_query opts
3321 offset = 0
3322 while true
3323 - results = @index_mutex.synchronize { @index.search query, :sort => "date DESC", :limit => EACH_BY_DATE_NUM, :offset => offset }
3324 + limit = (opts[:limit])? [EACH_BY_DATE_NUM, opts[:limit] - offset].min : EACH_BY_DATE_NUM
3325 + results = @index_mutex.synchronize { @index.search query, :sort => "date DESC", :limit => limit, :offset => offset }
3326 Redwood::log "got #{results.total_hits} results for query (offset #{offset}) #{query.inspect}"
3327 results.hits.each do |hit|
3328 yield @index_mutex.synchronize { @index[hit.doc][:message_id] }, lambda { build_message hit.doc }
3329 end
3330 - break if offset >= results.total_hits - EACH_BY_DATE_NUM
3331 - offset += EACH_BY_DATE_NUM
3332 + break if opts[:limit] and offset >= opts[:limit] - limit
3333 + break if offset >= results.total_hits - limit
3334 + offset += limit
3335 end
3336 end
3337
3338 @@ -561,6 +563,18 @@ protected
3339 end
3340 subs = nil if chronic_failure
3341 end
3342 +
3343 + ## limit:42 restrict the search to 42 results
3344 + subs = subs.gsub(/\blimit:(\S+)\b/) do
3345 + lim = $1
3346 + if lim =~ /^\d+$/
3347 + extraopts[:limit] = lim.to_i
3348 + ''
3349 + else
3350 + BufferManager.flash "Can't understand limit #{lim.inspect}!"
3351 + subs = nil
3352 + end
3353 + end
3354
3355 if subs
3356 [@qparser.parse(subs), extraopts]
3357 --
3358 1.5.5.rc3
3359
3360
3361 From nicolas.pouillard@gmail.com Sun Nov 16 12:18:33 2008
3362 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
3363 Date: Sun, 16 Nov 2008 18:18:33 +0100
3364 Subject: [sup-talk] [PATCH] decoding rules: ignore ascii-7bit and normalize
3365 utf-7
3366 Message-ID: <1226855913-69659-1-git-send-email-nicolas.pouillard@gmail.com>
3367
3368 ---
3369 lib/sup/util.rb | 3 ++-
3370 1 files changed, 2 insertions(+), 1 deletions(-)
3371
3372 diff --git a/lib/sup/util.rb b/lib/sup/util.rb
3373 index f3db95d..fc62532 100644
3374 --- a/lib/sup/util.rb
3375 +++ b/lib/sup/util.rb
3376 @@ -620,10 +620,11 @@ end
3377
3378 class Iconv
3379 def self.easy_decode target, charset, text
3380 - return text if charset =~ /^(x-unknown|unknown-8bit)$/i
3381 + return text if charset =~ /^(x-unknown|unknown[-_]?8bit|ascii[-_]?7[-_]?bit)$/i
3382 charset = case charset
3383 when /UTF[-_]?8/i: "utf-8"
3384 when /(iso[-_])?latin[-_]?1$/i: "ISO-8859-1"
3385 + when /unicode[-_]1[-_]1[-_]utf[-_]7/i: "utf-7"
3386 else charset
3387 end
3388
3389 --
3390 1.5.5.rc3
3391
3392
3393 From nicolas.pouillard@gmail.com Sun Nov 16 12:32:12 2008
3394 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
3395 Date: Sun, 16 Nov 2008 18:32:12 +0100
3396 Subject: [sup-talk] [PATCH] Allow to hit 'y' to send a draft in
3397 thread-view-mode
3398 Message-ID: <1226856732-69997-1-git-send-email-nicolas.pouillard@gmail.com>
3399
3400 ---
3401 lib/sup/modes/thread-view-mode.rb | 15 ++++++++++++++-
3402 1 files changed, 14 insertions(+), 1 deletions(-)
3403
3404 diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
3405 index 5f578d3..6e9256d 100644
3406 --- a/lib/sup/modes/thread-view-mode.rb
3407 +++ b/lib/sup/modes/thread-view-mode.rb
3408 @@ -30,6 +30,7 @@ EOS
3409 k.add :activate_chunk, "Expand/collapse or activate item", :enter
3410 k.add :expand_all_messages, "Expand/collapse all messages", 'E'
3411 k.add :edit_draft, "Edit draft", 'e'
3412 + k.add :send_draft, "Send draft", 'y'
3413 k.add :edit_labels, "Edit or add labels for a thread", 'l'
3414 k.add :expand_all_quotes, "Expand/collapse all quotes in a message", 'o'
3415 k.add :jump_to_next_open, "Jump to next open message", 'n'
3416 @@ -283,6 +284,18 @@ EOS
3417 end
3418 end
3419
3420 + def send_draft
3421 + m = @message_lines[curpos] or return
3422 + if m.is_draft?
3423 + mode = ResumeMode.new m
3424 + BufferManager.spawn "Send message", mode
3425 + BufferManager.kill_buffer self.buffer
3426 + mode.send_message
3427 + else
3428 + BufferManager.flash "Not a draft message!"
3429 + end
3430 + end
3431 +
3432 def jump_to_first_open loose_alignment=false
3433 m = @message_lines[0] or return
3434 if @layout[m].state != :closed
3435 @@ -642,7 +655,7 @@ private
3436 [[[:missing_message_color, "#{prefix}<an unreceived message>"]]]
3437 when Message
3438 message_patina_lines(chunk, state, start, parent, prefix, color, star_color) +
3439 - (chunk.is_draft? ? [[[:draft_notification_color, prefix + " >>> This message is a draft. To edit, hit 'e'. <<<"]]] : [])
3440 + (chunk.is_draft? ? [[[:draft_notification_color, prefix + " >>> This message is a draft. Hit 'e' to edit, 'y' to send. <<<"]]] : [])
3441
3442 else
3443 raise "Bad chunk: #{chunk.inspect}" unless chunk.respond_to?(:inlineable?) ## debugging
3444 --
3445 1.5.5.rc3
3446
3447
3448 From sgoldman@tower-research.com Wed Nov 19 15:52:17 2008
3449 From: sgoldman@tower-research.com (Steve Goldman)
3450 Date: Wed, 19 Nov 2008 15:52:17 -0500
3451 Subject: [sup-talk] Ctrl-C causes crash
3452 Message-ID: <1227127838-sup-7819@sgoldmanlinux.tower-research.com>
3453
3454
3455 This isn't as dumb of a question as it sounds. Sometimes I'm in a sup
3456 buffer but mistakenly think I'm in emacs. Then I type Ctrl-X/Ctrl-C
3457 and sup crashes. This is not cool. Here is the exception log:
3458
3459 --- Interrupt from thread: main
3460
3461 /apps/home/sgoldman/sup-src/mainline/lib/sup/buffer.rb:31:in `select'
3462 /apps/home/sgoldman/sup-src/mainline/lib/sup/buffer.rb:31:in `nonblocking_getch'
3463 bin/sup:184
3464
3465 I tested just typing Ctrl-C and got the same log output. Any idea on how to make sup not crash on Ctrl-C?
3466
3467 Thanks.
3468 --
3469
3470 Steve Goldman
3471 sgoldman at tower-research.com
3472
3473 T: 212.219.6014
3474 F: 212.219.6007
3475
3476 Tower Research Capital, LLC
3477 377 Broadway, 11th Fl.
3478 New York, NY 10013
3479
3480 From daniel@wagner-home.com Wed Nov 19 17:50:39 2008
3481 From: daniel@wagner-home.com (Daniel Wagner)
3482 Date: Wed, 19 Nov 2008 17:50:39 -0500
3483 Subject: [sup-talk] migrating email to a new computer
3484 Message-ID: <1227135030-sup-401@buckwheat>
3485
3486 Hey all, I've got a quick question about how sup handles Maildir. I'm
3487 going to be migrating to a new machine soon, and I've got a couple of
3488 questions about it.
3489
3490 1. My mail is spread out in hundreds of Maildir directories, most of
3491 them "legacy" directories that I want to merge as I migrate. Can I
3492 do this by just copying the mail files from the various "new" and
3493 "cur" directories to a central "cur" directory? I know that Maildir
3494 uses unique names, so this shouldn't clobber any messages, but I
3495 haven't seen any information on whether this could cause other kinds
3496 of problems.
3497 2. A more sup-related question: what things do I need to copy to migrate
3498 my labels, read/archived/starred status information, etc? I
3499 definitely want to maintain as much of my mail's metadata as I can.
3500 I guess this probably interacts with the previous question, too; in
3501 the end, I would much prefer to keep my metadata than to merge
3502 Maildir directories if they are mutually exclusive.
3503 3. I'm assuming I won't lose anything if I update sup.
3504
3505 I think this topic deserves a wiki page, so I'll write up a summary of
3506 any advice I get as well as how my experience goes for future posterity.
3507
3508 Thanks!
3509 ~d
3510
3511 From wmorgan-sup@masanjin.net Thu Nov 20 09:28:26 2008
3512 From: wmorgan-sup@masanjin.net (William Morgan)
3513 Date: Thu, 20 Nov 2008 06:28:26 -0800
3514 Subject: [sup-talk] Ctrl-C causes crash
3515 In-Reply-To: <1227127838-sup-7819@sgoldmanlinux.tower-research.com>
3516 References: <1227127838-sup-7819@sgoldmanlinux.tower-research.com>
3517 Message-ID: <1227191082-sup-3553@entry>
3518
3519 Reformatted excerpts from Steve Goldman's message of 2008-11-19:
3520 > This isn't as dumb of a question as it sounds. Sometimes I'm in a sup
3521 > buffer but mistakenly think I'm in emacs.
3522
3523 The illusion is complete!
3524
3525 > Then I type Ctrl-X/Ctrl-C and sup crashes. This is not cool.
3526
3527 Ctrl-C is the traditional unix forced-exit mechanism, but perhaps we
3528 could emulate mutt and have it prompt you before quitting. (And in
3529 contrast to regular quit, it shouldn't save state back to the index.)
3530
3531 > /apps/home/sgoldman/sup-src/mainline/lib/sup/buffer.rb:31:in `select'
3532 > /apps/home/sgoldman/sup-src/mainline/lib/sup/buffer.rb:31:in `nonblocking_getch'
3533 > bin/sup:184
3534 >
3535 > I tested just typing Ctrl-C and got the same log output. Any idea on how to
3536 > make sup not crash on Ctrl-C?
3537
3538 bin/sup already wraps everything in a rescue Exception, so you just need
3539 to check within the rescue block whether it's a ctrl-c exception or not.
3540 Something like:
3541
3542 rescue Exception => e
3543 exit 1 if e.is_a?(Interrupt) && BufferManager.ask_yes_or_no("Die now?")
3544 end
3545 --
3546 William <wmorgan-sup at masanjin.net>
3547
3548 From wmorgan-sup@masanjin.net Thu Nov 20 10:15:37 2008
3549 From: wmorgan-sup@masanjin.net (William Morgan)
3550 Date: Thu, 20 Nov 2008 07:15:37 -0800
3551 Subject: [sup-talk] [PATCH] Add a --query option to sup-tweak-labels.
3552 In-Reply-To: <1226665765-32595-1-git-send-email-nicolas.pouillard@gmail.com>
3553 References: <1226665765-32595-1-git-send-email-nicolas.pouillard@gmail.com>
3554 Message-ID: <1227194106-sup-7286@entry>
3555
3556 Applied, thanks.
3557
3558 Sorry for the slow patch turnaround time recently. I'm moving across the
3559 country and only have bits of time here and there, at least for another
3560 week or so.
3561 --
3562 William <wmorgan-sup at masanjin.net>
3563
3564 From wmorgan-sup@masanjin.net Thu Nov 20 10:17:37 2008
3565 From: wmorgan-sup@masanjin.net (William Morgan)
3566 Date: Thu, 20 Nov 2008 07:17:37 -0800
3567 Subject: [sup-talk] [PATCH] Factor the Iconv decoding code,
3568 and be more lenient on encodings.
3569 In-Reply-To: <1226665862-32637-1-git-send-email-nicolas.pouillard@gmail.com>
3570 References: <1226665862-32637-1-git-send-email-nicolas.pouillard@gmail.com>
3571 Message-ID: <1227194245-sup-9535@entry>
3572
3573 Awesome. Applied, thanks!
3574 --
3575 William <wmorgan-sup at masanjin.net>
3576
3577 From wmorgan-sup@masanjin.net Thu Nov 20 10:18:36 2008
3578 From: wmorgan-sup@masanjin.net (William Morgan)
3579 Date: Thu, 20 Nov 2008 07:18:36 -0800
3580 Subject: [sup-talk] [PATCH] Do nothing on an unknown-8bit encoding.
3581 In-Reply-To: <1226669336-32978-1-git-send-email-nicolas.pouillard@gmail.com>
3582 References: <1226669336-32978-1-git-send-email-nicolas.pouillard@gmail.com>
3583 Message-ID: <1227194309-sup-1963@entry>
3584
3585 Applied!
3586 --
3587 William <wmorgan-sup at masanjin.net>
3588
3589 From luis@tieguy.org Thu Nov 20 13:35:08 2008
3590 From: luis@tieguy.org (Luis Villa)
3591 Date: Thu, 20 Nov 2008 13:35:08 -0500
3592 Subject: [sup-talk] 'best' mail storage for sup?
3593 Message-ID: <2cb10c440811201035w1a95f7d7y40c335e0c69a96a3@mail.gmail.com>
3594
3595 hey, all-
3596
3597 If I were going to start a new mail account from scratch, what is
3598 preferred/most reliable- mbox or maildir? I assume maildir, but just
3599 wanted to check.
3600
3601 Thanks-
3602 Luis
3603
3604 From luis@tieguy.org Thu Nov 20 15:47:57 2008
3605 From: luis@tieguy.org (Luis Villa)
3606 Date: Thu, 20 Nov 2008 15:47:57 -0500
3607 Subject: [sup-talk] 'best' mail storage for sup?
3608 In-Reply-To: <1227209118-sup-6176@ausone.local>
3609 References: <2cb10c440811201035w1a95f7d7y40c335e0c69a96a3@mail.gmail.com>
3610 <1227209118-sup-6176@ausone.local>
3611 Message-ID: <2cb10c440811201247y4f4beeb1w96742886df23c4f5@mail.gmail.com>
3612
3613 On Thu, Nov 20, 2008 at 2:26 PM, Nicolas Pouillard
3614 <nicolas.pouillard at gmail.com> wrote:
3615 > Excerpts from Luis Villa's message of Thu Nov 20 19:35:08 +0100 2008:
3616 >> hey, all-
3617 >>
3618 >> If I were going to start a new mail account from scratch, what is
3619 >> preferred/most reliable- mbox or maildir? I assume maildir, but just
3620 >> wanted to check.
3621 >
3622 > I do prefer the mbox format, however it may depends on the ways you get your
3623 > mails.
3624
3625 In this particular case, probably just getmail from a POP server,
3626 which can drop into either mbox or maildir as appropriate.
3627
3628 Luis
3629
3630 From sgoldman@tower-research.com Sun Nov 23 14:29:36 2008
3631 From: sgoldman@tower-research.com (Steve Goldman)
3632 Date: Sun, 23 Nov 2008 14:29:36 -0500
3633 Subject: [sup-talk] [PATCH] make ctrl-c prompt user if sup should die
3634 ungracefully
3635 Message-ID: <1227468533-sup-3252@sgoldmanlinux.tower-research.com>
3636
3637 ---
3638 bin/sup | 12 ++++++++++--
3639 1 files changed, 10 insertions(+), 2 deletions(-)
3640
3641 diff --git a/bin/sup b/bin/sup
3642 index 124af75..cee7051 100644
3643 --- a/bin/sup
3644 +++ b/bin/sup
3645 @@ -181,7 +181,16 @@ begin
3646 end
3647
3648 until Redwood::exceptions.nonempty? || SuicideManager.die?
3649 - c = Ncurses.nonblocking_getch
3650 + c =
3651 + begin
3652 + Ncurses.nonblocking_getch
3653 + rescue Exception => e
3654 + if e.is_a?(Interrupt)
3655 + raise if BufferManager.ask_yes_or_no("Die ungracefully now?")
3656 + bm.draw_screen
3657 + nil
3658 + end
3659 + end
3660 next unless c
3661 bm.erase_flash
3662
3663 @@ -195,7 +204,6 @@ begin
3664 rescue InputSequenceAborted
3665 :nothing
3666 end
3667 -
3668 case action
3669 when :quit_now
3670 break if bm.kill_all_buffers_safely
3671 --
3672 1.5.6.4
3673 --
3674
3675 Steve Goldman
3676 sgoldman at tower-research.com
3677
3678 T: 212.219.6014
3679 F: 212.219.6007
3680
3681 Tower Research Capital, LLC
3682 377 Broadway, 11th Fl.
3683 New York, NY 10013
3684
3685 From sgoldman@tower-research.com Sun Nov 23 15:59:08 2008
3686 From: sgoldman@tower-research.com (Steve Goldman)
3687 Date: Sun, 23 Nov 2008 15:59:08 -0500
3688 Subject: [sup-talk] Too many addresses at the To: prompt messes things up
3689 In-Reply-To: <1227471316-sup-6968@sgoldmanlinux.tower-research.com>
3690 References: <1227471316-sup-6968@sgoldmanlinux.tower-research.com>
3691 Message-ID: <1227473934-sup-5596@sgoldmanlinux.tower-research.com>
3692
3693 Nevermind, I figured it out. See forthcoming patch.
3694
3695 Excerpts from Steve Goldman's message of Sun Nov 23 15:17:54 -0500 2008:
3696 >
3697 > When you type so many addresses at the To: prompt that the cursor has
3698 > to wrap around, you lose all the addresses on the first line that you
3699 > typed. I would dig around to try to figure this out, but it would
3700 > probably be a five minute fix for someone with knowledge of
3701 > completion-mode, etc.
3702 >
3703 > This is fairly serious because it makes sending to more than four or
3704 > five people a huge hassle.
3705 >
3706 > Thanks.
3707 --
3708
3709 Steve Goldman
3710 sgoldman at tower-research.com
3711
3712 T: 212.219.6014
3713 F: 212.219.6007
3714
3715 Tower Research Capital, LLC
3716 377 Broadway, 11th Fl.
3717 New York, NY 10013
3718
3719 From sgoldman@tower-research.com Sun Nov 23 14:44:29 2008
3720 From: sgoldman@tower-research.com (Steve Goldman)
3721 Date: Sun, 23 Nov 2008 14:44:29 -0500
3722 Subject: [sup-talk] [PATCH] git status should ignore emacs temp files
3723 Message-ID: <1227469451-sup-3570@sgoldmanlinux.tower-research.com>
3724
3725 ---
3726 .gitignore | 2 ++
3727 1 files changed, 2 insertions(+), 0 deletions(-)
3728
3729 diff --git a/.gitignore b/.gitignore
3730 index 37775a6..b8d3bcd 100644
3731 --- a/.gitignore
3732 +++ b/.gitignore
3733 @@ -1,3 +1,5 @@
3734 # i use vi
3735 *.swp
3736 .ditz-config
3737 +# i use emacs
3738 +*~
3739 --
3740 1.5.6.4
3741 --
3742
3743 Steve Goldman
3744 sgoldman at tower-research.com
3745
3746 T: 212.219.6014
3747 F: 212.219.6007
3748
3749 Tower Research Capital, LLC
3750 377 Broadway, 11th Fl.
3751 New York, NY 10013
3752
3753 From sgoldman@tower-research.com Sun Nov 23 13:53:09 2008
3754 From: sgoldman@tower-research.com (Steve Goldman)
3755 Date: Sun, 23 Nov 2008 13:53:09 -0500
3756 Subject: [sup-talk] [PATCH] Display a default save path for attachments
3757 Message-ID: <1227466312-sup-6661@sgoldmanlinux.tower-research.com>
3758
3759 Let the user specify a default path for saving attachments with
3760 :default_attachment_save_dir: in config.yaml, and display this path in
3761 front of the filename when saving an attachment in thread view mode.
3762 ---
3763 lib/sup.rb | 1 +
3764 lib/sup/modes/thread-view-mode.rb | 2 +-
3765 2 files changed, 2 insertions(+), 1 deletions(-)
3766
3767 diff --git a/lib/sup.rb b/lib/sup.rb
3768 index 93369a5..92ace7d 100644
3769 --- a/lib/sup.rb
3770 +++ b/lib/sup.rb
3771 @@ -221,6 +221,7 @@ else
3772 :confirm_no_attachments => true,
3773 :confirm_top_posting => true,
3774 :discard_snippets_from_encrypted_messages => false,
3775 + :default_attachment_save_dir => "",
3776 }
3777 begin
3778 FileUtils.mkdir_p Redwood::BASE_DIR
3779 diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
3780 index 5f578d3..011eccd 100644
3781 --- a/lib/sup/modes/thread-view-mode.rb
3782 +++ b/lib/sup/modes/thread-view-mode.rb
3783 @@ -259,7 +259,7 @@ EOS
3784 chunk = @chunk_lines[curpos] or return
3785 case chunk
3786 when Chunk::Attachment
3787 - fn = BufferManager.ask_for_filename :filename, "Save attachment to file: ", chunk.filename
3788 + fn = BufferManager.ask_for_filename :filename, "Save attachment to file: ", ($config[:default_attachment_save_dir] + chunk.filename)
3789 save_to_file(fn) { |f| f.print chunk.raw_content } if fn
3790 else
3791 m = @message_lines[curpos]
3792 --
3793 1.5.6.4
3794 --
3795
3796 Steve Goldman
3797 sgoldman at tower-research.com
3798
3799 T: 212.219.6014
3800 F: 212.219.6007
3801
3802 Tower Research Capital, LLC
3803 377 Broadway, 11th Fl.
3804 New York, NY 10013
3805
3806 From sgoldman@tower-research.com Sun Nov 23 14:39:10 2008
3807 From: sgoldman@tower-research.com (Steve Goldman)
3808 Date: Sun, 23 Nov 2008 14:39:10 -0500
3809 Subject: [sup-talk] [PATCH] show matching aliases before email addresses in
3810 auto complete
3811 Message-ID: <1227469112-sup-9061@sgoldmanlinux.tower-research.com>
3812
3813 ---
3814 lib/sup/buffer.rb | 4 ++--
3815 1 files changed, 2 insertions(+), 2 deletions(-)
3816
3817 diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
3818 index ebc3587..e56fbf7 100644
3819 --- a/lib/sup/buffer.rb
3820 +++ b/lib/sup/buffer.rb
3821 @@ -433,7 +433,7 @@ EOS
3822 prefix, target = partial.split_on_commas_with_remainder
3823 target ||= prefix.pop || ""
3824 prefix = prefix.join(", ") + (prefix.empty? ? "" : ", ")
3825 - completions.select { |x| x =~ /^#{Regexp::escape target}/i }.map { |x| [prefix + x, x] }
3826 + completions.select { |x| x =~ /^#{Regexp::escape target}/i }.sort_by { |c| [ContactManager.contact_for(c) ? 0 : 1, c] }.map { |x| [prefix + x, x] }
3827 end
3828 end
3829
3830 @@ -501,7 +501,7 @@ EOS
3831 recent = Index.load_contacts(AccountManager.user_emails, :num => 10).map { |c| [c.full_address, c.email] }
3832 contacts = ContactManager.contacts.map { |c| [ContactManager.alias_for(c), c.full_address, c.email] }
3833
3834 - completions = (recent + contacts).flatten.uniq.sort
3835 + completions = (recent + contacts).flatten.uniq
3836 completions += HookManager.run("extra-contact-addresses") || []
3837 answer = BufferManager.ask_many_emails_with_completions domain, question, completions, default
3838
3839 --
3840 1.5.6.4
3841 --
3842
3843 Steve Goldman
3844 sgoldman at tower-research.com
3845
3846 T: 212.219.6014
3847 F: 212.219.6007
3848
3849 Tower Research Capital, LLC
3850 377 Broadway, 11th Fl.
3851 New York, NY 10013
3852
3853 From sgoldman@tower-research.com Sun Nov 23 15:59:49 2008
3854 From: sgoldman@tower-research.com (Steve Goldman)
3855 Date: Sun, 23 Nov 2008 15:59:49 -0500
3856 Subject: [sup-talk] [PATCH] use offscreen lines for textfield overflow
3857 Message-ID: <1227473953-sup-5646@sgoldmanlinux.tower-research.com>
3858
3859 In the To:, Cc:, Bcc:, etc., prompts, the TextField was initializing
3860 an NCurses form with zero offscreen lines. So when the user typed too
3861 many addresses at the prompt the cursor wrapped around and everything
3862 they had typed was clobbered. This patch initializes the form object
3863 to have 256 offscreen lines (I had no rationale for 256 except that it
3864 is a nice, big power of two). Now the user can type plenty of names
3865 and the wrap-around works as the user would expect.
3866 ---
3867 lib/sup/textfield.rb | 2 +-
3868 1 files changed, 1 insertions(+), 1 deletions(-)
3869
3870 diff --git a/lib/sup/textfield.rb b/lib/sup/textfield.rb
3871 index 479c609..c748c7a 100644
3872 --- a/lib/sup/textfield.rb
3873 +++ b/lib/sup/textfield.rb
3874 @@ -33,7 +33,7 @@ class TextField
3875 @w, @y, @x, @width = window, y, x, width
3876 @question = question
3877 @completion_block = block
3878 - @field = Ncurses::Form.new_field 1, @width - question.length, @y, @x + question.length, 0, 0
3879 + @field = Ncurses::Form.new_field 1, @width - question.length, @y, @x + question.length, 256, 0
3880 @form = Ncurses::Form.new_form [@field]
3881 @value = default
3882 Ncurses::Form.post_form @form
3883 --
3884 1.5.6.4
3885 --
3886
3887 Steve Goldman
3888 sgoldman at tower-research.com
3889
3890 T: 212.219.6014
3891 F: 212.219.6007
3892
3893 Tower Research Capital, LLC
3894 377 Broadway, 11th Fl.
3895 New York, NY 10013
3896
3897 From sgoldman@tower-research.com Sun Nov 23 15:17:54 2008
3898 From: sgoldman@tower-research.com (Steve Goldman)
3899 Date: Sun, 23 Nov 2008 15:17:54 -0500
3900 Subject: [sup-talk] Too many addresses at the To: prompt messes things up
3901 Message-ID: <1227471316-sup-6968@sgoldmanlinux.tower-research.com>
3902
3903
3904 When you type so many addresses at the To: prompt that the cursor has
3905 to wrap around, you lose all the addresses on the first line that you
3906 typed. I would dig around to try to figure this out, but it would
3907 probably be a five minute fix for someone with knowledge of
3908 completion-mode, etc.
3909
3910 This is fairly serious because it makes sending to more than four or
3911 five people a huge hassle.
3912
3913 Thanks.
3914 --
3915
3916 Steve Goldman
3917 sgoldman at tower-research.com
3918
3919 T: 212.219.6014
3920 F: 212.219.6007
3921
3922 Tower Research Capital, LLC
3923 377 Broadway, 11th Fl.
3924 New York, NY 10013
3925
3926 From ehabkost@raisama.net Mon Nov 24 12:31:01 2008
3927 From: ehabkost@raisama.net (Eduardo Habkost)
3928 Date: Mon, 24 Nov 2008 15:31:01 -0200
3929 Subject: [sup-talk] Handling of messages appearing on multiple sources
3930 Message-ID: <1227547347-sup-6279@blackpad>
3931
3932
3933 Hi,
3934
3935 Currently, what is the expected behavior when a message appear on multiple
3936 sources? Sometimes messages are sent to many different mailing lists
3937 and end up on different mailboxes, and I would like those messages to
3938 have the labels from both sources applied to them. Is it possible?
3939
3940 It would be nice if sup-tweak-labels and other utilities that deal with
3941 messages on a per-source basis were aware that the message appeared on
3942 multiple sources, also.
3943 --
3944 Eduardo
3945
3946 From marc.hartstein@alum.vassar.edu Wed Nov 26 16:16:28 2008
3947 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
3948 Date: Wed, 26 Nov 2008 16:16:28 -0500
3949 Subject: [sup-talk] Patch: jump to body on compose [was: Re: How to make
3950 emacs position my cursor for me]
3951 In-Reply-To: <1226289098-sup-1638@entry>
3952 References: <1225825527-sup-6138@ausone.local>
3953 <aojKlrxp.1225834115.9805500.tpo2@192.168.3.7>
3954 <1225836311-sup-7605@tangerine.lanl.gov>
3955 <1226289098-sup-1638@entry>
3956 Message-ID: <1227733927-sup-9969@cabinet>
3957
3958 Excerpts from William Morgan's message of Sun Nov 09 22:51:55 -0500 2008:
3959 > Reformatted excerpts from John Bent's message of 2008-11-04:
3960 > > '/usr/bin/vim -f +/^\s*\n-c "setlocal spell spelllang=en_us" -c "set
3961 > > filetype=mail" '
3962 >
3963 > I'll accept a patch to this effect if someone wants to whip one up!
3964
3965 To discourage top-posting, would it not be preferable to begin with the
3966 cursor on the last line rather than the first line of the body?
3967
3968 :editor: '/usr/bin/vim -f +$ -c "setlocal spell spelllang=en_us" -c "set
3969 filetype=mail"'
3970
3971 (Of course, that might encourage an increased cascade, but there's only
3972 so much the tool author can do to encourage the user to comply with
3973 conventions)
3974 -------------- next part --------------
3975 A non-text attachment was scrubbed...
3976 Name: signature.asc
3977 Type: application/pgp-signature
3978 Size: 197 bytes
3979 Desc: not available
3980 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20081126/70488389/attachment.bin>
3981
3982 From ehabkost@raisama.net Wed Nov 26 16:35:23 2008
3983 From: ehabkost@raisama.net (Eduardo Habkost)
3984 Date: Wed, 26 Nov 2008 19:35:23 -0200
3985 Subject: [sup-talk] Handling of messages appearing on multiple sources
3986 In-Reply-To: <1227647755-sup-3231@ausone.local>
3987 References: <1227547347-sup-6279@blackpad> <1227647755-sup-3231@ausone.local>
3988 Message-ID: <20081126213523.GB4628@blackpad>
3989
3990 On Tue, Nov 25, 2008 at 10:19:38PM +0100, Nicolas Pouillard wrote:
3991 > Excerpts from Eduardo Habkost's message of Mon Nov 24 18:31:01 +0100 2008:
3992 > >
3993 > > Hi,
3994 > Hi,
3995 >
3996 > > Currently, what is the expected behavior when a message appear on multiple
3997 > > sources? Sometimes messages are sent to many different mailing lists
3998 > > and end up on different mailboxes, and I would like those messages to
3999 > > have the labels from both sources applied to them. Is it possible?
4000 > >
4001 > > It would be nice if sup-tweak-labels and other utilities that deal with
4002 > > messages on a per-source basis were aware that the message appeared on
4003 > > multiple sources, also.
4004 >
4005 > If it's the same message id, it should be shared.
4006
4007 When testing it here, I got the following:
4008
4009 Source 1 is the lkml source. Source 2 is the kvm-devel source. Some
4010 messages are posted to both mailing lists and end up on both sources.
4011
4012 A message appearing only on kvm-devel is imported normally:
4013
4014 Adding message maildir:/home/ehabkost/mail/kvm-devel-l/#12277020930025949 with state {kvm-devel, unread, inbox}
4015
4016 A message appearing on both sources is imported this way:
4017
4018 Updating message maildir:/home/ehabkost/mail/kvm-devel-l/#12277021040004976, source 1 => 2, offset 12277036400004673 => 12277021040004976, state {lkml, unread, inbox} => {lkml, unread, inbox}
4019
4020 On this case, I would like the kvm-devel label to be applied to the
4021 message, also.
4022
4023 I would even argue that adding the tags configured for both sources
4024 should be the default, but I don't know if there are users relying on
4025 the current behavior, today. What do you think?
4026
4027 Handling the inbox label may be more complicated to implement properly
4028 (especially if some of the sources have the 'archive' flag set and
4029 some don't). But as an user, I expect that a message appearing on both a
4030 non-inbox source and an inbox source would get into the inbox. The problem
4031 would be handling a message appearing on an inbox source after the user
4032 have archived it. On this case, the user may expect the message to not
4033 appear on the inbox again (I am not sure what would be more intuitive).
4034
4035
4036 Additionally, I think it would be nice if sup were aware of when the
4037 message appears multiple times on the sources, instead of rewriting the
4038 source and offset fields. Most times the user doesn't need to be aware
4039 there are multiple versions of a message, but when checking message
4040 headers or other small details of messages coming from different paths,
4041 it would be useful to have both versions available.
4042
4043 --
4044 Eduardo
4045
4046 From nick@kousu.ca Wed Nov 26 12:48:36 2008
4047 From: nick@kousu.ca (Nick Guenther)
4048 Date: Wed, 26 Nov 2008 12:48:36 -0500
4049 Subject: [sup-talk] sup and OpenBSD
4050 Message-ID: <98f5a8830811260948v1fbfd41ay62524d78e57b47cc@mail.gmail.com>
4051
4052 I checked out the sup git repo and after fighting a bit to get all the
4053 libs I needed installed (it's a bit wonky since I'm letting both
4054 rubygems and BSD's pkg_add manage different ones).
4055
4056 $ ruby -I lib -w bin/sup
4057 /usr/local/lib/ruby/1.8/dl/import.rb:29:in `initialize': File not
4058 found (RuntimeError)
4059 from /usr/local/lib/ruby/1.8/dl/import.rb:29:in `dlopen'
4060 from /usr/local/lib/ruby/1.8/dl/import.rb:29:in `dlload'
4061 from /usr/local/lib/ruby/1.8/dl/import.rb:27:in `each'
4062 from /usr/local/lib/ruby/1.8/dl/import.rb:27:in `dlload'
4063 from ./lib/sup.rb:17
4064 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
4065 `gem_original_require'
4066 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
4067 `require'
4068 from bin/sup:9
4069
4070 The problem here is that you are asking for libc.so.6 which OpenBSD
4071 doesn't have (on my 4.3 system I see ["/usr/lib/libc.so.41.0",
4072 "/usr/lib/libc.so.43.0"]). A patch:
4073
4074 diff --git a/lib/sup.rb b/lib/sup.rb
4075 index 93369a5..dfdbda2 100644
4076 --- a/lib/sup.rb
4077 +++ b/lib/sup.rb
4078 @@ -14,7 +14,7 @@ require 'curses'
4079 require 'dl/import'
4080 module LibC
4081 extend DL::Importable
4082 - dlload Config::CONFIG['arch'] =~ /darwin/ ? "libc.dylib" : "libc.so.6"
4083 + dlload Config::CONFIG['arch'] =~ /darwin/ ? "libc.dylib" : "libc.so"
4084 extern "void setlocale(int, const char *)"
4085 end
4086 LibC.setlocale(6, "") # LC_ALL == 6
4087
4088
4089 Now after doing that I still can't get sup to go. It doesn't seem to
4090 like curses for some reason:
4091
4092 --- ArgumentError from thread: main
4093 couldn't initialize curses color pair 4, 0 (key 1)
4094 ./lib/sup/colormap.rb:130:in `color_for'
4095 ./lib/sup/colormap.rb:206:in `send'
4096 ./lib/sup/colormap.rb:206:in `method_missing'
4097 ./lib/sup/buffer.rb:106:in `write'
4098 ./lib/sup/modes/scroll-mode.rb:51:in `draw'
4099 ./lib/sup/modes/scroll-mode.rb:49:in `each'
4100 ./lib/sup/modes/scroll-mode.rb:49:in `draw'
4101 ./lib/sup/modes/line-cursor-mode.rb:24:in `draw'
4102 ./lib/sup/buffer.rb:97:in `draw'
4103 ./lib/sup/buffer.rb:294:in `draw_screen'
4104 bin/sup:154
4105
4106 I noticed when trying to install sup via gems (before giving up and
4107 running the code directly) that it died on compiling curses support
4108 for some reason:
4109
4110 I installed the OpenBSD ruby-ncurses package instead and hoped all was
4111 well. I am just learning Ruby, but the fact that sup gets past
4112 `require 'ncurses'` means that ncurses should be installed right?
4113
4114 $ sudo gem install ncurses
4115 Password:
4116 Bulk updating Gem source index for: http://gems.rubyforge.org
4117 Building native extensions. This could take a while...
4118 ERROR: Error installing ncurses:
4119 ERROR: Failed to build gem native extension.
4120
4121 /usr/local/bin/ruby extconf.rb install ncurses
4122 checking for unistd.h... yes
4123 checking for ncurses.h... yes
4124 checking for wmove() in -lncurses... yes
4125 checking for newscr()... yes
4126 checking for TABSIZE()... yes
4127 checking for ESCDELAY()... yes
4128 checking for keybound()... yes
4129 checking for curses_version()... yes
4130 checking for tigetstr()... yes
4131 checking for getwin()... yes
4132 checking for putwin()... yes
4133 checking for ungetmouse()... yes
4134 checking for mousemask()... yes
4135 checking for wenclose()... yes
4136 checking for mouseinterval()... yes
4137 checking for wmouse_trafo()... yes
4138 checking for mcprint()... yes
4139 checking for has_key()... yes
4140 checking for delscreen()... yes
4141 checking for define_key()... yes
4142 checking for keyok()... yes
4143 checking for resizeterm()... yes
4144 checking for use_default_colors()... yes
4145 checking for use_extended_names()... yes
4146 checking for wresize()... yes
4147 checking for attr_on()... yes
4148 checking for attr_off()... yes
4149 checking for attr_set()... yes
4150 checking for chgat()... yes
4151 checking for color_set()... yes
4152 checking for filter()... yes
4153 checking for intrflush()... yes
4154 checking for mvchgat()... yes
4155 checking for mvhline()... yes
4156 checking for mvvline()... yes
4157 checking for mvwchgat()... yes
4158 checking for mvwhline()... yes
4159 checking for mvwvline()... yes
4160 checking for noqiflush()... yes
4161 checking for putp()... yes
4162 checking for qiflush()... yes
4163 checking for scr_dump()... yes
4164 checking for scr_init()... yes
4165 checking for scr_restore()... yes
4166 checking for scr_set()... yes
4167 checking for slk_attr_off()... no
4168 checking for slk_attr_on()... no
4169 checking for slk_attr()... yes
4170 checking for slk_attr_set()... yes
4171 checking for slk_color()... yes
4172 checking for tigetflag()... yes
4173 checking for tigetnum()... yes
4174 checking for use_env()... yes
4175 checking for vidattr()... yes
4176 checking for vid_attr()... no
4177 checking for wattr_on()... yes
4178 checking for wattr_off()... yes
4179 checking for wattr_set()... yes
4180 checking for wchgat()... yes
4181 checking for wcolor_set()... yes
4182 checking for getattrs()... no
4183 checking which debugging functions to wrap...
4184 checking for _tracef()... no
4185 checking for _tracedump()... no
4186 checking for _nc_tracebits()... yes
4187 checking for _traceattr()... no
4188 checking for _traceattr2()... no
4189 checking for _tracechar()... no
4190 checking for _tracechtype()... no
4191 checking for _tracechtype2()... no
4192 checking for _tracemouse()... no
4193 checking for other functions that appeared after ncurses version 5.0...
4194 checking for assume_default_colors()... yes
4195 checking for attr_get()... yes
4196 checking for the panel library...
4197 checking for panel.h... yes
4198 checking for panel_hidden() in -lpanel... yes
4199 checking for the form library...
4200 checking for form.h... yes
4201 checking for new_form() in -lform... yes
4202 creating Makefile
4203
4204 make
4205 cc -I. -I. -I/usr/local/lib/ruby/1.8/i386-openbsd4.3 -I.
4206 -DHAVE_UNISTD_H -DHAVE_NCURSES_H -DHAVE_NEWSCR -DHAVE_TABSIZE
4207 -DHAVE_ESCDELAY -DHAVE_KEYBOUND -DHAVE_CURSES_VERSION -DHAVE_TIGETSTR
4208 -DHAVE_GETWIN -DHAVE_PUTWIN -DHAVE_UNGETMOUSE -DHAVE_MOUSEMASK
4209 -DHAVE_WENCLOSE -DHAVE_MOUSEINTERVAL -DHAVE_WMOUSE_TRAFO
4210 -DHAVE_MCPRINT -DHAVE_HAS_KEY -DHAVE_DELSCREEN -DHAVE_DEFINE_KEY
4211 -DHAVE_KEYOK -DHAVE_RESIZETERM -DHAVE_USE_DEFAULT_COLORS
4212 -DHAVE_USE_EXTENDED_NAMES -DHAVE_WRESIZE -DHAVE_ATTR_ON
4213 -DHAVE_ATTR_OFF -DHAVE_ATTR_SET -DHAVE_CHGAT -DHAVE_COLOR_SET
4214 -DHAVE_FILTER -DHAVE_INTRFLUSH -DHAVE_MVCHGAT -DHAVE_MVHLINE
4215 -DHAVE_MVVLINE -DHAVE_MVWCHGAT -DHAVE_MVWHLINE -DHAVE_MVWVLINE
4216 -DHAVE_NOQIFLUSH -DHAVE_PUTP -DHAVE_QIFLUSH -DHAVE_SCR_DUMP
4217 -DHAVE_SCR_INIT -DHAVE_SCR_RESTORE -DHAVE_SCR_SET -DHAVE_SLK_ATTR
4218 -DHAVE_SLK_ATTR_SET -DHAVE_SLK_COLOR -DHAVE_TIGETFLAG -DHAVE_TIGETNUM
4219 -DHAVE_USE_ENV -DHAVE_VIDATTR -DHAVE_WATTR_ON -DHAVE_WATTR_OFF
4220 -DHAVE_WATTR_SET -DHAVE_WCHGAT -DHAVE_WCOLOR_SET -DHAVE__NC_TRACEBITS
4221 -DHAVE_ASSUME_DEFAULT_COLORS -DHAVE_ATTR_GET -DHAVE_PANEL_H
4222 -DHAVE_FORM_H -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -fPIC
4223 -O2 -pipe -fPIC -g -c form_wrap.c
4224 form_wrap.c: In function `field_check':
4225 form_wrap.c:1147: error: `true' undeclared (first use in this function)
4226 form_wrap.c:1147: error: (Each undeclared identifier is reported only once
4227 form_wrap.c:1147: error: for each function it appears in.)
4228 form_wrap.c: In function `char_check':
4229 form_wrap.c:1161: error: `true' undeclared (first use in this function)
4230 form_wrap.c: In function `next_choice':
4231 form_wrap.c:1192: error: `true' undeclared (first use in this function)
4232 form_wrap.c: In function `prev_choice':
4233 form_wrap.c:1201: error: `true' undeclared (first use in this function)
4234 *** Error code 1
4235
4236 Stop in /usr/local/lib/ruby/gems/1.8/gems/ncurses-0.9.1 (line 92 of
4237 /usr/share/mk/sys.mk).
4238
4239
4240 Anyway, it shouldn't matter that the gem can't install because the
4241 ncurses.rb I have installed in site_ruby is newer than the ncurses.rb
4242 from the gem, judging from the version line. I don't know what to make
4243 of this since at all. I'm not familiar with Ruby yet but if you could
4244 point me at a right direction I will probably be able to figure this
4245 out.
4246
4247 p.s. sorry for the null message just now. Sup doesn't work (yet) so I
4248 was going to write this message in `mail` before I realized that was a
4249 terrible idea but my finger slipped.
4250
4251 -Nick
4252
4253 From wmorgan-sup@masanjin.net Wed Nov 26 18:31:27 2008
4254 From: wmorgan-sup@masanjin.net (William Morgan)
4255 Date: Wed, 26 Nov 2008 15:31:27 -0800
4256 Subject: [sup-talk] Handling of messages appearing on multiple sources
4257 In-Reply-To: <20081126213523.GB4628@blackpad>
4258 References: <1227547347-sup-6279@blackpad> <1227647755-sup-3231@ausone.local>
4259 <20081126213523.GB4628@blackpad>
4260 Message-ID: <1227740974-sup-6395@entry>
4261
4262 Reformatted excerpts from Eduardo Habkost's message of 2008-11-26:
4263 > I would even argue that adding the tags configured for both sources
4264 > should be the default, but I don't know if there are users relying on
4265 > the current behavior, today. What do you think?
4266
4267 Actually, I think you're right. I don't know that there's a reason, at
4268 least during normal operation, to discard previous index state.
4269
4270 Can you try the attached patch and see if it fixes the problem?
4271
4272 > But as an user, I expect that a message appearing on both a non-inbox
4273 > source and an inbox source would get into the inbox. The problem would
4274 > be handling a message appearing on an inbox source after the user have
4275 > archived it. On this case, the user may expect the message to not
4276 > appear on the inbox again (I am not sure what would be more
4277 > intuitive).
4278
4279 Well, it's an ambiguous situation, and I'm generally happy in ambiguous
4280 situations to take the simplest (to implement!) approach, which in this
4281 case is to pop it back into the inbox.
4282
4283 > Additionally, I think it would be nice if sup were aware of when the
4284 > message appears multiple times on the sources, instead of rewriting
4285 > the source and offset fields. Most times the user doesn't need to be
4286 > aware there are multiple versions of a message, but when checking
4287 > message headers or other small details of messages coming from
4288 > different paths, it would be useful to have both versions available.
4289
4290 I think I agree. STS (the apocryphal new version of Sup) probably won't
4291 canonicalize by message id like Sup does.
4292 --
4293 William <wmorgan-sup at masanjin.net>
4294 -------------- next part --------------
4295 A non-text attachment was scrubbed...
4296 Name: 0001-for-duplicate-messages-merge-labels-rather-than-dis.patch
4297 Type: application/octet-stream
4298 Size: 1373 bytes
4299 Desc: not available
4300 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20081126/857ef42d/attachment.obj>
4301
4302 From wmorgan-sup@masanjin.net Wed Nov 26 18:32:11 2008
4303 From: wmorgan-sup@masanjin.net (William Morgan)
4304 Date: Wed, 26 Nov 2008 15:32:11 -0800
4305 Subject: [sup-talk] Allow searching of sup wiki?
4306 In-Reply-To: <1226349907-sup-5412@entry>
4307 References: <1226340574-sup-8764@ubuntu> <1226349907-sup-5412@entry>
4308 Message-ID: <1227742325-sup-9058@entry>
4309
4310 Reformatted excerpts from William Morgan's message of 2008-11-10:
4311 > Reformatted excerpts from Gladwright's message of 2008-11-10:
4312 > > Hello, I noticed that sup is not allowing search engines to index
4313 > > it's wiki.
4314 >
4315 > I've filed a bug report with the RubyForge guys.
4316
4317 Apparently the wikis generate a lot of traffic because of crappy robots,
4318 and they're thinking of disabling that feature anyways, so I doubt this
4319 will be fixed except by moving the wiki somewhere else.
4320 --
4321 William <wmorgan-sup at masanjin.net>
4322
4323 From wmorgan-sup@masanjin.net Wed Nov 26 18:40:23 2008
4324 From: wmorgan-sup@masanjin.net (William Morgan)
4325 Date: Wed, 26 Nov 2008 15:40:23 -0800
4326 Subject: [sup-talk] sup and OpenBSD
4327 In-Reply-To: <98f5a8830811260948v1fbfd41ay62524d78e57b47cc@mail.gmail.com>
4328 References: <98f5a8830811260948v1fbfd41ay62524d78e57b47cc@mail.gmail.com>
4329 Message-ID: <1227742378-sup-558@entry>
4330
4331 Reformatted excerpts from Nick Guenther's message of 2008-11-26:
4332 > The problem here is that you are asking for libc.so.6 which OpenBSD
4333 > doesn't have (on my 4.3 system I see ["/usr/lib/libc.so.41.0",
4334 > "/usr/lib/libc.so.43.0"]).
4335
4336 Someone else just reported this problem too. I wonder whether the best
4337 solution is your patch (remove the .6) or the patch I was thinking of,
4338 where we special-case BSD to look for libc.so.43. Does anyone have any
4339 suggestions?
4340
4341 > I installed the OpenBSD ruby-ncurses package instead and hoped all was
4342 > well. I am just learning Ruby, but the fact that sup gets past
4343 > `require 'ncurses'` means that ncurses should be installed right?
4344
4345 I... think so. What's your TERM environment variable set to? Do other
4346 (color!) ncurses programs work?
4347
4348 > form_wrap.c: In function `field_check':
4349 > form_wrap.c:1147: error: `true' undeclared (first use in this function)
4350
4351 Do you have both ncurses and ruby development libraries installed? I
4352 know what they are in Linux world but not in BSD land.
4353
4354 > Anyway, it shouldn't matter that the gem can't install because the
4355 > ncurses.rb I have installed in site_ruby is newer than the ncurses.rb
4356 > from the gem, judging from the version line. I don't know what to make
4357 > of this since at all. I'm not familiar with Ruby yet but if you could
4358 > point me at a right direction I will probably be able to figure this
4359 > out.
4360
4361 Yeah, I would ignore the gem issue for now. I suspect that at this point
4362 it's a matter of tricking the 1970's technology that is ncurses into
4363 displaying color on your particular environment, by trying different
4364 TERMs and terminal emulators.
4365 --
4366 William <wmorgan-sup at masanjin.net>
4367
4368 From wmorgan-sup@masanjin.net Wed Nov 26 18:42:28 2008
4369 From: wmorgan-sup@masanjin.net (William Morgan)
4370 Date: Wed, 26 Nov 2008 15:42:28 -0800
4371 Subject: [sup-talk] [PATCH] fix class name collision in testcases
4372 In-Reply-To: <1226425970-7997-1-git-send-email-rlane@club.cc.cmu.edu>
4373 References: <1226425970-7997-1-git-send-email-rlane@club.cc.cmu.edu>
4374 Message-ID: <1227742931-sup-1723@entry>
4375
4376 Reformatted excerpts from Rich Lane's message of 2008-11-11:
4377 > 'rake test' was broken because both testcases' classes had the same
4378 > name and the setup method was overridden. This patch changes the class
4379 > name in test_mbox_parsing.
4380
4381 Merged directly to master. Thanks!
4382 --
4383 William <wmorgan-sup at masanjin.net>
4384
4385 From wmorgan-sup@masanjin.net Wed Nov 26 18:48:30 2008
4386 From: wmorgan-sup@masanjin.net (William Morgan)
4387 Date: Wed, 26 Nov 2008 15:48:30 -0800
4388 Subject: [sup-talk] [PATCH] Add a limit:<int> search operator to limit
4389 the number of results
4390 In-Reply-To: <1226855879-69629-1-git-send-email-nicolas.pouillard@gmail.com>
4391 References: <1226855879-69629-1-git-send-email-nicolas.pouillard@gmail.com>
4392 Message-ID: <1227743290-sup-2507@entry>
4393
4394 Applied, thanks!
4395 --
4396 William <wmorgan-sup at masanjin.net>
4397
4398 From wmorgan-sup@masanjin.net Wed Nov 26 18:50:54 2008
4399 From: wmorgan-sup@masanjin.net (William Morgan)
4400 Date: Wed, 26 Nov 2008 15:50:54 -0800
4401 Subject: [sup-talk] [PATCH] decoding rules: ignore ascii-7bit and
4402 normalize utf-7
4403 In-Reply-To: <1226855913-69659-1-git-send-email-nicolas.pouillard@gmail.com>
4404 References: <1226855913-69659-1-git-send-email-nicolas.pouillard@gmail.com>
4405 Message-ID: <1227743449-sup-6466@entry>
4406
4407 Applied, thanks!
4408 --
4409 William <wmorgan-sup at masanjin.net>
4410
4411 From wmorgan-sup@masanjin.net Wed Nov 26 18:52:00 2008
4412 From: wmorgan-sup@masanjin.net (William Morgan)
4413 Date: Wed, 26 Nov 2008 15:52:00 -0800
4414 Subject: [sup-talk] [PATCH] Allow to hit 'y' to send a draft in
4415 thread-view-mode
4416 In-Reply-To: <1226856732-69997-1-git-send-email-nicolas.pouillard@gmail.com>
4417 References: <1226856732-69997-1-git-send-email-nicolas.pouillard@gmail.com>
4418 Message-ID: <1227743478-sup-8034@entry>
4419
4420 Scary. Applied, thanks!
4421 --
4422 William <wmorgan-sup at masanjin.net>
4423
4424 From wmorgan-sup@masanjin.net Wed Nov 26 19:05:13 2008
4425 From: wmorgan-sup@masanjin.net (William Morgan)
4426 Date: Wed, 26 Nov 2008 16:05:13 -0800
4427 Subject: [sup-talk] migrating email to a new computer
4428 In-Reply-To: <1227135030-sup-401@buckwheat>
4429 References: <1227135030-sup-401@buckwheat>
4430 Message-ID: <1227743600-sup-8882@entry>
4431
4432 Hi Daniel,
4433
4434 Sorry for the delay in replying. I've been moving across country and
4435 only have sporadic internet access right now.
4436
4437 Reformatted excerpts from Daniel Wagner's message of 2008-11-19:
4438 > 1. My mail is spread out in hundreds of Maildir directories, most of
4439 > them "legacy" directories that I want to merge as I migrate. Can I do
4440 > this by just copying the mail files from the various "new" and "cur"
4441 > directories to a central "cur" directory?
4442
4443 I *think* that just moving files from cur/ to cur/ and new/ to new/ will
4444 work, but moving from new/ to cur/ I think typically changes the
4445 filename slightly. I don't know if the rename is required or optional
4446 though. Sup certainly doesn't care, but other tools might.
4447
4448 > 2. A more sup-related question: what things do I need to copy to
4449 > migrate my labels, read/archived/starred status information, etc? I
4450 > definitely want to maintain as much of my mail's metadata as I can.
4451
4452 Since you're doing lots of moving things around, combining sources, and
4453 upgrading Sup at the same time, I think the best option is going to be
4454 to rebuild your index from scratch. You can use sup-dump to dump out
4455 state information into a huge text file, and sup-sync --restored
4456 --restore should be able to make use of that information to keep your
4457 message state once your new sources have been created.
4458
4459 But definitely, DEFINITELY test it out first. I haven't tried that stuff
4460 for a while and it might have experienced bitrot.
4461
4462 > 3. I'm assuming I won't lose anything if I update sup.
4463
4464 Nope. And I can't believe you're still using Sup 0.4!
4465
4466 > I think this topic deserves a wiki page, so I'll write up a summary of
4467 > any advice I get as well as how my experience goes for future
4468 > posterity.
4469
4470 That sounds great. Let us know how it goes, and I'll do my best to help
4471 you though the process if things break. Just be sure to keep a backup of
4472 everything. Message state is a precious asset.
4473 --
4474 William <wmorgan-sup at masanjin.net>
4475
4476 From wmorgan-sup@masanjin.net Wed Nov 26 19:11:32 2008
4477 From: wmorgan-sup@masanjin.net (William Morgan)
4478 Date: Wed, 26 Nov 2008 16:11:32 -0800
4479 Subject: [sup-talk] 'best' mail storage for sup?
4480 In-Reply-To: <2cb10c440811201035w1a95f7d7y40c335e0c69a96a3@mail.gmail.com>
4481 References: <2cb10c440811201035w1a95f7d7y40c335e0c69a96a3@mail.gmail.com>
4482 Message-ID: <1227744630-sup-2415@entry>
4483
4484 Reformatted excerpts from Luis Villa's message of 2008-11-20:
4485 > If I were going to start a new mail account from scratch, what is
4486 > preferred/most reliable- mbox or maildir? I assume maildir, but just
4487 > wanted to check.
4488
4489 Given the recent spate of "From: " problems, Maildir might be a better
4490 choice at this point. At least until I fix it. But sup-sync-back only
4491 supports mbox right now, if you care about actually removing deleted and
4492 spam messages from your mailstore. At least until I fix it.
4493 --
4494 William <wmorgan-sup at masanjin.net>
4495
4496 From wmorgan-sup@masanjin.net Wed Nov 26 19:15:08 2008
4497 From: wmorgan-sup@masanjin.net (William Morgan)
4498 Date: Wed, 26 Nov 2008 16:15:08 -0800
4499 Subject: [sup-talk] [PATCH] Display a default save path for attachments
4500 In-Reply-To: <1227466312-sup-6661@sgoldmanlinux.tower-research.com>
4501 References: <1227466312-sup-6661@sgoldmanlinux.tower-research.com>
4502 Message-ID: <1227744900-sup-7220@entry>
4503
4504 Reformatted excerpts from Steve Goldman's message of 2008-11-23:
4505 > Let the user specify a default path for saving attachments with
4506 > :default_attachment_save_dir: in config.yaml, and display this path in
4507 > front of the filename when saving an attachment in thread view mode.
4508
4509 Applied, thanks!
4510 --
4511 William <wmorgan-sup at masanjin.net>
4512
4513 From wmorgan-sup@masanjin.net Wed Nov 26 19:23:24 2008
4514 From: wmorgan-sup@masanjin.net (William Morgan)
4515 Date: Wed, 26 Nov 2008 16:23:24 -0800
4516 Subject: [sup-talk] [PATCH] make ctrl-c prompt user if sup should die
4517 ungracefully
4518 In-Reply-To: <1227468533-sup-3252@sgoldmanlinux.tower-research.com>
4519 References: <1227468533-sup-3252@sgoldmanlinux.tower-research.com>
4520 Message-ID: <1227745395-sup-9416@entry>
4521
4522 Applied, thanks!
4523 --
4524 William <wmorgan-sup at masanjin.net>
4525
4526 From wmorgan-sup@masanjin.net Wed Nov 26 19:29:27 2008
4527 From: wmorgan-sup@masanjin.net (William Morgan)
4528 Date: Wed, 26 Nov 2008 16:29:27 -0800
4529 Subject: [sup-talk] [PATCH] show matching aliases before email addresses
4530 in auto complete
4531 In-Reply-To: <1227469112-sup-9061@sgoldmanlinux.tower-research.com>
4532 References: <1227469112-sup-9061@sgoldmanlinux.tower-research.com>
4533 Message-ID: <1227745738-sup-6571@entry>
4534
4535 Now that's a fine-looking patch. Applied. Thanks!
4536 --
4537 William <wmorgan-sup at masanjin.net>
4538
4539 From wmorgan-sup@masanjin.net Wed Nov 26 19:29:45 2008
4540 From: wmorgan-sup@masanjin.net (William Morgan)
4541 Date: Wed, 26 Nov 2008 16:29:45 -0800
4542 Subject: [sup-talk] [PATCH] git status should ignore emacs temp files
4543 In-Reply-To: <1227469451-sup-3570@sgoldmanlinux.tower-research.com>
4544 References: <1227469451-sup-3570@sgoldmanlinux.tower-research.com>
4545 Message-ID: <1227745771-sup-5375@entry>
4546
4547 Well, ok.... applied. Thanks!
4548 --
4549 William <wmorgan-sup at masanjin.net>
4550
4551 From wmorgan-sup@masanjin.net Wed Nov 26 19:33:33 2008
4552 From: wmorgan-sup@masanjin.net (William Morgan)
4553 Date: Wed, 26 Nov 2008 16:33:33 -0800
4554 Subject: [sup-talk] [PATCH] use offscreen lines for textfield overflow
4555 In-Reply-To: <1227473953-sup-5646@sgoldmanlinux.tower-research.com>
4556 References: <1227473953-sup-5646@sgoldmanlinux.tower-research.com>
4557 Message-ID: <1227745956-sup-4988@entry>
4558
4559 Reformatted excerpts from Steve Goldman's message of 2008-11-23:
4560 > In the To:, Cc:, Bcc:, etc., prompts, the TextField was initializing
4561 > an NCurses form with zero offscreen lines. So when the user typed too
4562 > many addresses at the prompt the cursor wrapped around and everything
4563 > they had typed was clobbered. This patch initializes the form object
4564 > to have 256 offscreen lines (I had no rationale for 256 except that it
4565 > is a nice, big power of two). Now the user can type plenty of names
4566 > and the wrap-around works as the user would expect.
4567
4568 This is awesome. I've been trying to figure out how to do this for about
4569 two years. Thanks!
4570 --
4571 William <wmorgan-sup at masanjin.net>
4572
4573 From marcus-sup@bar-coded.net Thu Nov 27 03:35:47 2008
4574 From: marcus-sup@bar-coded.net (marcus-sup)
4575 Date: Thu, 27 Nov 2008 08:35:47 +0000
4576 Subject: [sup-talk] Allow searching of sup wiki?
4577 In-Reply-To: <1227742325-sup-9058@entry>
4578 References: <1226340574-sup-8764@ubuntu> <1226349907-sup-5412@entry>
4579 <1227742325-sup-9058@entry>
4580 Message-ID: <1227774913-sup-1534@tomsk>
4581
4582 On 26.11.2008, William Morgan wrote:
4583 > Apparently the wikis generate a lot of traffic because of crappy robots,
4584 > and they're thinking of disabling that feature anyways, so I doubt this
4585 > will be fixed except by moving the wiki somewhere else.
4586
4587 github perhaps :) Mind you, you'd need to move sup to github as well
4588 then.... Marcus
4589
4590 From ehabkost@raisama.net Thu Nov 27 08:46:06 2008
4591 From: ehabkost@raisama.net (Eduardo Habkost)
4592 Date: Thu, 27 Nov 2008 11:46:06 -0200
4593 Subject: [sup-talk] Handling of messages appearing on multiple sources
4594 In-Reply-To: <1227740974-sup-6395@entry>
4595 References: <1227547347-sup-6279@blackpad> <1227647755-sup-3231@ausone.local>
4596 <20081126213523.GB4628@blackpad> <1227740974-sup-6395@entry>
4597 Message-ID: <1227791474-sup-2961@blackpad>
4598
4599 Excerpts from William Morgan's message of Qua Nov 26 21:31:27 -0200 2008:
4600 > Reformatted excerpts from Eduardo Habkost's message of 2008-11-26:
4601 > > I would even argue that adding the tags configured for both sources
4602 > > should be the default, but I don't know if there are users relying on
4603 > > the current behavior, today. What do you think?
4604 >
4605 > Actually, I think you're right. I don't know that there's a reason, at
4606 > least during normal operation, to discard previous index state.
4607
4608 It doesn't discard previous index state, currently. The problem is the
4609 inverse: it uses the previous index state and doesn't add any other
4610 label to an alrady indexed message.
4611
4612 >
4613 > Can you try the attached patch and see if it fixes the problem?
4614
4615 It seems to do exactly what I want for new messages, but won't it break
4616 the ability to keep unread/inbox state unchanged if I use --all on
4617 sup-sync? I wouldn't like to all my archived messages to pop on inbox
4618 again if I specify --all. Sometimes I specify --all because messages
4619 were moved between sources, but I want to keep their archived/read state.
4620
4621 >
4622 > > But as an user, I expect that a message appearing on both a non-inbox
4623 > > source and an inbox source would get into the inbox. The problem would
4624 > > be handling a message appearing on an inbox source after the user have
4625 > > archived it. On this case, the user may expect the message to not
4626 > > appear on the inbox again (I am not sure what would be more
4627 > > intuitive).
4628 >
4629 > Well, it's an ambiguous situation, and I'm generally happy in ambiguous
4630 > situations to take the simplest (to implement!) approach, which in this
4631 > case is to pop it back into the inbox.
4632
4633 On the specific case of a message delivered to multiple sources, I
4634 agree. But if messages were just moved or copied between mailboxes,
4635 the user may want to keep the current archived/unread state. Actually,
4636 the archived/read state is currently the most important data the Sup
4637 index carries for me.
4638
4639 Ouch, that's complicated. 8)
4640
4641 I think the problem here is that the unread/inbox labels are special
4642 in a way: for most labels, I don't care if Sup adds them to my messages
4643 in addition to the current labels. But I would really care if the
4644 inbox/unread labels were re-added to my messages when I didn't expect it.
4645
4646 Maybe this could be solved by forcing the user to be extra careful when
4647 moving messages between sources. But the current ability to simply move
4648 messages around and just use --all on sup-sync is a killer feature to
4649 me. I wouldn't like to break it.
4650
4651 >
4652 > > Additionally, I think it would be nice if sup were aware of when the
4653 > > message appears multiple times on the sources, instead of rewriting
4654 > > the source and offset fields. Most times the user doesn't need to be
4655 > > aware there are multiple versions of a message, but when checking
4656 > > message headers or other small details of messages coming from
4657 > > different paths, it would be useful to have both versions available.
4658 >
4659 > I think I agree. STS (the apocryphal new version of Sup) probably won't
4660 > canonicalize by message id like Sup does.
4661
4662 However, having some sort of message-id-based state seems to be useful
4663 for backing up and restoring state or when moving messages between
4664 sources, because it is the only thing that identify messages when they
4665 are moved around.
4666
4667 The way it is implemented can change, but as an user I like the way sup
4668 presents messages with the same message-id as a single entity. Even if
4669 stored on different places or having some differences, they are the same
4670 message, after all.
4671 --
4672 Eduardo
4673
4674 From daniel@wagner-home.com Thu Nov 27 21:25:21 2008
4675 From: daniel@wagner-home.com (Daniel Wagner)
4676 Date: Thu, 27 Nov 2008 21:25:21 -0500
4677 Subject: [sup-talk] migrating email to a new computer
4678 In-Reply-To: <1227135030-sup-401@buckwheat>
4679 References: <1227135030-sup-401@buckwheat>
4680 Message-ID: <1227838973-sup-9122@buckwheat>
4681
4682 Much thanks to Nicolas and William. I'm just entering final projects
4683 season in school, so I may put off this project about a week or two
4684 longer, but will keep these messages +inbox until then. =)
4685
4686 ~d
4687