community/pipermail-archives/sup-talk/2008-05.txt (101938B) - raw
1 From wmorgan-sup@masanjin.net Thu May 1 17:24:17 2008
2 From: wmorgan-sup@masanjin.net (William Morgan)
3 Date: Thu, 01 May 2008 14:24:17 -0700
4 Subject: [sup-talk] Crash report: C-\ in inbox-mode raises an exception
5 In-Reply-To: <1209555404-sup-3139@black-opal>
6 References: <1209555404-sup-3139@black-opal>
7 Message-ID: <1209676957-sup-6855@south>
8
9 Hi Kevin,
10
11 Reformatted excerpts from Kevin Riggle's message of 2008-04-30:
12 > I accidentally hit <control>-\ in inbox-mode in Sup, immediately after
13 > opening the application, which caused it to crash.
14
15 That's a standard UNIX keybinding like ^C. I could trap it, but I think
16 you'll find most other curses programs die if you press it.
17
18 --
19 William <wmorgan-sup at masanjin.net>
20
21 From wmorgan-sup@masanjin.net Thu May 1 17:58:54 2008
22 From: wmorgan-sup@masanjin.net (William Morgan)
23 Date: Thu, 01 May 2008 14:58:54 -0700
24 Subject: [sup-talk] [PATCH] parenthesized argument to quell warning
25 In-Reply-To: <1209396227-sup-5273@spooky.local>
26 References: <1209396227-sup-5273@spooky.local>
27 Message-ID: <1209679097-sup-1230@south>
28
29 Applied to "more-vi-keys" feature branch and remerged into next. Thanks!
30
31 --
32 William <wmorgan-sup at masanjin.net>
33
34 From kevinr@free-dissociation.com Fri May 2 01:00:39 2008
35 From: kevinr@free-dissociation.com (Kevin Riggle)
36 Date: Fri, 02 May 2008 01:00:39 -0400
37 Subject: [sup-talk] Crash report: C-\ in inbox-mode raises an exception
38 In-Reply-To: <1209676957-sup-6855@south>
39 References: <1209555404-sup-3139@black-opal> <1209676957-sup-6855@south>
40 Message-ID: <1209704185-sup-7351@black-opal>
41
42 Excerpts from William Morgan's message of Thu May 01 17:24:17 -0400 2008:
43 > Hi Kevin,
44 >
45 > Reformatted excerpts from Kevin Riggle's message of 2008-04-30:
46 > > I accidentally hit <control>-\ in inbox-mode in Sup, immediately after
47 > > opening the application, which caused it to crash.
48 >
49 > That's a standard UNIX keybinding like ^C. I could trap it, but I think
50 > you'll find most other curses programs die if you press it.
51 >
52 *wikipedias*
53
54 ...oh. Hunh. Right you are. I didn't know that. ("You mean dumping
55 core is the /desired/ behavior?!") It would be nice if the error
56 message was a little bit more informative (mutt's response is "Caught
57 signal 3... Exiting."), but the behavior itself is clearly not a bug.
58
59 Thanks for the response.
60
61 - Kevin
62 --
63 Kevin Riggle (kevinr at mit.edu)
64 http://free-dissociation.com
65
66 From marc.hartstein@alum.vassar.edu Fri May 2 10:01:41 2008
67 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
68 Date: Fri, 02 May 2008 10:01:41 -0400
69 Subject: [sup-talk] Crash report: C-\ in inbox-mode raises an exception
70 In-Reply-To: <1209676957-sup-6855@south>
71 References: <1209555404-sup-3139@black-opal> <1209676957-sup-6855@south>
72 Message-ID: <1209736414-sup-1744@cabinet>
73
74 Excerpts from William Morgan's message of Thu May 01 17:24:17 -0400 2008:
75 > Reformatted excerpts from Kevin Riggle's message of 2008-04-30:
76 > > I accidentally hit <control>-\ in inbox-mode in Sup, immediately after
77 > > opening the application, which caused it to crash.
78 >
79 > That's a standard UNIX keybinding like ^C. I could trap it, but I think
80 > you'll find most other curses programs die if you press it.
81
82 It might be nice to provide a "paranoid-quit" option which, like Mutt,
83 prompts for "are you sure, or did you just hit the wrong key?", and, if
84 on, bind that routine to all of 'q', SIGINT, and SIGQUIT.
85
86 (I keep wanting ^C to interrupt a long-running process within sup like a
87 !!, and being surprised when it quits and I'm reminded I need to ^G.
88 And q is way too dangerously easy to hit for someone who migrated over
89 from Mutt. I'd definitely turn that on, at least for a few months until
90 the proper keybindings stick in my mind.)
91 -------------- next part --------------
92 A non-text attachment was scrubbed...
93 Name: signature.asc
94 Type: application/pgp-signature
95 Size: 189 bytes
96 Desc: not available
97 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080502/50d1d458/attachment.bin>
98
99 From marcus-sup@bar-coded.net Fri May 2 10:14:21 2008
100 From: marcus-sup@bar-coded.net (Marcus Williams)
101 Date: Fri, 02 May 2008 15:14:21 +0100
102 Subject: [sup-talk] Crash report: C-\ in inbox-mode raises an exception
103 In-Reply-To: <1209736414-sup-1744@cabinet>
104 References: <1209555404-sup-3139@black-opal> <1209676957-sup-6855@south>
105 <1209736414-sup-1744@cabinet>
106 Message-ID: <1209737585-sup-6660@tomsk>
107
108 On 2.5.2008, Marc Hartstein wrote:
109 > It might be nice to provide a "paranoid-quit" option which, like Mutt,
110 > prompts for "are you sure, or did you just hit the wrong key?", and, if
111 > on, bind that routine to all of 'q', SIGINT, and SIGQUIT.
112
113 Nicer would be make 'q' ask, and 'Q' quit without asking....
114
115 Marcus
116
117 From tyberius_prime@coonabibba.de Fri May 2 13:50:13 2008
118 From: tyberius_prime@coonabibba.de (Tyberius Prime)
119 Date: Fri, 02 May 2008 19:50:13 +0200
120 Subject: [sup-talk] [Patch] From auto completion
121 Message-ID: <1209750543-sup-2407@h984274.serverkompetenz.net>
122
123 Hi all,
124
125 attached you'll find two patches ment to be applied together (*)
126 The first one introduces From: auto completion in edit-message
127 mode (plus key shortcut "f"),
128 the second adds a From: question when composing messages
129 (config ask_for_from, again with auto completion) and improves
130 the auto completion to be "Name <address>" instead of just "address".
131
132 Motivation: I have to send mail from different accounts,
133 and am tired of typing in the full sender each time.
134
135 (*) Sorry, I can't quite get git to export them as one right now :(
136 Also, I'll bear any comments on my code - this is the first ruby
137 I've ever written.
138
139 So long,
140 Tyberius Prime
141 -------------- next part --------------
142 An embedded and charset-unspecified text was scrubbed...
143 Name: 0001-Autocomplete-editing-for-from-in-edit-message-mode-and-a-key-shortcut-for-it.txt
144 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080502/70280483/attachment.txt>
145 -------------- next part --------------
146 An embedded and charset-unspecified text was scrubbed...
147 Name: 0002-add-from-query-on-compose-configuration-option-autocomplete.txt
148 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080502/70280483/attachment-0001.txt>
149
150 From jdugan@es.net Fri May 2 14:19:05 2008
151 From: jdugan@es.net (Jon Dugan)
152 Date: Fri, 02 May 2008 11:19:05 -0700
153 Subject: [sup-talk] sup traceback
154 Message-ID: <1209752246-sup-5510@junction.es.net>
155
156 *sigh*
157
158 looks like some SPAM in my inbox caused sup some serious heart burn:
159
160 --- RuntimeError from thread: poll after loading inbox
161 just added message "20080502075530.7980.qmail@\343\340\353\377" but couldn't find it in a search
162 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/index.rb:204:in `sync_message'
163 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/util.rb:497:in `send'
164 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/util.rb:497:in `method_missing'
165 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/poll.rb:160:in `add_messages_from'
166 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/imap.rb:167:in `each'
167 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/imap.rb:155:in `upto'
168 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/imap.rb:155:in `each'
169 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/util.rb:534:in `send'
170 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/util.rb:534:in `__pass'
171 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/util.rb:523:in `method_missing'
172 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/poll.rb:141:in `add_messages_from'
173 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/poll.rb:98:in `do_poll'
174 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/poll.rb:86:in `each'
175 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/poll.rb:86:in `do_poll'
176 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/poll.rb:85:in `synchronize'
177 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/poll.rb:85:in `do_poll'
178 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/util.rb:497:in `send'
179 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/util.rb:497:in `method_missing'
180 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/modes/poll-mode.rb:17:in `poll'
181 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/poll.rb:53:in `poll'
182 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/util.rb:497:in `send'
183 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/util.rb:497:in `method_missing'
184 /usr/lib/ruby/gems/1.8/gems/sup-999/bin/sup:200
185 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:60:in `reporting_thread'
186 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:58:in `initialize'
187 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:58:in `new'
188 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:58:in `reporting_thread'
189 /usr/lib/ruby/gems/1.8/gems/sup-999/bin/sup:200
190 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:536:in `call'
191 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:536:in `__unprotected_load_threads'
192 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:478:in `call'
193 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:478:in `load_n_threads_background'
194 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:60:in `reporting_thread'
195 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:58:in `initialize'
196 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:58:in `new'
197 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:58:in `reporting_thread'
198 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:476:in `load_n_threads_background'
199 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:546:in `__unprotected_load_threads'
200 (eval):12:in `load_threads'
201 /usr/lib/ruby/gems/1.8/gems/sup-999/bin/sup:200
202 /usr/bin/sup:16:in `load'
203 /usr/bin/sup:16
204 --- SystemExit from thread: main
205 just added message "20080502075530.7980.qmail@\343\340\353\377" but couldn't find it in a search
206 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup.rb:64:in `select'
207 /usr/lib/ruby/gems/1.8/gems/sup-999/lib/sup/buffer.rb:31:in `nonblocking_getch'
208 /usr/lib/ruby/gems/1.8/gems/sup-999/bin/sup:217
209 /usr/bin/sup:16:in `load'
210 /usr/bin/sup:16
211
212
213 --
214 Jon M. Dugan <jdugan at es.net> | GTalk: jdugan.esnet
215 ESnet Network Engineering Group | http://www.es.net
216 Lawrence Berkeley National Laboratory | http://www.lbl.gov/
217
218 From yanghatespam@gmail.com Sun May 4 20:47:50 2008
219 From: yanghatespam@gmail.com (Yang Zhang)
220 Date: Sun, 04 May 2008 20:47:50 -0400
221 Subject: [sup-talk] Beginner questions
222 Message-ID: <481E5936.7040600@gmail.com>
223
224 Hi, I'm interested in getting started with sup. For now, I just ran
225 sup-config to use Gmail IMAP. Things seem to have gone smoothly, though
226 I have a few questions:
227
228 (1) sup did end up taking many, many hours to download my entire inbox
229 of messages. I'd rather it lazily download these messages. Is there
230 some way to achieve this?
231
232 (2) At some point, I was prompted:
233
234 Enter any labels to be automatically added to all messages from this
235 source, separated by spaces (or 'none') (enter for "inbox"): none
236
237 When dealing with IMAP servers, does sup store its labels as IMAP
238 keywords (i.e., are they stored on the server)? (A bunch of IMAP
239 servers support IMAP keywords. Gmail's labels manifest themselves as
240 folders, however, and not IMAP keywords. [1])
241
242 (3) How does sup group messages into the same thread? Does it rely on
243 References: header fields, subject-matching,
244 body-substring-matching/overlap, or something else?
245
246 (4) yanghatespam at gmail.com is the account I use for mailing lists. I
247 use many lists, so I needed a way to cope with the large message volume.
248 Most of the time, I am only interested in the threads in which I have
249 been a participant (e.g., I'm interested in replies to my posts). I
250 have Gmail filters that use simple heuristics like "If my name is in the
251 email, leave it marked as unread; otherwise mark it read." This, of
252 course, leads to many false positives/negatives (Gmail's filterts are
253 only so expressive).
254
255 If sup's thread-grouping is decent, then it would be neat/more accurate
256 to extend sup somehow to instead use these groupings for the filtering.
257 I.e., if an incoming message is grouped with a thread in which I was a
258 participant, then leave it marked unread; otherwise, mark it read.
259
260 Any thoughts on whether such an extension is possible, and if so, where
261 to start with it? Is sup at all extensible at the current time? Is a
262 feature such as this already in the works?
263
264 (5) I remember reading one archived list post on how others were using
265 the "[Gmail]/All Mail" folder as their. Should I have used that instead
266 of "Inbox"?
267
268 If I were using a more conventional IMAP server, in which messages don't
269 appear in multiple folders, does sup expect me to add all the folders,
270 so that it can display complete threads (e.g. merging Sent and Inbox)?
271 So is the difference with Gmail, then, that "[Gmail]/All Mail" is the
272 one and only folder to use?
273
274 In general, does sup play nicely with Gmail? Any experiences to be
275 shared? The only other quirk I'm aware of is that to truly delete a
276 message requires moving it to the Gmail/Trash folder (otherwise only a
277 label is removed).
278
279 Thanks in advance for any answers!
280
281 (6) Scrolling through the buffer that is immediately presented to me
282 when starting sup, I only see about 3 pages of threads. Is this
283 correct? How do I get to the rest?
284
285 (7) Does sup support Unicode? The inbox display seems to be a bit
286 screwy for me (extraneous floating characters, things changing when
287 highlighted, etc.), though it could also be my terminal (I'm using
288 putty, but I just verified that I'm running it in UTF-8 mode).
289
290 [1]
291 http://weblog.timaltman.com/archive/2008/02/24/gmails-buggy-imap-implementation
292
293 --
294 Yang Zhang
295 http://www.mit.edu/~y_z/
296
297 From daniel@wagner-home.com Sun May 4 21:02:49 2008
298 From: daniel@wagner-home.com (Daniel Wagner)
299 Date: Sun, 04 May 2008 18:02:49 -0700
300 Subject: [sup-talk] Beginner questions
301 In-Reply-To: <481E5936.7040600@gmail.com>
302 References: <481E5936.7040600@gmail.com>
303 Message-ID: <1209949098-sup-4287@buckwheat>
304
305 Excerpts from yanghatespam's message of Sun May 04 17:47:50 -0700 2008:
306 > If sup's thread-grouping is decent, then it would be neat/more accurate
307 > to extend sup somehow to instead use these groupings for the filtering.
308 > I.e., if an incoming message is grouped with a thread in which I was a
309 > participant, then leave it marked unread; otherwise, mark it read.
310
311 Well, sup already has a pretty nice (and similar) feature for killing
312 entire threads. The '&' key will archive a thread permanently; that is,
313 if new mails arrive in that thread, they will automatically be archived.
314 So, you can hit '&' once for each thread you don't want to read; the
315 rest will reappear in you inbox as new mails arrive in them.
316
317 It's a bit inverted from what you want, but maybe it will do? In any
318 case, if you want to extend sup, you should look at how that key works.
319
320 > (6) Scrolling through the buffer that is immediately presented to me
321 > when starting sup, I only see about 3 pages of threads. Is this
322 > correct? How do I get to the rest?
323
324 The 'M' key will load more threads.
325
326 Good luck!
327 ~d
328
329 P.S. I'm running a slightly old version of sup, so the actual keys might
330 not be '&' and 'M' any more. '?' should list the available commands at
331 any time.
332
333 From yanghatespam@gmail.com Sun May 4 22:08:27 2008
334 From: yanghatespam@gmail.com (Yang Zhang)
335 Date: Sun, 04 May 2008 22:08:27 -0400
336 Subject: [sup-talk] Beginner questions
337 In-Reply-To: <1209949098-sup-4287@buckwheat>
338 References: <481E5936.7040600@gmail.com> <1209949098-sup-4287@buckwheat>
339 Message-ID: <481E6C1B.6050408@gmail.com>
340
341 Daniel Wagner wrote:
342 > Excerpts from yanghatespam's message of Sun May 04 17:47:50 -0700 2008:
343 >> If sup's thread-grouping is decent, then it would be neat/more accurate
344 >> to extend sup somehow to instead use these groupings for the filtering.
345 >> I.e., if an incoming message is grouped with a thread in which I was a
346 >> participant, then leave it marked unread; otherwise, mark it read.
347 >
348 > Well, sup already has a pretty nice (and similar) feature for killing
349 > entire threads. The '&' key will archive a thread permanently; that is,
350 > if new mails arrive in that thread, they will automatically be archived.
351 > So, you can hit '&' once for each thread you don't want to read; the
352 > rest will reappear in you inbox as new mails arrive in them.
353 >
354 > It's a bit inverted from what you want, but maybe it will do? In any
355 > case, if you want to extend sup, you should look at how that key works.
356
357 I do need to deal with a large volume of mail, so it's not really what
358 I'm looking for, because (1) I'd be doing this all day long, and (2)
359 it's error-prone - I can easily kill a relevant thread. BTW, Gmail has
360 had this feature in the form of the 'm' key (for "mute").
361
362 >
363 >> (6) Scrolling through the buffer that is immediately presented to me
364 >> when starting sup, I only see about 3 pages of threads. Is this
365 >> correct? How do I get to the rest?
366 >
367 > The 'M' key will load more threads.
368
369 Thanks.
370
371 >
372 > Good luck!
373 > ~d
374 >
375 > P.S. I'm running a slightly old version of sup, so the actual keys might
376 > not be '&' and 'M' any more. '?' should list the available commands at
377 > any time.
378 > _______________________________________________
379 > sup-talk mailing list
380 > sup-talk at rubyforge.org
381 > http://rubyforge.org/mailman/listinfo/sup-talk
382
383 --
384 Yang Zhang
385 http://www.mit.edu/~y_z/
386
387 From kendall@clarkparsia.com Sun May 4 22:48:43 2008
388 From: kendall@clarkparsia.com (kendall at clarkparsia.com)
389 Date: Sun, 4 May 2008 22:48:43 -0400 (EDT)
390 Subject: [sup-talk] Beginner questions
391 Message-ID: <47149.192.168.1.71.1209955723.webmail@192.168.1.71>
392
393 On Sunday, May 4, 2008 9:02pm, Daniel Wagner <daniel at wagner-home.com> said:
394
395 > Excerpts from yanghatespam's message of Sun May 04 17:47:50 -0700 2008:
396 >> If sup's thread-grouping is decent, then it would be neat/more accurate
397 >> to extend sup somehow to instead use these groupings for the filtering.
398 >> I.e., if an incoming message is grouped with a thread in which I was a
399 >> participant, then leave it marked unread; otherwise, mark it read.
400 >
401 > Well, sup already has a pretty nice (and similar) feature for killing
402 > entire threads. The '&' key will archive a thread permanently; that is,
403 > if new mails arrive in that thread, they will automatically be archived.
404 > So, you can hit '&' once for each thread you don't want to read; the
405 > rest will reappear in you inbox as new mails arrive in them.
406
407 Which reminds me that, as of 0.5 release, the bug I reported about &-killed threads reappearing is still present.
408
409 But, other than that, 0.5 is a treat.
410
411 Cheers,
412 Kendall
413
414
415 From kevinr@mit.edu Mon May 5 11:39:10 2008
416 From: kevinr@mit.edu (Kevin Riggle)
417 Date: Mon, 05 May 2008 11:39:10 -0400
418 Subject: [sup-talk] [PATCH] change yellow-on-cyan of selected starred
419 messages to blue-on-cyan
420 Message-ID: <1210001502-sup-9255@black-opal>
421
422 I can't read the yellow-on-cyan subject lines of starred messages when
423 the cursor is on them -- this patch changes them to blue-on-cyan instead.
424 Patch created against next.
425
426 - Kevin
427 --
428 Kevin Riggle (kevinr at mit.edu)
429 http://free-dissociation.com
430 -------------- next part --------------
431 A non-text attachment was scrubbed...
432 Name: 0001-I-can-t-read-the-yellow-on-cyan-subject-lines-of-sta.patch
433 Type: application/octet-stream
434 Size: 775 bytes
435 Desc: not available
436 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080505/e16aa050/attachment.obj>
437
438 From marc.hartstein@alum.vassar.edu Mon May 5 14:09:41 2008
439 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
440 Date: Mon, 05 May 2008 14:09:41 -0400
441 Subject: [sup-talk] Beginner questions
442 In-Reply-To: <481E5936.7040600@gmail.com>
443 References: <481E5936.7040600@gmail.com>
444 Message-ID: <1210009778-sup-6833@cabinet>
445
446 Excerpts from yanghatespam's message of Sun May 04 20:47:50 -0400 2008:
447 > When dealing with IMAP servers, does sup store its labels as IMAP
448 > keywords (i.e., are they stored on the server)?
449
450 By default no modification is made to your mail source. There are
451 recent discussions about the reason for this and what sorts of
452 write-back might/might not be accepted as patches in the future.
453
454 > (3) How does sup group messages into the same thread? Does it rely on
455 > References: header fields, subject-matching,
456 > body-substring-matching/overlap, or something else?
457
458 Default behavior seems (I haven't looked at that code) to be to use the
459 References and In-Reply-To headers. There's an option you can turn on
460 in config.yaml thread_by_subject which seems to do what it says.
461
462 > (4) yanghatespam at gmail.com is the account I use for mailing lists. I
463 > use many lists, so I needed a way to cope with the large message volume.
464 > Most of the time, I am only interested in the threads in which I have
465 > been a participant (e.g., I'm interested in replies to my posts). I
466 > have Gmail filters that use simple heuristics like "If my name is in the
467 > email, leave it marked as unread; otherwise mark it read." This, of
468 > course, leads to many false positives/negatives (Gmail's filterts are
469 > only so expressive).
470 >
471 > If sup's thread-grouping is decent, then it would be neat/more accurate
472 > to extend sup somehow to instead use these groupings for the filtering.
473 > I.e., if an incoming message is grouped with a thread in which I was a
474 > participant, then leave it marked unread; otherwise, mark it read.
475
476 I believe what you are looking for is a custom before-add-message hook.
477 That gets passed a message object. You might have to operate on the
478 References: header of that message to get to the information you're
479 looking for (I think threads only exist at the presentation level), but
480 it should be possible to get at least most of the way to what you're
481 looking for.
482
483 The power of hooks is that you have an entire programming language
484 available for this kind of computation if you want it.
485
486 See `sup --list-hooks` and http://sup.rubyforge.org/wiki/wiki.pl?Hooks
487 for more information.
488
489 > (6) Scrolling through the buffer that is immediately presented to me
490 > when starting sup, I only see about 3 pages of threads. Is this
491 > correct? How do I get to the rest?
492
493 'M' to load more messages, or '!!' to load everything. You can
494 interrupt the latter with ^G. These work for any thread-index, not just
495 the inbox, so if a search returns a lot of results, you get the same
496 behavior.
497
498 > (7) Does sup support Unicode? The inbox display seems to be a bit
499 > screwy for me (extraneous floating characters, things changing when
500 > highlighted, etc.), though it could also be my terminal (I'm using
501 > putty, but I just verified that I'm running it in UTF-8 mode).
502
503 Yes, it does. However, the stock Ruby ncurses gem doesn't handle wide
504 characters well. See http://sup.rubyforge.org/wiki/wiki.pl?UTF8 for
505 information on how to deal with this.
506 -------------- next part --------------
507 A non-text attachment was scrubbed...
508 Name: signature.asc
509 Type: application/pgp-signature
510 Size: 189 bytes
511 Desc: not available
512 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080505/e324e364/attachment.bin>
513
514 From yanghatespam@gmail.com Mon May 5 14:29:46 2008
515 From: yanghatespam@gmail.com (Yang Zhang)
516 Date: Mon, 05 May 2008 14:29:46 -0400
517 Subject: [sup-talk] Beginner questions
518 In-Reply-To: <1210009778-sup-6833@cabinet>
519 References: <481E5936.7040600@gmail.com> <1210009778-sup-6833@cabinet>
520 Message-ID: <481F521A.8030207@gmail.com>
521
522 Marc Hartstein wrote:
523 > Excerpts from yanghatespam's message of Sun May 04 20:47:50 -0400 2008:
524 >> When dealing with IMAP servers, does sup store its labels as IMAP
525 >> keywords (i.e., are they stored on the server)?
526 >
527 > By default no modification is made to your mail source. There are
528 > recent discussions about the reason for this and what sorts of
529 > write-back might/might not be accepted as patches in the future.
530
531 Does sup know how to "handle" IMAP keywords in a read-only fashion? Do
532 these appear as sup labels? Is sup able to remove these labels from the
533 local view? As an aside, how would sup resolve conflicting label
534 changes (e.g., I remove the label locally in sup, then add it back in on
535 the IMAP server)?
536
537 Does the no-source-modification policy apply to: Starring messages?
538 Moving files among folders? Marking items as read? How does it deal
539 with consistency (resolve conflicts) in all these cases?
540
541 BTW, if the main debate is whether to allow modification to the mail
542 source, then perhaps it would be sufficient to expose this as an option?
543
544 >
545 >> (3) How does sup group messages into the same thread? Does it rely on
546 >> References: header fields, subject-matching,
547 >> body-substring-matching/overlap, or something else?
548 >
549 > Default behavior seems (I haven't looked at that code) to be to use the
550 > References and In-Reply-To headers. There's an option you can turn on
551 > in config.yaml thread_by_subject which seems to do what it says.
552
553 Good, thanks.
554
555 >
556 >> (4) yanghatespam at gmail.com is the account I use for mailing lists. I
557 >> use many lists, so I needed a way to cope with the large message volume.
558 >> Most of the time, I am only interested in the threads in which I have
559 >> been a participant (e.g., I'm interested in replies to my posts). I
560 >> have Gmail filters that use simple heuristics like "If my name is in the
561 >> email, leave it marked as unread; otherwise mark it read." This, of
562 >> course, leads to many false positives/negatives (Gmail's filterts are
563 >> only so expressive).
564 >>
565 >> If sup's thread-grouping is decent, then it would be neat/more accurate
566 >> to extend sup somehow to instead use these groupings for the filtering.
567 >> I.e., if an incoming message is grouped with a thread in which I was a
568 >> participant, then leave it marked unread; otherwise, mark it read.
569 >
570 > I believe what you are looking for is a custom before-add-message hook.
571 > That gets passed a message object. You might have to operate on the
572 > References: header of that message to get to the information you're
573 > looking for (I think threads only exist at the presentation level), but
574 > it should be possible to get at least most of the way to what you're
575 > looking for.
576 >
577 > The power of hooks is that you have an entire programming language
578 > available for this kind of computation if you want it.
579 >
580 > See `sup --list-hooks` and http://sup.rubyforge.org/wiki/wiki.pl?Hooks
581 > for more information.
582
583 If the no-source-modification policy applies to marking items as
584 read/unread (and starring them - I do star these threads), though, then
585 it sounds like sup is not the right tool for this job. Furthermore, if
586 I can't leverage the threading (as it's only available on the
587 presentation level), then that's moot as well. It sounds like my
588 original plan on writing my own stand-alone IMAP client is the way to
589 go, here.
590
591 >
592 >> (6) Scrolling through the buffer that is immediately presented to me
593 >> when starting sup, I only see about 3 pages of threads. Is this
594 >> correct? How do I get to the rest?
595 >
596 > 'M' to load more messages, or '!!' to load everything. You can
597 > interrupt the latter with ^G. These work for any thread-index, not just
598 > the inbox, so if a search returns a lot of results, you get the same
599 > behavior.
600
601 Does anybody else find sup to be very slow at displaying these threads?
602 I can literally see the threads trickling into view. And this is done
603 on each startup. Hitting !! takes forever. sup feels sluggish overall
604 (even moving the arrows around in inbox-mode has a slight delay, such
605 that I can only move by about 30 lines per second). Is something wrong
606 with my configuration? Or is this expected? (I was mainly interested
607 in sup as an ultra-responsive mail client.)
608
609 >
610 >> (7) Does sup support Unicode? The inbox display seems to be a bit
611 >> screwy for me (extraneous floating characters, things changing when
612 >> highlighted, etc.), though it could also be my terminal (I'm using
613 >> putty, but I just verified that I'm running it in UTF-8 mode).
614 >
615 > Yes, it does. However, the stock Ruby ncurses gem doesn't handle wide
616 > characters well. See http://sup.rubyforge.org/wiki/wiki.pl?UTF8 for
617 > information on how to deal with this.
618
619 That's unfortunate...
620
621 >
622 >
623 > ------------------------------------------------------------------------
624 >
625 > _______________________________________________
626 > sup-talk mailing list
627 > sup-talk at rubyforge.org
628 > http://rubyforge.org/mailman/listinfo/sup-talk
629
630 --
631 Yang Zhang
632 http://www.mit.edu/~y_z/
633
634 From wmorgan-sup@masanjin.net Mon May 5 20:59:55 2008
635 From: wmorgan-sup@masanjin.net (wmorgan-sup)
636 Date: Mon, 05 May 2008 17:59:55 -0700
637 Subject: [sup-talk] sup traceback
638 In-Reply-To: <1209752246-sup-5510@junction.es.net>
639 References: <1209752246-sup-5510@junction.es.net>
640 Message-ID: <1210035536-sup-7502@south>
641
642 Reformatted excerpts from Jon Dugan's message of 2008-05-02:
643 > looks like some SPAM in my inbox caused sup some serious heart burn:
644 >
645 > --- RuntimeError from thread: poll after loading inbox
646 > just added message "20080502075530.7980.qmail@\343\340\353\377" but couldn't
647 > find it in a search
648
649 Interesting. Non-ASCII characters in a message id. Haven't seen that one
650 before. Maybe I should SHA1 all message ids anyways.
651 --
652 William <wmorgan-sup at masanjin.net>
653
654 From wmorgan-sup@masanjin.net Mon May 5 21:02:20 2008
655 From: wmorgan-sup@masanjin.net (William Morgan)
656 Date: Mon, 05 May 2008 18:02:20 -0700
657 Subject: [sup-talk] question about contacts
658 In-Reply-To: <1209564726-sup-7788@h984274.serverkompetenz.net>
659 References: <f96e0240804291707l4570dbd4xb1000a37a7d52f3@mail.gmail.com>
660 <1209564726-sup-7788@h984274.serverkompetenz.net>
661 Message-ID: <1210035671-sup-1419@south>
662
663 Reformatted excerpts from Tyberius Prime's message of 2008-04-30:
664 > But I'm also interested behind the rationale to "unify" sender names
665 > like that (maybe there's a good reason that the both of us are
666 > missing)!
667
668 No, there was no good reason. I thought it was clever but didn't realize
669 what the consequences would be when I did it. I think things are now in
670 a state where removing all that stuff wouldn't be too hard, and I've
671 been meaning to do it for quite some time, just haven't gotten around to
672 it.
673 --
674 William <wmorgan-sup at masanjin.net>
675
676 From chrisw@rice.edu Mon May 5 22:15:52 2008
677 From: chrisw@rice.edu (Christopher Warrington)
678 Date: Mon, 5 May 2008 19:15:52 -0700
679 Subject: [sup-talk] Beginner questions
680 In-Reply-To: <1210009778-sup-6833@cabinet>
681 References: <481E5936.7040600@gmail.com> <1210009778-sup-6833@cabinet>
682 Message-ID: <1098596996.20080505191552@rice.edu>
683
684
685 Marc Hartstein @ 2008-5-05 11:09:41 AM
686 "[sup-talk] Beginner questions" <mid:1210009778-sup-6833 at cabinet>
687
688 > I believe what you are looking for is a custom before-add-message
689 > hook. That gets passed a message object. You might have to operate
690 > on the References: header of that message to get to the information
691 > you're looking for (I think threads only exist at the presentation
692 > level), but it should be possible to get at least most of the way to
693 > what you're looking for.
694
695 Well, I guess I should get more code in good order and submit my
696 patch for the lack of threading in the before-add-message hook...
697
698 --
699 Christopher Warrington <chrisw at rice.edu>
700
701 How do I set my laser printer on stun?
702 -------------- next part --------------
703 A non-text attachment was scrubbed...
704 Name: not available
705 Type: application/pgp-signature
706 Size: 191 bytes
707 Desc: not available
708 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080505/7a11b64c/attachment.bin>
709
710 From tyberius_prime@coonabibba.de Wed May 7 05:25:59 2008
711 From: tyberius_prime@coonabibba.de (Tyberius Prime)
712 Date: Wed, 07 May 2008 11:25:59 +0200
713 Subject: [sup-talk] Hook reloading
714 Message-ID: <1210152344-sup-9178@h984274.serverkompetenz.net>
715
716
717 Hello,
718
719 can anyone elucidate me on the subject of when (or how) sup reloads
720 it's hooks?
721
722 I've introduced a new 'open-thread' hook (that I use to store
723 the message and it's attachment to a directory for my webbrowser),
724 and now I'm occacionaly greeted with
725 "[snip/.sup/hooks/open-thread.rb:21: warning: method redefined; discarding old linkHTML".
726 I guess that happens every time sup reloads the hook in question.
727
728 How can I get rid of the message?
729 And can I force sup to reload its hooks (while developing)?
730
731 Thanks
732 and so long,
733 Tyberius Prime
734
735 From neilson@sent.com Wed May 7 13:14:39 2008
736 From: neilson@sent.com (Daniel H. Neilson)
737 Date: Wed, 07 May 2008 13:14:39 -0400
738 Subject: [sup-talk] External contact manager/address book
739 Message-ID: <1210180469-sup-4780@dhn-desktop>
740
741 First off, thanks to William and everyone who has contributed to sup.
742 I'm making the switch from mutt and really enjoying it.
743
744 I hunted the list archives and the wiki but couldn't find an answer to
745 my current problem. In keeping with the philosophy of having one good
746 tool for each job, I use a separate program to manage contacts (abook).
747 It helps me to have phone numbers, birthdays, mailing addresses, and
748 e-mail addresses all in the same place.
749
750 abook is designed to work with mutt, using
751
752 set query_command="abook --mutt-query '%s'"
753
754 in my .muttrc . I know that other similar programs are designed to work
755 with mutt in the same way (lbdb?). This setup is nice because I can
756 auto-complete To: addresses with ctrl-T, and I get "Full Name <address>"
757 in the To: line.
758
759 I wonder if there is a way to get similar behavior in sup?
760
761 Thanks,
762 Dan
763
764 From marc.hartstein@alum.vassar.edu Wed May 7 14:10:35 2008
765 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
766 Date: Wed, 07 May 2008 14:10:35 -0400
767 Subject: [sup-talk] External contact manager/address book
768 In-Reply-To: <1210180469-sup-4780@dhn-desktop>
769 References: <1210180469-sup-4780@dhn-desktop>
770 Message-ID: <1210183305-sup-1959@cabinet>
771
772 Excerpts from Daniel H. Neilson's message of Wed May 07 13:14:39 -0400 2008:
773 > In keeping with the philosophy of having one good tool for each job, I
774 > use a separate program to manage contacts (abook). It helps me to
775 > have phone numbers, birthdays, mailing addresses, and e-mail addresses
776 > all in the same place.
777
778 Hey, thanks for linking to abook. It looks like it might be exactly
779 what I've been looking for.
780
781 > abook is designed to work with mutt, using
782 >
783 > set query_command="abook --mutt-query '%s'"
784 >
785 > I wonder if there is a way to get similar behavior in sup?
786
787 I think you're looking for the extra-contact-addresses hook, announced
788 about a month ago:
789
790
791 extra-contact-addresses
792 -----------------------
793 File: ~/.sup/hooks/extra-contact-addresses.rb
794 A list of extra addresses to propose for tab completion, etc. when the
795 user is entering an email address. Can be plain email addresses or can
796 be full "User Name <email at domain.tld>" entries.
797
798 Variables: none
799 Return value: an array of email address strings.
800
801
802 Looks like, at present, you'll have to request the full db from abook
803 and pass it up to sup, and you'll have to do a bit of processing to
804 transform the format from mutt's "email at address Full Name" to "Full Name
805 <email at address>".
806 -------------- next part --------------
807 A non-text attachment was scrubbed...
808 Name: signature.asc
809 Type: application/pgp-signature
810 Size: 189 bytes
811 Desc: not available
812 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080507/25fe5341/attachment.bin>
813
814 From kevinr@mit.edu Wed May 7 19:11:14 2008
815 From: kevinr@mit.edu (Kevin Riggle)
816 Date: Wed, 07 May 2008 19:11:14 -0400
817 Subject: [sup-talk] Crash report: Draft message weirdness
818 Message-ID: <1210201416-sup-3219@black-opal>
819
820 See attached -- I believe these crashes are all related. It seems like
821 there's some corruption, likely in the draft message store.
822
823 I opened up a draft message I had saved on a thread of them, and when I
824 was finished editing it, I tried to send it, and sup crashed. For some
825 reason when I restarted there were two draft copies of that message on
826 the thread. I tried to remove one of the drafts by editing it, closing
827 the editor, then killing the buffer, and saying 'y' when it asked me to
828 discard, and Sup crashed. I restarted and tried to archive some
829 messages, including, I think, the one with the drafts saved on it, and
830 when I hit $ to save the changes, Sup crashed.
831
832 - Kevin
833 --
834 Kevin Riggle (kevinr at mit.edu)
835 http://free-dissociation.com
836 -------------- next part --------------
837 An embedded and charset-unspecified text was scrubbed...
838 Name: deletion-exception-log.txt
839 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080507/a649a9b3/attachment.txt>
840 -------------- next part --------------
841 An embedded and charset-unspecified text was scrubbed...
842 Name: discard-draft-exception-log.txt
843 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080507/a649a9b3/attachment-0001.txt>
844 -------------- next part --------------
845 An embedded and charset-unspecified text was scrubbed...
846 Name: save-changes-exception-log.txt
847 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080507/a649a9b3/attachment-0002.txt>
848
849 From kevinr@mit.edu Wed May 7 19:13:56 2008
850 From: kevinr@mit.edu (Kevin Riggle)
851 Date: Wed, 07 May 2008 19:13:56 -0400
852 Subject: [sup-talk] Crash report: Draft message weirdness
853 In-Reply-To: <1210201416-sup-3219@black-opal>
854 References: <1210201416-sup-3219@black-opal>
855 Message-ID: <1210201968-sup-9755@black-opal>
856
857 Excerpts from Kevin Riggle's message of Wed May 07 19:11:14 -0400 2008:
858 > See attached -- I believe these crashes are all related. It seems like
859 > there's some corruption, likely in the draft message store.
860 >
861 I now have a draft message, the discarding of which consistently causes
862 Sup to crash. I can send you my draft mbox file if that would be
863 useful.
864
865 - Kevin
866 --
867 Kevin Riggle (kevinr at mit.edu)
868 http://free-dissociation.com
869
870 From jdugan@es.net Wed May 7 20:56:03 2008
871 From: jdugan@es.net (Jon Dugan)
872 Date: Wed, 07 May 2008 17:56:03 -0700
873 Subject: [sup-talk] sup traceback
874 In-Reply-To: <1210035536-sup-7502@south>
875 References: <1209752246-sup-5510@junction.es.net> <1210035536-sup-7502@south>
876 Message-ID: <1210207992-sup-8093@junction.es.net>
877
878 Excerpts from William Morgan's message of Mon May 05 17:59:55 -0700 2008:
879 > Interesting. Non-ASCII characters in a message id. Haven't seen that one
880 > before. Maybe I should SHA1 all message ids anyways.
881
882 Ayup, that made me do a double take too. I used mutt to delete it and ran a
883 sup-sync -c to get back to business. I kept a copy of the message if you want
884 to take a look, but the salient point was the wide chars in the message id.
885
886 Cheers,
887
888 Jon
889
890 --
891 Jon M. Dugan <jdugan at es.net> | GTalk: jdugan.esnet
892 ESnet Network Engineering Group | http://www.es.net
893 Lawrence Berkeley National Laboratory | http://www.lbl.gov/
894
895 From tyberius_prime@coonabibba.de Thu May 8 05:50:05 2008
896 From: tyberius_prime@coonabibba.de (Tyberius Prime)
897 Date: Thu, 08 May 2008 11:50:05 +0200
898 Subject: [sup-talk] Hook reloading
899 In-Reply-To: <1210152344-sup-9178@h984274.serverkompetenz.net>
900 References: <1210152344-sup-9178@h984274.serverkompetenz.net>
901 Message-ID: <1210240114-sup-7457@h984274.serverkompetenz.net>
902
903 Excerpts from Tyberius Prime's message of Wed May 07 11:25:59 +0200 2008:
904
905 > and now I'm occacionaly greeted with
906 > "[snip/.sup/hooks/open-thread.rb:21: warning: method redefined; discarding old
907 > linkHTML".
908 > I guess that happens every time sup reloads the hook in question.
909 >
910 > How can I get rid of the message?
911
912 The answer is of course to wrap the function in an
913 if !defined? functionName
914 end
915 block.
916
917 > And can I force sup to reload its hooks (while developing)?
918
919
920 --
921 So long,
922 Tyberius Prime
923
924 From israel.herraiz@gmail.com Thu May 8 07:26:19 2008
925 From: israel.herraiz@gmail.com (Israel Herraiz)
926 Date: Thu, 08 May 2008 13:26:19 +0200
927 Subject: [sup-talk] External contact manager/address book
928 In-Reply-To: <1210183305-sup-1959@cabinet>
929 References: <1210180469-sup-4780@dhn-desktop> <1210183305-sup-1959@cabinet>
930 Message-ID: <1210245794-sup-7683@elly>
931
932 Excerpts from Marc's message on May 7, 2008 about 8 PM:
933 > I think you're looking for the extra-contact-addresses hook, announced
934 > about a month ago:
935
936 No the most beautiful piece of code, but the attached Ruby script will
937 do the task. Just copy it to your ~/.sup/hooks and when you hit tab
938 for autocompletion of addresses and names, you will obtain a list from
939 your abook database.
940
941 Cheers,
942 Israel
943 -------------- next part --------------
944 A non-text attachment was scrubbed...
945 Name: extra-contact-addresses.rb
946 Type: application/octet-stream
947 Size: 166 bytes
948 Desc: not available
949 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080508/ecb50c4f/attachment-0001.obj>
950
951 From neilson@sent.com Thu May 8 07:55:08 2008
952 From: neilson@sent.com (Daniel H. Neilson)
953 Date: Thu, 08 May 2008 07:55:08 -0400
954 Subject: [sup-talk] External contact manager/address book
955 Message-ID: <1210246890-sup-581@dhn-desktop>
956
957 Excerpts from Marc Hartstein's message of Wed, 07 May 2008 14:10:35 -0400:
958 > Hey, thanks for linking to abook. It looks like it might be exactly
959 > what I've been looking for.
960
961 abook is not always pretty, but it is curses-based, has human-readable
962 data files, and is extensible within reason.
963
964 Excerpts from Israel Herraiz's message of Thu, 08 May 2008 13:26:19 +0200:
965 > No the most beautiful piece of code, but the attached Ruby script will
966 > do the task. Just copy it to your ~/.sup/hooks and when you hit tab
967 > for autocompletion of addresses and names, you will obtain a list from
968 > your abook database.
969
970 Thanks for the code Israel. One could ask for more, but this will do the
971 job for now.
972
973 DN
974
975
976 From wmorgan-sup@masanjin.net Fri May 9 02:10:12 2008
977 From: wmorgan-sup@masanjin.net (William Morgan)
978 Date: Thu, 08 May 2008 23:10:12 -0700
979 Subject: [sup-talk] Hook reloading
980 In-Reply-To: <1210152344-sup-9178@h984274.serverkompetenz.net>
981 References: <1210152344-sup-9178@h984274.serverkompetenz.net>
982 Message-ID: <1210313221-sup-40@south>
983
984 Reformatted excerpts from Tyberius Prime's message of 2008-05-07:
985 > can anyone elucidate me on the subject of when (or how) sup reloads
986 > it's hooks?
987
988 A hook is only read from disk the first time it's called. Every time
989 the hook is called, that code is evaluated, so if you have a function
990 definition in there, it will be give that warning.
991
992 You can ignore the warning, or you can wrap it in a "unless defined?" as
993 you point out.
994
995 > And can I force sup to reload its hooks (while developing)?
996
997 There's no way to do this, but I agree it would be nice and wouldn't be
998 too hard to add...
999 --
1000 William <wmorgan-sup at masanjin.net>
1001
1002 From wmorgan-sup@masanjin.net Sun May 11 19:20:59 2008
1003 From: wmorgan-sup@masanjin.net (William Morgan)
1004 Date: Sun, 11 May 2008 16:20:59 -0700
1005 Subject: [sup-talk] sup traceback
1006 In-Reply-To: <1210207992-sup-8093@junction.es.net>
1007 References: <1209752246-sup-5510@junction.es.net> <1210035536-sup-7502@south>
1008 <1210207992-sup-8093@junction.es.net>
1009 Message-ID: <1210548017-sup-3984@south>
1010
1011 Reformatted excerpts from Jon Dugan's message of 2008-05-07:
1012 > Ayup, that made me do a double take too. I used mutt to delete it and
1013 > ran a sup-sync -c to get back to business. I kept a copy of the
1014 > message if you want to take a look, but the salient point was the wide
1015 > chars in the message id.
1016
1017 I've stripped out non-ascii characters in a patch to next. Try it out if
1018 you want!
1019 --
1020 William <wmorgan-sup at masanjin.net>
1021
1022 From kevinr@mit.edu Tue May 13 21:23:58 2008
1023 From: kevinr@mit.edu (Kevin Riggle)
1024 Date: Tue, 13 May 2008 21:23:58 -0400
1025 Subject: [sup-talk] IMAP server restart causes Sup exception
1026 Message-ID: <1210728028-sup-3439@black-opal>
1027
1028 Restarting my IMAP server caused the following Sup exception.
1029
1030 --- SystemExit from thread: main
1031 closed stream
1032 /usr/lib/ruby/1.8/openssl/buffering.rb:237:in `select'
1033 ./lib/sup/buffer.rb:31:in `nonblocking_getch'
1034 bin/sup:227
1035
1036 Sup should really handle this more gracefully.
1037
1038 - Kevin
1039 --
1040 Kevin Riggle (kevinr at mit.edu)
1041 http://free-dissociation.com
1042
1043 From teatime@gmx.com Fri May 16 00:42:10 2008
1044 From: teatime@gmx.com (Jan Spakula)
1045 Date: Thu, 15 May 2008 23:42:10 -0500
1046 Subject: [sup-talk] gpg signatures are not valid of sig present
1047 Message-ID: <1210912488-sup-826@aconcagua>
1048
1049 Hello,
1050
1051 I've just recently discovered that gpg signatures generated by sup are
1052 not verifiable (BAD signature result from gpg) on other e-mail clients
1053 (tried with mutt and claws-mail), when I have nonempty signature. With
1054 no signature present, all works fine. Sup can verify the signature
1055 succesfully in either case though. (I'm using sup 0.5.)
1056
1057 I'm sorry, I'm no ruby programmer, so I don't know where the problem
1058 could be; just by common sense it would seem that ruby strips the
1059 message of the signature before dealing with gpg sig.
1060
1061 Thanks for help,
1062
1063 --
1064 Jan
1065
1066
1067 From bdwalton@gmail.com Fri May 16 13:00:27 2008
1068 From: bdwalton@gmail.com (Ben Walton)
1069 Date: Fri, 16 May 2008 13:00:27 -0400
1070 Subject: [sup-talk] [PATCH] exception when editting empty Cc header in
1071 edit-message-mode
1072 Message-ID: <f96e0240805161000nce9b344ref2454b0004d4df7@mail.gmail.com>
1073
1074 Hi All,
1075
1076 I bumped into this today and crafted the following small patch
1077 (against the current head of next) to handle it. If you press 'c' to
1078 edit a Cc header (would happen on To or Bcc also), an exception is
1079 generated if the field is currently empty. Array.join is called on
1080 nil. The attached patch just sets the header value to an empty array
1081 before the call to join happens.
1082
1083 -Ben
1084 --
1085 ---------------------------------------------------------------------------------------------------------------------------
1086 Ben Walton <bdwalton at gmail.com>
1087
1088 When one person suffers from a delusion, it is called insanity. When
1089 many people suffer from a delusion it is called Religion.
1090 Robert M. Pirsig, Zen and the Art of Motorcycle Maintenance
1091
1092 ---------------------------------------------------------------------------------------------------------------------------
1093 -------------- next part --------------
1094 A non-text attachment was scrubbed...
1095 Name: 0003-fix-exception-when-editting-an-empty-MULTI_HEADER.patch
1096 Type: text/x-diff
1097 Size: 986 bytes
1098 Desc: not available
1099 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080516/26d8c10e/attachment.bin>
1100
1101 From alexandre.buisse@ens-lyon.org Mon May 19 06:36:55 2008
1102 From: alexandre.buisse@ens-lyon.org (Alexandre Buisse)
1103 Date: Mon, 19 May 2008 12:36:55 +0200
1104 Subject: [sup-talk] Impossible to git-clone
1105 Message-ID: <20080519103655.GA22093@ubik>
1106
1107 Hi,
1108 I am trying to obtain the latest git version in order to have good UTF8
1109 support (as it's behaving really badly at the moment) but the git
1110 repository doesn't seem to work. I obtain:
1111
1112 fatal: The remote end hung up unexpectedly
1113 fetch-pack from 'git://repo.or.cz/sup.git' failed.
1114
1115 When I try to browse the repository on the web, I get that there is
1116 malformed content at line 64, on the '@' sign of the email address that
1117 is there.
1118
1119 Would it possible to fix this, or is there a mirror I can use somewhere?
1120
1121 Thanks,
1122 /Alexandre
1123 -------------- next part --------------
1124 A non-text attachment was scrubbed...
1125 Name: not available
1126 Type: application/pgp-signature
1127 Size: 189 bytes
1128 Desc: Digital signature
1129 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080519/f924f558/attachment.bin>
1130
1131 From wmorgan-sup@masanjin.net Mon May 19 10:57:44 2008
1132 From: wmorgan-sup@masanjin.net (William Morgan)
1133 Date: Mon, 19 May 2008 07:57:44 -0700
1134 Subject: [sup-talk] Impossible to git-clone
1135 In-Reply-To: <20080519103655.GA22093@ubik>
1136 References: <20080519103655.GA22093@ubik>
1137 Message-ID: <1211208577-sup-4967@south>
1138
1139 Reformatted excerpts from Alexandre Buisse's message of 2008-05-19:
1140 > I am trying to obtain the latest git version in order to have good
1141 > UTF8 support (as it's behaving really badly at the moment)
1142
1143 Check out recent mailing list traffic on this subject. You can checkout
1144 the ncursesw branch and compile a wide-character Ruby ncurses library.
1145 With that, wide characters actually get displayed correctly.
1146
1147 The remaining issue is that there's no way of determining the display
1148 width of wide character, and no way of taking a substring of a
1149 wide-character string based on character display widths. There's a libc
1150 function called wcwidth that I've been playing around with importing via
1151 dlopen, which would be the logical starting point for, but haven't quite
1152 managed to make that work.
1153
1154 > but the git repository doesn't seem to work. I obtain:
1155 >
1156 > fatal: The remote end hung up unexpectedly
1157 > fetch-pack from 'git://repo.or.cz/sup.git' failed.
1158
1159 I just tried it and it worked. Could it be a transient failure?
1160
1161 > When I try to browse the repository on the web, I get that there is
1162 > malformed content at line 64, on the '@' sign of the email address that
1163 > is there.
1164
1165 Yes, I've asked them to fix this but no response. I am considering
1166 migrating to gitorious or github for this reason.
1167 --
1168 William <wmorgan-sup at masanjin.net>
1169
1170 From tyberius_prime@coonabibba.de Mon May 19 11:13:06 2008
1171 From: tyberius_prime@coonabibba.de (Tyberius Prime)
1172 Date: Mon, 19 May 2008 17:13:06 +0200
1173 Subject: [sup-talk] Impossible to git-clone
1174 In-Reply-To: <1211208577-sup-4967@south>
1175 References: <20080519103655.GA22093@ubik> <1211208577-sup-4967@south>
1176 Message-ID: <1211209857-sup-2702@h984274.serverkompetenz.net>
1177
1178 Excerpts from William Morgan's message of Mon May 19 16:57:44 +0200 2008:
1179 > Reformatted excerpts from Alexandre Buisse's message of 2008-05-19:
1180 > > I am trying to obtain the latest git version in order to have good
1181 > > UTF8 support (as it's behaving really badly at the moment)
1182 >
1183 > Check out recent mailing list traffic on this subject. You can checkout
1184 > the ncursesw branch and compile a wide-character Ruby ncurses library.
1185 > With that, wide characters actually get displayed correctly.
1186
1187 Hi,
1188
1189 I have tried that - but still don't see wide characters (just utf-8 giberish).
1190 I followed the instructions in the wiki (after getting a recent git onto my debian ;) ),
1191 and strace is suggesting I'm loading the right ncurses.so and even contains a
1192 open("/lib/libncursesw.so.5", O_RDONLY) = 3
1193
1194 Does anybody have an idea what might be wrong?
1195 Default system locale is set to "en_US.UTF-8 UTF-8",
1196 I have not overriden it for my user.
1197
1198 Thanks for your time,
1199 so long,
1200 Tyberius Prime
1201
1202 From wmorgan-sup@masanjin.net Mon May 19 12:14:02 2008
1203 From: wmorgan-sup@masanjin.net (William Morgan)
1204 Date: Mon, 19 May 2008 09:14:02 -0700
1205 Subject: [sup-talk] Impossible to git-clone
1206 In-Reply-To: <1211209857-sup-2702@h984274.serverkompetenz.net>
1207 References: <20080519103655.GA22093@ubik> <1211208577-sup-4967@south>
1208 <1211209857-sup-2702@h984274.serverkompetenz.net>
1209 Message-ID: <1211211848-sup-1432@south>
1210
1211 Reformatted excerpts from Tyberius Prime's message of 2008-05-19:
1212 > I have tried that - but still don't see wide characters (just utf-8
1213 > giberish). I followed the instructions in the wiki (after getting a
1214 > recent git onto my debian ;) ), and strace is suggesting I'm loading
1215 > the right ncurses.so and even contains a
1216 > open("/lib/libncursesw.so.5", O_RDONLY) = 3
1217
1218 Is your terminal emulator capable of displaying utf8? E.g. do you see wide
1219 characters when you use cat or less? Do you see wide characters when you
1220 use other curses programs like mutt?
1221
1222 --
1223 William <wmorgan-sup at masanjin.net>
1224
1225 From tyberius_prime@coonabibba.de Mon May 19 13:03:22 2008
1226 From: tyberius_prime@coonabibba.de (Tyberius Prime)
1227 Date: Mon, 19 May 2008 19:03:22 +0200
1228 Subject: [sup-talk] Impossible to git-clone
1229 In-Reply-To: <1211211848-sup-1432@south>
1230 References: <20080519103655.GA22093@ubik> <1211208577-sup-4967@south>
1231 <1211209857-sup-2702@h984274.serverkompetenz.net>
1232 <1211211848-sup-1432@south>
1233 Message-ID: <1211216506-sup-7262@h984274.serverkompetenz.net>
1234
1235 Excerpts from William Morgan's message of Mon May 19 18:14:02 +0200 2008:
1236 > Reformatted excerpts from Tyberius Prime's message of 2008-05-19:
1237 > > I have tried that - but still don't see wide characters (just utf-8
1238 >
1239 > Is your terminal emulator capable of displaying utf8? E.g. do you see wide
1240 > characters when you use cat or less? Do you see wide characters when you
1241 > use other curses programs like mutt?
1242 >
1243
1244 I believe so (ssh/putty on windows...)
1245 If I forward a mail, sup opens it up in joe,
1246 which I believe to be ncursed based as well.
1247 When I manually tell joe that it's utf-8, my wide characters appear.
1248 (saving the file somewhere and running cat on it does not produce
1249 wide characters, though).
1250
1251 Here are the first few lines sup utters:
1252 >ruby -Ilib -w bin/sup
1253 ./lib/sup/util.rb:8: warning: method redefined; discarding old gen_lock_id
1254 ./lib/sup/util.rb:19: warning: method redefined; discarding old dump_lock_id
1255 [Mon May 19 19:01:26 +0200 2008] using character set encoding "UTF-8"
1256
1257
1258 and what my 'locale' command has to say:
1259
1260 >locale
1261 LANG=
1262 LC_CTYPE="en_US.UTF-8"
1263 LC_NUMERIC="en_US.UTF-8"
1264 LC_TIME="en_US.UTF-8"
1265 LC_COLLATE="en_US.UTF-8"
1266 LC_MONETARY="en_US.UTF-8"
1267 LC_MESSAGES="en_US.UTF-8"
1268 LC_PAPER="en_US.UTF-8"
1269 LC_NAME="en_US.UTF-8"
1270 LC_ADDRESS="en_US.UTF-8"
1271 LC_TELEPHONE="en_US.UTF-8"
1272 LC_MEASUREMENT="en_US.UTF-8"
1273 LC_IDENTIFICATION="en_US.UTF-8"
1274 LC_ALL=en_US.UTF-8
1275
1276 >locale charmap
1277 UTF-8
1278
1279 So long,
1280 Tyberius Prime
1281
1282 From wmorgan-sup@masanjin.net Mon May 19 17:31:18 2008
1283 From: wmorgan-sup@masanjin.net (William Morgan)
1284 Date: Mon, 19 May 2008 14:31:18 -0700
1285 Subject: [sup-talk] Impossible to git-clone
1286 In-Reply-To: <1211216506-sup-7262@h984274.serverkompetenz.net>
1287 References: <20080519103655.GA22093@ubik> <1211208577-sup-4967@south>
1288 <1211209857-sup-2702@h984274.serverkompetenz.net>
1289 <1211211848-sup-1432@south>
1290 <1211216506-sup-7262@h984274.serverkompetenz.net>
1291 Message-ID: <1211232437-sup-181@south>
1292
1293 Reformatted excerpts from Tyberius Prime's message of 2008-05-19:
1294 > I believe so (ssh/putty on windows...)
1295 > If I forward a mail, sup opens it up in joe,
1296 > which I believe to be ncursed based as well.
1297 > When I manually tell joe that it's utf-8, my wide characters appear.
1298 > (saving the file somewhere and running cat on it does not produce
1299 > wide characters, though).
1300
1301 In that case we've exhausted my knowledge of wide characters. Your
1302 locale seems fine and your ncursesw seems like it's being loaded. I
1303 guess it's something about putty, but I'm not sure what. The only
1304 difference between your system and mine is that I can cat wide
1305 characters. My LANG is set to en_US.UTF-8, but I don't think that that
1306 would make a difference...
1307 --
1308 William <wmorgan-sup at masanjin.net>
1309
1310 From wmorgan-sup@masanjin.net Mon May 19 17:40:44 2008
1311 From: wmorgan-sup@masanjin.net (William Morgan)
1312 Date: Mon, 19 May 2008 14:40:44 -0700
1313 Subject: [sup-talk] [PATCH] exception when editting empty Cc header in
1314 edit-message-mode
1315 In-Reply-To: <f96e0240805161000nce9b344ref2454b0004d4df7@mail.gmail.com>
1316 References: <f96e0240805161000nce9b344ref2454b0004d4df7@mail.gmail.com>
1317 Message-ID: <1211233223-sup-7834@south>
1318
1319 Applied to master, thanks!
1320 --
1321 William <wmorgan-sup at masanjin.net>
1322
1323 From wmorgan-sup@masanjin.net Mon May 19 17:41:46 2008
1324 From: wmorgan-sup@masanjin.net (William Morgan)
1325 Date: Mon, 19 May 2008 14:41:46 -0700
1326 Subject: [sup-talk] gpg signatures are not valid of sig present
1327 In-Reply-To: <1210912488-sup-826@aconcagua>
1328 References: <1210912488-sup-826@aconcagua>
1329 Message-ID: <1211233254-sup-8091@south>
1330
1331 Reformatted excerpts from Jan Spakula's message of 2008-05-15:
1332 > I've just recently discovered that gpg signatures generated by sup are
1333 > not verifiable (BAD signature result from gpg) on other e-mail clients
1334 > (tried with mutt and claws-mail), when I have nonempty signature.
1335
1336 Turns out this was a newline issue. I think I've tracked it down. Do a
1337 git pull and try again.
1338 --
1339 William <wmorgan-sup at masanjin.net>
1340
1341 From teatime@gmx.com Mon May 19 18:04:39 2008
1342 From: teatime@gmx.com (Jan Spakula)
1343 Date: Mon, 19 May 2008 17:04:39 -0500
1344 Subject: [sup-talk] gpg signatures are not valid of sig present
1345 In-Reply-To: <1211233254-sup-8091@south>
1346 References: <1210912488-sup-826@aconcagua> <1211233254-sup-8091@south>
1347 Message-ID: <1211234574-sup-2131@aconcagua>
1348
1349 Excerpts from William Morgan's message of Mon May 19 16:41:46 -0500 2008:
1350 > Reformatted excerpts from Jan Spakula's message of 2008-05-15:
1351 > > I've just recently discovered that gpg signatures generated by sup are
1352 > > not verifiable (BAD signature result from gpg) on other e-mail clients
1353 > > (tried with mutt and claws-mail), when I have nonempty signature.
1354 >
1355 > Turns out this was a newline issue. I think I've tracked it down. Do a
1356 > git pull and try again.
1357
1358 Works now. Thanks for the fix!
1359
1360 --
1361 Jan
1362
1363
1364 From wmorgan-sup@masanjin.net Mon May 19 19:16:40 2008
1365 From: wmorgan-sup@masanjin.net (William Morgan)
1366 Date: Mon, 19 May 2008 16:16:40 -0700
1367 Subject: [sup-talk] IMAP server restart causes Sup exception
1368 In-Reply-To: <1210728028-sup-3439@black-opal>
1369 References: <1210728028-sup-3439@black-opal>
1370 Message-ID: <1211238704-sup-2539@south>
1371
1372 Reformatted excerpts from Kevin Riggle's message of 2008-05-13:
1373 > --- SystemExit from thread: main
1374 > closed stream
1375 > /usr/lib/ruby/1.8/openssl/buffering.rb:237:in `select'
1376 > ./lib/sup/buffer.rb:31:in `nonblocking_getch'
1377 > bin/sup:227
1378
1379 This backtrace doesn't really make any sense. There's no reason that
1380 nonblocking_getch would be calling the openssl stuff, and openssl's
1381 buffering.rb doesn't mention select at all. Weird.
1382 --
1383 William <wmorgan-sup at masanjin.net>
1384
1385 From wmorgan-sup@masanjin.net Mon May 19 19:21:45 2008
1386 From: wmorgan-sup@masanjin.net (William Morgan)
1387 Date: Mon, 19 May 2008 16:21:45 -0700
1388 Subject: [sup-talk] Crash report: Draft message weirdness
1389 In-Reply-To: <1210201416-sup-3219@black-opal>
1390 References: <1210201416-sup-3219@black-opal>
1391 Message-ID: <1211239250-sup-6528@south>
1392
1393 Reformatted excerpts from Kevin Riggle's message of 2008-05-07:
1394 > I opened up a draft message I had saved on a thread of them, and when
1395 > I was finished editing it, I tried to send it, and sup crashed.
1396
1397 Welcome ot the world of scary Ferret errors that seem to occur randomly.
1398
1399 If you sup-sync --changed sup://drafts, does that fix things?
1400 --
1401 William <wmorgan-sup at masanjin.net>
1402
1403 From wmorgan-sup@masanjin.net Mon May 19 19:38:40 2008
1404 From: wmorgan-sup@masanjin.net (William Morgan)
1405 Date: Mon, 19 May 2008 16:38:40 -0700
1406 Subject: [sup-talk] Beginner questions
1407 In-Reply-To: <481F521A.8030207@gmail.com>
1408 References: <481E5936.7040600@gmail.com> <1210009778-sup-6833@cabinet>
1409 <481F521A.8030207@gmail.com>
1410 Message-ID: <1211240148-sup-2640@south>
1411
1412 Reformatted excerpts from yanghatespam's message of 2008-05-05:
1413 > Does anybody else find sup to be very slow at displaying these
1414 > threads? I can literally see the threads trickling into view.
1415
1416 It's slower than it could be. I would like to cache the threading
1417 (possibly directly in the index), as it's recomputed each time and even
1418 though Ferret is fast, it could be faster.
1419
1420 > sup feels sluggish overall (even moving the arrows around in
1421 > inbox-mode has a slight delay, such that I can only move by about 30
1422 > lines per second).
1423
1424 Another thing I would love to fix. Profiling is the first step.
1425 --
1426 William <wmorgan-sup at masanjin.net>
1427
1428 From wmorgan-sup@masanjin.net Mon May 19 19:44:12 2008
1429 From: wmorgan-sup@masanjin.net (William Morgan)
1430 Date: Mon, 19 May 2008 16:44:12 -0700
1431 Subject: [sup-talk] Beginner questions
1432 In-Reply-To: <47149.192.168.1.71.1209955723.webmail@192.168.1.71>
1433 References: <47149.192.168.1.71.1209955723.webmail@192.168.1.71>
1434 Message-ID: <1211240629-sup-5564@south>
1435
1436 Reformatted excerpts from Kendall Grant Clark's message of 2008-05-04:
1437 > Which reminds me that, as of 0.5 release, the bug I reported about
1438 > &-killed threads reappearing is still present.
1439
1440 Scheduled for 0.6, fwiw.
1441
1442 http://sup.rubyforge.org/ditz/issue-60d86dd32054533a6206f698033ec668af6a7574.html
1443 --
1444 William <wmorgan-sup at masanjin.net>
1445
1446 From wmorgan-sup@masanjin.net Mon May 19 23:29:21 2008
1447 From: wmorgan-sup@masanjin.net (William Morgan)
1448 Date: Mon, 19 May 2008 20:29:21 -0700
1449 Subject: [sup-talk] [PATCH] maildir speedups
1450 In-Reply-To: <f96e0240804301150w5e07823cuf3b16fc7dffa759e@mail.gmail.com>
1451 References: <f96e0240804301150w5e07823cuf3b16fc7dffa759e@mail.gmail.com>
1452 Message-ID: <1211254100-sup-9575@south>
1453
1454 Reformatted excerpts from Ben Walton's message of 2008-04-30:
1455 > The attached small patch improves maildir performance by making the
1456 > assumption that nothing will be modifying the underlying files
1457 > themselves. It uses the mtimes of cur/ and new/ to mark whether or
1458 > not to poll files in the directory.
1459
1460 This sounds great. My only comment is that the Logger::log stuff should
1461 probably be Redwood::log. If you make that change I'm happy to apply.
1462 --
1463 William <wmorgan-sup at masanjin.net>
1464
1465 From wmorgan-sup@masanjin.net Tue May 20 00:42:57 2008
1466 From: wmorgan-sup@masanjin.net (William Morgan)
1467 Date: Mon, 19 May 2008 21:42:57 -0700
1468 Subject: [sup-talk] skip_killed not getting set in default config
1469 In-Reply-To: <1209555731-sup-8618@black-opal>
1470 References: <1209555731-sup-8618@black-opal>
1471 Message-ID: <1211258383-sup-445@south>
1472
1473 Reformatted excerpts from Kevin Riggle's message of 2008-04-30:
1474 > I've just started using Sup, and I quite like it. It's always
1475 > wonderful to discover that someone else has developed *exactly the
1476 > software you wanted*, and done such a bang-up job of it. Thank you!
1477
1478 Thanks! Welcome aboard.
1479
1480 > I have, however, run into a few bugs. At the moment, the most notable
1481 > one is that killed threads would show up in my inbox again, +killed
1482 > label and all, which sort of defeats the purpose of killing them.
1483
1484 Yes, this has been working intermittently and I haven't gotten a chance
1485 to look at the current breakage.
1486
1487 > I poked around in the source and discovered the skip_killed option,
1488 > which inbox-mode seems to initialize to true. When I added
1489 >
1490 > :skip_killed: true
1491 >
1492 > to the end of my ~/.sup/config.yaml, which had previously been exactly
1493 > as sup-config created it, the killed threads no longer showed up in my
1494 > inbox.
1495
1496 That shouldn't have made a difference. There is a :skip_killed option in
1497 the code, but it's not related to the configuration file. If you grep
1498 for $config you'll see how the config file is used.
1499
1500 (The :skip_killed: internal flag is there only so it can be be turned
1501 off when you're explicitly searching for killed messages.)
1502 --
1503 William <wmorgan-sup at masanjin.net>
1504
1505 From tyberius_prime@coonabibba.de Tue May 20 04:39:52 2008
1506 From: tyberius_prime@coonabibba.de (Tyberius Prime)
1507 Date: Tue, 20 May 2008 10:39:52 +0200
1508 Subject: [sup-talk] Impossible to git-clone
1509 In-Reply-To: <1211232437-sup-181@south>
1510 References: <20080519103655.GA22093@ubik> <1211208577-sup-4967@south>
1511 <1211209857-sup-2702@h984274.serverkompetenz.net>
1512 <1211211848-sup-1432@south>
1513 <1211216506-sup-7262@h984274.serverkompetenz.net>
1514 <1211232437-sup-181@south>
1515 Message-ID: <1211272572-sup-323@h984274.serverkompetenz.net>
1516
1517 Excerpts from William Morgan's message of Mon May 19 23:31:18 +0200 2008:
1518 > Reformatted excerpts from Tyberius Prime's message of 2008-05-19:
1519 > > I believe so (ssh/putty on windows...)
1520
1521 > In that case we've exhausted my knowledge of wide characters. Your
1522 > locale seems fine and your ncursesw seems like it's being loaded. I
1523 > guess it's something about putty, but I'm not sure what.
1524
1525 Indeed. Putty has a Window/translation/"Received data assumed to be in which character set" setting,
1526 that makes my umlauts appear. Now I'm happy ;)
1527
1528 I've taken the liberty to add a note to the appropriate wiki page.
1529
1530 --
1531 So long,
1532 Tyberius Prime
1533
1534 From marcus-sup@bar-coded.net Tue May 20 11:03:08 2008
1535 From: marcus-sup@bar-coded.net (Marcus Williams)
1536 Date: Tue, 20 May 2008 16:03:08 +0100
1537 Subject: [sup-talk] IMAP server restart causes Sup exception
1538 In-Reply-To: <1211238704-sup-2539@south>
1539 References: <1210728028-sup-3439@black-opal> <1211238704-sup-2539@south>
1540 Message-ID: <1211295759-sup-614@tomsk>
1541
1542 On 20.5.2008, William Morgan wrote:
1543 > > closed stream
1544 > > /usr/lib/ruby/1.8/openssl/buffering.rb:237:in `select'
1545 > > ./lib/sup/buffer.rb:31:in `nonblocking_getch'
1546 > > bin/sup:227
1547 >
1548 > This backtrace doesn't really make any sense. There's no reason that
1549 > nonblocking_getch would be calling the openssl stuff, and openssl's
1550 > buffering.rb doesn't mention select at all. Weird.
1551
1552 I should pipe up here as well - this exception was one of the reasons
1553 I switched to offlineimap as I would get it randomly in sup during
1554 imap actions. I couldnt figure out how they interacted with each other
1555 though as it didnt happen enough to debug :(
1556
1557 Marcus
1558
1559 From wmorgan-sup@masanjin.net Tue May 20 12:00:10 2008
1560 From: wmorgan-sup@masanjin.net (William Morgan)
1561 Date: Tue, 20 May 2008 09:00:10 -0700
1562 Subject: [sup-talk] Impossible to git-clone
1563 In-Reply-To: <1211272572-sup-323@h984274.serverkompetenz.net>
1564 References: <20080519103655.GA22093@ubik> <1211208577-sup-4967@south>
1565 <1211209857-sup-2702@h984274.serverkompetenz.net>
1566 <1211211848-sup-1432@south>
1567 <1211216506-sup-7262@h984274.serverkompetenz.net>
1568 <1211232437-sup-181@south>
1569 <1211272572-sup-323@h984274.serverkompetenz.net>
1570 Message-ID: <1211299106-sup-4575@south>
1571
1572 Reformatted excerpts from Tyberius Prime's message of 2008-05-20:
1573 > Indeed. Putty has a Window/translation/"Received data assumed to be in
1574 > which character set" setting, that makes my umlauts appear. Now I'm
1575 > happy ;)
1576
1577 Awesome.
1578
1579 > I've taken the liberty to add a note to the appropriate wiki page.
1580
1581 Thanks!
1582 --
1583 William <wmorgan-sup at masanjin.net>
1584
1585 From wmorgan-sup@masanjin.net Tue May 20 12:05:59 2008
1586 From: wmorgan-sup@masanjin.net (William Morgan)
1587 Date: Tue, 20 May 2008 09:05:59 -0700
1588 Subject: [sup-talk] IMAP server restart causes Sup exception
1589 In-Reply-To: <1211295759-sup-614@tomsk>
1590 References: <1210728028-sup-3439@black-opal> <1211238704-sup-2539@south>
1591 <1211295759-sup-614@tomsk>
1592 Message-ID: <1211299258-sup-2226@south>
1593
1594 Reformatted excerpts from Marcus Williams's message of 2008-05-20:
1595 > I should pipe up here as well - this exception was one of the reasons
1596 > I switched to offlineimap as I would get it randomly in sup during
1597 > imap actions. I couldnt figure out how they interacted with each other
1598 > though as it didnt happen enough to debug :(
1599
1600 Interesting. I've had weird issues in the past with the Ruby IMAP
1601 library and threading, so this might be related. I've definitely seen it
1602 generate nonsensical backtraces by funny exception handling across
1603 threads.
1604
1605 Simultaneous dependencies on 20 libaries of dubious quality---that's the
1606 story of Sup.
1607
1608 Well once I get up the energy to write SupServer, I won't have to
1609 support anything except for mbox anymore!
1610 --
1611 William <wmorgan-sup at masanjin.net>
1612
1613 From bdwalton@gmail.com Tue May 20 12:23:31 2008
1614 From: bdwalton@gmail.com (Ben Walton)
1615 Date: Tue, 20 May 2008 12:23:31 -0400
1616 Subject: [sup-talk] IMAP server restart causes Sup exception
1617 In-Reply-To: <1211299258-sup-2226@south>
1618 References: <1210728028-sup-3439@black-opal> <1211238704-sup-2539@south>
1619 <1211295759-sup-614@tomsk> <1211299258-sup-2226@south>
1620 Message-ID: <f96e0240805200923r6eb46c9fwc53dcc99c63489d5@mail.gmail.com>
1621
1622 On Tue, May 20, 2008 at 12:05 PM, William Morgan
1623 <wmorgan-sup at masanjin.net> wrote:
1624 > Interesting. I've had weird issues in the past with the Ruby IMAP
1625 > library and threading, so this might be related. I've definitely seen it
1626 > generate nonsensical backtraces by funny exception handling across
1627 > threads.
1628
1629 I think you'll find that things get better if you do plain IMAP with
1630 stunnel instead of relying on the ssl support in ruby/ruby-imap. I
1631 had horrible (to the point where I almost had to switch away from
1632 ruby) problems with a project that relied on the ability to do imaps.
1633 The imap library may be partially to blame (and the imap spec
1634 requiring threading doesn't help...), but I found that things got much
1635 better without ssl being handled by ruby.
1636
1637 -Ben
1638 --
1639 ---------------------------------------------------------------------------------------------------------------------------
1640 Ben Walton <bdwalton at gmail.com>
1641
1642 When one person suffers from a delusion, it is called insanity. When
1643 many people suffer from a delusion it is called Religion.
1644 Robert M. Pirsig, Zen and the Art of Motorcycle Maintenance
1645
1646 ---------------------------------------------------------------------------------------------------------------------------
1647
1648 From bdwalton@gmail.com Tue May 20 21:08:48 2008
1649 From: bdwalton@gmail.com (Ben Walton)
1650 Date: Tue, 20 May 2008 21:08:48 -0400
1651 Subject: [sup-talk] [PATCH] maildir speedups
1652 In-Reply-To: <f96e0240805200924u1c991392oe36de853e208bab8@mail.gmail.com>
1653 References: <f96e0240804301150w5e07823cuf3b16fc7dffa759e@mail.gmail.com>
1654 <1211254100-sup-9575@south>
1655 <f96e0240805200924u1c991392oe36de853e208bab8@mail.gmail.com>
1656 Message-ID: <f96e0240805201808k4bcf9947j45779b751a9abb66@mail.gmail.com>
1657
1658 Ok, the attached patch should address the use of Logger::log vs
1659 Redwood::log. Additionally, I changed the names of the cached mtimes
1660 and corrected a bug that saw new sources not work correctly.
1661
1662 I hope you find this acceptable (and useful).
1663
1664 -Ben
1665 --
1666 ---------------------------------------------------------------------------------------------------------------------------
1667 Ben Walton <bdwalton at gmail.com>
1668
1669 When one person suffers from a delusion, it is called insanity. When
1670 many people suffer from a delusion it is called Religion.
1671 Robert M. Pirsig, Zen and the Art of Motorcycle Maintenance
1672
1673 ---------------------------------------------------------------------------------------------------------------------------
1674 -------------- next part --------------
1675 A non-text attachment was scrubbed...
1676 Name: 0001-maildir-speedups.patch
1677 Type: text/x-diff
1678 Size: 4549 bytes
1679 Desc: not available
1680 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080520/648ed94d/attachment.bin>
1681
1682 From itaylor@uark.edu Tue May 20 21:41:18 2008
1683 From: itaylor@uark.edu (Ian Taylor)
1684 Date: Tue, 20 May 2008 21:41:18 -0400
1685 Subject: [sup-talk] attachments dropped for drafts
1686 Message-ID: <1211333971-sup-8723@red>
1687
1688 Attachments are dropped when saving as a draft.
1689
1690 --
1691 Ian Taylor
1692
1693 From itaylor@uark.edu Tue May 20 21:39:03 2008
1694 From: itaylor@uark.edu (Ian Taylor)
1695 Date: Tue, 20 May 2008 21:39:03 -0400
1696 Subject: [sup-talk] [PATCH] gpg exact match
1697 Message-ID: <1211333682-sup-5934@red>
1698
1699 I think gnupg developers made a poor choice for the --recipient option,
1700 so this patch is needed.
1701
1702 ### FROM GPG MAN PAGE ###
1703
1704 HOW TO SPECIFY A USER ID
1705 ...
1706 By exact match on an email address.
1707 This is indicated by enclosing the email address in the usual way with
1708 left and right angles.
1709
1710 <heinrichh at uni-duesseldorf.de>
1711
1712 ...
1713
1714 By substring match.
1715 This is the default mode but applications may want to explicitly
1716 indicate this by putting the asterisk in front. Match is not case
1717 sensitive.
1718
1719 Heine
1720 *Heine
1721
1722 ##########################
1723
1724 The problem arose when a friend of mine was trying to send a mail to me
1725 brian at lorf.org -> ian at lorf.org
1726
1727 Instead of using me for a recipient, it was using him.
1728
1729 The supplied patch should fix this behavior.
1730
1731 --
1732 Ian Taylor
1733 -------------- next part --------------
1734 A non-text attachment was scrubbed...
1735 Name: 0001-exact-match-gpg-fix.patch
1736 Type: application/octet-stream
1737 Size: 909 bytes
1738 Desc: not available
1739 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080520/ffda8fc4/attachment.obj>
1740
1741 From lister.lists@gmail.com Wed May 21 01:17:27 2008
1742 From: lister.lists@gmail.com (Emil Jensen)
1743 Date: Wed, 21 May 2008 15:17:27 +1000
1744 Subject: [sup-talk] Need help with sorting "To" with hook
1745 Message-ID: <1211346762-sup-263@hells>
1746
1747 Hi,
1748
1749 I love sup, and I'm using it mostly with a gmail account.
1750 However, I can't find a hook to sort emails by the "To" field.
1751 I just signed up to the Ruby mailing lists which are a complete mess.
1752 I'm thinking of something like the:
1753
1754 "message.add_label "yahoo" if message.from.email =~ /@yahoo/"
1755
1756 hook already on the sup wiki, and I've tried and failed to change it to modify emails To @ruby.
1757
1758 Can anyone help me with this? It will probably only take someone familiar with the code about 5 seconds.
1759
1760 Thanks!
1761
1762 From white.magic@gmx.de Sat May 24 15:03:26 2008
1763 From: white.magic@gmx.de (Lionel Ott)
1764 Date: Sat, 24 May 2008 21:03:26 +0200
1765 Subject: [sup-talk] [PATCH] add ask-before-quitting stuff
1766 Message-ID: <1211655623-sup-5188@Hel>
1767
1768 old hotkey "q" now asks before quitting and "Q" quits immediately, the way
1769 "q" used to work. ( should take care of
1770 http://sup.rubyforge.org/ditz/issue-8aa7ea95f066fd0668452093b85903bd142905c9.html )
1771 ---
1772 Hope the patch format is correct, as I've not really used git for anything
1773 where I had to commit patches.
1774 I mainly did this patch because in the beginning when using sup I constantly
1775 tried to close buffers with q :-)
1776
1777 bin/sup | 9 +++++++--
1778 1 files changed, 7 insertions(+), 2 deletions(-)
1779
1780 diff --git a/bin/sup b/bin/sup
1781 index 6360cde..723b1ed 100644
1782 --- a/bin/sup
1783 +++ b/bin/sup
1784 @@ -55,7 +55,8 @@ Thread.abort_on_exception = true # make debugging possible
1785 module Redwood
1786
1787 global_keymap = Keymap.new do |k|
1788 - k.add :quit, "Quit Redwood", 'q'
1789 + k.add :quit_ask, "Quit Sup, but ask first", 'q'
1790 + k.add :quit_now, "Quit Sup immediately", 'Q'
1791 k.add :help, "Show help", 'H', '?'
1792 k.add :roll_buffers, "Switch to next buffer", 'b'
1793 # k.add :roll_buffers_backwards, "Switch to previous buffer", 'B'
1794 @@ -240,8 +241,12 @@ begin
1795 end
1796
1797 case action
1798 - when :quit
1799 + when :quit_now
1800 break if bm.kill_all_buffers_safely
1801 + when :quit_ask
1802 + if bm.ask_yes_or_no "Really quit?"
1803 + break if bm.kill_all_buffers_safely
1804 + end
1805 when :help
1806 curmode = bm.focus_buf.mode
1807 bm.spawn_unless_exists("<help for #{curmode.name}>") { HelpMode.new curmode, global_keymap }
1808 --
1809 1.5.5.1
1810
1811
1812
1813 From wmorgan-sup@masanjin.net Sat May 24 22:07:43 2008
1814 From: wmorgan-sup@masanjin.net (William Morgan)
1815 Date: Sat, 24 May 2008 19:07:43 -0700
1816 Subject: [sup-talk] [PATCH] add ask-before-quitting stuff
1817 In-Reply-To: <1211655623-sup-5188@Hel>
1818 References: <1211655623-sup-5188@Hel>
1819 Message-ID: <1211681230-sup-1644@south>
1820
1821 Applied to master, thanks!
1822 --
1823 William <wmorgan-sup at masanjin.net>
1824
1825 From wmorgan-sup@masanjin.net Sat May 24 22:10:31 2008
1826 From: wmorgan-sup@masanjin.net (William Morgan)
1827 Date: Sat, 24 May 2008 19:10:31 -0700
1828 Subject: [sup-talk] Need help with sorting "To" with hook
1829 In-Reply-To: <1211346762-sup-263@hells>
1830 References: <1211346762-sup-263@hells>
1831 Message-ID: <1211681341-sup-5126@south>
1832
1833 Reformatted excerpts from lister.lists's message of 2008-05-20:
1834 > I love sup, and I'm using it mostly with a gmail account.
1835 > However, I can't find a hook to sort emails by the "To" field.
1836
1837 I asusme you mean label, not sort...
1838
1839 > I just signed up to the Ruby mailing lists which are a complete mess.
1840 > I'm thinking of something like the:
1841 >
1842 > "message.add_label "yahoo" if message.from.email =~ /@yahoo/"
1843 >
1844 > hook already on the sup wiki, and I've tried and failed to change it
1845 > to modify emails To @ruby.
1846
1847 What does your before-add-message hook look like? Something like this?
1848
1849 message.add_label "ruby" if message.to.email =~ /ruby-talk@/
1850 --
1851 William <wmorgan-sup at masanjin.net>
1852
1853 From kingshivan@gmail.com Wed May 21 19:15:26 2008
1854 From: kingshivan@gmail.com (kingshivan at gmail.com)
1855 Date: Wed, 21 May 2008 16:15:26 -0700
1856 Subject: [sup-talk] Flat-view anyone ?
1857 Message-ID: <1211411387-sup-4463@altis>
1858
1859 I mentionned that idea a while back on that ml, but had no feedback, so,
1860 here I go again.
1861
1862 How hard would that be to implement a flat view for thread, instead of
1863 the tree view ? I agree that the tree makes more sense but I sometimes
1864 miss the chronological order shown by gmail.
1865
1866 I read a bit through the code, and understood that thread are actually
1867 stored as tree, would that make a flat view hard to provide ?
1868
1869 I'm not a ruby coder, but if it's easy to do, I'd be glad to provide a
1870 patch (but it's always nice if I can get the work done by someone else
1871 ;-) ).
1872
1873 regards
1874
1875 --
1876 Guillaume
1877
1878 From wmorgan-sup@masanjin.net Sat May 24 22:14:49 2008
1879 From: wmorgan-sup@masanjin.net (William Morgan)
1880 Date: Sat, 24 May 2008 19:14:49 -0700
1881 Subject: [sup-talk] attachments dropped for drafts
1882 In-Reply-To: <1211333971-sup-8723@red>
1883 References: <1211333971-sup-8723@red>
1884 Message-ID: <1211681541-sup-1853@south>
1885
1886 Reformatted excerpts from Ian Taylor's message of 2008-05-20:
1887 > Attachments are dropped when saving as a draft.
1888
1889 I've added this to ditz.
1890 --
1891 William <wmorgan-sup at masanjin.net>
1892
1893 From wmorgan-sup@masanjin.net Sat May 24 22:19:28 2008
1894 From: wmorgan-sup@masanjin.net (William Morgan)
1895 Date: Sat, 24 May 2008 19:19:28 -0700
1896 Subject: [sup-talk] [PATCH] gpg exact match
1897 In-Reply-To: <1211333682-sup-5934@red>
1898 References: <1211333682-sup-5934@red>
1899 Message-ID: <1211681956-sup-9157@south>
1900
1901 Applied directly to master, thanks!
1902 --
1903 William <wmorgan-sup at masanjin.net>
1904
1905 From wmorgan-sup@masanjin.net Sat May 24 22:34:03 2008
1906 From: wmorgan-sup@masanjin.net (William Morgan)
1907 Date: Sat, 24 May 2008 19:34:03 -0700
1908 Subject: [sup-talk] [PATCH] maildir speedups
1909 In-Reply-To: <f96e0240805201808k4bcf9947j45779b751a9abb66@mail.gmail.com>
1910 References: <f96e0240804301150w5e07823cuf3b16fc7dffa759e@mail.gmail.com>
1911 <1211254100-sup-9575@south>
1912 <f96e0240805200924u1c991392oe36de853e208bab8@mail.gmail.com>
1913 <f96e0240805201808k4bcf9947j45779b751a9abb66@mail.gmail.com>
1914 Message-ID: <1211682829-sup-9284@south>
1915
1916 Published on 'maildir-speedups' and merged into next. Thanks!
1917 --
1918 William <wmorgan-sup at masanjin.net>
1919
1920 From wmorgan-sup@masanjin.net Sat May 24 22:39:19 2008
1921 From: wmorgan-sup@masanjin.net (William Morgan)
1922 Date: Sat, 24 May 2008 19:39:19 -0700
1923 Subject: [sup-talk] Flat-view anyone ?
1924 In-Reply-To: <1211411387-sup-4463@altis>
1925 References: <1211411387-sup-4463@altis>
1926 Message-ID: <1211682890-sup-658@south>
1927
1928 Reformatted excerpts from kingshivan's message of 2008-05-21:
1929 > How hard would that be to implement a flat view for thread, instead of
1930 > the tree view ? I agree that the tree makes more sense but I sometimes
1931 > miss the chronological order shown by gmail.
1932
1933 Not trivial but not ridiculously hard. I would add an each_by_date
1934 method to Thread, and have ThreadViewMode call that instead of
1935 Thread#each based on some configuration variable.
1936
1937 I've added this to ditz:
1938
1939 http://sup.rubyforge.org/ditz/issue-5795c3c1b47e88f7261f57f31d33fe15ad08465d.html
1940 --
1941 William <wmorgan-sup at masanjin.net>
1942
1943 From wmorgan-sup@masanjin.net Sat May 24 22:45:14 2008
1944 From: wmorgan-sup@masanjin.net (William Morgan)
1945 Date: Sat, 24 May 2008 19:45:14 -0700
1946 Subject: [sup-talk] IMAP server restart causes Sup exception
1947 In-Reply-To: <f96e0240805200923r6eb46c9fwc53dcc99c63489d5@mail.gmail.com>
1948 References: <1210728028-sup-3439@black-opal> <1211238704-sup-2539@south>
1949 <1211295759-sup-614@tomsk> <1211299258-sup-2226@south>
1950 <f96e0240805200923r6eb46c9fwc53dcc99c63489d5@mail.gmail.com>
1951 Message-ID: <1211683173-sup-855@south>
1952
1953 Reformatted excerpts from Ben Walton's message of 2008-05-20:
1954 > I think you'll find that things get better if you do plain IMAP with
1955 > stunnel instead of relying on the ssl support in ruby/ruby-imap. I
1956 > had horrible (to the point where I almost had to switch away from
1957 > ruby) problems with a project that relied on the ability to do imaps.
1958 > The imap library may be partially to blame (and the imap spec
1959 > requiring threading doesn't help...), but I found that things got much
1960 > better without ssl being handled by ruby.
1961
1962 Interesting. I didn't know about stunnel. Kevin, if you're seeing this
1963 on a regular basis, you could try that... or switch to offlineimap like
1964 everyone else has for performance reasons.
1965
1966 Sup's IMAP support leaves a lot to be desired and I'm happy to blame
1967 this library. Irritatingly slow, and prone to insane errors like this
1968 one. I don't want to disable it, though, and I sure as heck don't want
1969 to write my own IMAP library. So for the time being we're stuck with it.
1970 --
1971 William <wmorgan-sup at masanjin.net>
1972
1973 From wmorgan-sup@masanjin.net Sat May 24 22:49:01 2008
1974 From: wmorgan-sup@masanjin.net (William Morgan)
1975 Date: Sat, 24 May 2008 19:49:01 -0700
1976 Subject: [sup-talk] [PATCH] change yellow-on-cyan of selected starred
1977 messages to blue-on-cyan
1978 In-Reply-To: <1210001502-sup-9255@black-opal>
1979 References: <1210001502-sup-9255@black-opal>
1980 Message-ID: <1211683626-sup-8621@south>
1981
1982 Reformatted excerpts from Kevin Riggle's message of 2008-05-05:
1983 > I can't read the yellow-on-cyan subject lines of starred messages when
1984 > the cursor is on them -- this patch changes them to blue-on-cyan
1985 > instead.
1986
1987 Thanks! But I would much rather get Dag Odenhall's configurable colors
1988 patch in, and then you can tweak this to your heart's content. :)
1989
1990 Dag, any news or progress?
1991 --
1992 William <wmorgan-sup at masanjin.net>
1993
1994 From wmorgan-sup@masanjin.net Sat May 24 23:27:36 2008
1995 From: wmorgan-sup@masanjin.net (William Morgan)
1996 Date: Sat, 24 May 2008 20:27:36 -0700
1997 Subject: [sup-talk] [Patch] From auto completion
1998 In-Reply-To: <1209750543-sup-2407@h984274.serverkompetenz.net>
1999 References: <1209750543-sup-2407@h984274.serverkompetenz.net>
2000 Message-ID: <1211685809-sup-4570@south>
2001
2002 Hi Tyberius,
2003
2004 Thanks for the patch. You can merge multiple commits together with git
2005 rebase -i, or you can commit --amend each time to merge current changes
2006 into the previous commit.
2007
2008 I like the idea of this patch, but instead of
2009 AccountManager#user_accounts_autocompletion, could you add a
2010 BufferManager#ask_for_account, similar to #ask_for_contact works? Then
2011 the whole flow will be basically the same as editing the other fields.
2012
2013 Also note that you don't need semicolons at the end of statements in
2014 Ruby. :)
2015 --
2016 William <wmorgan-sup at masanjin.net>
2017
2018 From wmorgan-sup@masanjin.net Sun May 25 00:10:50 2008
2019 From: wmorgan-sup@masanjin.net (William Morgan)
2020 Date: Sat, 24 May 2008 21:10:50 -0700
2021 Subject: [sup-talk] [PATCH] Gmail style attachment processing
2022 In-Reply-To: <1209501856-sup-1982@tomsk>
2023 References: <1209501856-sup-1982@tomsk>
2024 Message-ID: <1211688623-sup-7801@south>
2025
2026 Very nice. Published as 'attachments' and merged into next. Thanks!
2027 --
2028 William <wmorgan-sup at masanjin.net>
2029
2030 From white.magic@gmx.de Sun May 25 17:51:49 2008
2031 From: white.magic@gmx.de (Lionel Ott)
2032 Date: Sun, 25 May 2008 23:51:49 +0200
2033 Subject: [sup-talk] [PATCH] sup color customization
2034 Message-ID: <1211751572-sup-9094@Hel>
2035
2036 - config file is located under $HOME/.sup/config.yaml and has the following
2037 structure
2038
2039 :colors:
2040 :symbol_name:
2041 :fg: <color>
2042 :bg: <color>
2043 :attrs:
2044 - <attribute>
2045
2046 <color> and <attribute> can take the standard values available in the curses
2047 environment.
2048 There may be multiple attributes, but they need not be present.
2049 - if there is an error in the user provided config file a default value will
2050 be used (stored in the Colormap class)
2051 ---
2052
2053 I started to write such a patch when I saw that there was already some work
2054 done on it so I took a look at Dag Odenhall's patch and took it from there.
2055
2056 Not sure if this is the best way. It moves the whole colormap definition
2057 out of bin/sup into the colormap class itself.
2058 Should this be merged I'd probably write some lines to pass along with sup
2059 so it's clear what to do with the config file and what the possible
2060 options are.
2061
2062
2063 bin/sup | 48 +-----------------------------
2064 lib/sup.rb | 1 +
2065 lib/sup/colormap.rb | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++-
2066 3 files changed, 82 insertions(+), 47 deletions(-)
2067
2068 diff --git a/bin/sup b/bin/sup
2069 index 723b1ed..a814b1c 100644
2070 --- a/bin/sup
2071 +++ b/bin/sup
2072 @@ -79,6 +79,7 @@ def start_cursing
2073 Ncurses.stdscr.keypad 1
2074 Ncurses.curs_set 0
2075 Ncurses.start_color
2076 + Ncurses.use_default_colors
2077 $cursing = true
2078 end
2079
2080 @@ -140,53 +141,8 @@ begin
2081 log "starting curses"
2082 start_cursing
2083
2084 - Colormap.new do |c|
2085 - c.add :status_color, Ncurses::COLOR_WHITE, Ncurses::COLOR_BLUE, Ncurses::A_BOLD
2086 - c.add :index_old_color, Ncurses::COLOR_WHITE, Ncurses::COLOR_BLACK
2087 - c.add :index_new_color, Ncurses::COLOR_WHITE, Ncurses::COLOR_BLACK,
2088 - Ncurses::A_BOLD
2089 - c.add :index_starred_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK,
2090 - Ncurses::A_BOLD
2091 - c.add :index_draft_color, Ncurses::COLOR_RED, Ncurses::COLOR_BLACK,
2092 - Ncurses::A_BOLD
2093 - c.add :labellist_old_color, Ncurses::COLOR_WHITE, Ncurses::COLOR_BLACK
2094 - c.add :labellist_new_color, Ncurses::COLOR_WHITE, Ncurses::COLOR_BLACK,
2095 - Ncurses::A_BOLD
2096 - c.add :twiddle_color, Ncurses::COLOR_BLUE, Ncurses::COLOR_BLACK
2097 - c.add :label_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK
2098 - c.add :message_patina_color, Ncurses::COLOR_BLACK, Ncurses::COLOR_GREEN
2099 - c.add :alternate_patina_color, Ncurses::COLOR_BLACK, Ncurses::COLOR_BLUE
2100 - c.add :missing_message_color, Ncurses::COLOR_BLACK, Ncurses::COLOR_RED
2101 - c.add :attachment_color, Ncurses::COLOR_CYAN, Ncurses::COLOR_BLACK
2102 - c.add :cryptosig_valid_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK, Ncurses::A_BOLD
2103 - c.add :cryptosig_unknown_color, Ncurses::COLOR_CYAN, Ncurses::COLOR_BLACK
2104 - c.add :cryptosig_invalid_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_RED, Ncurses::A_BOLD
2105 - c.add :generic_notice_patina_color, Ncurses::COLOR_CYAN, Ncurses::COLOR_BLACK
2106 - c.add :quote_patina_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK
2107 - c.add :sig_patina_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK
2108 - c.add :quote_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK
2109 - c.add :sig_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK
2110 - c.add :to_me_color, Ncurses::COLOR_GREEN, Ncurses::COLOR_BLACK
2111 - c.add :starred_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK,
2112 - Ncurses::A_BOLD
2113 - c.add :starred_patina_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_GREEN,
2114 - Ncurses::A_BOLD
2115 - c.add :alternate_starred_patina_color, Ncurses::COLOR_YELLOW,
2116 - Ncurses::COLOR_BLUE, Ncurses::A_BOLD
2117 - c.add :snippet_color, Ncurses::COLOR_CYAN, Ncurses::COLOR_BLACK
2118 - c.add :option_color, Ncurses::COLOR_WHITE, Ncurses::COLOR_BLACK
2119 - c.add :tagged_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK,
2120 - Ncurses::A_BOLD
2121 - c.add :draft_notification_color, Ncurses::COLOR_RED, Ncurses::COLOR_BLACK,
2122 - Ncurses::A_BOLD
2123 - c.add :completion_character_color, Ncurses::COLOR_WHITE,
2124 - Ncurses::COLOR_BLACK, Ncurses::A_BOLD
2125 - c.add :horizontal_selector_selected_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK, Ncurses::A_BOLD
2126 - c.add :horizontal_selector_unselected_color, Ncurses::COLOR_CYAN, Ncurses::COLOR_BLACK
2127 - c.add :search_highlight_color, Ncurses::COLOR_BLACK, Ncurses::COLOR_YELLOW, Ncurses::A_BOLD, :highlight => :search_highlight_color
2128 - end
2129 -
2130 bm = BufferManager.new
2131 + Colormap.new
2132
2133 log "initializing mail index buffer"
2134 imode = InboxMode.new
2135 diff --git a/lib/sup.rb b/lib/sup.rb
2136 index 9e90267..9a4d72d 100644
2137 --- a/lib/sup.rb
2138 +++ b/lib/sup.rb
2139 @@ -37,6 +37,7 @@ module Redwood
2140
2141 BASE_DIR = ENV["SUP_BASE"] || File.join(ENV["HOME"], ".sup")
2142 CONFIG_FN = File.join(BASE_DIR, "config.yaml")
2143 + COLOR_FN = File.join(BASE_DIR, "colors.yaml")
2144 SOURCE_FN = File.join(BASE_DIR, "sources.yaml")
2145 LABEL_FN = File.join(BASE_DIR, "labels.txt")
2146 PERSON_FN = File.join(BASE_DIR, "people.txt")
2147 diff --git a/lib/sup/colormap.rb b/lib/sup/colormap.rb
2148 index 9c6869a..8129bcf 100644
2149 --- a/lib/sup/colormap.rb
2150 +++ b/lib/sup/colormap.rb
2151 @@ -1,3 +1,7 @@
2152 +module Curses
2153 + COLOR_DEFAULT = -1
2154 +end
2155 +
2156 module Redwood
2157
2158 class Colormap
2159 @@ -6,8 +10,44 @@ class Colormap
2160 CURSES_COLORS = [Curses::COLOR_BLACK, Curses::COLOR_RED, Curses::COLOR_GREEN,
2161 Curses::COLOR_YELLOW, Curses::COLOR_BLUE,
2162 Curses::COLOR_MAGENTA, Curses::COLOR_CYAN,
2163 - Curses::COLOR_WHITE]
2164 + Curses::COLOR_WHITE, Curses::COLOR_DEFAULT]
2165 NUM_COLORS = 15
2166 +
2167 + DEFAULT_COLORS = {
2168 + :status => { :fg => "white", :bg => "blue", :attrs => ["bold"] },
2169 + :index_old => { :fg => "white", :bg => "black" },
2170 + :index_new => { :fg => "white", :bg => "black", :attrs => ["bold"] },
2171 + :index_starred => { :fg => "yellow", :bg => "black", :attrs => ["bold"] },
2172 + :index_draft => { :fg => "red", :bg => "black", :attrs => ["bold"] },
2173 + :labellist_old => { :fg => "white", :bg => "black" },
2174 + :labellist_new => { :fg => "white", :bg => "black", :attrs => ["bold"] },
2175 + :twiddle => { :fg => "blue", :bg => "black" },
2176 + :label => { :fg => "yellow", :bg => "black" },
2177 + :message_patina => { :fg => "black", :bg => "green" },
2178 + :alternate_patina => { :fg => "black", :bg => "blue" },
2179 + :missing_message => { :fg => "black", :bg => "red" },
2180 + :attachment => { :fg => "cyan", :bg => "black" },
2181 + :cryptosig_valid => { :fg => "yellow", :bg => "black", :attrs => ["bold"] },
2182 + :cryptosig_unknown => { :fg => "cyan", :bg => "black" },
2183 + :cryptosig_invalid => { :fg => "yellow", :bg => "red", :attrs => ["bold"] },
2184 + :generic_notice_patina => { :fg => "cyan", :bg => "black" },
2185 + :quote_patina => { :fg => "yellow", :bg => "black" },
2186 + :sig_patina => { :fg => "yellow", :bg => "black" },
2187 + :quote => { :fg => "yellow", :bg => "black" },
2188 + :sig => { :fg => "yellow", :bg => "black" },
2189 + :to_me => { :fg => "green", :bg => "black" },
2190 + :starred => { :fg => "yellow", :bg => "black", :attrs => ["bold"] },
2191 + :starred_patina => { :fg => "yellow", :bg => "green", :attrs => ["bold"] },
2192 + :alternate_starrte_colormap
2193 end
2194
2195 def add sym, fg, bg, attr=nil, opts={}
2196 @@ -108,6 +149,43 @@ class Colormap
2197 color
2198 end
2199
2200 + ## Try to use the user defined colors, in case of an error fall back
2201 + ## to the default ones.
2202 + def populate_colormap
2203 + if File.exists? Redwood::COLOR_FN
2204 + user_colors = Redwood::load_yaml_obj Redwood::COLOR_FN
2205 + end
2206 +
2207 + errors = []
2208 +
2209 + Colormap::DEFAULT_COLORS.each_pair do |k, v|
2210 + fg = Curses.const_get "COLOR_#{v[:fg].upcase}"
2211 + bg = Curses.const_get "COLOR_#{v[:bg].upcase}"
2212 + attrs = v[:attrs].map { |a| Curses.const_get "A_#{a.upcase}" } rescue attrs
2213 +
2214 + if(ucolor = user_colors[:colors][k])
2215 + begin
2216 + fg = Curses.const_get "COLOR_#{ucolor[:fg].upcase}"
2217 + rescue NameError
2218 + errors << "Warning: There is no color named \"#{ucolor[:fg]}\", using fallback."
2219 + Redwood::log "Warning: There is no color named \"#{ucolor[:fg]}\""
2220 + end
2221 + begin
2222 + bg = Curses.const_get "COLOR_#{ucolor[:bg].upcase}"
2223 + rescue NameError
2224 + errors << "Warning: There is no color named \"#{ucolor[:bg]}\", using fallback."
2225 + Redwood::log "Warning: There is no color named \"#{ucolor[:bg]}\""
2226 + end
2227 + attrs = ucolor[:attrs].map {|a| Curses.const_get "A_#{a.upcase}" } rescue attrs
2228 + end
2229 +
2230 + symbol = (k.to_s + "_color").to_sym
2231 + add symbol, fg, bg, attrs
2232 + end
2233 +
2234 + errors.each { |e| BufferManager.flash e }
2235 + end
2236 +
2237 def self.instance; @@instance; end
2238 def self.method_missing meth, *a
2239 Colorcolors.new unless @@instance
2240 --
2241 1.5.5.1
2242
2243 From grant@antiflux.org Mon May 26 09:07:09 2008
2244 From: grant@antiflux.org (Grant Hollingworth)
2245 Date: Mon, 26 May 2008 09:07:09 -0400
2246 Subject: [sup-talk] [PATCH] added default maildir mtimes for earlier
2247 sources.yaml files
2248 Message-ID: <1211807150-sup-4722@spooky.local>
2249
2250 Fixes a bug introduced by 2e06f1eb. The YAML loading was explicitly passing
2251 nil, overriding the {} default in initialize.
2252 ---
2253 lib/sup/maildir.rb | 2 +-
2254 1 files changed, 1 insertions(+), 1 deletions(-)
2255
2256 diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb
2257 index 0a86cb6..74a3e02 100644
2258 --- a/lib/sup/maildir.rb
2259 +++ b/lib/sup/maildir.rb
2260 @@ -30,7 +30,7 @@ class Maildir < Source
2261 #the mtime from the subdirs in the maildir with the unix epoch as default.
2262 #these are used to determine whether scanning the directory for new mail
2263 #is a worthwhile effort
2264 - @mtimes = { 'cur' => Time.at(0), 'new' => Time.at(0) }.merge(mtimes)
2265 + @mtimes = { 'cur' => Time.at(0), 'new' => Time.at(0) }.merge(mtimes || {})
2266 @dir_ids = { 'cur' => [], 'new' => [] }
2267 end
2268
2269 --
2270 1.5.5.1
2271
2272 From johnbent@lanl.gov Wed May 28 10:33:32 2008
2273 From: johnbent@lanl.gov (John Bent)
2274 Date: Wed, 28 May 2008 08:33:32 -0600
2275 Subject: [sup-talk] slowdown for "Saving modified thread" ?
2276 Message-ID: <1211984497-sup-8026@tangerine.lanl.gov>
2277
2278 Even since I moved to next in order to get the attachment searchability
2279 (which is awesome, thanks!), I've seen a major slowdown in the time it
2280 takes to "Saving modified thread." Not a huge slowdown but a couple of
2281 noticable seconds in which the CPU spikes.
2282
2283 From johnbent@lanl.gov Wed May 28 15:22:32 2008
2284 From: johnbent@lanl.gov (John Bent)
2285 Date: Wed, 28 May 2008 13:22:32 -0600
2286 Subject: [sup-talk] slowdown for "Saving modified thread" ?
2287 In-Reply-To: <1211984497-sup-8026@tangerine.lanl.gov>
2288 References: <1211984497-sup-8026@tangerine.lanl.gov>
2289 Message-ID: <1212002507-sup-2906@tangerine.lanl.gov>
2290
2291 Excerpts from John Bent's message of Wed May 28 08:33:32 -0600 2008:
2292 > Even since I moved to next in order to get the attachment searchability
2293 > (which is awesome, thanks!), I've seen a major slowdown in the time it
2294 > takes to "Saving modified thread." Not a huge slowdown but a couple of
2295 > noticable seconds in which the CPU spikes.
2296 >
2297 Well, now I've quit and restarted and it's back to being super fast
2298 again . . . :)
2299
2300 From grant@antiflux.org Wed May 28 22:49:32 2008
2301 From: grant@antiflux.org (Grant Hollingworth)
2302 Date: Wed, 28 May 2008 22:49:32 -0400
2303 Subject: [sup-talk] [PATCH] maildir speedups
2304 In-Reply-To: <1211682829-sup-9284@south>
2305 References: <f96e0240804301150w5e07823cuf3b16fc7dffa759e@mail.gmail.com>
2306 <1211254100-sup-9575@south>
2307 <f96e0240805200924u1c991392oe36de853e208bab8@mail.gmail.com>
2308 <f96e0240805201808k4bcf9947j45779b751a9abb66@mail.gmail.com>
2309 <1211682829-sup-9284@south>
2310 Message-ID: <1212028646-sup-7356@spooky.local>
2311
2312 * William Morgan [2008-05-24 22:34 -0400]:
2313 > Published on 'maildir-speedups' and merged into next. Thanks!
2314
2315 Sup had my CPU working overtime after I updated. I ran ruby-prof and found
2316 that the line
2317
2318 @ids_to_fns.delete_if { |k, v| !@ids.include?(k) }
2319
2320 in Maildir#scan_mailbox was the culprit.
2321
2322 Those id lists are pretty long and include? means comparing each id (a Bignum)
2323 in @ids_to_fns with every id in @ids.
2324
2325 A faster method is
2326
2327 @ids_to_fns = @ids.inject({}) do |hash, i|
2328 hash[i] = @ids_to_fns[i]
2329 hash
2330 end
2331
2332 Or (less pretty but faster and probably clearer)
2333
2334 new_ids_to_fns = {}
2335 @ids.each {|i| new_ids_to_fns[i] = @ids_to_fns[i] }
2336 @ids_to_fns = new_ids_to_fns
2337
2338 But I guess the real question is whether the line is even needed. There
2339 probably won't be a big difference between @ids_to_fns.keys and @ids, so why
2340 not leave some extra values in the hash?
2341
2342 From grant@antiflux.org Wed May 28 23:05:04 2008
2343 From: grant@antiflux.org (Grant Hollingworth)
2344 Date: Wed, 28 May 2008 23:05:04 -0400
2345 Subject: [sup-talk] [PATCH] maildir speedups
2346 In-Reply-To: <1212028646-sup-7356@spooky.local>
2347 References: <f96e0240804301150w5e07823cuf3b16fc7dffa759e@mail.gmail.com>
2348 <1211254100-sup-9575@south>
2349 <f96e0240805200924u1c991392oe36de853e208bab8@mail.gmail.com>
2350 <f96e0240805201808k4bcf9947j45779b751a9abb66@mail.gmail.com>
2351 <1211682829-sup-9284@south> <1212028646-sup-7356@spooky.local>
2352 Message-ID: <1212030172-sup-4817@spooky.local>
2353
2354 * Grant Hollingworth [2008-05-28 22:49 -0400]:
2355 > Or (less pretty but faster and probably clearer)
2356 > [...]
2357
2358 Best:
2359
2360 @ids_to_fns = @ids_to_fns.values_at(@ids)
2361
2362 Next time I should check the docs first....
2363
2364 From grant@antiflux.org Wed May 28 23:06:46 2008
2365 From: grant@antiflux.org (Grant Hollingworth)
2366 Date: Wed, 28 May 2008 23:06:46 -0400
2367 Subject: [sup-talk] [PATCH] maildir speedups
2368 In-Reply-To: <1212030172-sup-4817@spooky.local>
2369 References: <f96e0240804301150w5e07823cuf3b16fc7dffa759e@mail.gmail.com>
2370 <1211254100-sup-9575@south>
2371 <f96e0240805200924u1c991392oe36de853e208bab8@mail.gmail.com>
2372 <f96e0240805201808k4bcf9947j45779b751a9abb66@mail.gmail.com>
2373 <1211682829-sup-9284@south> <1212028646-sup-7356@spooky.local>
2374 <1212030172-sup-4817@spooky.local>
2375 Message-ID: <1212030364-sup-6199@spooky.local>
2376
2377 * Grant Hollingworth [2008-05-28 23:05 -0400]:
2378 > Best:
2379 >
2380 > @ids_to_fns = @ids_to_fns.values_at(@ids)
2381 >
2382 > Next time I should check the docs first....
2383
2384 Ugh. Never mind. Next time I should get some sleep before posting crap to the
2385 list.
2386
2387 From bdwalton@gmail.com Thu May 29 09:34:09 2008
2388 From: bdwalton@gmail.com (Ben Walton)
2389 Date: Thu, 29 May 2008 09:34:09 -0400
2390 Subject: [sup-talk] [PATCH] maildir speedups
2391 In-Reply-To: <1212028646-sup-7356@spooky.local>
2392 References: <f96e0240804301150w5e07823cuf3b16fc7dffa759e@mail.gmail.com>
2393 <1211254100-sup-9575@south>
2394 <f96e0240805200924u1c991392oe36de853e208bab8@mail.gmail.com>
2395 <f96e0240805201808k4bcf9947j45779b751a9abb66@mail.gmail.com>
2396 <1211682829-sup-9284@south> <1212028646-sup-7356@spooky.local>
2397 Message-ID: <f96e0240805290634x7575c75fsd7d147491d42e6ad@mail.gmail.com>
2398
2399 On Wed, May 28, 2008 at 10:49 PM, Grant Hollingworth <grant at antiflux.org> wrote:
2400 > * William Morgan [2008-05-24 22:34 -0400]:
2401 >> Published on 'maildir-speedups' and merged into next. Thanks!
2402 >
2403 > Sup had my CPU working overtime after I updated. I ran ruby-prof and found
2404 > that the line
2405 >
2406 > @ids_to_fns.delete_if { |k, v| !@ids.include?(k) }
2407 >
2408 > in Maildir#scan_mailbox was the culprit.
2409 >
2410 > Those id lists are pretty long and include? means comparing each id (a Bignum)
2411 > in @ids_to_fns with every id in @ids.
2412 >
2413 > A faster method is
2414 >
2415 > @ids_to_fns = @ids.inject({}) do |hash, i|
2416 > hash[i] = @ids_to_fns[i]
2417 > hash
2418 > end
2419 >
2420 > Or (less pretty but faster and probably clearer)
2421 >
2422 > new_ids_to_fns = {}
2423 > @ids.each {|i| new_ids_to_fns[i] = @ids_to_fns[i] }
2424 > @ids_to_fns = new_ids_to_fns
2425 >
2426 > But I guess the real question is whether the line is even needed. There
2427 > probably won't be a big difference between @ids_to_fns.keys and @ids, so why
2428 > not leave some extra values in the hash?
2429
2430 In hindsight, that seems rather obvious, although I've not noticed the
2431 cpu consumption on my box...Either of the above to fixes would work.
2432 I had a reason for explicitly purging old records from the mapping
2433 when I created this, but it escapes me now...dropping that line may be
2434 acceptable unless there is a reason that the keys in @ids_to_fns
2435 should be a 1:1 mapping to values in @ids. Really, there shouldn't be
2436 'extra' keys in @ids_to_fns unless a message disappears from the
2437 Maildir anyway, which should cause an OutOfSync exception, no?
2438
2439 Thanks
2440 -Ben
2441 --
2442 ---------------------------------------------------------------------------------------------------------------------------
2443 Ben Walton <bdwalton at gmail.com>
2444
2445 When one person suffers from a delusion, it is called insanity. When
2446 many people suffer from a delusion it is called Religion.
2447 Robert M. Pirsig, Zen and the Art of Motorcycle Maintenance
2448
2449 ---------------------------------------------------------------------------------------------------------------------------
2450
2451 From itaylor@uark.edu Thu May 29 17:50:46 2008
2452 From: itaylor@uark.edu (Ian Taylor)
2453 Date: Thu, 29 May 2008 17:50:46 -0400
2454 Subject: [sup-talk] problems with attachments of encrypted messages
2455 Message-ID: <1212097796-sup-3853@red>
2456
2457 They don't seem to be handled correctly. When I view the attachment of
2458 an encrypted message, sup gives me the options to save/view some mimed
2459 up stuff containing the real contents of the attachment.
2460 --
2461 Ian Taylor
2462
2463 From wmorgan-sup@masanjin.net Fri May 30 12:26:30 2008
2464 From: wmorgan-sup@masanjin.net (William Morgan)
2465 Date: Fri, 30 May 2008 16:26:30 +0000
2466 Subject: [sup-talk] [PATCH] maildir speedups
2467 In-Reply-To: <f96e0240805290634x7575c75fsd7d147491d42e6ad@mail.gmail.com>
2468 References: <f96e0240804301150w5e07823cuf3b16fc7dffa759e@mail.gmail.com>
2469 <1211254100-sup-9575@south>
2470 <f96e0240805200924u1c991392oe36de853e208bab8@mail.gmail.com>
2471 <f96e0240805201808k4bcf9947j45779b751a9abb66@mail.gmail.com>
2472 <1211682829-sup-9284@south> <1212028646-sup-7356@spooky.local>
2473 <f96e0240805290634x7575c75fsd7d147491d42e6ad@mail.gmail.com>
2474 Message-ID: <1212164782-sup-103@entry>
2475
2476 Reformatted excerpts from Ben Walton's message of 2008-05-29:
2477 > Really, there shouldn't be 'extra' keys in @ids_to_fns unless a
2478 > message disappears from the Maildir anyway, which should cause an
2479 > OutOfSync exception, no?
2480
2481 I believe this is the case. I'm happy to take a patch when you guys (who
2482 actually use Maildir!) are ready. :)
2483 --
2484 William <wmorgan-sup at masanjin.net>
2485
2486 From wmorgan-sup@masanjin.net Fri May 30 12:28:24 2008
2487 From: wmorgan-sup@masanjin.net (William Morgan)
2488 Date: Fri, 30 May 2008 16:28:24 +0000
2489 Subject: [sup-talk] [PATCH] added default maildir mtimes for earlier
2490 sources.yaml files
2491 In-Reply-To: <1211807150-sup-4722@spooky.local>
2492 References: <1211807150-sup-4722@spooky.local>
2493 Message-ID: <1212164897-sup-5978@entry>
2494
2495 Applied and remerged. Thanks!
2496 --
2497 William <wmorgan-sup at masanjin.net>
2498
2499 From its.jeff.balogh@gmail.com Sat May 31 11:52:54 2008
2500 From: its.jeff.balogh@gmail.com (Jeff Balogh)
2501 Date: Sat, 31 May 2008 11:52:54 -0400
2502 Subject: [sup-talk] [PATCH] adding a reply-to hook for setting the default
2503 reply-to mode
2504 Message-ID: <1212248837-sup-4199@archie>
2505
2506 ---
2507 Trying again, hopefully the docs are better now. If there's a better way to
2508 pretty-print the array, I'd be glad to know it.
2509
2510 lib/sup/modes/reply-mode.rb | 17 ++++++++++++++++-
2511 1 files changed, 16 insertions(+), 1 deletions(-)
2512
2513 diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb
2514 index e7b2929..de08609 100644
2515 --- a/lib/sup/modes/reply-mode.rb
2516 +++ b/lib/sup/modes/reply-mode.rb
2517 @@ -19,6 +19,17 @@ Return value:
2518 A string containing the text of the quote line (can be multi-line)
2519 EOS
2520
2521 + HookManager.register "reply-to", <<EOS
2522 +Set the default reply-to mode.
2523 +Variables:
2524 + modes: array of valid modes to choose from, which will be a subset of
2525 + [:#{REPLY_TYPES * ', :'}]
2526 + The default behavior is equivalent to
2527 + ([:list, :sender, :recipent] & modes)[0]
2528 +Return value:
2529 + The reply mode you desire, or nil to use the default behavior.
2530 +EOS
2531 +
2532 def initialize message
2533 @m = message
2534
2535 @@ -92,8 +103,12 @@ EOS
2536 types = REPLY_TYPES.select { |t| @headers.member?(t) }
2537 @type_selector = HorizontalSelector.new "Reply to:", types, types.map { |x| TYPE_DESCRIPTIONS[x] }
2538
2539 + hook_reply = HookManager.run "reply-to", :modes => types
2540 +
2541 @type_selector.set_to(
2542 - if @m.is_list_message?
2543 + if types.include? hook_reply
2544 + hook_reply
2545 + elsif @m.is_list_message?
2546 :list
2547 elsif @headers.member? :sender
2548 :sender
2549 --
2550 1.5.5.3
2551
2552