community/pipermail-archives/sup-talk/2009-05.txt (162770B) - raw
1 From bwalton@artsci.utoronto.ca Fri May 1 12:54:47 2009
2 From: bwalton@artsci.utoronto.ca (Ben Walton)
3 Date: Fri, 1 May 2009 12:54:47 -0400
4 Subject: [sup-talk] [PATCH] Keymap: make new + (apply to tagged) behaviour
5 nicer
6 Message-ID: <1241196888-16400-1-git-send-email-bwalton@artsci.utoronto.ca>
7
8 Ok, so I updated to the next branch to work on updating/polishing the
9 flexible sent source patch and the new + key for apply to tagged
10 behaviour is driving me nuts. I had a lot of muscle memory built up
11 around the semi-colon, so it's a tough adjustment for me. I'm willing
12 to make it, of course, since I think the overall reasoning is sound.
13 That being said, mapping = to do the same thing as + will save having
14 to hold shift to access this.
15
16 I hope this is ok. Patch to follow.
17
18 Thanks
19 -Ben
20
21 From bwalton@artsci.utoronto.ca Fri May 1 12:54:48 2009
22 From: bwalton@artsci.utoronto.ca (Ben Walton)
23 Date: Fri, 1 May 2009 12:54:48 -0400
24 Subject: [sup-talk] [PATCH] Keymap: make new + (apply to tagged) behaviour
25 nicer
26 In-Reply-To: <1241196888-16400-1-git-send-email-bwalton@artsci.utoronto.ca>
27 References: <1241196888-16400-1-git-send-email-bwalton@artsci.utoronto.ca>
28 Message-ID: <1241196888-16400-2-git-send-email-bwalton@artsci.utoronto.ca>
29
30 Make = a synonym for + in the thread index mode so that shift isn't
31 required to apply an action to all tagged messages.
32 ---
33 lib/sup/modes/thread-index-mode.rb | 2 +-
34 1 files changed, 1 insertions(+), 1 deletions(-)
35
36 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
37 index 7b87bf6..b44dc18 100644
38 --- a/lib/sup/modes/thread-index-mode.rb
39 +++ b/lib/sup/modes/thread-index-mode.rb
40 @@ -42,7 +42,7 @@ EOS
41 k.add :toggle_tagged, "Tag/untag selected thread", 't'
42 k.add :toggle_tagged_all, "Tag/untag all threads", 'T'
43 k.add :tag_matching, "Tag matching threads", 'g'
44 - k.add :apply_to_tagged, "Apply next command to all tagged threads", '+'
45 + k.add :apply_to_tagged, "Apply next command to all tagged threads", '+', '='
46 k.add :join_threads, "Force tagged threads to be joined into the same thread", '#'
47 k.add :undo, "Undo the previous action", 'u'
48 end
49 --
50 1.6.2.1
51
52
53 From sgoldman@tower-research.com Fri May 1 16:23:53 2009
54 From: sgoldman@tower-research.com (Steve Goldman)
55 Date: Fri, 01 May 2009 16:23:53 -0400
56 Subject: [sup-talk] Inconsistent inbox after restart
57 In-Reply-To: <f96e0240904300729l1493160eqdcc642af5aae1c15@mail.gmail.com>
58 References: <1240945125-sup-8484@sgoldmanlinux.tower-research.com>
59 <1241028590-sup-8155@entry>
60 <1241075456-sup-909@h984274.serverkompetenz.net>
61 <1241095872-sup-9569@sgoldmanlinux.tower-research.com>
62 <f96e0240904300610n741d83aq95dd0c4b10876243@mail.gmail.com>
63 <1241098531-sup-1508@entry>
64 <1241101364-sup-9621@sgoldmanlinux.tower-research.com>
65 <f96e0240904300729l1493160eqdcc642af5aae1c15@mail.gmail.com>
66 Message-ID: <1241209146-sup-3561@sgoldmanlinux.tower-research.com>
67
68 I have found the offensive commit...
69
70 Whoever was working on this, can you take a look and figure out where
71 the bug is?
72
73 (And for all you perl bashers out there, given this ridiculous line
74 of ruby, you officially can't talk any more shit.)
75
76
77 063ec996a24b13b5dc9a59e21aa42ba629ab510a
78
79 --- a/lib/sup/poll.rb
80 +++ b/lib/sup/poll.rb
81 @@ -97,7 +97,7 @@ EOS
82 numi = 0
83 add_messages_from source do |m, offset, entry|
84 ## always preserve the labels on disk.
85 - m.labels = entry[:label].split(/\s+/).map { |x| x.intern } if entry
86 + m.labels = ((m.labels - [:unread, :inbox]) + entry[:label].split(/\s+/).map { |x| x.intern }).uniq if entry
87 yield "Found message at #{offset} with labels {#{m.labels * ', '}}"
88 unless entry
89 num += 1
90 --
91
92 Steve Goldman
93 sgoldman at tower-research.com
94
95 T: 212.219.6014
96 F: 212.219.6007
97
98 Tower Research Capital, LLC
99 377 Broadway, 11th Fl.
100 New York, NY 10013
101
102 From wmorgan-sup@masanjin.net Mon May 4 08:59:49 2009
103 From: wmorgan-sup@masanjin.net (William Morgan)
104 Date: Mon, 04 May 2009 05:59:49 -0700
105 Subject: [sup-talk] Sup with Microsoft Exchange 2007
106 In-Reply-To: <f96e0240904300707k4d629f33hc660a9792545257e@mail.gmail.com>
107 References: <3f81a4240904140559ubd286a5x2f026d6b875dd091@mail.gmail.com>
108 <1240267632-sup-2023@r50p>
109 <3f81a4240904201638v94a7dbdpce0d865cd83d8873@mail.gmail.com>
110 <1240318807-sup-3080@entry>
111 <3f81a4240904210642o9c74049o27e164e317d0842e@mail.gmail.com>
112 <1240323082-sup-1515@entry>
113 <3f81a4240904210729h74ac436bn9e1140cf7021c5ad@mail.gmail.com>
114 <3f81a4240904210732k11366cf7naec562af54ecabac@mail.gmail.com>
115 <f96e0240904210737q71765989of31447a8de20fa62@mail.gmail.com>
116 <1241045035-sup-1534@entry>
117 <f96e0240904300707k4d629f33hc660a9792545257e@mail.gmail.com>
118 Message-ID: <1241441484-sup-8964@entry>
119
120 Reformatted excerpts from Ben Walton's message of 2009-04-30:
121 > Since I'm back into mucking with this bit, are you open to having the
122 > maildir scanning code move messages from new/ to cur/? This could
123 > help with the unique id vs directory scanning issue.
124
125 Would it really help? I'd be willing if so, but I don't see how. Maybe
126 I'm missing something.
127
128 I've avoided moving new/ to cur/ because I didn't see any benefit to
129 Sup, and it conflicts with the hands-off philosophy, so it just seemed
130 like one more thing we could screw up. But if there is a real reason to
131 do it, I'd probably be willing.
132 --
133 William <wmorgan-sup at masanjin.net>
134
135 From wmorgan-sup@masanjin.net Mon May 4 09:32:04 2009
136 From: wmorgan-sup@masanjin.net (William Morgan)
137 Date: Mon, 04 May 2009 06:32:04 -0700
138 Subject: [sup-talk] Inconsistent inbox after restart
139 In-Reply-To: <1241209146-sup-3561@sgoldmanlinux.tower-research.com>
140 References: <1240945125-sup-8484@sgoldmanlinux.tower-research.com>
141 <1241028590-sup-8155@entry>
142 <1241075456-sup-909@h984274.serverkompetenz.net>
143 <1241095872-sup-9569@sgoldmanlinux.tower-research.com>
144 <f96e0240904300610n741d83aq95dd0c4b10876243@mail.gmail.com>
145 <1241098531-sup-1508@entry>
146 <1241101364-sup-9621@sgoldmanlinux.tower-research.com>
147 <f96e0240904300729l1493160eqdcc642af5aae1c15@mail.gmail.com>
148 <1241209146-sup-3561@sgoldmanlinux.tower-research.com>
149 Message-ID: <1241443759-sup-9889@entry>
150
151 Reformatted excerpts from Steve Goldman's message of 2009-05-01:
152 > I have found the offensive commit...
153
154 Interesting. I think I see the problem. Were all the messages that
155 magically reappeared in your inbox messages that were sent to mailing
156 lists, or otherwise messages that somehow appeared twice in your inbox?
157
158 > (And for all you perl bashers out there, given this ridiculous line
159 > of ruby, you officially can't talk any more shit.)
160
161 No one here has bashed Perl. Personally I prefer bashing Python (when
162 I'm not too busy bashing Java (when I'm not too busy bashing C++)), and
163 credit Perl for much of what I like about Ruby.
164 --
165 William <wmorgan-sup at masanjin.net>
166
167 From bdwalton@gmail.com Mon May 4 09:41:17 2009
168 From: bdwalton@gmail.com (Ben Walton)
169 Date: Mon, 4 May 2009 09:41:17 -0400
170 Subject: [sup-talk] Sup with Microsoft Exchange 2007
171 In-Reply-To: <1241441484-sup-8964@entry>
172 References: <3f81a4240904140559ubd286a5x2f026d6b875dd091@mail.gmail.com>
173 <1240318807-sup-3080@entry>
174 <3f81a4240904210642o9c74049o27e164e317d0842e@mail.gmail.com>
175 <1240323082-sup-1515@entry>
176 <3f81a4240904210729h74ac436bn9e1140cf7021c5ad@mail.gmail.com>
177 <3f81a4240904210732k11366cf7naec562af54ecabac@mail.gmail.com>
178 <f96e0240904210737q71765989of31447a8de20fa62@mail.gmail.com>
179 <1241045035-sup-1534@entry>
180 <f96e0240904300707k4d629f33hc660a9792545257e@mail.gmail.com>
181 <1241441484-sup-8964@entry>
182 Message-ID: <f96e0240905040641y5e2a5efetfacee48b8e4260d2@mail.gmail.com>
183
184 On Mon, May 4, 2009 at 8:59 AM, William Morgan <wmorgan-sup at masanjin.net> wrote:
185 > Reformatted excerpts from Ben Walton's message of 2009-04-30:
186 >> Since I'm back into mucking with this bit, are you open to having the
187 >> maildir scanning code move messages from new/ to cur/? This could
188 >> help with the unique id vs directory scanning issue.
189 >
190 > Would it really help? I'd be willing if so, but I don't see how. Maybe
191 > I'm missing something.
192
193 Scan both folders (cur/, new/) on startup or sup-sync. After that,
194 scan only new. Since mail is moved out of new/ into cur/ after
195 detection, the time stamp stuff could be dropped since it would be
196 redundant anyway. I think I'd confused myself about the id generation
197 issue, so it wouldn't likely be of benefit there.
198
199 > I've avoided moving new/ to cur/ because I didn't see any benefit to
200 > Sup, and it conflicts with the hands-off philosophy, so it just seemed
201 > like one more thing we could screw up. But if there is a real reason to
202 > do it, I'd probably be willing.
203
204 Sup would be a better Maildir citizen, since this is the intended way
205 to access/use a maildir source.
206
207 -Ben
208 --
209 ---------------------------------------------------------------------------------------------------------------------------
210 Ben Walton <bdwalton at gmail.com>
211
212 "With or without religion, good people can behave well and bad people
213 can do evil; but for good people to do evil?that takes religion. "
214 -Steven Weinberg
215 ---------------------------------------------------------------------------------------------------------------------------
216
217 From sgoldman@tower-research.com Mon May 4 09:46:35 2009
218 From: sgoldman@tower-research.com (Steve Goldman)
219 Date: Mon, 04 May 2009 09:46:35 -0400
220 Subject: [sup-talk] Inconsistent inbox after restart
221 In-Reply-To: <1241443759-sup-9889@entry>
222 References: <1240945125-sup-8484@sgoldmanlinux.tower-research.com>
223 <1241028590-sup-8155@entry>
224 <1241075456-sup-909@h984274.serverkompetenz.net>
225 <1241095872-sup-9569@sgoldmanlinux.tower-research.com>
226 <f96e0240904300610n741d83aq95dd0c4b10876243@mail.gmail.com>
227 <1241098531-sup-1508@entry>
228 <1241101364-sup-9621@sgoldmanlinux.tower-research.com>
229 <f96e0240904300729l1493160eqdcc642af5aae1c15@mail.gmail.com>
230 <1241209146-sup-3561@sgoldmanlinux.tower-research.com>
231 <1241443759-sup-9889@entry>
232 Message-ID: <1241444694-sup-9120@sgoldmanlinux.tower-research.com>
233
234 Excerpts from William Morgan's message of Mon May 04 09:32:04 -0400 2009:
235 > Reformatted excerpts from Steve Goldman's message of 2009-05-01:
236 > > I have found the offensive commit...
237 >
238 > Interesting. I think I see the problem. Were all the messages that
239 > magically reappeared in your inbox messages that were sent to mailing
240 > lists, or otherwise messages that somehow appeared twice in your inbox?
241
242 Most of the messages I archive come from lists, so this is possible.
243 The lists I'm on are smart enough to not deliver messages twice, most
244 of the time.
245
246 > > (And for all you perl bashers out there, given this ridiculous line
247 > > of ruby, you officially can't talk any more shit.)
248 >
249 > No one here has bashed Perl. Personally I prefer bashing Python (when
250 > I'm not too busy bashing Java (when I'm not too busy bashing C++)), and
251 > credit Perl for much of what I like about Ruby.
252
253 Live and let live!!
254 --
255
256 Steve Goldman
257 sgoldman at tower-research.com
258
259 T: 212.219.6014
260 F: 212.219.6007
261
262 Tower Research Capital, LLC
263 377 Broadway, 11th Fl.
264 New York, NY 10013
265
266 From wmorgan-sup@masanjin.net Mon May 4 10:24:15 2009
267 From: wmorgan-sup@masanjin.net (William Morgan)
268 Date: Mon, 04 May 2009 07:24:15 -0700
269 Subject: [sup-talk] [PATCH] Keymap: make new + (apply to tagged)
270 behaviour nicer
271 In-Reply-To: <1241196888-16400-2-git-send-email-bwalton@artsci.utoronto.ca>
272 References: <1241196888-16400-1-git-send-email-bwalton@artsci.utoronto.ca>
273 <1241196888-16400-2-git-send-email-bwalton@artsci.utoronto.ca>
274 Message-ID: <1241446972-sup-1257@entry>
275
276 Reformatted excerpts from Ben Walton's message of 2009-05-01:
277 > Make = a synonym for + in the thread index mode so that shift isn't
278 > required to apply an action to all tagged messages.
279
280 Good idea. Can you make this change against the better-buffer-list
281 branch instead of next? It's not applying as is.
282 --
283 William <wmorgan-sup at masanjin.net>
284
285 From wmorgan-sup@masanjin.net Mon May 4 10:28:43 2009
286 From: wmorgan-sup@masanjin.net (William Morgan)
287 Date: Mon, 04 May 2009 07:28:43 -0700
288 Subject: [sup-talk] [PATCH] Bug fixes and speed improvements for maildir
289 handling.
290 In-Reply-To: <a412e2a70904210843p6410e83dyabccb3dec5c9fd0a@mail.gmail.com>
291 References: <a412e2a70904210843p6410e83dyabccb3dec5c9fd0a@mail.gmail.com>
292 Message-ID: <1241447258-sup-9435@entry>
293
294 Reformatted excerpts from Mark Alexander's message of 2009-04-21:
295 > ---
296 > lib/sup/maildir.rb | 10 +++++++---
297 > 1 files changed, 7 insertions(+), 3 deletions(-)
298
299 I think I'm going to drop this patch, as the Maildir code is going to
300 get changed in other ways very shortly.
301 --
302 William <wmorgan-sup at masanjin.net>
303
304 From wmorgan-sup@masanjin.net Mon May 4 10:35:20 2009
305 From: wmorgan-sup@masanjin.net (William Morgan)
306 Date: Mon, 04 May 2009 07:35:20 -0700
307 Subject: [sup-talk] possible mbox "initial From" fix
308 In-Reply-To: <6bb609560904291751n3cc62f46g6a4edcba1f97d6f7@mail.gmail.com>
309 References: <1241027916-sup-7642@entry>
310 <6bb609560904291751n3cc62f46g6a4edcba1f97d6f7@mail.gmail.com>
311 Message-ID: <1241447393-sup-7632@entry>
312
313 Reformatted excerpts from Bart Schaefer's message of 2009-04-29:
314 > We found that in most cases this failed at (1) or succeeded very
315 > quickly at (6a). Only obscure cases proceed to (7), but if you're
316 > dealing with anything like old USENET news archives or folders written
317 > by '80s-era mail clients you need either step (4) or step (7) to get
318 > past the cruft.
319 >
320 > Note that the key is finding "From ... DATE" rather than "From ADDRESS
321 > ..." if you really want to distinguish message separators from stuff
322 > people type in a message body. I'm not sure you can do this with a
323 > regular expression.
324
325 Thanks! This is really helpful. I am a little worried about the current
326 fix, since there's no real requirement that an email address have an @
327 sign in it for local users, and that will result in false negatives,
328 and there's a non-trivial potential for false positives.
329
330 If we went this route (which wouldn't require a big changeset), I may
331 punt on parsing the date myself and just rely on Time.parse. Speed
332 shouldn't really be affected (except in weird pathological cases) since
333 the date parsing will be a second step. I like it.
334 --
335 William <wmorgan-sup at masanjin.net>
336
337 From bwalton@artsci.utoronto.ca Mon May 4 10:44:11 2009
338 From: bwalton@artsci.utoronto.ca (Ben Walton)
339 Date: Mon, 4 May 2009 10:44:11 -0400
340 Subject: [sup-talk] [PATCH] Keymap: improve behaviour of apply to tagged in
341 thread index
342 Message-ID: <1241448251-21371-1-git-send-email-bwalton@artsci.utoronto.ca>
343
344 Make = a synonym for + in the thread index mode so that shift isn't
345 required to apply an action to all tagged messages.
346
347 Signed-off-by: Ben Walton <bwalton at artsci.utoronto.ca>
348 ---
349 This is the requeste resend against better-buffer-list.
350 -Ben
351
352
353 lib/sup/modes/thread-index-mode.rb | 2 +-
354 1 files changed, 1 insertions(+), 1 deletions(-)
355
356 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
357 index 0bce0de..a45175d 100644
358 --- a/lib/sup/modes/thread-index-mode.rb
359 +++ b/lib/sup/modes/thread-index-mode.rb
360 @@ -42,7 +42,7 @@ EOS
361 k.add :toggle_tagged, "Tag/untag selected thread", 't'
362 k.add :toggle_tagged_all, "Tag/untag all threads", 'T'
363 k.add :tag_matching, "Tag matching threads", 'g'
364 - k.add :apply_to_tagged, "Apply next command to all tagged threads", '+'
365 + k.add :apply_to_tagged, "Apply next command to all tagged threads", '+', '='
366 k.add :join_threads, "Force tagged threads to be joined into the same thread", '#'
367 end
368
369 --
370 1.6.2.1
371
372
373 From wmorgan-sup@masanjin.net Mon May 4 10:48:23 2009
374 From: wmorgan-sup@masanjin.net (William Morgan)
375 Date: Mon, 04 May 2009 07:48:23 -0700
376 Subject: [sup-talk] [PATCH] Keymap: improve behaviour of apply to tagged
377 in thread index
378 In-Reply-To: <1241448251-21371-1-git-send-email-bwalton@artsci.utoronto.ca>
379 References: <1241448251-21371-1-git-send-email-bwalton@artsci.utoronto.ca>
380 Message-ID: <1241448496-sup-8476@entry>
381
382 Reformatted excerpts from Ben Walton's message of 2009-05-04:
383 > Make = a synonym for + in the thread index mode so that shift isn't
384 > required to apply an action to all tagged messages.
385
386 Applied, thanks!
387 --
388 William <wmorgan-sup at masanjin.net>
389
390 From wmorgan-sup@masanjin.net Mon May 4 12:10:23 2009
391 From: wmorgan-sup@masanjin.net (William Morgan)
392 Date: Mon, 04 May 2009 09:10:23 -0700
393 Subject: [sup-talk] Possible problem with maildir ID generation
394 In-Reply-To: <20090429233820.GA14143@cabinet.hsd1.ma.comcast.net>
395 References: <a412e2a70904161505l3e1fdfc9l987013130b3f5ddd@mail.gmail.com>
396 <1240320547-sup-6957@entry>
397 <20090428191822.GB10581@cabinet.hsd1.ma.comcast.net>
398 <a412e2a70904281629n6171bbb6i4c6330e375f8c6ad@mail.gmail.com>
399 <1241038730-sup-2939@entry>
400 <20090429233820.GA14143@cabinet.hsd1.ma.comcast.net>
401 Message-ID: <1241451919-sup-8970@entry>
402
403 Reformatted excerpts from Marc Hartstein's message of 2009-04-29:
404 > On Wed, Apr 29, 2009 at 03:31:52PM -0700, William Morgan wrote:
405 > > (All this rigamarole about ordinals and blah blah blah is necessary
406 > > because I don't want Sup to rescan the entire Maildir unless absolutely
407 > > necessary. One day I'll convert my mbox to a Maildir with 250k files in
408 > > it, and a rescan will kill me, especially at Ruby speed.)
409 >
410 > How are we defining 'rescan' here? I can think of a couple of possible
411 > meanings, and I'm not sure where you are:
412 >
413 > 1. Open every file in the maildir and read from it, every poll.
414 > 2. Visit every filename in the maildir to consider whether it is a new
415 > file, every poll.
416 > 3. Something else I'm not thinking of this instant.
417
418 You're probably confused because what I said was wrong. Here's what I
419 should have said:
420
421 Rescanning the entire directory to check for new mail is unavoidable in
422 Maildir. What I *do* have some control over, i.e. can try to optimize,
423 is the following operation: given a file in the directory, does it
424 represent a new message? One way to do this would be to maintain a set
425 of all filenames representing read messages, and to check for existence
426 within the set, for every file. Sup doesn't do this; instead it defines
427 an ordering on filenames, such that newer filenames are "larger" than
428 older filenames under that ordering, and maintains a threshold
429 representing the dividing point between new and old. The idea being that
430 performing that comparison is quick, and that storing the set of read
431 messages is also quick.
432
433 (And again, I care about the case where you have 500k messages, and so
434 doing set existence is painful. Although perhaps Bloom filters are the
435 solution... that would be interesting!)
436
437 > So the only way you're going to get a timestamp collision (on the
438 > filename timestamp, perhaps not on the actual ctime) is if you have
439 > multiple processes delivering mail simultaneously, or if you're
440 > synchronizing mail delivered on multiple hosts. In the case of the
441 > latter, a timestamp-based heuristic for finding new messages isn't
442 > going to work.
443
444 I think the collisions we are seeing are due to timestamp granularity.
445 A little research suggests that e.g. ext2fs ctimes are 1-second
446 granular. It seems quite easy to get more than one email per second.
447
448 > Would it suffice to keep track of the filename of the most recent
449 > message added for each maildir source, and check everything with a
450 > time portion of the filename equal to or greater than that message for
451 > whether it needs to be added? [although see above about whether that
452 > gains anything]
453
454 Yes, I think that's the solution. Basically switch from > to >= when
455 comparing timestamps, and realize that you're going to get some dupes.
456
457 > Having looked into this more closely, I'm starting to seriously
458 > reconsider whether maildir is really what I want to be using for storing
459 > my mail. There are some weird timing issues.
460
461 Well, mbox has the advantage of being nice and linear so this problem
462 goes away, but is horribly broken in other ways (c.f. the recent thread
463 about the "From problem"). IMAP is a ridiculous PITA to deal with (at
464 least as a client), so you're kinda screwed in every direction here. If
465 anything, Maildir is less broken than the other alternatives.
466
467 Plus Maildir works really well with git. :)
468 --
469 William <wmorgan-sup at masanjin.net>
470
471 From wmorgan-sup@masanjin.net Mon May 4 12:22:45 2009
472 From: wmorgan-sup@masanjin.net (William Morgan)
473 Date: Mon, 04 May 2009 09:22:45 -0700
474 Subject: [sup-talk] Sup with Microsoft Exchange 2007
475 In-Reply-To: <f96e0240905040641y5e2a5efetfacee48b8e4260d2@mail.gmail.com>
476 References: <3f81a4240904140559ubd286a5x2f026d6b875dd091@mail.gmail.com>
477 <1240318807-sup-3080@entry>
478 <3f81a4240904210642o9c74049o27e164e317d0842e@mail.gmail.com>
479 <1240323082-sup-1515@entry>
480 <3f81a4240904210729h74ac436bn9e1140cf7021c5ad@mail.gmail.com>
481 <3f81a4240904210732k11366cf7naec562af54ecabac@mail.gmail.com>
482 <f96e0240904210737q71765989of31447a8de20fa62@mail.gmail.com>
483 <1241045035-sup-1534@entry>
484 <f96e0240904300707k4d629f33hc660a9792545257e@mail.gmail.com>
485 <1241441484-sup-8964@entry>
486 <f96e0240905040641y5e2a5efetfacee48b8e4260d2@mail.gmail.com>
487 Message-ID: <1241453755-sup-6000@entry>
488
489 Reformatted excerpts from Ben Walton's message of 2009-05-04:
490 > Scan both folders (cur/, new/) on startup or sup-sync. After that,
491 > scan only new. Since mail is moved out of new/ into cur/ after
492 > detection, the time stamp stuff could be dropped since it would be
493 > redundant anyway.
494
495 Crap, I think you're right. Polling will be trivial and no more messing
496 around with timestamps.
497
498 In fact I don't even have to scan cur/ on startup; I can just assume
499 it's unchanged. If you screw with the Maildir via another MUA you have
500 to run sup-sync --changed, just like with every other source.
501
502 For this to work, the "offset" for each message will have to be its
503 filename. I wonder how many implicit assumptions that will violate.
504 --
505 William <wmorgan-sup at masanjin.net>
506
507 From marka@pobox.com Mon May 4 13:24:10 2009
508 From: marka@pobox.com (Mark Alexander)
509 Date: Mon, 4 May 2009 13:24:10 -0400
510 Subject: [sup-talk] Possible problem with maildir ID generation
511 In-Reply-To: <20090504165224.GA15815@cabinet.hsd1.ma.comcast.net>
512 References: <a412e2a70904161505l3e1fdfc9l987013130b3f5ddd@mail.gmail.com>
513 <1240320547-sup-6957@entry>
514 <20090428191822.GB10581@cabinet.hsd1.ma.comcast.net>
515 <a412e2a70904281629n6171bbb6i4c6330e375f8c6ad@mail.gmail.com>
516 <1241038730-sup-2939@entry>
517 <20090429233820.GA14143@cabinet.hsd1.ma.comcast.net>
518 <1241451919-sup-8970@entry>
519 <20090504165224.GA15815@cabinet.hsd1.ma.comcast.net>
520 Message-ID: <a412e2a70905041024k3b2469e6v5e13d00177a23550@mail.gmail.com>
521
522 On Mon, May 4, 2009 at 12:52 PM, Marc Hartstein
523 <marc.hartstein at alum.vassar.edu> wrote:
524 > On Mon, May 04, 2009 at 09:10:23AM -0700, William Morgan wrote:
525 >> I think the collisions we are seeing are due to timestamp granularity.
526 >> A little research suggests that e.g. ext2fs ctimes are 1-second
527 >> granular. It seems quite easy to get more than one email per second.
528 >
529 > It does, but as I mentioned somewhere in that email, the reference
530 > implementation of maildir (qmail) says that it will only deliver one
531 > message per second. ?However, I definitely concede that relying on this
532 > behavior would be setting things up for something to go wrong down the
533 > line.
534
535 Just a data point: in my setup (postfix+procmail) I'm seeing multiple messages
536 being delivered to the same maildir in the same second. That was what
537 motivated my patch.
538
539 From bdwalton@gmail.com Wed May 6 20:02:26 2009
540 From: bdwalton@gmail.com (Ben Walton)
541 Date: Wed, 6 May 2009 20:02:26 -0400
542 Subject: [sup-talk] sent source
543 Message-ID: <f96e0240905061702m43899549p5ea53b5b6c478b02@mail.gmail.com>
544
545 Hi All,
546
547 I wanted to poll for thoughts on how to handle a generic mbox as the
548 sent source. My concern is how to deal with file locking...this is
549 one of the nastier aspects of mbox files.
550
551 The cop-out approach is to allow the user to select any mbox source
552 configured as the outbox and admonish them not to use it for incoming
553 mail too...that puts us in the same place as ~/.sup/sent.mbox is now.
554 Doing this does open sup to user error though and the potential for
555 trashed mboxes.
556
557 The next option is to play with locks, but that's not straight forward
558 at all. Dovecot, as an example, allows a configuration knob for the
559 admin to set the order in which the different mechanisms are used.
560 This works as long as all of the mbox consumers use the same sequence.
561 There is still lots of room for error here (NFS, etc).
562
563 Option 3 is to simply limit the mbox sent source to the SentLoader
564 class which means that 'regular' mbox files available to the user
565 can't be a destination for sent mail.
566
567 None of these solutions is perfect, and all suck compared to their
568 maildir or imap counterparts (I'm not even going to bother with
569 ssh+mbox). What do other 'suppers' think about this?
570
571 Thanks
572 -Ben
573 --
574 ---------------------------------------------------------------------------------------------------------------------------
575 Ben Walton <bdwalton at gmail.com>
576
577 "With or without religion, good people can behave well and bad people
578 can do evil; but for good people to do evil?that takes religion. "
579 -Steven Weinberg
580 ---------------------------------------------------------------------------------------------------------------------------
581
582 From bdwalton@gmail.com Wed May 6 23:11:09 2009
583 From: bdwalton@gmail.com (Ben Walton)
584 Date: Wed, 6 May 2009 23:11:09 -0400
585 Subject: [sup-talk] flexible sent (wip)
586 Message-ID: <f96e0240905062011o51cf195bm24eb83ca60ef58d9@mail.gmail.com>
587
588 Hi All,
589
590 For those interested in the ability to store mail in places other than
591 the sent.mbox file in the $SUP_BASE directory, you can see my work in
592 progress by checking out the bw/flexible_sent branch available from:
593 git://code.chass.utoronto.ca/bwalton-sup.git
594
595 This code is branched from a very recent next on WIlliam's mainline.
596 The present state of the code is working in my tests (I've played with
597 IMAP and Maildir, but mbox is also a possibility if you're brave...see
598 my previous message). I haven't added the sup-config part yet, so
599 you're still required to add a
600
601 :sent_source: <some valid source uri>
602
603 line to your config.yaml to enable it.
604
605 You can setup a testing area (eg separate ferret index, config, etc)
606 by running sup with SUP_BASE=/some/alternate/.sup/dir if you want to
607 get a feel for it without touching your working setup.
608
609 Comments and feedback are welcome.
610
611 Thanks
612 -Ben
613 --
614 ---------------------------------------------------------------------------------------------------------------------------
615 Ben Walton <bdwalton at gmail.com>
616
617 "With or without religion, good people can behave well and bad people
618 can do evil; but for good people to do evil?that takes religion. "
619 -Steven Weinberg
620 ---------------------------------------------------------------------------------------------------------------------------
621
622 From flips@luminated.net Thu May 7 06:38:47 2009
623 From: flips@luminated.net (Filip Stokkeland)
624 Date: Thu, 7 May 2009 12:38:47 +0200
625 Subject: [sup-talk] IMAP questions (n00b) :)
626 Message-ID: <24cc29320905070338u1e23c6d3sa78c20dd0da60b19@mail.gmail.com>
627
628 Hi! I just discovered and started testing Sup. And it looks great!
629
630 I tried browsing through some of the mailing list archives, and I
631 found postings saying Sup does not sync back to IMAP(S). So I take it
632 then, that when I mark mail as read or as spam, nothing happens on the
633 IMAP server, but only in the local Sup index?
634
635 And another thing. I have my main work email today sorted on the
636 server, using Sieve, so I get new email sorted into 40 different IMAP
637 folders. In Sup, can I get it to automatically fetch from all
638 subscribed IMAP folders?
639
640 Or maybe I should rather fetch all this email into my own local server
641 using fetchmail or something and then either put it all in one big
642 inbox or multiple mboxes locally and then add this as source?
643
644 Best regards
645 --
646 Filip
647
648 From flips@luminated.net Thu May 7 07:58:02 2009
649 From: flips@luminated.net (Filip Stokkeland)
650 Date: Thu, 7 May 2009 13:58:02 +0200
651 Subject: [sup-talk] /usr/bin/run-mailcap
652 Message-ID: <24cc29320905070458g7b970ea4rbfcc469d6afc3a3d@mail.gmail.com>
653
654 In Sup, installed on a RHEL 5.1 with EPEL, using gems, when I select
655 f.ex. html attachments, I just get an error that view doesn't work and
656 I get the plain text. A quick grep in the code reveals this:
657
658 lib/sup/message-chunks.rb: cmd = "/usr/bin/run-mailcap
659 --action=view '#{@content_type}:#{path}' 2>/dev/null"
660
661 I can't find run-mailcap on this RedHat installation. "yum
662 whatprovides" didn't help and the mailcap package had no such file
663 installed:
664
665 # rpm -ql mailcap
666 /etc/mailcap
667 /etc/mime.types
668 /usr/share/man/man4/mailcap.4.gz
669
670 Maybe run-mailcap a Debian/Ubuntu thing? (I'll be back on my regular
671 ubuntu installation soon enough anyway, just using a lab machine right
672 now.) In Mutt I don't believe I did anything except use my default
673 .mailcap ...
674
675 Cheers.
676 --
677 Filip
678
679 From wmorgan-sup@masanjin.net Thu May 7 09:07:32 2009
680 From: wmorgan-sup@masanjin.net (William Morgan)
681 Date: Thu, 07 May 2009 06:07:32 -0700
682 Subject: [sup-talk] /usr/bin/run-mailcap
683 In-Reply-To: <24cc29320905070458g7b970ea4rbfcc469d6afc3a3d@mail.gmail.com>
684 References: <24cc29320905070458g7b970ea4rbfcc469d6afc3a3d@mail.gmail.com>
685 Message-ID: <1241701545-sup-3821@entry>
686
687 Reformatted excerpts from Filip Stokkeland's message of 2009-05-07:
688 > Maybe run-mailcap a Debian/Ubuntu thing? (I'll be back on my regular
689 > ubuntu installation soon enough anyway, just using a lab machine right
690 > now.) In Mutt I don't believe I did anything except use my default
691 > .mailcap ...
692
693 It could very well be a Debianism. Is there a good alternative for
694 RedHat, or does Sup have to start manually parsing ~/.mailcap,
695 /etc/mailcap/, etc?
696 --
697 William <wmorgan-sup at masanjin.net>
698
699 From wmorgan-sup@masanjin.net Thu May 7 09:23:33 2009
700 From: wmorgan-sup@masanjin.net (William Morgan)
701 Date: Thu, 07 May 2009 06:23:33 -0700
702 Subject: [sup-talk] sent source
703 In-Reply-To: <f96e0240905061702m43899549p5ea53b5b6c478b02@mail.gmail.com>
704 References: <f96e0240905061702m43899549p5ea53b5b6c478b02@mail.gmail.com>
705 Message-ID: <1241702060-sup-3211@entry>
706
707 Reformatted excerpts from Ben Walton's message of 2009-05-06:
708 > The next option is to play with locks, but that's not straight forward
709 > at all.
710
711 This is my favorite option, because sup-sync-back also has to do mbox
712 locking, so I don't think we can avoid the issue in general.
713
714 > Dovecot, as an example, allows a configuration knob for the admin to
715 > set the order in which the different mechanisms are used. This works
716 > as long as all of the mbox consumers use the same sequence. There is
717 > still lots of room for error here (NFS, etc).
718
719 Currently sup-sync-back just says, "hey, you can use this program
720 /usr/bin/dotlockfile if you have it" and pushes the details of locking
721 to that. I think that's at least a vaguely reasonable approach. Ideally
722 it would be more configurable, would fall back to other locking
723 programs, etc., but I think it's significantly better than not doing any
724 locking at all.
725
726 (Eventually these two mbox writers should share the same locking code,
727 but don't feel obligated to refactor as part of your patch if it's
728 already getting too hairy.)
729 --
730 William <wmorgan-sup at masanjin.net>
731
732 From wmorgan-sup@masanjin.net Thu May 7 09:12:31 2009
733 From: wmorgan-sup@masanjin.net (William Morgan)
734 Date: Thu, 07 May 2009 06:12:31 -0700
735 Subject: [sup-talk] IMAP questions (n00b) :)
736 In-Reply-To: <24cc29320905070338u1e23c6d3sa78c20dd0da60b19@mail.gmail.com>
737 References: <24cc29320905070338u1e23c6d3sa78c20dd0da60b19@mail.gmail.com>
738 Message-ID: <1241701676-sup-657@entry>
739
740 Reformatted excerpts from Filip Stokkeland's message of 2009-05-07:
741 > Hi! I just discovered and started testing Sup. And it looks great!
742
743 Thanks!
744
745 > I tried browsing through some of the mailing list archives, and I
746 > found postings saying Sup does not sync back to IMAP(S). So I take it
747 > then, that when I mark mail as read or as spam, nothing happens on the
748 > IMAP server, but only in the local Sup index?
749
750 That's correct. I'm not opposed to pushing those flags back to the IMAP
751 server in principle, at least in batch mode (there's a tool that does
752 that now for mbox, and I'm working on Maildir), but writing that code
753 pretty low on my personal priority queue at the moment.
754
755 > And another thing. I have my main work email today sorted on the
756 > server, using Sieve, so I get new email sorted into 40 different IMAP
757 > folders. In Sup, can I get it to automatically fetch from all
758 > subscribed IMAP folders?
759
760 There's not a good automatic way of doing this. If you can generate the
761 list of folders, then you can run sup-add on each one.
762
763 > Or maybe I should rather fetch all this email into my own local server
764 > using fetchmail or something and then either put it all in one big
765 > inbox or multiple mboxes locally and then add this as source?
766
767 Current best practice for IMAP is to sync it locally with a program like
768 offlineimap. That also speeds things up, e.g. when you open a thread
769 with 100 messages, Sup wants to download them all at once, and IMAP is
770 much slower than Maildir for that.
771 --
772 William <wmorgan-sup at masanjin.net>
773
774 From marka@pobox.com Thu May 7 11:29:30 2009
775 From: marka@pobox.com (Mark Alexander)
776 Date: Thu, 7 May 2009 11:29:30 -0400
777 Subject: [sup-talk] /usr/bin/run-mailcap
778 In-Reply-To: <1241701545-sup-3821@entry>
779 References: <24cc29320905070458g7b970ea4rbfcc469d6afc3a3d@mail.gmail.com>
780 <1241701545-sup-3821@entry>
781 Message-ID: <a412e2a70905070829w2725cf8dw7ab3c24158bd1bfc@mail.gmail.com>
782
783 On Thu, May 7, 2009 at 9:07 AM, William Morgan <wmorgan-sup at masanjin.net> wrote:
784 > Reformatted excerpts from Filip Stokkeland's message of 2009-05-07:
785 >> Maybe run-mailcap a Debian/Ubuntu thing? ?(I'll be back on my regular
786 >> ubuntu installation soon enough anyway, just using a lab machine right
787 >> now.) In Mutt I don't believe I did anything except use my default
788 >> .mailcap ...
789 >
790 > It could very well be a Debianism. Is there a good alternative for
791 > RedHat, or does Sup have to start manually parsing ~/.mailcap,
792 > /etc/mailcap/, etc?
793
794 For my Fedora 4 system, I found the run-mailcap script somewhere
795 (I forget where now, but I probably used Google to find it), and manually
796 installed it in /usr/bin.
797
798 From bwalton@artsci.utoronto.ca Thu May 7 09:21:21 2009
799 From: bwalton@artsci.utoronto.ca (Ben Walton)
800 Date: Thu, 07 May 2009 09:21:21 -0400
801 Subject: [sup-talk] /usr/bin/run-mailcap
802 In-Reply-To: <1241701545-sup-3821@entry>
803 References: <24cc29320905070458g7b970ea4rbfcc469d6afc3a3d@mail.gmail.com>
804 <1241701545-sup-3821@entry>
805 Message-ID: <1241702388-sup-6440@ntdws12.chass.utoronto.ca>
806
807 Excerpts from William Morgan's message of Thu May 07 09:07:32 -0400 2009:
808 > It could very well be a Debianism. Is there a good alternative for
809 > RedHat, or does Sup have to start manually parsing ~/.mailcap,
810 > /etc/mailcap/, etc?
811
812 I just copied the script onto my box (rhel5.3) and it works fine.
813 Maybe a config knob for those that can't stick it in /usr/bin (or a
814 less hardcoded way of calling it to allow for $PATH).
815
816 -Ben
817 --
818 Ben Walton
819 Systems Programmer - CHASS
820 University of Toronto
821 C:416.407.5610 | W:416.978.4302
822
823 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
824 Contact me to arrange for a CAcert assurance meeting.
825 -------------- next part --------------
826 A non-text attachment was scrubbed...
827 Name: signature.asc
828 Type: application/pgp-signature
829 Size: 189 bytes
830 Desc: not available
831 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090507/5bc6dee1/attachment.bin>
832
833 From bwalton@artsci.utoronto.ca Thu May 7 17:57:22 2009
834 From: bwalton@artsci.utoronto.ca (Ben Walton)
835 Date: Thu, 07 May 2009 17:57:22 -0400
836 Subject: [sup-talk] sent source
837 In-Reply-To: <1241702060-sup-3211@entry>
838 References: <f96e0240905061702m43899549p5ea53b5b6c478b02@mail.gmail.com>
839 <1241702060-sup-3211@entry>
840 Message-ID: <1241733359-sup-131@ntdws12.chass.utoronto.ca>
841
842 Excerpts from William Morgan's message of Thu May 07 09:23:33 -0400 2009:
843 > Reformatted excerpts from Ben Walton's message of 2009-05-06:
844 > > The next option is to play with locks, but that's not straight forward
845 > > at all.
846 >
847 > This is my favorite option, because sup-sync-back also has to do mbox
848 > locking, so I don't think we can avoid the issue in general.
849
850 Ok. This is the direction I'll go. This will be the most difficult
851 part of the whole thing.
852
853 > Currently sup-sync-back just says, "hey, you can use this program
854 > /usr/bin/dotlockfile if you have it" and pushes the details of locking
855 > to that. I think that's at least a vaguely reasonable approach. Ideally
856 > it would be more configurable, would fall back to other locking
857 > programs, etc., but I think it's significantly better than not doing any
858 > locking at all.
859
860 Wouldn't it be nicer to handle this internally?
861
862 > (Eventually these two mbox writers should share the same locking code,
863 > but don't feel obligated to refactor as part of your patch if it's
864 > already getting too hairy.)
865
866 Ok.
867
868 Thanks
869 -Ben
870 --
871 Ben Walton
872 Systems Programmer - CHASS
873 University of Toronto
874 C:416.407.5610 | W:416.978.4302
875
876 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
877 Contact me to arrange for a CAcert assurance meeting.
878 -------------- next part --------------
879 A non-text attachment was scrubbed...
880 Name: signature.asc
881 Type: application/pgp-signature
882 Size: 189 bytes
883 Desc: not available
884 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090507/9dcc7d13/attachment.bin>
885
886 From bwalton@artsci.utoronto.ca Thu May 7 18:01:16 2009
887 From: bwalton@artsci.utoronto.ca (Ben Walton)
888 Date: Thu, 07 May 2009 18:01:16 -0400
889 Subject: [sup-talk] flexible sent source (update)
890 Message-ID: <1241733502-sup-26@ntdws12.chass.utoronto.ca>
891
892
893 Hi All,
894
895 I've pushed a few new changes to the bw/flexible_sent branch at
896 git://code.chass.utoronto.ca/bwalton-sup.git. It is now possible to
897 use sup-config to choose which (valid) mail source to store messages
898 in and I tweaked how the special sent label is applied.
899
900 I'd appreciate it if those interested in the topic played with this
901 branch. William, I'd also appreciate any feedback you have on it at
902 this point. (Do you mind pulling my branch, or would you prefer a
903 git-send-email stack of patches?)
904
905 I still need to tackle mbox locking...
906
907 Thanks
908 -Ben
909 --
910 Ben Walton
911 Systems Programmer - CHASS
912 University of Toronto
913 C:416.407.5610 | W:416.978.4302
914
915 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
916 Contact me to arrange for a CAcert assurance meeting.
917 -------------- next part --------------
918 A non-text attachment was scrubbed...
919 Name: signature.asc
920 Type: application/pgp-signature
921 Size: 189 bytes
922 Desc: not available
923 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090507/b2a65479/attachment.bin>
924
925 From andrew@pimlott.net Fri May 8 12:42:26 2009
926 From: andrew@pimlott.net (Andrew Pimlott)
927 Date: Fri, 8 May 2009 09:42:26 -0700
928 Subject: [sup-talk] sup-sync dies; memory limit?
929 Message-ID: <20090508164226.GA28854@pimlott.net>
930
931 I have been running sup-sync on a new mailbox, and it tends to get
932 partway through and then die, but not in the same place each time.
933 Twice, the error has been like
934
935 /var/lib/gems/1.8/gems/sup-0.7/lib/sup/crypto.rb:162:in ``': Cannot allocate memory - /usr/bin/gpg --quiet --batch --no-verbose --logger-fd 1 --use-agent --verify /tmp/28751-0-redwood.signature /tmp/28751-0-redwood.payload 2> /dev/null (Errno::ENOMEM)
936
937 followed by a backtrace. Another time, it was just
938
939 zsh: killed /var/lib/gems/1.8/bin/sup-sync --all-sources
940
941 I monitored the sup-sync process the last time. It's memory use grew
942 slowly, and the process died at around 64M of virtual memory. I don't
943 have any memory limits set. Is it possible that sup-sync or ruby uses
944 some itself? Any other ideas?
945
946 Andrew
947
948 From bwalton@artsci.utoronto.ca Fri May 8 22:10:55 2009
949 From: bwalton@artsci.utoronto.ca (Ben Walton)
950 Date: Fri, 08 May 2009 22:10:55 -0400
951 Subject: [sup-talk] sent source
952 In-Reply-To: <1241702060-sup-3211@entry>
953 References: <f96e0240905061702m43899549p5ea53b5b6c478b02@mail.gmail.com>
954 <1241702060-sup-3211@entry>
955 Message-ID: <1241834800-sup-1443@ntdws12.chass.utoronto.ca>
956
957 Excerpts from William Morgan's message of Thu May 07 09:23:33 -0400 2009:
958 > Currently sup-sync-back just says, "hey, you can use this program
959 > /usr/bin/dotlockfile if you have it" and pushes the details of locking
960 > to that. I think that's at least a vaguely reasonable approach. Ideally
961 > it would be more configurable, would fall back to other locking
962 > programs, etc., but I think it's significantly better than not doing any
963 > locking at all.
964
965 ...Ok, what about implementing the dotlockfile functionality inside a
966 LockManager singleton? I'm thinking about something that would accept
967 a list of required locks before allowing read and write. It would
968 then provide with_readlock(file, &block) and with_writelock(file,
969 &block) methods that obtain required locks and yield to the caller to
970 do the actual work.
971
972 > (Eventually these two mbox writers should share the same locking code,
973 > but don't feel obligated to refactor as part of your patch if it's
974 > already getting too hairy.)
975
976 sup-sync-back could make use of this LockManager too.
977
978 Thoughts?
979
980 Thanks
981 -Ben
982 --
983 Ben Walton
984 Systems Programmer - CHASS
985 University of Toronto
986 C:416.407.5610 | W:416.978.4302
987
988 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
989 Contact me to arrange for a CAcert assurance meeting.
990 -------------- next part --------------
991 A non-text attachment was scrubbed...
992 Name: signature.asc
993 Type: application/pgp-signature
994 Size: 189 bytes
995 Desc: not available
996 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090508/8b72cea9/attachment.bin>
997
998 From wmorgan-sup@masanjin.net Sat May 9 09:01:04 2009
999 From: wmorgan-sup@masanjin.net (William Morgan)
1000 Date: Sat, 09 May 2009 06:01:04 -0700
1001 Subject: [sup-talk] sent source
1002 In-Reply-To: <1241834800-sup-1443@ntdws12.chass.utoronto.ca>
1003 References: <f96e0240905061702m43899549p5ea53b5b6c478b02@mail.gmail.com>
1004 <1241702060-sup-3211@entry>
1005 <1241834800-sup-1443@ntdws12.chass.utoronto.ca>
1006 Message-ID: <1241873892-sup-9543@entry>
1007
1008 Reformatted excerpts from Ben Walton's message of 2009-05-08:
1009 > ...Ok, what about implementing the dotlockfile functionality inside a
1010 > LockManager singleton? I'm thinking about something that would accept
1011 > a list of required locks before allowing read and write. It would
1012 > then provide with_readlock(file, &block) and with_writelock(file,
1013 > &block) methods that obtain required locks and yield to the caller to
1014 > do the actual work.
1015
1016 That sounds good to me and is very much in the spirit of the current Sup
1017 codebase. I'd like to also have a non-yield mechanism (e.g. #lock and
1018 #unlock methods), similar to the interface Mutex exposes, because
1019 sometimes it's irritating to use the block form, but that's icing on the
1020 cake.
1021
1022 > sup-sync-back could make use of this LockManager too.
1023
1024 Yes, definitely they should all share the same code path.
1025 --
1026 William <wmorgan-sup at masanjin.net>
1027
1028 From andrew@pimlott.net Mon May 11 14:26:15 2009
1029 From: andrew@pimlott.net (Andrew Pimlott)
1030 Date: Mon, 11 May 2009 11:26:15 -0700
1031 Subject: [sup-talk] sup-sync dies; memory limit?
1032 In-Reply-To: <20090508164226.GA28854@pimlott.net>
1033 References: <20090508164226.GA28854@pimlott.net>
1034 Message-ID: <20090511182615.GI28854@pimlott.net>
1035
1036 I forgot to mention, this was the latest release (0.7) installed with
1037 gem. I just tried the current git mainline (clearing all my .sup state
1038 first), and it got through my whole mailbox without a problem.
1039
1040 Andrew
1041
1042 On Fri, May 08, 2009 at 09:42:26AM -0700, Andrew Pimlott wrote:
1043 > I have been running sup-sync on a new mailbox, and it tends to get
1044 > partway through and then die, but not in the same place each time.
1045 > Twice, the error has been like
1046 >
1047 > /var/lib/gems/1.8/gems/sup-0.7/lib/sup/crypto.rb:162:in ``': Cannot allocate memory - /usr/bin/gpg --quiet --batch --no-verbose --logger-fd 1 --use-agent --verify /tmp/28751-0-redwood.signature /tmp/28751-0-redwood.payload 2> /dev/null (Errno::ENOMEM)
1048 >
1049 > followed by a backtrace. Another time, it was just
1050 >
1051 > zsh: killed /var/lib/gems/1.8/bin/sup-sync --all-sources
1052 >
1053 > I monitored the sup-sync process the last time. It's memory use grew
1054 > slowly, and the process died at around 64M of virtual memory. I don't
1055 > have any memory limits set. Is it possible that sup-sync or ruby uses
1056 > some itself? Any other ideas?
1057 >
1058 > Andrew
1059 > _______________________________________________
1060 > sup-talk mailing list
1061 > sup-talk at rubyforge.org
1062 > http://rubyforge.org/mailman/listinfo/sup-talk
1063
1064 From wmorgan-sup@masanjin.net Tue May 12 13:19:48 2009
1065 From: wmorgan-sup@masanjin.net (William Morgan)
1066 Date: Tue, 12 May 2009 10:19:48 -0700
1067 Subject: [sup-talk] sup-sync dies; memory limit?
1068 In-Reply-To: <20090511182615.GI28854@pimlott.net>
1069 References: <20090508164226.GA28854@pimlott.net>
1070 <20090511182615.GI28854@pimlott.net>
1071 Message-ID: <1242148438-sup-9068@entry>
1072
1073 Reformatted excerpts from Andrew Pimlott's message of 2009-05-11:
1074 > On Fri, May 08, 2009 at 09:42:26AM -0700, Andrew Pimlott wrote:
1075 > > I don't have any memory limits set. Is it possible that sup-sync or
1076 > > ruby uses some itself? Any other ideas?
1077
1078 Very mysterious. Sup-sync doesn't do anything fancy with memory; it's a
1079 fairly straight-forward Ruby script. Maybe one of the C extensions (like
1080 Ferret) has a memory leak.
1081
1082 > I forgot to mention, this was the latest release (0.7) installed with
1083 > gem. I just tried the current git mainline (clearing all my .sup
1084 > state first), and it got through my whole mailbox without a problem.
1085
1086 Evey more mysterious. The differences between these two versions are
1087 trivial:
1088
1089 diff --git a/origin/release-0.7:bin/sup-sync b/origin/master:bin/sup-sync
1090 index ac5caf6..91710d4 100644
1091 --- a/origin/release-0.7:bin/sup-sync
1092 +++ b/origin/master:bin/sup-sync
1093 @@ -143,12 +143,7 @@ begin
1094 next if target == :changed && entry && entry[:source_id].to_i == source.id && entry[:source_info].to_i == offset
1095
1096 ## get the state currently in the index
1097 - index_state =
1098 - if entry
1099 - entry[:label].split(/\s+/).map { |x| x.intern }
1100 - else
1101 - nil
1102 - end
1103 + index_state = entry[:label].split(/\s+/).map { |x| x.intern } if entry
1104
1105 ## skip if we're operating on restored messages, and this one
1106 ## ain't.
1107 @@ -163,7 +158,7 @@ begin
1108 ## assign message labels based on the operation we're performing
1109 case op
1110 when :asis
1111 - m.labels = index_state if index_state
1112 + m.labels = ((m.labels - [:unread, :inbox]) + index_state).uniq if index_state
1113 when :restore
1114 ## if the entry exists on disk
1115 if restored_state[m.id]
1116
1117
1118 I'm at a loss.
1119 --
1120 William <wmorgan-sup at masanjin.net>
1121
1122 From andrew@pimlott.net Tue May 12 14:31:58 2009
1123 From: andrew@pimlott.net (Andrew Pimlott)
1124 Date: Tue, 12 May 2009 11:31:58 -0700
1125 Subject: [sup-talk] sup-sync dies; memory limit?
1126 In-Reply-To: <1242148438-sup-9068@entry>
1127 References: <20090508164226.GA28854@pimlott.net>
1128 <20090511182615.GI28854@pimlott.net> <1242148438-sup-9068@entry>
1129 Message-ID: <20090512183158.GO28854@pimlott.net>
1130
1131 On Tue, May 12, 2009 at 10:19:48AM -0700, William Morgan wrote:
1132 > Reformatted excerpts from Andrew Pimlott's message of 2009-05-11:
1133 > > On Fri, May 08, 2009 at 09:42:26AM -0700, Andrew Pimlott wrote:
1134 > > > I don't have any memory limits set. Is it possible that sup-sync or
1135 > > > ruby uses some itself? Any other ideas?
1136 >
1137 > Very mysterious.
1138
1139 I cannot reproduce the problem anymore, but as far as I know, nothing
1140 changed on my system (other than the inbox I am testing with evolving
1141 routinely). sup-sync from the 0.7 gem now runs to completion and never
1142 uses more than ~36M virtual memory (before it got up around 60M before
1143 crashing). It doesn't seem possible that the git copy of sup affected
1144 the installed gem. So I'm at a complete loss too.
1145
1146 Andrew
1147
1148 From wmorgan-sup@masanjin.net Tue May 12 15:54:35 2009
1149 From: wmorgan-sup@masanjin.net (William Morgan)
1150 Date: Tue, 12 May 2009 12:54:35 -0700
1151 Subject: [sup-talk] sup-sync dies; memory limit?
1152 In-Reply-To: <20090512183158.GO28854@pimlott.net>
1153 References: <20090508164226.GA28854@pimlott.net>
1154 <20090511182615.GI28854@pimlott.net> <1242148438-sup-9068@entry>
1155 <20090512183158.GO28854@pimlott.net>
1156 Message-ID: <1242158027-sup-1409@entry>
1157
1158 Reformatted excerpts from Andrew Pimlott's message of 2009-05-12:
1159 > It doesn't seem possible that the git copy of sup affected the
1160 > installed gem. So I'm at a complete loss too.
1161
1162 Let's just pretend this never happened.
1163 --
1164 William <wmorgan-sup at masanjin.net>
1165
1166 From damon.conway@alchemysystems.com Tue May 12 13:18:45 2009
1167 From: damon.conway@alchemysystems.com (Damon Conway)
1168 Date: Tue, 12 May 2009 12:18:45 -0500
1169 Subject: [sup-talk] sup crash when doing search
1170 Message-ID: <1242148324-sup-9511@case>
1171
1172
1173 I installed the chronic gem with "sudo gem install chronic", and then tried a search by date.
1174
1175 I did "before:(1st apr)" in a global search, and sup crashed. I have included the exception log below.
1176 My guess is that I'm missing a gem, but I'm not quite sure which one. I just installed sup yesterday
1177 after I found it when looking around for any news on imap support in nmh so it's very likely that I've
1178 missed something.
1179
1180 So far sup is quite impressive. Keep up the good work, and thanks for the mail client.
1181
1182 Thanks,
1183 Damon
1184
1185 Some system details:
1186 Ubuntu 9.04
1187 Dell XPS 1210
1188 ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
1189 gnome-terminal 2.26.0
1190 Screen version 4.00.03jw4 (FAU) 2-May-06
1191
1192 --- NoMethodError from thread: main
1193 private method `gsub' called for nil:NilClass
1194 /var/lib/gems/1.8/gems/sup-0.7/lib/sup/index.rb:568:in `parse_user_query_string'
1195 /var/lib/gems/1.8/gems/sup-0.7/lib/sup/util.rb:499:in `send'
1196 /var/lib/gems/1.8/gems/sup-0.7/lib/sup/util.rb:499:in `method_missing'
1197 /var/lib/gems/1.8/gems/sup-0.7/lib/sup/modes/search-results-mode.rb:29:in `spawn_from_query'
1198 /var/lib/gems/1.8/gems/sup-0.7/bin/sup:239
1199 /var/lib/gems/1.8/bin/sup:19:in `load'
1200 /var/lib/gems/1.8/bin/sup:19
1201
1202 From andrew@pimlott.net Tue May 12 19:33:03 2009
1203 From: andrew@pimlott.net (Andrew Pimlott)
1204 Date: Tue, 12 May 2009 16:33:03 -0700
1205 Subject: [sup-talk] inconsistencies and new user confusion
1206 Message-ID: <20090512233303.GU28854@pimlott.net>
1207
1208 I'm making my second try at switching to sup (though the first was
1209 pretty half-assed). I'm in that state where too many things are
1210 happening that I don't understand, so I need some clarification on how
1211 things are supposed to work. I'm using the mainline as of a few days
1212 ago, where the last checkin is may 4.
1213
1214 There seem to be serious consistency issues. For example, I applied a
1215 label "cal" to a thread. I press "L" to list labels, and it's not
1216 there. I sync the mailbox, unsure if this is needed. (It shouldn't be,
1217 of course--if it is, I hope this is intended to be fixed, perhaps with
1218 the undo work.) Now, "cal" shows up in the label list, but with a
1219 message count less than the number I labeled. At some point down the
1220 line, after more activity, it gets the count right.
1221
1222 Similarly, I have now a mailbox in which I deleted a thread of 2
1223 messages, then added a reply to that mailbox (from outside sup). In my
1224 inbox, I only see the reply, and the labels are "inbox". Shouldn't the
1225 thread always "stick together"? If I switch to the "deleted" label, I
1226 see the expected thread of three messages, but on all three the labels
1227 are "deleted, inbox". I had another case recently in all messages in a
1228 thread had labels "deleted, inbox", but the thread still showed up in my
1229 inbox. Any idea what's going on?
1230
1231 Andrew
1232
1233 From ezyang@MIT.EDU Wed May 13 01:23:49 2009
1234 From: ezyang@MIT.EDU (Edward Z. Yang)
1235 Date: Wed, 13 May 2009 01:23:49 -0400
1236 Subject: [sup-talk] inconsistencies and new user confusion
1237 In-Reply-To: <20090513042345.GB18461@cabinet.hsd1.ma.comcast.net>
1238 References: <20090512233303.GU28854@pimlott.net>
1239 <20090513042345.GB18461@cabinet.hsd1.ma.comcast.net>
1240 Message-ID: <1242192198-sup-9446@javelin>
1241
1242 Excerpts from marc.hartstein's message of Wed May 13 00:23:45 -0400 2009:
1243 > 'deleted' means "don't show this to me even if there are new messages in
1244 > the thread.
1245
1246 I was under the impression that "killing" a thread was what did that?
1247
1248 Cheers,
1249 Edward
1250
1251 From marcus-sup@bar-coded.net Wed May 13 03:14:12 2009
1252 From: marcus-sup@bar-coded.net (Marcus Williams)
1253 Date: Wed, 13 May 2009 08:14:12 +0100
1254 Subject: [sup-talk] sup crash when doing search
1255 In-Reply-To: <1242148324-sup-9511@case>
1256 References: <1242148324-sup-9511@case>
1257 Message-ID: <1242198767-sup-3140@tomsk>
1258
1259 On 12.5.2009, Damon Conway wrote:
1260 > I did "before:(1st apr)" in a global search, and sup crashed. I have included
1261 > the exception log below.
1262
1263 I can reproduce this, although this used to work. Not sure whats
1264 happening offhand but I'll poke around and see if I can fix it.
1265
1266 Marcus
1267
1268 From marcus-sup@bar-coded.net Wed May 13 04:50:24 2009
1269 From: marcus-sup@bar-coded.net (Marcus Williams)
1270 Date: Wed, 13 May 2009 09:50:24 +0100
1271 Subject: [sup-talk] sup crash when doing search
1272 In-Reply-To: <1242198767-sup-3140@tomsk>
1273 References: <1242148324-sup-9511@case> <1242198767-sup-3140@tomsk>
1274 Message-ID: <1242204467-sup-6823@tomsk>
1275
1276 On 13.5.2009, I wrote:
1277 > I can reproduce this, although this used to work. Not sure whats
1278 > happening offhand but I'll poke around and see if I can fix it.
1279
1280 Ok, the crash doesnt happen in master only in next. The reason for the
1281 crash is the new "limit" search option that doesnt check if chronic
1282 has failed. Patch for that to follow (against next).
1283
1284 Theres also another bug in that Chronic should default to date
1285 searches in the past as email is almost always dated earlier than your
1286 current time (except spam). So theres a patch for that following as
1287 well (against master)
1288
1289 Marcus
1290
1291 From marcus-sup@bar-coded.net Wed May 13 05:00:31 2009
1292 From: marcus-sup@bar-coded.net (Marcus Williams)
1293 Date: Wed, 13 May 2009 10:00:31 +0100
1294 Subject: [sup-talk] [PATCH] limit option parser nil check
1295 Message-ID: <1242205071-sup-2484@tomsk>
1296
1297 The limit search option doesnt check if the current search term is nil
1298 (when chronic has failed for instance). This patch (against next) adds
1299 the check.
1300 ---
1301 lib/sup/index.rb | 2 +-
1302 1 files changed, 1 insertions(+), 1 deletions(-)
1303
1304 diff --git a/lib/sup/index.rb b/lib/sup/index.rb
1305 index c66a24e..4ebc966 100644
1306 --- a/lib/sup/index.rb
1307 +++ b/lib/sup/index.rb
1308 @@ -584,7 +584,7 @@ protected
1309 BufferManager.flash "Can't understand limit #{lim.inspect}!"
1310 subs = nil
1311 end
1312 - end
1313 + end unless subs.nil?
1314
1315 if subs
1316 [@qparser.parse(subs), extraopts]
1317 --
1318 1.5.4.1
1319
1320 From marcus-sup@bar-coded.net Wed May 13 05:02:31 2009
1321 From: marcus-sup@bar-coded.net (Marcus Williams)
1322 Date: Wed, 13 May 2009 10:02:31 +0100
1323 Subject: [sup-talk] [PATCH] Chronic context fix
1324 Message-ID: <1242205240-sup-5042@tomsk>
1325
1326 Chronic should use a context of :past for email date searches as emails
1327 tend to be in the past. This fixes a problem when the wrong year is
1328 guessed. To search for emails in the future you now need to be less
1329 ambiguous (1 apr 2099 instead of 1 apr).
1330 ---
1331 lib/sup/index.rb | 2 +-
1332 1 files changed, 1 insertions(+), 1 deletions(-)
1333
1334 diff --git a/lib/sup/index.rb b/lib/sup/index.rb
1335 index 235a18c..779bf02 100644
1336 --- a/lib/sup/index.rb
1337 +++ b/lib/sup/index.rb
1338 @@ -506,7 +506,7 @@ protected
1339 subs = subs.gsub(/\b(before|on|in|during|after):(\((.+?)\)\B|(\S+)\b)/) do
1340 break if chronic_failure
1341 field, datestr = $1, ($3 || $4)
1342 - realdate = Chronic.parse(datestr, :guess => false, :context => :none)
1343 + realdate = Chronic.parse(datestr, :guess => false, :context => :past)
1344 if realdate
1345 case field
1346 when "after"
1347 --
1348 1.5.4.1
1349
1350 From marcus-sup@bar-coded.net Wed May 13 05:31:36 2009
1351 From: marcus-sup@bar-coded.net (Marcus Williams)
1352 Date: Wed, 13 May 2009 10:31:36 +0100
1353 Subject: [sup-talk] sup crash when doing search
1354 In-Reply-To: <1242204467-sup-6823@tomsk>
1355 References: <1242148324-sup-9511@case> <1242198767-sup-3140@tomsk>
1356 <1242204467-sup-6823@tomsk>
1357 Message-ID: <1242207018-sup-4894@tomsk>
1358
1359 On 13.5.2009, I wrote:
1360 > Theres also another bug in that Chronic should default to date
1361 > searches in the past as email is almost always dated earlier than your
1362 > current time (except spam). So theres a patch for that following as
1363 > well (against master)
1364
1365 I should also have added that chronic doesnt understand dates like
1366 "1st apr" strangely, but it should have told you (the patches fix this
1367 problem). "1 apr", "apr 1st" are ok I think.
1368
1369 Marcus
1370
1371 From henri.ducrocq@gmail.com Wed May 13 07:37:04 2009
1372 From: henri.ducrocq@gmail.com (Henri Ducrocq)
1373 Date: Wed, 13 May 2009 12:37:04 +0100
1374 Subject: [sup-talk] Notification tools
1375 Message-ID: <1242213878-sup-4217@ptoseis>
1376
1377 (First of alli: Thanks William for that very gorgeous piece of software!)
1378
1379 I would like to use mail-notification (or an equivalent) to display the status of
1380 my inbox in my system tray, I mean the number of unread emails.
1381 But of course that program isn't aware of what messages have been read inside sup.
1382
1383 What can I do to fix this? I thought about having the after-poll hook dump all new
1384 messages into a dummy mbox file, which would be monitored by mail-notification..
1385 But there must be a simpler way?
1386
1387 From andrew@pimlott.net Wed May 13 10:53:11 2009
1388 From: andrew@pimlott.net (Andrew Pimlott)
1389 Date: Wed, 13 May 2009 07:53:11 -0700
1390 Subject: [sup-talk] inconsistencies and new user confusion
1391 In-Reply-To: <20090513042345.GB18461@cabinet.hsd1.ma.comcast.net>
1392 References: <20090512233303.GU28854@pimlott.net>
1393 <20090513042345.GB18461@cabinet.hsd1.ma.comcast.net>
1394 Message-ID: <20090513145311.GX28854@pimlott.net>
1395
1396 On Wed, May 13, 2009 at 12:23:45AM -0400, Marc Hartstein wrote:
1397 > 'deleted' means "don't show this to me even if there are new messages in
1398 > the thread.
1399
1400 Is this the intended behavior? Unfortunately, I'm seeing several
1401 variations. I have a thread now, which I deleted then added a new
1402 message to, and some but not all of the previously deleted messages are
1403 back in my inbox. If I quit sup and restart, only the new message is in
1404 my inbox. As I said, the labels shown in the message headers are
1405 inconsistent as well. In this case, both the deleted messages and the
1406 new message had the deleted label, which contradicts them showing up in
1407 my inbox. After a quit and restart, the new message loses the deleted
1408 label when viewed from my inbox. But if I do a label search for
1409 deleted, the whole thread is there--and even the new message has the
1410 deleted label.
1411
1412 Andrew
1413
1414 From marcus-sup@bar-coded.net Wed May 13 11:28:06 2009
1415 From: marcus-sup@bar-coded.net (Marcus Williams)
1416 Date: Wed, 13 May 2009 16:28:06 +0100
1417 Subject: [sup-talk] Strange problem in before-edit hook
1418 Message-ID: <1242228484-sup-2569@tomsk>
1419
1420 The automatic setting of the from address on a reply works really well
1421 in sup, but I've been trying to get new emails do something similar
1422 with the hook mechanism.
1423
1424 I've got the before-edit hook to do set my from address by picking up
1425 the previously used from address from a search using the sent label.
1426 Basically this means if I send a new email to someone using a specific
1427 from address, it picks up my last used from address as the default the
1428 next time I send them an email. This saves having to write something
1429 specific for every email/domain I send to.
1430
1431 It works really well but I get the odd crash in the hook because the
1432 header['To'] sometimes is an array rather than the expected string.
1433 I've got around this by doing a to_s on the header but I cant figure
1434 out why I'd ever get an array. Anyone got any ideas?
1435
1436 Heres the hook:
1437
1438 ### start of before-edit
1439 fr = nil
1440 emailto = ""
1441
1442 hdrto = header["To"].to_s
1443
1444 hdrto.split(' ').find() { |e| e.include?("@") }.each() do |ee|
1445 if ee.include?("<")
1446 emailto = ee[1..-2]
1447 else
1448 emailto = ee
1449 end
1450 end
1451
1452 Index.index.search_each("to:\"#{emailto}\" AND label:sent") { |id, score| m = Index.build_message(id); fr = m.from }
1453
1454 header["From"] = fr.full_address unless fr.nil?
1455 header["Return-Path"] = header["From"]
1456 ### end of before-edit
1457
1458 From wmorgan-sup@masanjin.net Wed May 13 14:11:10 2009
1459 From: wmorgan-sup@masanjin.net (William Morgan)
1460 Date: Wed, 13 May 2009 11:11:10 -0700
1461 Subject: [sup-talk] flexible sent source (update)
1462 In-Reply-To: <1241733502-sup-26@ntdws12.chass.utoronto.ca>
1463 References: <1241733502-sup-26@ntdws12.chass.utoronto.ca>
1464 Message-ID: <1242238048-sup-6168@entry>
1465
1466 Hi Ben,
1467
1468 Reformatted excerpts from Ben Walton's message of 2009-05-07:
1469 > I'd appreciate it if those interested in the topic played with this
1470 > branch. William, I'd also appreciate any feedback you have on it at
1471 > this point. (Do you mind pulling my branch, or would you prefer a
1472 > git-send-email stack of patches?)
1473
1474 This branch looks great. Thanks! We're going to have to rebase it
1475 against master before merging in, but I think that will be easier once I
1476 merge a few other branches down from next to master.
1477
1478 > I still need to tackle mbox locking...
1479
1480 This is puntable for now, if we make it clear to the user that their
1481 sent box shouldn't also receive mail.
1482 --
1483 William <wmorgan-sup at masanjin.net>
1484
1485 From bwalton@artsci.utoronto.ca Wed May 13 14:50:23 2009
1486 From: bwalton@artsci.utoronto.ca (Ben Walton)
1487 Date: Wed, 13 May 2009 14:50:23 -0400
1488 Subject: [sup-talk] flexible sent source (update)
1489 In-Reply-To: <1242238048-sup-6168@entry>
1490 References: <1241733502-sup-26@ntdws12.chass.utoronto.ca>
1491 <1242238048-sup-6168@entry>
1492 Message-ID: <1242240494-sup-9505@ntdws12.chass.utoronto.ca>
1493
1494 Excerpts from William Morgan's message of Wed May 13 14:11:10 -0400 2009:
1495 > Reformatted excerpts from Ben Walton's message of 2009-05-07:
1496 > > I'd appreciate it if those interested in the topic played with this
1497 > > branch. William, I'd also appreciate any feedback you have on it at
1498 > > this point. (Do you mind pulling my branch, or would you prefer a
1499 > > git-send-email stack of patches?)
1500 >
1501 > This branch looks great. Thanks! We're going to have to rebase it
1502 > against master before merging in, but I think that will be easier once I
1503 > merge a few other branches down from next to master.
1504
1505 Ok. I can do that when you're ready.
1506
1507 > > I still need to tackle mbox locking...
1508 >
1509 > This is puntable for now, if we make it clear to the user that their
1510 > sent box shouldn't also receive mail.
1511
1512 Well, I'm working on it (slowly) already. It shouldn't be as bad as
1513 I'd initially thought it would be. The lockfile library should handle
1514 the needs for the dotlocking, and I'll add some fcntl and flock
1515 support too, so that it's "stackable" in a similar fashion to the way
1516 dovecot works.
1517
1518 Thanks
1519 -Ben
1520 --
1521 Ben Walton
1522 Systems Programmer - CHASS
1523 University of Toronto
1524 C:416.407.5610 | W:416.978.4302
1525
1526 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
1527 Contact me to arrange for a CAcert assurance meeting.
1528 -------------- next part --------------
1529 A non-text attachment was scrubbed...
1530 Name: signature.asc
1531 Type: application/pgp-signature
1532 Size: 189 bytes
1533 Desc: not available
1534 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090513/bbdf512e/attachment.bin>
1535
1536 From wmorgan-sup@masanjin.net Wed May 13 14:54:53 2009
1537 From: wmorgan-sup@masanjin.net (William Morgan)
1538 Date: Wed, 13 May 2009 11:54:53 -0700
1539 Subject: [sup-talk] Notification tools
1540 In-Reply-To: <1242213878-sup-4217@ptoseis>
1541 References: <1242213878-sup-4217@ptoseis>
1542 Message-ID: <1242239740-sup-8633@entry>
1543
1544 Reformatted excerpts from Henri Ducrocq's message of 2009-05-13:
1545 > (First of alli: Thanks William for that very gorgeous piece of
1546 > software!)
1547
1548 Glad you find it useful!
1549
1550 > I would like to use mail-notification (or an equivalent) to display
1551 > the status of my inbox in my system tray, I mean the number of unread
1552 > emails. But of course that program isn't aware of what messages have
1553 > been read inside sup.
1554
1555 Sounds great. I'd love to have that too.
1556
1557 > What can I do to fix this? I thought about having the after-poll hook
1558 > dump all new messages into a dummy mbox file, which would be monitored
1559 > by mail-notification.. But there must be a simpler way?
1560
1561 Having now read the mail-notification manpage... the problem is
1562 mail-notification. It should provide a way for other apps to signal a
1563 notification (the whole Unix philosophy of decomposability, etc.) but it
1564 does not.
1565
1566 Periodically dumping all new messages into a dummy mbox file is a
1567 terrible idea, but I think that's your only Sup-specific option.
1568 Patching mail-notification is a better idea, though that may not be what
1569 you want to hear.
1570
1571 If you're using a recent Gnome, you have some other options. If you're
1572 running notification-daemon (e.g. Ubuntu 9.04), you can install the
1573 libnotify-bin package and having the after-poll hook call notify-bin on
1574 new email. (Not quite the same.) You can also look at the
1575 indicator-applet: libindicate also has Python bindings, so you could
1576 install python-indicate and write a python short program to use that.
1577 --
1578 William <wmorgan-sup at masanjin.net>
1579
1580 From wmorgan-sup@masanjin.net Wed May 13 14:55:28 2009
1581 From: wmorgan-sup@masanjin.net (William Morgan)
1582 Date: Wed, 13 May 2009 11:55:28 -0700
1583 Subject: [sup-talk] flexible sent source (update)
1584 In-Reply-To: <1242238048-sup-6168@entry>
1585 References: <1241733502-sup-26@ntdws12.chass.utoronto.ca>
1586 <1242238048-sup-6168@entry>
1587 Message-ID: <1242240924-sup-7948@entry>
1588
1589 Oh yeah:
1590
1591 Reformatted excerpts from William Morgan's message of 2009-05-13:
1592 > Reformatted excerpts from Ben Walton's message of 2009-05-07:
1593 > > (Do you mind pulling my branch, or would you prefer a git-send-email
1594 > > stack of patches?)
1595
1596 I'm perfectly happy to pull from your branch.
1597 --
1598 William <wmorgan-sup at masanjin.net>
1599
1600 From wmorgan-sup@masanjin.net Wed May 13 16:55:51 2009
1601 From: wmorgan-sup@masanjin.net (William Morgan)
1602 Date: Wed, 13 May 2009 13:55:51 -0700
1603 Subject: [sup-talk] "interning empty string" from sup-sync
1604 In-Reply-To: <20090513190821.GC18461@cabinet.hsd1.ma.comcast.net>
1605 References: <20090513190821.GC18461@cabinet.hsd1.ma.comcast.net>
1606 Message-ID: <1242248081-sup-5132@entry>
1607
1608 Reformatted excerpts from Marc Hartstein's message of 2009-05-13:
1609 > /home/magus/src/sup/bin/sup-sync:159:in `intern': interning empty string
1610 > (ArgumentError)
1611 > from /home/magus/src/sup/bin/sup-sync:159
1612
1613 That's a bug. Turns out String#split doesn't exactly behave how I
1614 thought:
1615
1616 $ irb
1617 >> " a b c ".split
1618 => ["a", "b", "c"]
1619 >> " a b c ".split(/\s+/)
1620 => ["", "a", "b", "c"]
1621
1622 I've fixed this in next.
1623 --
1624 William <wmorgan-sup at masanjin.net>
1625
1626 From wmorgan-sup@masanjin.net Wed May 13 21:52:14 2009
1627 From: wmorgan-sup@masanjin.net (William Morgan)
1628 Date: Wed, 13 May 2009 18:52:14 -0700
1629 Subject: [sup-talk] Notification tools
1630 In-Reply-To: <1242261120-sup-2999@cabinet>
1631 References: <1242213878-sup-4217@ptoseis> <1242239740-sup-8633@entry>
1632 <391beaa80905131723k4b59090bi5bd541d97d1a75f2@mail.gmail.com>
1633 <1242261120-sup-2999@cabinet>
1634 Message-ID: <1242265757-sup-2754@entry>
1635
1636 Reformatted excerpts from Marc Hartstein's message of 2009-05-13:
1637 > Has anybody done anything like this? Any code snippets?
1638
1639 I really need to clean up the code so that all of Sup's special query
1640 parsing (chronic, contact aliases, etc.) is accessible, but you can do
1641 simple queries directly through the Ferret API with a script like:
1642
1643 require 'sup'
1644 i = Redwood::Index.new
1645 i.load
1646 puts "total unread: " + i.ferret.search("label:unread").total_hits
1647 puts "inbox unread: " + i.ferret.search("label:unread AND label:inbox").total_hits
1648
1649 That gets you the number of messages, not the number of threads. (Sup
1650 doesn't store the latter.)
1651 --
1652 William <wmorgan-sup at masanjin.net>
1653
1654 From marcus-sup@bar-coded.net Thu May 14 04:37:38 2009
1655 From: marcus-sup@bar-coded.net (Marcus Williams)
1656 Date: Thu, 14 May 2009 09:37:38 +0100
1657 Subject: [sup-talk] Notification tools
1658 In-Reply-To: <1242273707-sup-1213@cabinet>
1659 References: <1242213878-sup-4217@ptoseis> <1242239740-sup-8633@entry>
1660 <391beaa80905131723k4b59090bi5bd541d97d1a75f2@mail.gmail.com>
1661 <1242261120-sup-2999@cabinet> <1242265757-sup-2754@entry>
1662 <1242273707-sup-1213@cabinet>
1663 Message-ID: <1242290067-sup-3675@tomsk>
1664
1665 On 14.5.2009, Marc Hartstein wrote:
1666 > Although, I just tried this (I seem to have had to append .to_s to each
1667 > of the total_hits), and it works, but all my results are exactly 15
1668 > greater than the relevant numbers I see if I go into the label menu with
1669 > <L><Enter>. Any idea what might cause that?
1670
1671 I think the Sup version will by default not include killed or deleted
1672 messages so that might be whats causing it.
1673
1674 Marcus
1675
1676 From nicolas.pouillard@gmail.com Thu May 14 09:04:44 2009
1677 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
1678 Date: Thu, 14 May 2009 15:04:44 +0200
1679 Subject: [sup-talk] Notification tools
1680 In-Reply-To: <391beaa80905131723k4b59090bi5bd541d97d1a75f2@mail.gmail.com>
1681 References: <1242213878-sup-4217@ptoseis> <1242239740-sup-8633@entry>
1682 <391beaa80905131723k4b59090bi5bd541d97d1a75f2@mail.gmail.com>
1683 Message-ID: <1242305907-sup-1542@ausone.inria.fr>
1684
1685 Excerpts from Henri Ducrocq's message of Thu May 14 02:23:00 +0200 2009:
1686 > On Wed, May 13, 2009 at 7:54 PM, William Morgan <wmorgan-sup at masanjin.net>wrote:
1687 >
1688 > > Periodically dumping all new messages into a dummy mbox file is a
1689 > > terrible idea, but I think that's your only Sup-specific option.
1690 > > Patching mail-notification is a better idea, though that may not be what
1691 > > you want to hear.
1692 >
1693 >
1694 > It isn't :)
1695 >
1696 > > If you're using a recent Gnome, you have some other options. If you're
1697 > > running notification-daemon (e.g. Ubuntu 9.04), you can install the
1698 > > libnotify-bin package and having the after-poll hook call notify-bin on
1699 > > new email. (Not quite the same.) You can also look at the
1700 > > indicator-applet: libindicate also has Python bindings, so you could
1701 > > install python-indicate and write a python short program to use that.
1702 >
1703 >
1704 > I don't use Gnome or KDE (or anything really.)
1705 > Re. the notification-daemon tip, that's what I'm doing already (via a python
1706 > script of mine, I didn't know about notify-bin!), but sure it isn't the
1707 > same.
1708 > What I might do: Have after-poll dump the number of unread messages into a
1709 > file,
1710 > and display that value in my dzen status bar. It might be good enough.
1711
1712 I'm doing something quite similar:
1713
1714 I have a status-bar-text hook.
1715
1716 $ cat ~/.sup/hooks/status-bar-text.rb
1717 dir = ENV['HOME']+'/.sup/'
1718 state_new = dir+'state.new'
1719 File.open(state_new, 'w') do |f|
1720 f.puts "SupState { sup_num_inbox_unread = #{num_inbox_unread} }"
1721 end
1722 File.rename(state_new, dir+'state') rescue nil
1723 nil
1724
1725 Then I have tweaked my xmonad config to inject the contents of this
1726 file in my dzen bar.
1727
1728 Best regards,
1729
1730 --
1731 Nicolas Pouillard
1732
1733 From manselton@googlemail.com Fri May 15 13:37:08 2009
1734 From: manselton@googlemail.com (Maurice McCarthy)
1735 Date: Fri, 15 May 2009 17:37:08 +0000
1736 Subject: [sup-talk] gmail login
1737 Message-ID: <8c09a1500905151037m351adedyefdde82c244e17c0@mail.gmail.com>
1738
1739 Hi I'm a noob user and not a programmer. Thanks
1740 for your brilliant efforts. I've asked the grml
1741 team to include sup by default. http://grml.org
1742 They ought to love it as grml is a Debian based
1743 installable live distro for admins and geeks.
1744
1745 The sup log tells me that when I log in to my
1746 gmail account it ends up logging in using
1747 plain text.
1748
1749 Fri May 15 17:20:06 +0000 2009: CRAM-MD5 authentication failed:
1750 Net::IMAP::NoResponseError. Trying LOGIN auth...
1751 Fri May 15 17:20:06 +0000 2009: LOGIN authentication failed:
1752 Net::IMAP::NoResponseError. Trying plain-text LOGIN...
1753 Fri May 15 17:20:06 +0000 2009: Successfully connected to
1754 imaps://imap.googlemail.com:993/INBOX.
1755
1756 Have I got something configured wrongly or am I
1757 really advertising my password to the world? Or
1758 is it going through a secure tunnel anyhow?
1759
1760 Many Thanks in advance for your advice If
1761 pipermail had been searchable I'd have looked
1762 in the archives before bothering you. Sorry
1763 for the inconvenience if this has already been
1764 asked.
1765
1766 Maurice
1767
1768
1769 --
1770 Best Wishes
1771
1772 From bwalton@artsci.utoronto.ca Fri May 15 13:57:38 2009
1773 From: bwalton@artsci.utoronto.ca (Ben Walton)
1774 Date: Fri, 15 May 2009 13:57:38 -0400
1775 Subject: [sup-talk] gmail login
1776 In-Reply-To: <8c09a1500905151037m351adedyefdde82c244e17c0@mail.gmail.com>
1777 References: <8c09a1500905151037m351adedyefdde82c244e17c0@mail.gmail.com>
1778 Message-ID: <1242409947-sup-5182@ntdws12.chass.utoronto.ca>
1779
1780 Excerpts from Maurice McCarthy's message of Fri May 15 13:37:08 -0400 2009:
1781 > The sup log tells me that when I log in to my
1782 > gmail account it ends up logging in using
1783 > plain text.
1784
1785 This is normal and just a part of a standard IMAP connection auth
1786 sequence. Unless you've got kerberos enabled/SASL auth stuff in
1787 place, the standard IMAP auth options are all pretty nasty (pop3 is no
1788 better)...
1789
1790 > Fri May 15 17:20:06 +0000 2009: CRAM-MD5 authentication failed:
1791 > Net::IMAP::NoResponseError. Trying LOGIN auth...
1792 > Fri May 15 17:20:06 +0000 2009: LOGIN authentication failed:
1793 > Net::IMAP::NoResponseError. Trying plain-text LOGIN...
1794 > Fri May 15 17:20:06 +0000 2009: Successfully connected to
1795 > imaps://imap.googlemail.com:993/INBOX.
1796
1797 You still connected via an ssl secured connection, so even using
1798 horrible auth mechanisms like this, you're reasonably protected during
1799 transit.
1800
1801 Looks good from here.
1802 -Ben
1803 --
1804 Ben Walton
1805 Systems Programmer - CHASS
1806 University of Toronto
1807 C:416.407.5610 | W:416.978.4302
1808
1809 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
1810 Contact me to arrange for a CAcert assurance meeting.
1811 -------------- next part --------------
1812 A non-text attachment was scrubbed...
1813 Name: signature.asc
1814 Type: application/pgp-signature
1815 Size: 189 bytes
1816 Desc: not available
1817 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090515/3372a1e8/attachment.bin>
1818
1819 From david.guibert@gmail.com Fri May 15 08:41:33 2009
1820 From: david.guibert@gmail.com (David Guibert)
1821 Date: Fri, 15 May 2009 14:41:33 +0200
1822 Subject: [sup-talk] Notification tools
1823 In-Reply-To: <1242331711-sup-4976@cabinet>
1824 References: <1242213878-sup-4217@ptoseis> <1242239740-sup-8633@entry>
1825 <391beaa80905131723k4b59090bi5bd541d97d1a75f2@mail.gmail.com>
1826 <1242261120-sup-2999@cabinet> <1242265757-sup-2754@entry>
1827 <1242273707-sup-1213@cabinet> <1242290067-sup-3675@tomsk>
1828 <1242331711-sup-4976@cabinet>
1829 Message-ID: <1242391055-sup-4644@orsine>
1830
1831 Hi,
1832
1833 >From Marc Hartstein:
1834 > Excerpts from Marcus Williams's message of Thu May 14 04:37:38 -0400 2009:
1835 > > On 14.5.2009, Marc Hartstein wrote:
1836 > > > Although, I just tried this (I seem to have had to append .to_s to each
1837 > > > of the total_hits), and it works, but all my results are exactly 15
1838 > > > greater than the relevant numbers I see if I go into the label menu with
1839 > > > <L><Enter>. Any idea what might cause that?
1840 > >
1841 > > I think the Sup version will by default not include killed or deleted
1842 > > messages so that might be whats causing it.
1843 >
1844 > Deleted Unread messages accounted for 5 of the 15, but there are no
1845 > Killed, so the remaining 10 are still a mystery.
1846
1847 Spam.
1848
1849 I changed sup-biff to contain:
1850
1851 #!/bin/bash
1852
1853 ruby -I '~/src/sup/lib' <<EOF
1854 require 'sup'
1855 i = Redwood::Index.new
1856 i.load
1857
1858 puts "total spam + unread: " + i.ferret.search("label:unread").total_hits.to_s
1859 puts "total !spam + !deleted + unread: " + i.ferret.search("!label:spam !label:deleted +label:unread").total_hits.to_s
1860 puts "inbox unread: " + i.ferret.search("!label:spam !label:deleted +label:inbox +label:unread").total_hits.to_s
1861 puts "inbox total: " + i.ferret.search("!label:spam !label:deleted +label:inbox").total_hits.to_s
1862 EOF
1863
1864 regards.
1865 --
1866 David
1867
1868 From henri.ducrocq@gmail.com Fri May 15 17:22:14 2009
1869 From: henri.ducrocq@gmail.com (Henri Ducrocq)
1870 Date: Fri, 15 May 2009 22:22:14 +0100
1871 Subject: [sup-talk] Notification tools
1872 Message-ID: <1242422476-sup-9185@ptoseis>
1873
1874 Excerpts from Nicolas Pouillard's message of Thu May 14 14:04:44 +0100 2009:
1875 > I have a status-bar-text hook.
1876 ...
1877 > Then I have tweaked my xmonad config to inject the contents of this
1878 > file in my dzen bar.
1879
1880 But isn't status-bar-text only triggered by keystrokes?
1881 Anyways, I'm updating the file from after-poll.rb, it seems to work.
1882 Henri
1883 (oops, Nicolas you're gonna receive this email twice)
1884
1885 --
1886 --
1887 Henri
1888
1889 From kirr@landau.phys.spbu.ru Sat May 16 11:01:14 2009
1890 From: kirr@landau.phys.spbu.ru (Kirill Smelkov)
1891 Date: Sat, 16 May 2009 19:01:14 +0400
1892 Subject: [sup-talk] [PATCH] chmod a+x bin/*
1893 Message-ID: <1242486074-5822-1-git-send-email-kirr@landau.phys.spbu.ru>
1894
1895 The files in there are all executables, and this simplifies running sup
1896 in-tree.
1897 ---
1898 0 files changed, 0 insertions(+), 0 deletions(-)
1899 mode change 100644 => 100755 bin/sup
1900 mode change 100644 => 100755 bin/sup-add
1901 mode change 100644 => 100755 bin/sup-config
1902 mode change 100644 => 100755 bin/sup-dump
1903 mode change 100644 => 100755 bin/sup-recover-sources
1904 mode change 100644 => 100755 bin/sup-sync
1905 mode change 100644 => 100755 bin/sup-sync-back
1906 mode change 100644 => 100755 bin/sup-tweak-labels
1907
1908 diff --git a/bin/sup b/bin/sup
1909 old mode 100644
1910 new mode 100755
1911 diff --git a/bin/sup-add b/bin/sup-add
1912 old mode 100644
1913 new mode 100755
1914 diff --git a/bin/sup-config b/bin/sup-config
1915 old mode 100644
1916 new mode 100755
1917 diff --git a/bin/sup-dump b/bin/sup-dump
1918 old mode 100644
1919 new mode 100755
1920 diff --git a/bin/sup-recover-sources b/bin/sup-recover-sources
1921 old mode 100644
1922 new mode 100755
1923 diff --git a/bin/sup-sync b/bin/sup-sync
1924 old mode 100644
1925 new mode 100755
1926 diff --git a/bin/sup-sync-back b/bin/sup-sync-back
1927 old mode 100644
1928 new mode 100755
1929 diff --git a/bin/sup-tweak-labels b/bin/sup-tweak-labels
1930 old mode 100644
1931 new mode 100755
1932 --
1933 1.6.3.9.g6345d
1934
1935 From bwalton@artsci.utoronto.ca Sat May 16 13:16:14 2009
1936 From: bwalton@artsci.utoronto.ca (Ben Walton)
1937 Date: Sat, 16 May 2009 13:16:14 -0400
1938 Subject: [sup-talk] [PATCH] chmod a+x bin/*
1939 In-Reply-To: <1242486074-5822-1-git-send-email-kirr@landau.phys.spbu.ru>
1940 References: <1242486074-5822-1-git-send-email-kirr@landau.phys.spbu.ru>
1941 Message-ID: <1242494144-sup-9441@ntdws12.chass.utoronto.ca>
1942
1943 Excerpts from Kirill Smelkov's message of Sat May 16 11:01:14 -0400 2009:
1944 > The files in there are all executables, and this simplifies running sup
1945 > in-tree.
1946 '
1947 +1
1948
1949 I was about to do the same patch.
1950
1951 -Ben
1952 --
1953 Ben Walton
1954 Systems Programmer - CHASS
1955 University of Toronto
1956 C:416.407.5610 | W:416.978.4302
1957
1958 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
1959 Contact me to arrange for a CAcert assurance meeting.
1960 -------------- next part --------------
1961 A non-text attachment was scrubbed...
1962 Name: signature.asc
1963 Type: application/pgp-signature
1964 Size: 189 bytes
1965 Desc: not available
1966 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090516/53fcd395/attachment.bin>
1967
1968 From henri.ducrocq@gmail.com Sun May 17 15:23:41 2009
1969 From: henri.ducrocq@gmail.com (Henri Ducrocq)
1970 Date: Sun, 17 May 2009 20:23:41 +0100
1971 Subject: [sup-talk] Notification tools
1972 In-Reply-To: <1242391055-sup-4644@orsine>
1973 References: <1242213878-sup-4217@ptoseis> <1242239740-sup-8633@entry>
1974 <391beaa80905131723k4b59090bi5bd541d97d1a75f2@mail.gmail.com>
1975 <1242261120-sup-2999@cabinet> <1242265757-sup-2754@entry>
1976 <1242273707-sup-1213@cabinet> <1242290067-sup-3675@tomsk>
1977 <1242331711-sup-4976@cabinet> <1242391055-sup-4644@orsine>
1978 Message-ID: <1242587689-sup-9833@ptoseis>
1979
1980 I'm having a related problem, but this one is totally internal to Sup:
1981 After I read a new email, in most cases (possibly always, I can't say)
1982 the number of unread emails isn't decremented and stays at 1.
1983 I am talking about the number of unread messages shown on the labels
1984 page ('L' shortcut.)
1985
1986 This is fixed by restarting Sup.
1987
1988 I'm using the gem version of Sup, do I need to switch to the development
1989 branch?
1990
1991 --
1992 Henri
1993
1994 From wmorgan-sup@masanjin.net Mon May 18 11:11:58 2009
1995 From: wmorgan-sup@masanjin.net (William Morgan)
1996 Date: Mon, 18 May 2009 08:11:58 -0700
1997 Subject: [sup-talk] merge activity report
1998 Message-ID: <1242659511-sup-4534@entry>
1999
2000 Just a brief status report.
2001
2002 In next:
2003
2004 - I've added some refinements to the undo code on the undo-manager
2005 branch and merged that into next. If you're working on something
2006 related to this code, you may need to rebase.
2007
2008 - I've fixed the mbox "From " line detector to try and only split when a
2009 valid date is encountered. (This is on branch various-mbox-fixes.)
2010 This seems to work well for me, but who knows what crazy date formats
2011 are out there. I have it logging a message whenever it finds a From
2012 line and something that it can't parse as a date (and thus decides not
2013 to split), so you may want to keep an eye on the log buffer if you're
2014 using mbox. You can also add test cases to
2015 tests/test_header_parsing.rb, in method test_from_line_splitting, if
2016 you have a particular case you're worried about.
2017
2018 In master:
2019
2020 - I've merged a bunch of stable-seeming features down to master,
2021 including the new buffer code, so you will have to retrain your
2022 fingers to use '=' or '+' instead of ';', which now brings up the
2023 buffer window.
2024 --
2025 William <wmorgan-sup at masanjin.net>
2026
2027 From wmorgan-sup@masanjin.net Mon May 18 11:21:40 2009
2028 From: wmorgan-sup@masanjin.net (William Morgan)
2029 Date: Mon, 18 May 2009 08:21:40 -0700
2030 Subject: [sup-talk] [PATCH] chmod a+x bin/*
2031 In-Reply-To: <1242486074-5822-1-git-send-email-kirr@landau.phys.spbu.ru>
2032 References: <1242486074-5822-1-git-send-email-kirr@landau.phys.spbu.ru>
2033 Message-ID: <1242660088-sup-2297@entry>
2034
2035 Reformatted excerpts from Kirill Smelkov's message of 2009-05-16:
2036 > The files in there are all executables, and this simplifies running sup
2037 > in-tree.
2038
2039 Applied, thanks!
2040 --
2041 William <wmorgan-sup at masanjin.net>
2042
2043 From wmorgan-sup@masanjin.net Mon May 18 11:22:11 2009
2044 From: wmorgan-sup@masanjin.net (William Morgan)
2045 Date: Mon, 18 May 2009 08:22:11 -0700
2046 Subject: [sup-talk] [PATCH] Chronic context fix
2047 In-Reply-To: <1242205240-sup-5042@tomsk>
2048 References: <1242205240-sup-5042@tomsk>
2049 Message-ID: <1242660123-sup-512@entry>
2050
2051 Reformatted excerpts from Marcus Williams's message of 2009-05-13:
2052 > Chronic should use a context of :past for email date searches as
2053 > emails tend to be in the past. This fixes a problem when the wrong
2054 > year is guessed. To search for emails in the future you now need to be
2055 > less ambiguous (1 apr 2099 instead of 1 apr).
2056
2057 Applied, thanks!
2058 --
2059 William <wmorgan-sup at masanjin.net>
2060
2061 From bwalton@artsci.utoronto.ca Mon May 18 13:19:46 2009
2062 From: bwalton@artsci.utoronto.ca (Ben Walton)
2063 Date: Mon, 18 May 2009 13:19:46 -0400
2064 Subject: [sup-talk] merge activity report
2065 In-Reply-To: <1242659511-sup-4534@entry>
2066 References: <1242659511-sup-4534@entry>
2067 Message-ID: <1242667096-sup-7844@ntdws12.chass.utoronto.ca>
2068
2069 Excerpts from William Morgan's message of Mon May 18 11:11:58 -0400 2009:
2070
2071 Let me know when you'd like the flexible sent stuff rebased and
2072 against which branch. I'm ready with that any time.
2073
2074 Still working on the locking stuff, which is proving quite
2075 interesting.
2076
2077 Thanks
2078 -Ben
2079
2080 --
2081 Ben Walton
2082 Systems Programmer - CHASS
2083 University of Toronto
2084 C:416.407.5610 | W:416.978.4302
2085
2086 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
2087 Contact me to arrange for a CAcert assurance meeting.
2088 -------------- next part --------------
2089 A non-text attachment was scrubbed...
2090 Name: signature.asc
2091 Type: application/pgp-signature
2092 Size: 189 bytes
2093 Desc: not available
2094 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090518/59f3b839/attachment.bin>
2095
2096 From wmorgan-sup@masanjin.net Mon May 18 14:24:54 2009
2097 From: wmorgan-sup@masanjin.net (William Morgan)
2098 Date: Mon, 18 May 2009 11:24:54 -0700
2099 Subject: [sup-talk] merge activity report
2100 In-Reply-To: <1242667096-sup-7844@ntdws12.chass.utoronto.ca>
2101 References: <1242659511-sup-4534@entry>
2102 <1242667096-sup-7844@ntdws12.chass.utoronto.ca>
2103 Message-ID: <1242670748-sup-7451@entry>
2104
2105 Reformatted excerpts from Ben Walton's message of 2009-05-18:
2106 > Let me know when you'd like the flexible sent stuff rebased and
2107 > against which branch. I'm ready with that any time.
2108
2109 Ok. It will have to be rebased against master, and probably should wait
2110 till I've merged down the scanning-speedups and various-mbox-fixes
2111 branches, to avoid unnecessary conflicts. (The former seems stable
2112 enough, but the latter I've just updated and needs a little more
2113 steeping.)
2114
2115 > Still working on the locking stuff, which is proving quite
2116 > interesting.
2117
2118 Glad to hear it.
2119 --
2120 William <wmorgan-sup at masanjin.net>
2121
2122 From wmorgan-sup@masanjin.net Mon May 18 14:26:10 2009
2123 From: wmorgan-sup@masanjin.net (William Morgan)
2124 Date: Mon, 18 May 2009 11:26:10 -0700
2125 Subject: [sup-talk] [PATCH] limit option parser nil check
2126 In-Reply-To: <1242205071-sup-2484@tomsk>
2127 References: <1242205071-sup-2484@tomsk>
2128 Message-ID: <1242671123-sup-6919@entry>
2129
2130 Reformatted excerpts from Marcus Williams's message of 2009-05-13:
2131 > The limit search option doesnt check if the current search term is nil
2132 > (when chronic has failed for instance). This patch (against next) adds
2133 > the check.
2134
2135 I've reworked this code in the parser-user-query-fix branch, currently
2136 merged into next, and it should no longer require this fix.
2137 --
2138 William <wmorgan-sup at masanjin.net>
2139
2140 From wmorgan-sup@masanjin.net Mon May 18 14:31:35 2009
2141 From: wmorgan-sup@masanjin.net (William Morgan)
2142 Date: Mon, 18 May 2009 11:31:35 -0700
2143 Subject: [sup-talk] Notification tools
2144 In-Reply-To: <1242265757-sup-2754@entry>
2145 References: <1242213878-sup-4217@ptoseis> <1242239740-sup-8633@entry>
2146 <391beaa80905131723k4b59090bi5bd541d97d1a75f2@mail.gmail.com>
2147 <1242261120-sup-2999@cabinet> <1242265757-sup-2754@entry>
2148 Message-ID: <1242671206-sup-2630@entry>
2149
2150 Reformatted excerpts from William Morgan's message of 2009-05-13:
2151 > require 'sup'
2152 > i = Redwood::Index.new
2153 > i.load
2154 > puts "total unread: " + i.ferret.search("label:unread").total_hits
2155 > puts "inbox unread: " + i.ferret.search("label:unread AND
2156 > label:inbox").total_hits
2157
2158 In the parser-user-query-fix branch (merged into next), you can now use
2159 Index.run_query, which takes a query and returns an array of doc ids.
2160 So you can now do this:
2161
2162 require 'sup'
2163 i = Redwood::Index.new
2164 i.load
2165 puts "total unread: " + i.run_query("label:unread").size.to_s
2166 puts "inbox unread: " + i.run_query("label:unread AND label:inbox").size.to_s
2167
2168 which has the same effect as above, but now you should be able to pass
2169 in all the fancy options you can use on the search line (from:/to: with
2170 contacts, :limit, date options if you have chronic installed, etc).
2171 --
2172 William <wmorgan-sup at masanjin.net>
2173
2174 From wmorgan-sup@masanjin.net Mon May 18 14:44:01 2009
2175 From: wmorgan-sup@masanjin.net (William Morgan)
2176 Date: Mon, 18 May 2009 11:44:01 -0700
2177 Subject: [sup-talk] Notification tools
2178 In-Reply-To: <1242587689-sup-9833@ptoseis>
2179 References: <1242213878-sup-4217@ptoseis> <1242239740-sup-8633@entry>
2180 <391beaa80905131723k4b59090bi5bd541d97d1a75f2@mail.gmail.com>
2181 <1242261120-sup-2999@cabinet> <1242265757-sup-2754@entry>
2182 <1242273707-sup-1213@cabinet> <1242290067-sup-3675@tomsk>
2183 <1242331711-sup-4976@cabinet> <1242391055-sup-4644@orsine>
2184 <1242587689-sup-9833@ptoseis>
2185 Message-ID: <1242672174-sup-8915@entry>
2186
2187 Reformatted excerpts from Henri Ducrocq's message of 2009-05-17:
2188 > I'm having a related problem, but this one is totally internal to Sup:
2189 > After I read a new email, in most cases (possibly always, I can't say)
2190 > the number of unread emails isn't decremented and stays at 1. I am
2191 > talking about the number of unread messages shown on the labels page
2192 > ('L' shortcut.)
2193
2194 Is this still the case after you save state with "$"?
2195 --
2196 William <wmorgan-sup at masanjin.net>
2197
2198 From wmorgan-sup@masanjin.net Mon May 18 15:17:33 2009
2199 From: wmorgan-sup@masanjin.net (William Morgan)
2200 Date: Mon, 18 May 2009 12:17:33 -0700
2201 Subject: [sup-talk] inconsistencies and new user confusion
2202 In-Reply-To: <20090512233303.GU28854@pimlott.net>
2203 References: <20090512233303.GU28854@pimlott.net>
2204 Message-ID: <1242674066-sup-6463@entry>
2205
2206 Reformatted excerpts from Andrew Pimlott's message of 2009-05-12:
2207 > There seem to be serious consistency issues. For example, I applied a
2208 > label "cal" to a thread. I press "L" to list labels, and it's not
2209 > there.
2210
2211 Can you try this again? There was a bug with new labels, where they were
2212 disappearing from the label list under certain conditions (though not
2213 from the index).
2214
2215 Note that that list only counts messages.
2216
2217 > I sync the mailbox, unsure if this is needed. (It shouldn't be, of
2218 > course--if it is, I hope this is intended to be fixed, perhaps with
2219 > the undo work.)
2220
2221 Currently it is needed. It would be possible to avoid it, with some work
2222 (Sup has an event broadcast mechanism for things like this), though I
2223 think it will be difficult to maintain the "<label> AND unread" counts.
2224 --
2225 William <wmorgan-sup at masanjin.net>
2226
2227 From wmorgan-sup@masanjin.net Mon May 18 15:19:49 2009
2228 From: wmorgan-sup@masanjin.net (William Morgan)
2229 Date: Mon, 18 May 2009 12:19:49 -0700
2230 Subject: [sup-talk] inconsistencies and new user confusion
2231 In-Reply-To: <1242192198-sup-9446@javelin>
2232 References: <20090512233303.GU28854@pimlott.net>
2233 <20090513042345.GB18461@cabinet.hsd1.ma.comcast.net>
2234 <1242192198-sup-9446@javelin>
2235 Message-ID: <1242674270-sup-8612@entry>
2236
2237 Reformatted excerpts from Edward Z. Yang's message of 2009-05-12:
2238 > Excerpts from marc.hartstein's message of Wed May 13 00:23:45 -0400 2009:
2239 > > 'deleted' means "don't show this to me even if there are new
2240 > > messages in the thread.
2241 >
2242 > I was under the impression that "killing" a thread was what did that?
2243
2244 Deleted messages don't show up under normal searches. (You have to
2245 explicitly add label:deleted). Killed threads show up in searches,
2246 just not in your inbox.
2247
2248 Killing a thread means "I might find this conversation useful one day,
2249 but stop bugging me about it now."
2250 --
2251 William <wmorgan-sup at masanjin.net>
2252
2253 From henri.ducrocq@gmail.com Mon May 18 16:03:55 2009
2254 From: henri.ducrocq@gmail.com (Henri Ducrocq)
2255 Date: Mon, 18 May 2009 21:03:55 +0100
2256 Subject: [sup-talk] Notification tools
2257 In-Reply-To: <1242672174-sup-8915@entry>
2258 References: <1242213878-sup-4217@ptoseis> <1242239740-sup-8633@entry>
2259 <391beaa80905131723k4b59090bi5bd541d97d1a75f2@mail.gmail.com>
2260 <1242261120-sup-2999@cabinet> <1242265757-sup-2754@entry>
2261 <1242273707-sup-1213@cabinet> <1242290067-sup-3675@tomsk>
2262 <1242331711-sup-4976@cabinet> <1242391055-sup-4644@orsine>
2263 <1242587689-sup-9833@ptoseis> <1242672174-sup-8915@entry>
2264 Message-ID: <1242676869-sup-9153@ptoseis>
2265
2266 Excerpts from William Morgan's message of Mon May 18 19:44:01 +0100 2009:
2267 > Reformatted excerpts from Henri Ducrocq's message of 2009-05-17:
2268 > > I'm having a related problem, but this one is totally internal to Sup:
2269 > > After I read a new email, in most cases (possibly always, I can't say)
2270 > > the number of unread emails isn't decremented and stays at 1. I am
2271 > > talking about the number of unread messages shown on the labels page
2272 > > ('L' shortcut.)
2273 >
2274 > Is this still the case after you save state with "$"?
2275
2276 Oops, I didn't know about "$"...
2277 All is working as expected now, thanks!
2278
2279 --
2280 Henri
2281
2282 From marka@pobox.com Wed May 20 10:55:28 2009
2283 From: marka@pobox.com (Mark Alexander)
2284 Date: Wed, 20 May 2009 07:55:28 -0700
2285 Subject: [sup-talk] Strange random changing of default colors
2286 Message-ID: <a412e2a70905200755n58df4ed2k77b9a1926d876ee@mail.gmail.com>
2287
2288 For while now I've been running off of the next branch,
2289 and I've been noticing strange and hard-to-reproduce
2290 problems with sup changing the default colors. When
2291 I start it, things are fine for a few minutes, and the default
2292 colors (for things like the unused portion of the display
2293 or quoted text) are fine. Then after a few minutes,
2294 the default colors will get changed to yellow-on-black,
2295 or black-on-red, or some other strange thing. I haven't
2296 been able to track down exactly what causes this.
2297 Sometimes it happens when going through my inbox;
2298 sometimes from doing a '/' to search for a string.
2299
2300 The only thing I can say is that the new default colors
2301 seem to have been picked from some line that was
2302 being displayed by sup. For example, a few times
2303 when an "unreceived message" line was being displayed
2304 in a thread, and I moved the highlight over that line,
2305 the default colors got changed to the colors of that
2306 line (black on red in this case).
2307
2308 I've seen this on both Fedora Core 4 with xterm,
2309 and OpenSUSE 10.2 with konsole. So it's possible
2310 it's a problem with older versions of ncurses.
2311 I'll try this on Ubuntu 8.10 at some point soon.
2312
2313 Has anybody else noticed this?
2314
2315 From marka@pobox.com Wed May 20 14:04:08 2009
2316 From: marka@pobox.com (Mark Alexander)
2317 Date: Wed, 20 May 2009 11:04:08 -0700
2318 Subject: [sup-talk] Strange random changing of default colors
2319 In-Reply-To: <1242840017-sup-6420@cabinet>
2320 References: <a412e2a70905200755n58df4ed2k77b9a1926d876ee@mail.gmail.com>
2321 <1242840017-sup-6420@cabinet>
2322 Message-ID: <a412e2a70905201104n13a078f9xf4cfcb746b918dcc@mail.gmail.com>
2323
2324 On Wed, May 20, 2009 at 10:26 AM, Marc Hartstein
2325 <marc.hartstein at alum.vassar.edu> wrote:
2326 > Excerpts from Mark Alexander's message of Wed May 20 10:55:28 -0400 2009:
2327 > I'm running Gentoo here, and keep my system fairly up-to-date. ncurses
2328 > is 5.6-r2, and I run under screen under rxvt-unicode.
2329
2330 I forgot to mention I'm running screen too. I'll try eliminating screen
2331 to see if that changes anything.
2332
2333 From wmorgan-sup@masanjin.net Wed May 20 14:52:04 2009
2334 From: wmorgan-sup@masanjin.net (William Morgan)
2335 Date: Wed, 20 May 2009 11:52:04 -0700
2336 Subject: [sup-talk] Strange random changing of default colors
2337 In-Reply-To: <a412e2a70905200755n58df4ed2k77b9a1926d876ee@mail.gmail.com>
2338 References: <a412e2a70905200755n58df4ed2k77b9a1926d876ee@mail.gmail.com>
2339 Message-ID: <1242845310-sup-6904@entry>
2340
2341 Reformatted excerpts from Mark Alexander's message of 2009-05-20:
2342 > For while now I've been running off of the next branch, and I've been
2343 > noticing strange and hard-to-reproduce problems with sup changing the
2344 > default colors.
2345
2346 I've fixed this in master and next. The problem was that Curses limits
2347 you to a set number of color pairs, and I had thought that limit was 16
2348 (the Ruby bindings don't seem to expose it), and so if you used Sup for
2349 long enough you would eventually run out of colors and it would
2350 helpfully replace old color definitions with new ones for you. :)
2351
2352 But rumors suggest that the limit is more like 64, except in archaic
2353 cases, so I've hard-coded that instead of 16, and experimentally it
2354 seems fine to me (even running through screen).
2355
2356 Let me know if you experience more color weirdness, especially on
2357 archaic systems like Mac OS and Windows.
2358 --
2359 William <wmorgan-sup at masanjin.net>
2360
2361 From henri.ducrocq@gmail.com Wed May 20 21:31:16 2009
2362 From: henri.ducrocq@gmail.com (Henri Ducrocq)
2363 Date: Thu, 21 May 2009 02:31:16 +0100
2364 Subject: [sup-talk] Handling window resizing
2365 In-Reply-To: <391beaa80905201334y4c1832adp161bb28d52f08e1@mail.gmail.com>
2366 References: <391beaa80905201334y4c1832adp161bb28d52f08e1@mail.gmail.com>
2367 Message-ID: <1242868891-sup-4321@ptoseis>
2368
2369 Excerpts from Henri Ducrocq's message of Wed May 20 21:34:36 +0100 2009:
2370 > I'm using a tiling window manager and my windows get resized quite
2371 > frequently. However Sup isn't detecting these events and I have to press
2372 > Control-L to redraw the screen.
2373
2374 I tried to do it myself, first by checking for Ncurses::KEY_RESIZE in
2375 nonblocking_getch in buffer.rb (couldn't work because of the IO.select),
2376 then slightly less unsuccessfully by catching the WINCH event, but it
2377 looks like the signal isn't emitted in a completely consistent manner
2378 every time I resize the window.
2379
2380 Any advice William? (Of course I'm secretly hoping you're gonna fix it
2381 yourself :)
2382 --
2383 Henri
2384
2385 From andrew@pimlott.net Thu May 21 10:46:07 2009
2386 From: andrew@pimlott.net (Andrew Pimlott)
2387 Date: Thu, 21 May 2009 07:46:07 -0700
2388 Subject: [sup-talk] inconsistencies and new user confusion
2389 In-Reply-To: <1242674066-sup-6463@entry>
2390 References: <20090512233303.GU28854@pimlott.net> <1242674066-sup-6463@entry>
2391 Message-ID: <20090521144607.GC28854@pimlott.net>
2392
2393 On Mon, May 18, 2009 at 12:17:33PM -0700, William Morgan wrote:
2394 > Reformatted excerpts from Andrew Pimlott's message of 2009-05-12:
2395 > > There seem to be serious consistency issues. For example, I applied a
2396 > > label "cal" to a thread. I press "L" to list labels, and it's not
2397 > > there.
2398 >
2399 > Can you try this again?
2400
2401 What branch? No change on mainline.
2402
2403 > > I sync the mailbox, unsure if this is needed. (It shouldn't be, of
2404 > > course--if it is, I hope this is intended to be fixed, perhaps with
2405 > > the undo work.)
2406 >
2407 > Currently it is needed. It would be possible to avoid it, with some work
2408 > (Sup has an event broadcast mechanism for things like this), though I
2409 > think it will be difficult to maintain the "<label> AND unread" counts.
2410
2411 What I'm getting at is, why not keep the index up-to-date at all times?
2412 The only reason I see not to is so the user can say "oops" and quit
2413 without saving. But that's what undo is for. (Or transactions.)
2414
2415 Andrew
2416
2417 From wmorgan-sup@masanjin.net Thu May 21 11:22:55 2009
2418 From: wmorgan-sup@masanjin.net (William Morgan)
2419 Date: Thu, 21 May 2009 08:22:55 -0700
2420 Subject: [sup-talk] Handling window resizing
2421 In-Reply-To: <1242868891-sup-4321@ptoseis>
2422 References: <391beaa80905201334y4c1832adp161bb28d52f08e1@mail.gmail.com>
2423 <1242868891-sup-4321@ptoseis>
2424 Message-ID: <1242919028-sup-7847@entry>
2425
2426 Reformatted excerpts from Henri Ducrocq's message of 2009-05-20:
2427 > I tried to do it myself, first by checking for Ncurses::KEY_RESIZE in
2428 > nonblocking_getch in buffer.rb (couldn't work because of the
2429 > IO.select), then slightly less unsuccessfully by catching the WINCH
2430 > event, but it looks like the signal isn't emitted in a completely
2431 > consistent manner every time I resize the window.
2432 >
2433 > Any advice William?
2434
2435 Sadly no. There have been various attempts, by myself and others to trap
2436 sigwinch (see e.g.
2437 http://www.nabble.com/The-recent-patch-"redraw-screen-upon-sigwinch"-td22662878.html
2438 which is referencing commit 9bc61b52f1a4fb3492e3799240815ed0c2a7b67f)
2439 and to handle Ncurses::KEY_RESIZE, but something always seems screwey.
2440
2441 A free copy of Sup to anyone who figures this out.
2442 --
2443 William <wmorgan-sup at masanjin.net>
2444
2445 From wmorgan-sup@masanjin.net Thu May 21 11:24:42 2009
2446 From: wmorgan-sup@masanjin.net (William Morgan)
2447 Date: Thu, 21 May 2009 08:24:42 -0700
2448 Subject: [sup-talk] inconsistencies and new user confusion
2449 In-Reply-To: <20090521144607.GC28854@pimlott.net>
2450 References: <20090512233303.GU28854@pimlott.net> <1242674066-sup-6463@entry>
2451 <20090521144607.GC28854@pimlott.net>
2452 Message-ID: <1242919384-sup-7255@entry>
2453
2454 Reformatted excerpts from Andrew Pimlott's message of 2009-05-21:
2455 > What branch? No change on mainline.
2456
2457 Sorry, the "next" branch.
2458
2459 > What I'm getting at is, why not keep the index up-to-date at all
2460 > times? The only reason I see not to is so the user can say "oops" and
2461 > quit without saving. But that's what undo is for. (Or transactions.)
2462
2463 This is certainly an option in the future. We've used "$" because until
2464 recently there hasn't been an undo, and because it gives me fond
2465 memories of Mutt. Once undo is fleshed out a bit more, auto-syncing
2466 could certainly be an option.
2467 --
2468 William <wmorgan-sup at masanjin.net>
2469
2470 From johnbent@lanl.gov Thu May 21 12:05:37 2009
2471 From: johnbent@lanl.gov (John Bent)
2472 Date: Thu, 21 May 2009 10:05:37 -0600
2473 Subject: [sup-talk] mailing list alias
2474 Message-ID: <1242921784-sup-7643@tangerine.lanl.gov>
2475
2476 I switched from pine and my life is much better. Thanks William, et al.
2477
2478 However, I do miss being able to create an contact alias that pine
2479 expands to a set of email addresses:
2480 http://www.washington.edu/doit/Lessons/Pine/create_list.html
2481
2482 I know there are ways to create full fledged mailing lists (through my
2483 work or a google group or something) but sometimes this seems heavy
2484 weight. How are other people handling this? Does sup already have
2485 this? Is it time for me to learn ruby?
2486
2487 Thanks,
2488
2489 John
2490
2491 From marka@pobox.com Thu May 21 12:33:12 2009
2492 From: marka@pobox.com (Mark Alexander)
2493 Date: Thu, 21 May 2009 09:33:12 -0700
2494 Subject: [sup-talk] Strange random changing of default colors
2495 In-Reply-To: <1242845310-sup-6904@entry>
2496 References: <a412e2a70905200755n58df4ed2k77b9a1926d876ee@mail.gmail.com>
2497 <1242845310-sup-6904@entry>
2498 Message-ID: <1242923554-sup-5796@r50p>
2499
2500 Excerpts from William Morgan's message of Wed May 20 11:52:04 -0700 2009:
2501 > I've fixed this in master and next.
2502
2503 Thanks! It's looking good so far, after a day of use.
2504
2505 From marka@pobox.com Sat May 23 14:19:03 2009
2506 From: marka@pobox.com (Mark Alexander)
2507 Date: Sat, 23 May 2009 11:19:03 -0700
2508 Subject: [sup-talk] [PATCH] Use terminal width instead of hardcoded 80 as
2509 the wrap length.
2510 Message-ID: <1243102667-sup-6007@r50p>
2511
2512 ---
2513 lib/sup/message-chunks.rb | 5 ++---
2514 1 files changed, 2 insertions(+), 3 deletions(-)
2515
2516 diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
2517 index 1bf7796..a463fd4 100644
2518 --- a/lib/sup/message-chunks.rb
2519 +++ b/lib/sup/message-chunks.rb
2520 @@ -41,7 +41,6 @@ end
2521
2522 module Redwood
2523 module Chunk
2524 - WRAP_LEN = 80 # wrap messages and text attachments at this width
2525
2526 class Attachment
2527 HookManager.register "mime-decode", <<EOS
2528 @@ -109,7 +108,7 @@ EOS
2529 @lines = nil
2530 if text
2531 @lines = text.gsub("\r\n", "\n").gsub(/\t/, " ").gsub(/\r/, "").split("\n")
2532 - @lines = lines.map {|l| l.chomp.wrap WRAP_LEN}.flatten
2533 + @lines = lines.map {|l| l.chomp.wrap Ncurses.cols}.flatten
2534 @quotable = true
2535 end
2536 end
2537 @@ -161,7 +160,7 @@ EOS
2538
2539 attr_reader :lines
2540 def initialize lines
2541 - @lines = lines.map { |l| l.chomp.wrap WRAP_LEN }.flatten # wrap
2542 + @lines = lines.map { |l| l.chomp.wrap Ncurses.cols }.flatten # wrap
2543
2544 ## trim off all empty lines except one
2545 @lines.pop while @lines.length > 1 && @lines[-1] =~ /^\s*$/ && @lines[-2] =~ /^\s*$/
2546 --
2547 1.5.6.3
2548
2549 From marka@pobox.com Sat May 23 14:25:57 2009
2550 From: marka@pobox.com (Mark Alexander)
2551 Date: Sat, 23 May 2009 11:25:57 -0700
2552 Subject: [sup-talk] [PATCH] Put labels before subject in thread index view.
2553 Message-ID: <1243102820-sup-6578@r50p>
2554
2555
2556 This patch is probably controversial, and I expect it
2557 to be rejected. But I really like the way Gmail puts
2558 the labels before the subject, and I've duplicated that here.
2559 It helps out at work, where subject lines tend to be very
2560 long, pushing the labels past the right edge of the window.
2561 ---
2562 lib/sup/modes/thread-index-mode.rb | 7 ++++---
2563 1 files changed, 4 insertions(+), 3 deletions(-)
2564
2565 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
2566 index f65d241..897dca7 100644
2567 --- a/lib/sup/modes/thread-index-mode.rb
2568 +++ b/lib/sup/modes/thread-index-mode.rb
2569 @@ -843,10 +843,11 @@ protected
2570 [subj_color, size_widget_text],
2571 [:to_me_color, t.labels.member?(:attachment) ? "@" : " "],
2572 [:to_me_color, dp ? ">" : (p ? '+' : " ")],
2573 - [subj_color, t.subj + (t.subj.empty? ? "" : " ")],
2574 ] +
2575 - (t.labels - @hidden_labels).map { |label| [:label_color, "+#{label} "] } +
2576 - [[:snippet_color, snippet]
2577 + (t.labels - @hidden_labels).map { |label| [:label_color, "#{label} "] } +
2578 + [
2579 + [subj_color, t.subj + (t.subj.empty? ? "" : " ")],
2580 + [:snippet_color, snippet],
2581 ]
2582 end
2583
2584 --
2585 1.5.6.3
2586
2587 From bwalton@artsci.utoronto.ca Sat May 23 15:22:28 2009
2588 From: bwalton@artsci.utoronto.ca (Ben Walton)
2589 Date: Sat, 23 May 2009 15:22:28 -0400
2590 Subject: [sup-talk] [PATCH] Put labels before subject in thread index
2591 view.
2592 In-Reply-To: <1243102820-sup-6578@r50p>
2593 References: <1243102820-sup-6578@r50p>
2594 Message-ID: <1243106464-sup-8438@ntdws12.chass.utoronto.ca>
2595
2596 Excerpts from Mark Alexander's message of Sat May 23 14:25:57 -0400 2009:
2597 >
2598 > This patch is probably controversial, and I expect it
2599 > to be rejected. But I really like the way Gmail puts
2600 > the labels before the subject, and I've duplicated that here.
2601 > It helps out at work, where subject lines tend to be very
2602 > long, pushing the labels past the right edge of the window.
2603
2604 I'll give the idea a +1. I'd prefer labels first also. It would also
2605 be more uniform when you get mail without a subject...[why yes, I do
2606 get those from people! :(].
2607
2608 I didn't look at the patch itself, so this comment is purely on the
2609 idea.
2610
2611 -Ben
2612
2613 --
2614 Ben Walton
2615 Systems Programmer - CHASS
2616 University of Toronto
2617 C:416.407.5610 | W:416.978.4302
2618
2619 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
2620 Contact me to arrange for a CAcert assurance meeting.
2621 -------------- next part --------------
2622 A non-text attachment was scrubbed...
2623 Name: signature.asc
2624 Type: application/pgp-signature
2625 Size: 189 bytes
2626 Desc: not available
2627 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090523/df5d8b16/attachment.bin>
2628
2629 From bwalton@artsci.utoronto.ca Sat May 23 15:23:23 2009
2630 From: bwalton@artsci.utoronto.ca (Ben Walton)
2631 Date: Sat, 23 May 2009 15:23:23 -0400
2632 Subject: [sup-talk] [PATCH] Use terminal width instead of hardcoded 80
2633 as the wrap length.
2634 In-Reply-To: <1243102667-sup-6007@r50p>
2635 References: <1243102667-sup-6007@r50p>
2636 Message-ID: <1243106591-sup-6639@ntdws12.chass.utoronto.ca>
2637
2638 Excerpts from Mark Alexander's message of Sat May 23 14:19:03 -0400 2009:
2639
2640 +1 to this also.
2641
2642 -Ben
2643 --
2644 Ben Walton
2645 Systems Programmer - CHASS
2646 University of Toronto
2647 C:416.407.5610 | W:416.978.4302
2648
2649 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
2650 Contact me to arrange for a CAcert assurance meeting.
2651 -------------- next part --------------
2652 A non-text attachment was scrubbed...
2653 Name: signature.asc
2654 Type: application/pgp-signature
2655 Size: 189 bytes
2656 Desc: not available
2657 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090523/1c908b26/attachment.bin>
2658
2659 From nicolas.pouillard@gmail.com Sat May 23 17:42:29 2009
2660 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
2661 Date: Sat, 23 May 2009 23:42:29 +0200
2662 Subject: [sup-talk] [PATCH] Put labels before subject in thread index
2663 view.
2664 In-Reply-To: <1243106464-sup-8438@ntdws12.chass.utoronto.ca>
2665 References: <1243102820-sup-6578@r50p>
2666 <1243106464-sup-8438@ntdws12.chass.utoronto.ca>
2667 Message-ID: <1243114920-sup-2740@ausone.local>
2668
2669 Excerpts from Ben Walton's message of Sat May 23 21:22:28 +0200 2009:
2670 > Excerpts from Mark Alexander's message of Sat May 23 14:25:57 -0400 2009:
2671 > >
2672 > > This patch is probably controversial, and I expect it
2673 > > to be rejected. But I really like the way Gmail puts
2674 > > the labels before the subject, and I've duplicated that here.
2675 > > It helps out at work, where subject lines tend to be very
2676 > > long, pushing the labels past the right edge of the window.
2677 >
2678 > I'll give the idea a +1. I'd prefer labels first also. It would also
2679 > be more uniform when you get mail without a subject...[why yes, I do
2680 > get those from people! :(].
2681 >
2682 > I didn't look at the patch itself, so this comment is purely on the
2683 > idea.
2684
2685 +1 to the idea too!
2686
2687 --
2688 Nicolas Pouillard
2689
2690 From ezyang@MIT.EDU Sat May 23 19:32:32 2009
2691 From: ezyang@MIT.EDU (Edward Z. Yang)
2692 Date: Sat, 23 May 2009 19:32:32 -0400
2693 Subject: [sup-talk] Multiple email accounts
2694 Message-ID: <1243121499-sup-7569@javelin>
2695
2696 Hello all,
2697
2698 Does Sup have any built-in support for multiple sending email accounts, i.e.
2699 using the source to determine what the "From" header should be, and swapping
2700 SMTP servers accordingly?
2701
2702 Cheers,
2703 Edward
2704
2705 From rhomunuq+ml_sup@gmail.com Sat May 23 19:57:36 2009
2706 From: rhomunuq+ml_sup@gmail.com (Iain)
2707 Date: Sun, 24 May 2009 00:57:36 +0100
2708 Subject: [sup-talk] Multiple email accounts
2709 In-Reply-To: <1243121499-sup-7569@javelin>
2710 References: <1243121499-sup-7569@javelin>
2711 Message-ID: <1243122989-sup-7769@leda>
2712
2713 > Does Sup have any built-in support for multiple sending email accounts, i.e.
2714 > using the source to determine what the "From" header should be, and swapping
2715 > SMTP servers accordingly?
2716
2717 Yes. See
2718 <http://sup.rubyforge.org/wiki/wiki.pl?MultipleAccountsAndReply> and
2719 <http://sup.rubyforge.org/wiki/wiki.pl?Msmtp>.
2720
2721 Cheers,
2722 ~Iain
2723
2724 From bwalton@artsci.utoronto.ca Sat May 23 20:00:54 2009
2725 From: bwalton@artsci.utoronto.ca (Ben Walton)
2726 Date: Sat, 23 May 2009 20:00:54 -0400
2727 Subject: [sup-talk] [PATCH] Use terminal width instead of hardcoded 80
2728 as the wrap length.
2729 In-Reply-To: <4c4248150905231318kab3819dw68e3a3a614241c0d@mail.gmail.com>
2730 References: <1243102667-sup-6007@r50p>
2731 <4c4248150905231318kab3819dw68e3a3a614241c0d@mail.gmail.com>
2732 Message-ID: <1243123134-sup-8032@ntdws12.chass.utoronto.ca>
2733
2734 Excerpts from Michael Stipicevic's message of Sat May 23 16:18:03 -0400 2009:
2735 > I don't know, reading little e-mails on a widescreen monitor gets really
2736 > annoying. Forcing 80 columns keeps it easier on the eyes. Could this be put
2737 > into an option somehow?
2738
2739 But if you leave sup's "we dont' force wrapping" rules alone, this
2740 makes reading mail scroll free if your terminal is wide enough and
2741 doesn't change the behaviour if the terminal is narrower. (Not that
2742 I'm against making it an option either.)
2743
2744 -Ben
2745
2746 --
2747 Ben Walton
2748 Systems Programmer - CHASS
2749 University of Toronto
2750 C:416.407.5610 | W:416.978.4302
2751
2752 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
2753 Contact me to arrange for a CAcert assurance meeting.
2754 -------------- next part --------------
2755 A non-text attachment was scrubbed...
2756 Name: signature.asc
2757 Type: application/pgp-signature
2758 Size: 189 bytes
2759 Desc: not available
2760 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090523/6fdee8b1/attachment.bin>
2761
2762 From johnbent@lanl.gov Sun May 24 01:54:42 2009
2763 From: johnbent@lanl.gov (John Bent)
2764 Date: Sat, 23 May 2009 23:54:42 -0600
2765 Subject: [sup-talk] scary exception
2766 In-Reply-To: <1240854270-sup-8870@entry>
2767 References: <1240802707-sup-2069@tangerine.lanl.gov>
2768 <1240852818-sup-1006@entry>
2769 <1240853542-sup-4778@tangerine.lanl.gov>
2770 <1240854270-sup-8870@entry>
2771 Message-ID: <1243143847-sup-5003@tangerine.lanl.gov>
2772
2773 Excerpts from William Morgan's message of Mon Apr 27 11:46:43 -0600 2009:
2774 > Reformatted excerpts from John Bent's message of 2009-04-27:
2775 > > I'm sorry. I don't remember. The timestamp on my sup executable says
2776 > > Jan 13 2009. I'll try to upgrade and see if I ever see this again.
2777 >
2778 > Yeah, I think it was around March that things got merged in. Try it with
2779 > the latest & greatest and see if it happens again.
2780 >
2781 Ok, I figured out what the problem was. I used to be able to stay
2782 current with git pull; rake gem; sudo gem install pkg/sup-999.gem. But
2783 with a new work proxy and my inability to get git to work w/ a proxy, I
2784 switched to:
2785
2786 git clone http://git.gitorious.org/sup/mainline.git
2787
2788 Then I couldn't figure out how to make a gem in mainline or install so I
2789 just figured out I could approximate an install by copying bin/* into my
2790 path . . . forgot the lib. Anyway, I got the scary exception again and
2791 looked at exception-log.txt and realized I had a mismatch with my libs.
2792 So now I'm doing the git clone mainline thing and using ruby -l lib -w
2793 bin/sup.
2794
2795 Anyway, at the risk of embarrassing myself, I wanted to get this info
2796 out there in case some other poor schlub wanders down my same convoluted
2797 path.
2798
2799 Thanks,
2800
2801 John
2802
2803 From henri.ducrocq@gmail.com Sun May 24 08:48:41 2009
2804 From: henri.ducrocq@gmail.com (Henri Ducrocq)
2805 Date: Sun, 24 May 2009 13:48:41 +0100
2806 Subject: [sup-talk] [PATCH] Put labels before subject in thread index
2807 view.
2808 In-Reply-To: <1243125562-sup-287@cabinet>
2809 References: <1243102820-sup-6578@r50p> <1243125562-sup-287@cabinet>
2810 Message-ID: <1243169011-sup-8091@ptoseis>
2811
2812 Excerpts from Marc Hartstein's message of Sun May 24 01:42:20 +0100 2009:
2813 > This is a great idea, but can we get it configurable/delegated to a
2814 > hook? Bonus points if there's a straightforward way to be able to
2815 > switch between the two modes at runtime.
2816 >
2817 > I've occasionally thought I'd want this, as I get a lot of long subject
2818 > too, but I wouldn't want multiply-tagged messages [especially with
2819 > special tags like inbox and unread] to have the tags obscure the
2820 > subject.
2821
2822 We could have an even more configurable presentation of the messages,
2823 with the possibility of having a multiline view, e.g. subject on the
2824 first line, labels on the second, excerpt of the text on the 3rd...
2825
2826 --
2827 Henri
2828
2829 From micah@riseup.net Sun May 24 15:52:37 2009
2830 From: micah@riseup.net (Micah Anderson)
2831 Date: Sun, 24 May 2009 15:52:37 -0400
2832 Subject: [sup-talk] Getting gpg to work
2833 Message-ID: <87k5462s8q.fsf@pond.riseup.net>
2834
2835
2836 Hi,
2837
2838 I've just started working with sup and am stuck with a gpg problem.
2839
2840 I'm getting gpg messages that aren't being decoded automatically. They
2841 show up as attachments to a message, and the message body shows as
2842 empty. If I go down to the attachment itself and hit enter I see down
2843 below it saying, "Viewing multipart/encrypted attachment..." and then it
2844 says, "Couldn't execute view command, viewing as text." I dont know what
2845 view command it attempted to execute, but then I see the following in
2846 the body:
2847
2848
2849 --mimepart_4a195eca478b1_5b73..fdbe593a824f3
2850 Content-Type: application/pgp-encrypted
2851 Content-Disposition: attachment
2852
2853 Version: 1
2854
2855 --mimepart_4a195eca478b1_5b73..fdbe593a824f3
2856 Content-Type: application/octet-stream; charset=UTF-8
2857 Content-Disposition: inline; filename=message.asc
2858
2859 -----BEGIN PGP MESSAGE-----
2860 Version: GnuPG v1.4.6 (GNU/Linux)
2861
2862 ...
2863
2864 -----END PGP MESSAGE-----
2865
2866 --mimepart_4a195eca478b1_5b73..fdbe593a824f3--
2867
2868
2869 What do I need to do to get this to work?
2870
2871 Thanks!
2872 Micah
2873
2874
2875 From ezyang@MIT.EDU Mon May 25 14:18:51 2009
2876 From: ezyang@MIT.EDU (Edward Z. Yang)
2877 Date: Mon, 25 May 2009 14:18:51 -0400
2878 Subject: [sup-talk] Multiple email accounts
2879 In-Reply-To: <1243122989-sup-7769@leda>
2880 References: <1243121499-sup-7569@javelin> <1243122989-sup-7769@leda>
2881 Message-ID: <1243275433-sup-6834@javelin>
2882
2883 Excerpts from rhomunuq+ml_sup's message of Sat May 23 19:57:36 -0400 2009:
2884 > Yes. See
2885 > <http://sup.rubyforge.org/wiki/wiki.pl?MultipleAccountsAndReply> and
2886 > <http://sup.rubyforge.org/wiki/wiki.pl?Msmtp>.
2887
2888 Great, that's 99% of what I need. The last 1% is, can Sup auto-detect
2889 what From line to send based on the source of the message, if the
2890 To: header is not intact? (This is commonly the case for mailing lists.
2891
2892 Cheers,
2893 Edward
2894
2895 From henri.ducrocq@gmail.com Tue May 26 11:14:24 2009
2896 From: henri.ducrocq@gmail.com (Henri Ducrocq)
2897 Date: Tue, 26 May 2009 16:14:24 +0100
2898 Subject: [sup-talk] [PATCH] New hook: after-save
2899 Message-ID: <1243349962-sup-2625@ptoseis>
2900
2901 This hook is run when the user presses on '$' to save the state and
2902 index.
2903 I'm using this to update a file used by my dzen status bar to display the
2904 number of unread emails in my inbox.
2905
2906 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
2907 index 56dcdff..e3e70bb 100644
2908 --- a/lib/sup/modes/thread-index-mode.rb
2909 +++ b/lib/sup/modes/thread-index-mode.rb
2910 @@ -20,6 +20,12 @@ Variables:
2911 thread: The message thread being marked as spam.
2912 EOS
2913
2914 + HookManager.register "after-save", <<EOS
2915 +Executes immediately after saving the index.
2916 +Variables:
2917 +num_inbox_total_unread: the total number of unread messages in the inbox
2918 +EOS
2919 +
2920 register_keymap do |k|
2921 k.add :load_threads, "Load #{LOAD_MORE_THREAD_NUM} more threads", 'M'
2922 k.add_multi "Load all threads (! to confirm) :", '!' do |kk|
2923 @@ -409,6 +415,7 @@ EOS
2924 end
2925 end
2926 end
2927 + HookManager.run "after-save", :num_inbox_total_unread => lambda { Index.num_results_for :labels => [:inbox, :unread] }
2928 end
2929
2930 def cleanup
2931
2932 --
2933 Henri
2934
2935 From wmorgan-sup@masanjin.net Wed May 27 09:39:06 2009
2936 From: wmorgan-sup@masanjin.net (William Morgan)
2937 Date: Wed, 27 May 2009 06:39:06 -0700
2938 Subject: [sup-talk] mailing list alias
2939 In-Reply-To: <1242921784-sup-7643@tangerine.lanl.gov>
2940 References: <1242921784-sup-7643@tangerine.lanl.gov>
2941 Message-ID: <1243431456-sup-9767@entry>
2942
2943 Reformatted excerpts from John Bent's message of 2009-05-21:
2944 > I switched from pine and my life is much better. Thanks William, et
2945 > al.
2946
2947 Glad you like it!
2948
2949 > However, I do miss being able to create an contact alias that pine
2950 > expands to a set of email addresses:
2951 > http://www.washington.edu/doit/Lessons/Pine/create_list.html
2952
2953 Sounds like a good idea. Currently Sup has no way of doing this, but a
2954 little modification of the contact manager would probably be all that's
2955 required.
2956
2957 > Is it time for me to learn ruby?
2958
2959 It's always time to learn Ruby!
2960 --
2961 William <wmorgan-sup at masanjin.net>
2962
2963 From wmorgan-sup@masanjin.net Wed May 27 11:58:23 2009
2964 From: wmorgan-sup@masanjin.net (William Morgan)
2965 Date: Wed, 27 May 2009 08:58:23 -0700
2966 Subject: [sup-talk] [PATCH] Use terminal width instead of hardcoded 80
2967 as the wrap length.
2968 In-Reply-To: <1243123134-sup-8032@ntdws12.chass.utoronto.ca>
2969 References: <1243102667-sup-6007@r50p>
2970 <4c4248150905231318kab3819dw68e3a3a614241c0d@mail.gmail.com>
2971 <1243123134-sup-8032@ntdws12.chass.utoronto.ca>
2972 Message-ID: <1243439667-sup-3947@entry>
2973
2974 Reformatted excerpts from Ben Walton's message of 2009-05-23:
2975 > But if you leave sup's "we dont' force wrapping" rules alone, this
2976 > makes reading mail scroll free if your terminal is wide enough and
2977 > doesn't change the behaviour if the terminal is narrower. (Not that
2978 > I'm against making it an option either.)
2979
2980 Seems like there are three main modes of operation that would be
2981 desirable:
2982
2983 1. wrap at 80 chars;
2984 2. wrap at current terminal width;
2985 3. don't wrap.
2986
2987 (In all cases, existing line breaks in the message are left alone.)
2988
2989 Would a three-way toggle irritate anyone?
2990 --
2991 William <wmorgan-sup at masanjin.net>
2992
2993 From wmorgan-sup@masanjin.net Wed May 27 12:03:13 2009
2994 From: wmorgan-sup@masanjin.net (William Morgan)
2995 Date: Wed, 27 May 2009 09:03:13 -0700
2996 Subject: [sup-talk] scary exception
2997 In-Reply-To: <1243143847-sup-5003@tangerine.lanl.gov>
2998 References: <1240802707-sup-2069@tangerine.lanl.gov>
2999 <1240852818-sup-1006@entry>
3000 <1240853542-sup-4778@tangerine.lanl.gov>
3001 <1240854270-sup-8870@entry>
3002 <1243143847-sup-5003@tangerine.lanl.gov>
3003 Message-ID: <1243439962-sup-7477@entry>
3004
3005 Reformatted excerpts from John Bent's message of 2009-05-23:
3006 > current with git pull; rake gem; sudo gem install pkg/sup-999.gem. But
3007 > with a new work proxy and my inability to get git to work w/ a proxy, I
3008 > switched to:
3009 >
3010 > git clone http://git.gitorious.org/sup/mainline.git
3011 >
3012 > Then I couldn't figure out how to make a gem in mainline or install
3013
3014 These operations should all be the same, regardless of whether you're
3015 cloning the git:// uri or the http:// one.
3016
3017 > just figured out I could approximate an install by copying bin/* into my
3018 > path . . . forgot the lib. Anyway, I got the scary exception again and
3019 > looked at exception-log.txt and realized I had a mismatch with my libs.
3020 > So now I'm doing the git clone mainline thing and using ruby -l lib -w
3021 > bin/sup.
3022
3023 Sup does maintain different version numbers for bin/sup and lib/sup.rb,
3024 and checks for a mismatch, but that's not useful for different versions
3025 from git, since they all claim version "git".
3026
3027 Oh well, glad it works now.
3028 --
3029 William <wmorgan-sup at masanjin.net>
3030
3031 From bwalton@artsci.utoronto.ca Wed May 27 12:05:09 2009
3032 From: bwalton@artsci.utoronto.ca (Ben Walton)
3033 Date: Wed, 27 May 2009 12:05:09 -0400
3034 Subject: [sup-talk] [PATCH] Use terminal width instead of hardcoded 80
3035 as the wrap length.
3036 In-Reply-To: <1243439667-sup-3947@entry>
3037 References: <1243102667-sup-6007@r50p>
3038 <4c4248150905231318kab3819dw68e3a3a614241c0d@mail.gmail.com>
3039 <1243123134-sup-8032@ntdws12.chass.utoronto.ca>
3040 <1243439667-sup-3947@entry>
3041 Message-ID: <1243440258-sup-7690@ntdws12.chass.utoronto.ca>
3042
3043 Excerpts from William Morgan's message of Wed May 27 11:58:23 -0400 2009:
3044 > Seems like there are three main modes of operation that would be
3045 > desirable:
3046 >
3047 > 1. wrap at 80 chars;
3048 > 2. wrap at current terminal width;
3049 > 3. don't wrap.
3050 >
3051 > (In all cases, existing line breaks in the message are left alone.)
3052 >
3053 > Would a three-way toggle irritate anyone?
3054
3055 Yes, for the message itself, this would work just fine. I'm ok with
3056 the toggle too.
3057
3058 For the header display though, the terminal width should be honoured,
3059 I think.
3060
3061 Thanks
3062 -Ben
3063 --
3064 Ben Walton
3065 Systems Programmer - CHASS
3066 University of Toronto
3067 C:416.407.5610 | W:416.978.4302
3068
3069 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
3070 Contact me to arrange for a CAcert assurance meeting.
3071 -------------- next part --------------
3072 A non-text attachment was scrubbed...
3073 Name: signature.asc
3074 Type: application/pgp-signature
3075 Size: 189 bytes
3076 Desc: not available
3077 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090527/4914d9ff/attachment.bin>
3078
3079 From wmorgan-sup@masanjin.net Wed May 27 12:07:08 2009
3080 From: wmorgan-sup@masanjin.net (William Morgan)
3081 Date: Wed, 27 May 2009 09:07:08 -0700
3082 Subject: [sup-talk] [PATCH] Put labels before subject in thread index
3083 view.
3084 In-Reply-To: <1243125562-sup-287@cabinet>
3085 References: <1243102820-sup-6578@r50p> <1243125562-sup-287@cabinet>
3086 Message-ID: <1243440237-sup-9372@entry>
3087
3088 Reformatted excerpts from Marc Hartstein's message of 2009-05-23:
3089 > This is a great idea, but can we get it configurable/delegated to a
3090 > hook?
3091
3092 I'd be happy to add an index-model-subject-widget hook, similar to the
3093 index-mode-size-widget hook, if someone wants to write one.
3094
3095 > I've occasionally thought I'd want this, as I get a lot of long
3096 > subject too, but I wouldn't want multiply-tagged messages [especially
3097 > with special tags like inbox and unread] to have the tags obscure the
3098 > subject.
3099
3100 Unread, starred, and other system labels shouldn't be displayed in
3101 thread-view-mode. Index will, except in inbox-mode. It might not be too
3102 bad.
3103
3104 I'll apply this patch and we'll see who yells.
3105 --
3106 William <wmorgan-sup at masanjin.net>
3107
3108 From marka@pobox.com Wed May 27 12:13:30 2009
3109 From: marka@pobox.com (Mark Alexander)
3110 Date: Wed, 27 May 2009 09:13:30 -0700
3111 Subject: [sup-talk] [PATCH] Use terminal width instead of hardcoded 80
3112 as the wrap length.
3113 In-Reply-To: <1243439667-sup-3947@entry>
3114 References: <1243102667-sup-6007@r50p>
3115 <4c4248150905231318kab3819dw68e3a3a614241c0d@mail.gmail.com>
3116 <1243123134-sup-8032@ntdws12.chass.utoronto.ca>
3117 <1243439667-sup-3947@entry>
3118 Message-ID: <a412e2a70905270913x6024bb26wd76e448987b7fb26@mail.gmail.com>
3119
3120 On Wed, May 27, 2009 at 8:58 AM, William Morgan
3121 <wmorgan-sup at masanjin.net> wrote:
3122 > Would a three-way toggle irritate anyone?
3123
3124 Sounds good to me.
3125
3126 From wmorgan-sup@masanjin.net Wed May 27 12:22:54 2009
3127 From: wmorgan-sup@masanjin.net (William Morgan)
3128 Date: Wed, 27 May 2009 09:22:54 -0700
3129 Subject: [sup-talk] Multiple email accounts
3130 In-Reply-To: <1243275433-sup-6834@javelin>
3131 References: <1243121499-sup-7569@javelin> <1243122989-sup-7769@leda>
3132 <1243275433-sup-6834@javelin>
3133 Message-ID: <1243440902-sup-4117@entry>
3134
3135 Reformatted excerpts from Edward Z. Yang's message of 2009-05-25:
3136 > Great, that's 99% of what I need. The last 1% is, can Sup auto-detect
3137 > what From line to send based on the source of the message, if the To:
3138 > header is not intact? (This is commonly the case for mailing lists.
3139
3140 You can use the reply-from hook to set it automatically however you
3141 want. Try adding something like the following (completely untested!) to
3142 ~/.sup/hooks/reply-from.rb:
3143
3144 case message.from.email
3145 when /sup-talk at rubyforge.org/i
3146 Person.from_address "Edward Z. Yang <ezy+i-love-sup at mit.edu>"
3147 end
3148
3149 If the hook returns nil, Sup does the default computation.
3150 --
3151 William <wmorgan-sup at masanjin.net>
3152
3153 From guillaume.quintard@gmail.com Wed May 27 12:24:07 2009
3154 From: guillaume.quintard@gmail.com (Guillaume Quintard)
3155 Date: Wed, 27 May 2009 18:24:07 +0200
3156 Subject: [sup-talk] Arg, gmail
3157 Message-ID: <1e5fdab70905270924t798c4e5er3978e717b2215d48@mail.gmail.com>
3158
3159 Hi all,
3160 I'm having a *little* problem with gmail: I can't send mail with
3161 neither msmtp nor ssmtp, I get "no route to host" with the first one
3162 and "can't auth" with the latter, even though last year it worked (I
3163 got too annoyed by ferrets errors I dropped sup, shame on me!). If
3164 anyone has a (s|m)smtp+gmail config, could he please mail me in
3165 private to help me tackle this? I don't want to flood the mlist.
3166
3167 By the way, two questions:
3168 - when we'll we see an automatic option to save changes to a mail as
3169 we quit it (.a or ,a or x to kill the buffer)?
3170 - I can haz a width limit so I don't loose sight of my mails whenever
3171 I sleep on the right key? (cheezburger would be good too)
3172 in inbox-mode that's just max(arbitrary_size, terminal_width)
3173 in thread-view-mode max(terminal_width, 80 + max_depth*indent)
3174
3175 anyway, awesome job, I'm always amazed that sup is the only one of it's kind.
3176
3177 --
3178 Guillaume
3179
3180 From wmorgan-sup@masanjin.net Wed May 27 12:25:44 2009
3181 From: wmorgan-sup@masanjin.net (William Morgan)
3182 Date: Wed, 27 May 2009 09:25:44 -0700
3183 Subject: [sup-talk] Getting gpg to work
3184 In-Reply-To: <87k5462s8q.fsf@pond.riseup.net>
3185 References: <87k5462s8q.fsf@pond.riseup.net>
3186 Message-ID: <1243441483-sup-2270@entry>
3187
3188 Reformatted excerpts from Micah Anderson's message of 2009-05-24:
3189 > I'm getting gpg messages that aren't being decoded automatically.
3190
3191 In the early part of Sup's log, does it mention being able to find the
3192 gpg binary? (When in Sup, hit b until you see the log-mode buffer and
3193 then scroll to the top.)
3194 --
3195 William <wmorgan-sup at masanjin.net>
3196
3197 From wmorgan-sup@masanjin.net Wed May 27 12:38:26 2009
3198 From: wmorgan-sup@masanjin.net (William Morgan)
3199 Date: Wed, 27 May 2009 09:38:26 -0700
3200 Subject: [sup-talk] Arg, gmail
3201 In-Reply-To: <1e5fdab70905270924t798c4e5er3978e717b2215d48@mail.gmail.com>
3202 References: <1e5fdab70905270924t798c4e5er3978e717b2215d48@mail.gmail.com>
3203 Message-ID: <1243442108-sup-6538@entry>
3204
3205 Hi Guillaume,
3206
3207 Nice to hear from you again.
3208
3209 Reformatted excerpts from Guillaume Quintard's message of 2009-05-27:
3210 > (I got too annoyed by ferrets errors I dropped sup, shame on me!).
3211
3212 I think we have fixed those in the meanwhile.
3213
3214 > - when we'll we see an automatic option to save changes to a mail as
3215 > we quit it (.a or ,a or x to kill the buffer)?
3216
3217 You mean, so that you don't have to press '$'? When you press 'q'
3218 everything's automatically saved. Does that help?
3219
3220 But now that we have undo support, removing the '$' key is an option in
3221 the future.
3222
3223 > - I can haz a width limit so I don't loose sight of my mails whenever
3224 > I sleep on the right key? (cheezburger would be good too)
3225 > in inbox-mode that's just max(arbitrary_size, terminal_width)
3226 > in thread-view-mode max(terminal_width, 80 + max_depth*indent)
3227
3228 This isn't exactly what you want, but you can press '[' to jump back to
3229 the left side of the screen.
3230 --
3231 William <wmorgan-sup at masanjin.net>
3232
3233 From rhomunuq+ml_sup@gmail.com Wed May 27 12:36:45 2009
3234 From: rhomunuq+ml_sup@gmail.com (Iain)
3235 Date: Wed, 27 May 2009 17:36:45 +0100
3236 Subject: [sup-talk] Arg, gmail
3237 In-Reply-To: <1e5fdab70905270924t798c4e5er3978e717b2215d48@mail.gmail.com>
3238 References: <1e5fdab70905270924t798c4e5er3978e717b2215d48@mail.gmail.com>
3239 Message-ID: <1243442046-sup-3254@leda>
3240
3241 (Replying to the list in case of future person with the same problem.)
3242
3243 > I'm having a *little* problem with gmail: I can't send mail with
3244 > neither msmtp nor ssmtp, I get "no route to host" with the first one
3245 > and "can't auth" with the latter, even though last year it worked
3246
3247 Gmail uses non-standard port 587.
3248
3249 Partial example .msmtprc:
3250
3251 account whateveryouwant
3252 auth on
3253 host smtp.gmail.com
3254 port 587
3255 user yourusername at gmail.com
3256 password yourpassword
3257 tls on
3258 tls_starttls on
3259 tls_certcheck off # Insecure; better would be to add the Gmail cert to
3260 tls_trust_file
3261 auto_from on
3262
3263 From guillaume.quintard@gmail.com Wed May 27 13:29:34 2009
3264 From: guillaume.quintard@gmail.com (Guillaume Quintard)
3265 Date: Wed, 27 May 2009 19:29:34 +0200
3266 Subject: [sup-talk] Arg, gmail
3267 In-Reply-To: <1243442108-sup-6538@entry>
3268 References: <1e5fdab70905270924t798c4e5er3978e717b2215d48@mail.gmail.com>
3269 <1243442108-sup-6538@entry>
3270 Message-ID: <1e5fdab70905271029i1863ef73o7c3570069e6ed978@mail.gmail.com>
3271
3272 On Wed, May 27, 2009 at 6:38 PM, William Morgan
3273 <wmorgan-sup at masanjin.net> wrote:
3274
3275 account gmail
3276 auth on
3277 host smtp.gmail.com
3278 port 587
3279 user foo at gmail.com
3280 password bar
3281 tls on
3282 tls_starttls on
3283 tls_certcheck off
3284 tls_trust_file
3285 auto_from on
3286
3287 and I get
3288 smtp: cannot connect to smtp.gmail.com, port 587: No route to host
3289 msmtp: could not send mail (account gmail from /home/shivan/.msmtprc)
3290 Problem sending mail: Couldn't execute msmtp --account=gmail -t
3291
3292 I don't get what I'm not doing right
3293
3294 > I think we have fixed those in the meanwhile.
3295 >
3296 I heard so, that's why I'm back, and so far, so good.
3297
3298 > You mean, so that you don't have to press '$'? When you press 'q'
3299 > everything's automatically saved. Does that help?
3300
3301 not really, I don't close sup very often. what annoys me is that if I
3302 take care of a few mails, by using ",a", go back to inbox, and reload
3303 the view, the mails are still there. Killing the buffer could save.
3304 Since it's only one mail, that would go fast.
3305
3306
3307 > This isn't exactly what you want, but you can press '[' to jump back to
3308 > the left side of the screen.
3309
3310 nope, that's not exactly what I want :-)
3311
3312 --
3313 Guillaume
3314
3315 From rhomunuq+ml_sup@gmail.com Wed May 27 13:36:45 2009
3316 From: rhomunuq+ml_sup@gmail.com (Iain)
3317 Date: Wed, 27 May 2009 18:36:45 +0100
3318 Subject: [sup-talk] Arg, gmail
3319 In-Reply-To: <1e5fdab70905271029i1863ef73o7c3570069e6ed978@mail.gmail.com>
3320 References: <1e5fdab70905270924t798c4e5er3978e717b2215d48@mail.gmail.com>
3321 <1243442108-sup-6538@entry>
3322 <1e5fdab70905271029i1863ef73o7c3570069e6ed978@mail.gmail.com>
3323 Message-ID: <1243445671-sup-2031@leda>
3324
3325 > tls_trust_file
3326
3327 Sorry, this was some careless copy-and-pasting on my part.
3328 tls_trust_file was part of the commented line above, not supposed to be
3329 on a separate line by itself.
3330
3331 But that's not what is causing the problem...
3332
3333 > smtp: cannot connect to smtp.gmail.com, port 587: No route to host
3334 > msmtp: could not send mail (account gmail from /home/shivan/.msmtprc)
3335 > Problem sending mail: Couldn't execute msmtp --account=gmail -t
3336
3337 What is the output of:
3338 telnet smtp.gmail.com 587
3339 ?
3340
3341 From nicolas.pouillard@gmail.com Wed May 27 13:41:33 2009
3342 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
3343 Date: Wed, 27 May 2009 19:41:33 +0200
3344 Subject: [sup-talk] Arg, gmail
3345 In-Reply-To: <1e5fdab70905271029i1863ef73o7c3570069e6ed978@mail.gmail.com>
3346 References: <1e5fdab70905270924t798c4e5er3978e717b2215d48@mail.gmail.com>
3347 <1243442108-sup-6538@entry>
3348 <1e5fdab70905271029i1863ef73o7c3570069e6ed978@mail.gmail.com>
3349 Message-ID: <1243446006-sup-832@ausone.local>
3350
3351 Excerpts from Guillaume Quintard's message of Wed May 27 19:29:34 +0200 2009:
3352 > On Wed, May 27, 2009 at 6:38 PM, William Morgan
3353 > <wmorgan-sup at masanjin.net> wrote:
3354 >
3355 > account gmail
3356 > auth on
3357 > host smtp.gmail.com
3358 > port 587
3359 > user foo at gmail.com
3360 > password bar
3361 > tls on
3362 > tls_starttls on
3363 > tls_certcheck off
3364 > tls_trust_file
3365 > auto_from on
3366 >
3367 > and I get
3368 > smtp: cannot connect to smtp.gmail.com, port 587: No route to host
3369 > msmtp: could not send mail (account gmail from /home/shivan/.msmtprc)
3370 > Problem sending mail: Couldn't execute msmtp --account=gmail -t
3371 >
3372 > I don't get what I'm not doing right
3373
3374 I use this one (mostly the same except tls things and no auto_from):
3375
3376 defaults
3377 tls on
3378
3379 account gmail
3380 host smtp.gmail.com
3381 port 587
3382 auth on
3383 user foo
3384 password bar
3385 tls_starttls on
3386 tls_trust_file ............../ThawtePremiumServerCA.crt
3387 tls_certcheck on
3388 logfile /var/log/msmtp.log
3389
3390 --
3391 Nicolas Pouillard
3392 http://nicolaspouillard.fr
3393
3394 From marka@pobox.com Wed May 27 13:42:54 2009
3395 From: marka@pobox.com (Mark Alexander)
3396 Date: Wed, 27 May 2009 10:42:54 -0700
3397 Subject: [sup-talk] Arg, gmail
3398 In-Reply-To: <1e5fdab70905271029i1863ef73o7c3570069e6ed978@mail.gmail.com>
3399 References: <1e5fdab70905270924t798c4e5er3978e717b2215d48@mail.gmail.com>
3400 <1243442108-sup-6538@entry>
3401 <1e5fdab70905271029i1863ef73o7c3570069e6ed978@mail.gmail.com>
3402 Message-ID: <a412e2a70905271042m1baadac1ydf02986aa7b17a2d@mail.gmail.com>
3403
3404 On Wed, May 27, 2009 at 10:29 AM, Guillaume Quintard
3405 <guillaume.quintard at gmail.com> wrote:
3406 > smtp: cannot connect to smtp.gmail.com, port 587: No route to host
3407
3408 I'm away from my home machine so can't check what I'm using there
3409 to send to gmail (I know it's working with msmtp, though). However,
3410 I did try the following just now from a BSD machine:
3411
3412 % telnet smtp.gmail.com 587
3413 Trying 209.85.201.111...
3414 telnet: connect to address 209.85.201.111: Connection refused
3415 % telnet smtp.gmail.com 465
3416 Trying 209.85.201.111...
3417 Connected to gmail-smtp-msa.l.google.com.
3418 Escape character is '^]'.
3419
3420 So you might want to try port 465.
3421
3422
3423
3424
3425 il (account gmail from /home/shivan/.msmtprc)
3426 > Problem sending mail: Couldn't execute msmtp --account=gmail -t
3427 >
3428 > I don't get what I'm not doing right
3429 >
3430 >> I think we have fixed those in the meanwhile.
3431 >>
3432 > I heard so, that's why I'm back, and so far, so good.
3433 >
3434 >> You mean, so that you don't have to press '$'? When you press 'q'
3435 >> everything's automatically saved. Does that help?
3436 >
3437 > not really, I don't close sup very often. what annoys me is that if I
3438 > take care of a few mails, by using ",a", go back to inbox, and reload
3439 > the view, the mails are still there. Killing the buffer could save.
3440 > Since it's only one mail, that would go fast.
3441 >
3442 >
3443 >> This isn't exactly what you want, but you can press '[' to jump back to
3444 >> the left side of the screen.
3445 >
3446 > nope, that's not exactly what I want :-)
3447 >
3448 > --
3449 > Guillaume
3450 > _______________________________________________
3451 > sup-talk mailing list
3452 > sup-talk at rubyforge.org
3453 > http://rubyforge.org/mailman/listinfo/sup-talk
3454 >
3455
3456 From nicolas.pouillard@gmail.com Wed May 27 13:43:11 2009
3457 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
3458 Date: Wed, 27 May 2009 19:43:11 +0200
3459 Subject: [sup-talk] [PATCH] Use terminal width instead of hardcoded 80
3460 as the wrap length.
3461 In-Reply-To: <a412e2a70905270913x6024bb26wd76e448987b7fb26@mail.gmail.com>
3462 References: <1243102667-sup-6007@r50p>
3463 <4c4248150905231318kab3819dw68e3a3a614241c0d@mail.gmail.com>
3464 <1243123134-sup-8032@ntdws12.chass.utoronto.ca>
3465 <1243439667-sup-3947@entry>
3466 <a412e2a70905270913x6024bb26wd76e448987b7fb26@mail.gmail.com>
3467 Message-ID: <1243446173-sup-4694@ausone.local>
3468
3469 Excerpts from Mark Alexander's message of Wed May 27 18:13:30 +0200 2009:
3470 > On Wed, May 27, 2009 at 8:58 AM, William Morgan
3471 > <wmorgan-sup at masanjin.net> wrote:
3472 > > Would a three-way toggle irritate anyone?
3473 >
3474 > Sounds good to me.
3475
3476 It would also fit my needs.
3477
3478 --
3479 Nicolas Pouillard
3480 http://nicolaspouillard.fr
3481
3482 From guillaume.quintard@gmail.com Wed May 27 13:53:04 2009
3483 From: guillaume.quintard@gmail.com (Guillaume Quintard)
3484 Date: Wed, 27 May 2009 19:53:04 +0200
3485 Subject: [sup-talk] Arg, gmail
3486 In-Reply-To: <1243445671-sup-2031@leda>
3487 References: <1e5fdab70905270924t798c4e5er3978e717b2215d48@mail.gmail.com>
3488 <1243442108-sup-6538@entry>
3489 <1e5fdab70905271029i1863ef73o7c3570069e6ed978@mail.gmail.com>
3490 <1243445671-sup-2031@leda>
3491 Message-ID: <1e5fdab70905271053qd175badj56474d496fc0ee4a@mail.gmail.com>
3492
3493 On Wed, May 27, 2009 at 7:36 PM, Iain <rhomunuq+ml_sup at gmail.com> wrote:
3494 > What is the output of:
3495 > telnet smtp.gmail.com 587
3496
3497 I don't like that. it just keeps hanging, but on another machine,
3498 outside of the LAN, it works perfectly fine. I should talk to the
3499 admins I guess.
3500
3501 Thanks for your time guys.
3502
3503 --
3504 Guillaume
3505
3506 From marcus-sup@bar-coded.net Wed May 27 14:51:06 2009
3507 From: marcus-sup@bar-coded.net (Marcus Williams)
3508 Date: Wed, 27 May 2009 19:51:06 +0100
3509 Subject: [sup-talk] Multiple email accounts
3510 In-Reply-To: <1243440902-sup-4117@entry>
3511 References: <1243121499-sup-7569@javelin> <1243122989-sup-7769@leda>
3512 <1243275433-sup-6834@javelin> <1243440902-sup-4117@entry>
3513 Message-ID: <1243449836-sup-6622@tomsk>
3514
3515 On 27.5.2009, William Morgan wrote:
3516 > > Great, that's 99% of what I need. The last 1% is, can Sup auto-detect
3517 > > what From line to send based on the source of the message, if the To:
3518 > > header is not intact? (This is commonly the case for mailing lists.
3519 >
3520 > You can use the reply-from hook to set it automatically however you
3521 > want. Try adding something like the following (completely untested!) to
3522 > ~/.sup/hooks/reply-from.rb:
3523 [snip]
3524
3525 Note also that you might be able to do what you want with the regexen
3526 options in config.yaml - so for instance Sup works out that I reply to
3527 the sup talk mail list with marcus-sup at .... It uses the envelope-to
3528 header to figure this out I seem to remember (coupled with the regexen
3529 settings).
3530
3531 So under one of my accounts I have:
3532
3533 :regexen:
3534 - marcus-.*(at)mydomain.com
3535
3536 (where (at) is replaced with @, and mydomain.com is replaced with the
3537 obvious).
3538
3539 This make sup recognise all incoming emails to my email extensions
3540 that all begin with "marcus-" and unlike the :alternative: settings
3541 are used by sup to figure out what address to reply with. Works well
3542 for all the mailing lists I'm using.
3543
3544 The only problem is they dont get used for sending new addresses (but
3545 I recently sent an email about how I get around that).
3546
3547 HTH
3548
3549 Marcus
3550
3551 From sean.escriva@gmail.com Wed May 27 19:13:47 2009
3552 From: sean.escriva@gmail.com (Sean Escriva)
3553 Date: Wed, 27 May 2009 16:13:47 -0700
3554 Subject: [sup-talk] oops, previous sup exception log
3555 Message-ID: <20090527231347.GA13064@gmail.com>
3556
3557 just realized I hadn't seen the answer to this before, sorry for the
3558 repost, I'll try a different source method. thanks for the previous
3559 answer William
3560
3561 From wmorgan-sup@masanjin.net Thu May 28 11:07:58 2009
3562 From: wmorgan-sup@masanjin.net (William Morgan)
3563 Date: Thu, 28 May 2009 08:07:58 -0700
3564 Subject: [sup-talk] [PATCH] New hook: after-save
3565 In-Reply-To: <1243349962-sup-2625@ptoseis>
3566 References: <1243349962-sup-2625@ptoseis>
3567 Message-ID: <1243523190-sup-8907@entry>
3568
3569 Reformatted excerpts from Henri Ducrocq's message of 2009-05-26:
3570 > This hook is run when the user presses on '$' to save the state and
3571 > index.
3572 > I'm using this to update a file used by my dzen status bar to display the
3573 > number of unread emails in my inbox.
3574
3575 I think I'd prefer to modify the current after-poll hook to an
3576 "after-state-change-hook" (or a better name) and have it fire after
3577 either a poll or a save happens.
3578 --
3579 William <wmorgan-sup at masanjin.net>
3580
3581 From wmorgan-sup@masanjin.net Thu May 28 11:11:25 2009
3582 From: wmorgan-sup@masanjin.net (William Morgan)
3583 Date: Thu, 28 May 2009 08:11:25 -0700
3584 Subject: [sup-talk] UTF-8 message sending patch
3585 In-Reply-To: <1240861799-sup-787@colargol.tihlde.org>
3586 References: <1240861799-sup-787@colargol.tihlde.org>
3587 Message-ID: <1243523439-sup-4045@entry>
3588
3589 Reformatted excerpts from Helge Titlestad's message of 2009-04-27:
3590 > I think the patch (attached) fixes my problems, but it's probably far
3591 > from complete. It doesn't detect non-utf8-but-still-illegal-strings,
3592 > it assumes every header except Subject is an address, and so on.
3593 >
3594 > Any feedback is welcome. (:
3595
3596 This has all been added in. If you get a chance, please try the current
3597 master branch of Sup and see if it has the behavior you desire. Thanks!
3598 --
3599 William <wmorgan-sup at masanjin.net>
3600
3601 From wmorgan-sup@masanjin.net Thu May 28 11:13:56 2009
3602 From: wmorgan-sup@masanjin.net (William Morgan)
3603 Date: Thu, 28 May 2009 08:13:56 -0700
3604 Subject: [sup-talk] merge activity report
3605 In-Reply-To: <1242667096-sup-7844@ntdws12.chass.utoronto.ca>
3606 References: <1242659511-sup-4534@entry>
3607 <1242667096-sup-7844@ntdws12.chass.utoronto.ca>
3608 Message-ID: <1243523591-sup-5117@entry>
3609
3610 Reformatted excerpts from Ben Walton's message of 2009-05-18:
3611 > Let me know when you'd like the flexible sent stuff rebased and
3612 > against which branch. I'm ready with that any time.
3613
3614 Sorry for the delay on this. I've merged down everything related so a
3615 rebase against master should be pretty easy for you. Once that's done
3616 I will merge it into next.
3617 --
3618 William <wmorgan-sup at masanjin.net>
3619
3620 From wmorgan-sup@masanjin.net Thu May 28 11:18:15 2009
3621 From: wmorgan-sup@masanjin.net (William Morgan)
3622 Date: Thu, 28 May 2009 08:18:15 -0700
3623 Subject: [sup-talk] pending 0.8 release
3624 Message-ID: <1243523649-sup-7696@entry>
3625
3626 Hi suppers,
3627
3628 I've merged down several stable-seeming feature branches onto master in
3629 anticipation of an 0.8 release. This release will includes utf8 fixes,
3630 faster mbox reading, preliminary undo support, and many bugfixes. If you
3631 get a chance, please give it a try and report any problems you
3632 encounter.
3633
3634 For the next next version, 0.9, I'd love to see:
3635 - Ben Walton's flexible sent source changes
3636 - Maildir support in sup-sync-back, if I get a chance
3637 - undo support on more actions
3638 - three-way toggle for message text wrapping
3639 - and whatever else you guys feel like submitting patches for!
3640 --
3641 William <wmorgan-sup at masanjin.net>
3642
3643 From bwalton@artsci.utoronto.ca Thu May 28 11:31:36 2009
3644 From: bwalton@artsci.utoronto.ca (Ben Walton)
3645 Date: Thu, 28 May 2009 11:31:36 -0400
3646 Subject: [sup-talk] merge activity report
3647 In-Reply-To: <1243523591-sup-5117@entry>
3648 References: <1242659511-sup-4534@entry>
3649 <1242667096-sup-7844@ntdws12.chass.utoronto.ca>
3650 <1243523591-sup-5117@entry>
3651 Message-ID: <1243524514-sup-7560@ntdws12.chass.utoronto.ca>
3652
3653 Excerpts from William Morgan's message of Thu May 28 11:13:56 -0400 2009:
3654 > Sorry for the delay on this. I've merged down everything related so a
3655 > rebase against master should be pretty easy for you. Once that's done
3656 > I will merge it into next.
3657
3658 No problem. I'd actually rebased against master last night as I'd
3659 seen a flurry of activity on the gitorious rss feed. I did this again
3660 just now and force-pushed my changes to
3661 git://code.chass.utoronto.ca/bwalton-sup.git. [I note this for anyone
3662 that may have pulled from my branch previously...rebasing isn't a nice
3663 thing to do with published branches :) ]
3664
3665 It's the bw/flexible_sent branch available from that URL.
3666
3667 I haven't spent any time on the LockManager stuff in the last week+
3668 though, as the NBA finals have been sapping up my evenings!
3669
3670 Does this rebased branch meet your needs?
3671
3672 Thanks
3673 -Ben
3674 --
3675 Ben Walton
3676 Systems Programmer - CHASS
3677 University of Toronto
3678 C:416.407.5610 | W:416.978.4302
3679
3680 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
3681 Contact me to arrange for a CAcert assurance meeting.
3682 -------------- next part --------------
3683 A non-text attachment was scrubbed...
3684 Name: signature.asc
3685 Type: application/pgp-signature
3686 Size: 189 bytes
3687 Desc: not available
3688 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090528/d00cca51/attachment.bin>
3689
3690 From wmorgan-sup@masanjin.net Thu May 28 12:37:11 2009
3691 From: wmorgan-sup@masanjin.net (William Morgan)
3692 Date: Thu, 28 May 2009 09:37:11 -0700
3693 Subject: [sup-talk] merge activity report
3694 In-Reply-To: <1243524514-sup-7560@ntdws12.chass.utoronto.ca>
3695 References: <1242659511-sup-4534@entry>
3696 <1242667096-sup-7844@ntdws12.chass.utoronto.ca>
3697 <1243523591-sup-5117@entry>
3698 <1243524514-sup-7560@ntdws12.chass.utoronto.ca>
3699 Message-ID: <1243528605-sup-9712@entry>
3700
3701 Reformatted excerpts from Ben Walton's message of 2009-05-28:
3702 > Does this rebased branch meet your needs?
3703
3704 Look great. Merged into next. Thanks!
3705 --
3706 William <wmorgan-sup at masanjin.net>
3707
3708 From ingmar@exherbo.org Thu May 28 13:03:16 2009
3709 From: ingmar@exherbo.org (Ingmar Vanhassel)
3710 Date: Thu, 28 May 2009 17:03:16 +0000
3711 Subject: [sup-talk] [PATCH] Use rake/packagegemtask
3712 Message-ID: <20090528170316.GA4359@bach>
3713
3714 Sup?
3715
3716 Attached is a patch to use rake/packagegemtask, instead of calling gem1.8 manually.
3717 As far as I can see gem1.8 is a debianism, so calling it directly should
3718 probably be avoided. Thoughts?
3719
3720 Regards,
3721 Ingmar
3722
3723 --
3724 Exherbo KDE, X.org maintainer
3725
3726 From bwalton@artsci.utoronto.ca Thu May 28 15:32:42 2009
3727 From: bwalton@artsci.utoronto.ca (Ben Walton)
3728 Date: Thu, 28 May 2009 15:32:42 -0400
3729 Subject: [sup-talk] utf patch needs work, i think
3730 Message-ID: <1243539136-sup-9008@ntdws12.chass.utoronto.ca>
3731
3732
3733 I just found something funny with the new utf patch. The only thing I
3734 noticed in the headers of relevance was:
3735
3736 To: =?utf-16be?b?/v8AfgA6ACcAJwAgMEIwijBMMGgwRjBUMFYwRDB+MFcA?=
3737 =?utf-16be?b?MF8wAg==?= <j.chetwynd at btinternet.com>
3738
3739
3740 The displayed mail can be seen here:
3741 http://www.cquest.utoronto.ca/u/bwalton/utf-wtf.png
3742
3743 I'll save the message if it's of any use in debugging the problem (it
3744 was a post to the git list). There wasn't anything in the body itself
3745 that looked odd to my quick visual inspection.
3746
3747 Thanks
3748 -Ben
3749 --
3750 Ben Walton
3751 Systems Programmer - CHASS
3752 University of Toronto
3753 C:416.407.5610 | W:416.978.4302
3754
3755 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
3756 Contact me to arrange for a CAcert assurance meeting.
3757 -------------- next part --------------
3758 A non-text attachment was scrubbed...
3759 Name: signature.asc
3760 Type: application/pgp-signature
3761 Size: 189 bytes
3762 Desc: not available
3763 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090528/eec38321/attachment.bin>
3764
3765 From bwalton@artsci.utoronto.ca Thu May 28 19:32:56 2009
3766 From: bwalton@artsci.utoronto.ca (Ben Walton)
3767 Date: Thu, 28 May 2009 19:32:56 -0400
3768 Subject: [sup-talk] utf patch needs work, i think
3769 In-Reply-To: <1243539136-sup-9008@ntdws12.chass.utoronto.ca>
3770 References: <1243539136-sup-9008@ntdws12.chass.utoronto.ca>
3771 Message-ID: <1243553511-sup-472@ntdws12.chass.utoronto.ca>
3772
3773 Excerpts from Ben Walton's message of Thu May 28 15:32:42 -0400 2009:
3774 >
3775 > I just found something funny with the new utf patch. The only thing I
3776 > noticed in the headers of relevance was:
3777 >
3778 > To: =?utf-16be?b?/v8AfgA6ACcAJwAgMEIwijBMMGgwRjBUMFYwRDB+MFcA?=
3779 > =?utf-16be?b?MF8wAg==?= <j.chetwynd at btinternet.com>
3780
3781 ...a followup on the list makes me wonder if this isn't actually a sup
3782 thing, but a weird encoding 'joke' by the poster. Even if the body
3783 display wasn't a sup bug, the name is still munged up.
3784
3785 -Ben
3786
3787
3788 --
3789 Ben Walton
3790 Systems Programmer - CHASS
3791 University of Toronto
3792 C:416.407.5610 | W:416.978.4302
3793
3794 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
3795 Contact me to arrange for a CAcert assurance meeting.
3796 -------------- next part --------------
3797 A non-text attachment was scrubbed...
3798 Name: signature.asc
3799 Type: application/pgp-signature
3800 Size: 189 bytes
3801 Desc: not available
3802 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090528/fc984a86/attachment.bin>
3803
3804 From micah@riseup.net Fri May 29 00:19:24 2009
3805 From: micah@riseup.net (Micah Anderson)
3806 Date: Fri, 29 May 2009 00:19:24 -0400
3807 Subject: [sup-talk] Getting gpg to work
3808 References: <87k5462s8q.fsf@pond.riseup.net> <1243441483-sup-2270@entry>
3809 Message-ID: <8763fkwng3.fsf@pond.riseup.net>
3810
3811 William Morgan <wmorgan-sup at masanjin.net> writes:
3812
3813 > Reformatted excerpts from Micah Anderson's message of 2009-05-24:
3814 >> I'm getting gpg messages that aren't being decoded automatically.
3815 >
3816 > In the early part of Sup's log, does it mention being able to find the
3817 > gpg binary? (When in Sup, hit b until you see the log-mode buffer and
3818 > then scroll to the top.)
3819
3820 Indeed I do:
3821
3822 [Fri May 29 00:17:42 -0400 2009] crypto: detected gpg binary in /usr/bin/gpg
3823
3824 micah
3825
3826
3827 From israel.herraiz@gmail.com Fri May 29 08:48:06 2009
3828 From: israel.herraiz@gmail.com (Israel Herraiz)
3829 Date: Fri, 29 May 2009 14:48:06 +0200
3830 Subject: [sup-talk] [PATCH] Prettier printing of enclosed messages
3831 Message-ID: <4a1fdabb.0a1ad00a.399c.23fb@mx.google.com>
3832
3833 Hi,
3834
3835 this patch prints enclosed messages with only some selected headers
3836 instead of the full headers, just as "normal" messages.
3837
3838 Cheers,
3839 Israel
3840
3841 ---
3842 lib/sup/message-chunks.rb | 26 +++++++++++++++++++-------
3843 lib/sup/message.rb | 17 +++++++++++++----
3844 2 files changed, 32 insertions(+), 11 deletions(-)
3845
3846 diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
3847 index 1bf7796..7b55c91 100644
3848 --- a/lib/sup/message-chunks.rb
3849 +++ b/lib/sup/message-chunks.rb
3850 @@ -208,13 +208,25 @@ EOS
3851
3852 class EnclosedMessage
3853 attr_reader :lines
3854 - def initialize from, body
3855 - @from = from
3856 - @lines = body.split "\n"
3857 - end
3858 + def initialize from, to, cc, date, subj
3859 + @from = from ? "unknown sender" : from.full_adress
3860 + @to = to ? "" : to.map { |p| p.full_address }.join(", ")
3861 + @cc = cc ? "" : cc.map { |p| p.full_address }.join(", ")
3862 + if date
3863 + @date = date.rfc822
3864 + else
3865 + @date = ""
3866 + end
3867
3868 - def from
3869 - @from ? @from.longname : "unknown sender"
3870 + @subj = subj
3871 +
3872 + @lines = "\nFrom: #{from}\n"
3873 + @lines += "To: #{to}\n"
3874 + if !cc.empty?
3875 + @lines += "Cc: #{cc}\n"
3876 + end
3877 + @lines += "Date: #{date}\n"
3878 + @lines += "Subject: #{subj}\n\n"
3879 end
3880
3881 def inlineable?; false end
3882 @@ -224,7 +236,7 @@ EOS
3883 def viewable?; false end
3884
3885 def patina_color; :generic_notice_patina_color end
3886 - def patina_text; "Begin enclosed message from #{from} (#{@lines.length} lines)" end
3887 + def patina_text; "Begin enclosed message sent on #{@date}" end
3888
3889 def color; :quote_color end
3890 end
3891 diff --git a/lib/sup/message.rb b/lib/sup/message.rb
3892 index 6dd1f7d..72ec6c5 100644
3893 --- a/lib/sup/message.rb
3894 +++ b/lib/sup/message.rb
3895 @@ -383,10 +383,19 @@ private
3896 chunks
3897 elsif m.header.content_type == "message/rfc822"
3898 payload = RMail::Parser.read(m.body)
3899 - from = payload.header.from.first
3900 - from_person = from ? Person.from_address(from.format) : nil
3901 - [Chunk::EnclosedMessage.new(from_person, payload.to_s)] +
3902 - message_to_chunks(payload, encrypted)
3903 + from = payload.header.from.first ? payload.header.from.first.format : ""
3904 + to = payload.header.to.map { |p| p.format }.join(", ")
3905 + cc = payload.header.cc.map { |p| p.format }.join(", ")
3906 + subj = payload.header.subject
3907 + subj = subj ? Message.normalize_subj(payload.header.subject.gsub(/\s+/, " ").gsub(/\s+$/, "")) : subj
3908 + if Rfc2047.is_encoded? subj
3909 + subj = Rfc2047.decode_to $encoding, subj
3910 + end
3911 + msgdate = payload.header.date
3912 + from_person = from ? Person.from_address (from) : nil
3913 + to_people = to ? Person.from_address_list (to) : nil
3914 + cc_people = cc ? Person.from_address_list (cc) : nil
3915 + [Chunk::EnclosedMessage.new(from_person, to_people, cc_people, msgdate, subj)] + message_to_chunks(payload, encrypted)
3916 else
3917 filename =
3918 ## first, paw through the headers looking for a filename
3919 --
3920 1.6.3.1
3921
3922
3923 From israel.herraiz@gmail.com Fri May 29 09:19:23 2009
3924 From: israel.herraiz@gmail.com (Israel Herraiz)
3925 Date: Fri, 29 May 2009 15:19:23 +0200
3926 Subject: [sup-talk] [PATCH] Fixing a couple of warnings (was Prettier
3927 printing of enclosed messages)
3928 Message-ID: <691d00b80905290619y77769363t5ca4cbd7f270cc26@mail.gmail.com>
3929
3930 The patch introduced a couple of warnings. They are fixed with the
3931 attached patch.
3932
3933 Cheers,
3934 Israel
3935
3936 ---
3937 lib/sup/message.rb | 6 +++---
3938 1 files changed, 3 insertions(+), 3 deletions(-)
3939
3940 diff --git a/lib/sup/message.rb b/lib/sup/message.rb
3941 index 72ec6c5..422aafb 100644
3942 --- a/lib/sup/message.rb
3943 +++ b/lib/sup/message.rb
3944 @@ -392,9 +392,9 @@ private
3945 subj = Rfc2047.decode_to $encoding, subj
3946 end
3947 msgdate = payload.header.date
3948 - from_person = from ? Person.from_address (from) : nil
3949 - to_people = to ? Person.from_address_list (to) : nil
3950 - cc_people = cc ? Person.from_address_list (cc) : nil
3951 + from_person = from ? Person.from_address(from) : nil
3952 + to_people = to ? Person.from_address_list(to) : nil
3953 + cc_people = cc ? Person.from_address_list(cc) : nil
3954 [Chunk::EnclosedMessage.new(from_person, to_people, cc_people,
3955 msgdate, subj)] + message_to_chunks(payload, encrypted)
3956 else
3957 filename =
3958 --
3959 1.6.3.1
3960
3961 From israel.herraiz@gmail.com Fri May 29 08:48:06 2009
3962 From: israel.herraiz@gmail.com (Israel Herraiz)
3963 Date: Fri, 29 May 2009 14:48:06 +0200
3964 Subject: [sup-talk] [PATCH] Prettier printing of enclosed messages
3965 Message-ID: <4a1fe5cd.0a04d00a.1d89.ffffe1b2@mx.google.com>
3966
3967 Hi,
3968
3969 this patch prints enclosed messages with only some selected headers
3970 instead of the full headers, just as "normal" messages.
3971
3972 Cheers,
3973 Israel
3974
3975 ---
3976 lib/sup/message-chunks.rb | 26 +++++++++++++++++++-------
3977 lib/sup/message.rb | 17 +++++++++++++----
3978 2 files changed, 32 insertions(+), 11 deletions(-)
3979
3980 diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
3981 index 1bf7796..7b55c91 100644
3982 --- a/lib/sup/message-chunks.rb
3983 +++ b/lib/sup/message-chunks.rb
3984 @@ -208,13 +208,25 @@ EOS
3985
3986 class EnclosedMessage
3987 attr_reader :lines
3988 - def initialize from, body
3989 - @from = from
3990 - @lines = body.split "\n"
3991 - end
3992 + def initialize from, to, cc, date, subj
3993 + @from = from ? "unknown sender" : from.full_adress
3994 + @to = to ? "" : to.map { |p| p.full_address }.join(", ")
3995 + @cc = cc ? "" : cc.map { |p| p.full_address }.join(", ")
3996 + if date
3997 + @date = date.rfc822
3998 + else
3999 + @date = ""
4000 + end
4001
4002 - def from
4003 - @from ? @from.longname : "unknown sender"
4004 + @subj = subj
4005 +
4006 + @lines = "\nFrom: #{from}\n"
4007 + @lines += "To: #{to}\n"
4008 + if !cc.empty?
4009 + @lines += "Cc: #{cc}\n"
4010 + end
4011 + @lines += "Date: #{date}\n"
4012 + @lines += "Subject: #{subj}\n\n"
4013 end
4014
4015 def inlineable?; false end
4016 @@ -224,7 +236,7 @@ EOS
4017 def viewable?; false end
4018
4019 def patina_color; :generic_notice_patina_color end
4020 - def patina_text; "Begin enclosed message from #{from} (#{@lines.length} lines)" end
4021 + def patina_text; "Begin enclosed message sent on #{@date}" end
4022
4023 def color; :quote_color end
4024 end
4025 diff --git a/lib/sup/message.rb b/lib/sup/message.rb
4026 index 6dd1f7d..72ec6c5 100644
4027 --- a/lib/sup/message.rb
4028 +++ b/lib/sup/message.rb
4029 @@ -383,10 +383,19 @@ private
4030 chunks
4031 elsif m.header.content_type == "message/rfc822"
4032 payload = RMail::Parser.read(m.body)
4033 - from = payload.header.from.first
4034 - from_person = from ? Person.from_address(from.format) : nil
4035 - [Chunk::EnclosedMessage.new(from_person, payload.to_s)] +
4036 - message_to_chunks(payload, encrypted)
4037 + from = payload.header.from.first ? payload.header.from.first.format : ""
4038 + to = payload.header.to.map { |p| p.format }.join(", ")
4039 + cc = payload.header.cc.map { |p| p.format }.join(", ")
4040 + subj = payload.header.subject
4041 + subj = subj ? Message.normalize_subj(payload.header.subject.gsub(/\s+/, " ").gsub(/\s+$/, "")) : subj
4042 + if Rfc2047.is_encoded? subj
4043 + subj = Rfc2047.decode_to $encoding, subj
4044 + end
4045 + msgdate = payload.header.date
4046 + from_person = from ? Person.from_address (from) : nil
4047 + to_people = to ? Person.from_address_list (to) : nil
4048 + cc_people = cc ? Person.from_address_list (cc) : nil
4049 + [Chunk::EnclosedMessage.new(from_person, to_people, cc_people, msgdate, subj)] + message_to_chunks(payload, encrypted)
4050 else
4051 filename =
4052 ## first, paw through the headers looking for a filename
4053 --
4054 1.6.3.1
4055
4056
4057 From wmorgan-sup@masanjin.net Sat May 30 20:48:13 2009
4058 From: wmorgan-sup@masanjin.net (William Morgan)
4059 Date: Sat, 30 May 2009 17:48:13 -0700
4060 Subject: [sup-talk] Getting gpg to work
4061 In-Reply-To: <8763fkwng3.fsf@pond.riseup.net>
4062 References: <87k5462s8q.fsf@pond.riseup.net> <1243441483-sup-2270@entry>
4063 <8763fkwng3.fsf@pond.riseup.net>
4064 Message-ID: <1243730754-sup-8672@entry>
4065
4066 Reformatted excerpts from Micah Anderson's message of 2009-05-28:
4067 > [Fri May 29 00:17:42 -0400 2009] crypto: detected gpg binary in /usr/bin/gpg
4068
4069 Any other obvious messages in the log about multipart/encrypted?
4070
4071 Assuming not, can you forward the email to me? I won't be able to
4072 decrypt it, presumably, but maybe I can figure out what's going on. The
4073 mime structure you've supplied looks fine, and Sup's gpg support is
4074 good, so I'm curious why it's not working for you.
4075
4076 (Feel free to munge the headers and bodies if you desire, just don't
4077 change the mime stuff.)
4078 --
4079 William <wmorgan-sup at masanjin.net>
4080
4081 From wmorgan-sup@masanjin.net Sat May 30 20:59:51 2009
4082 From: wmorgan-sup@masanjin.net (William Morgan)
4083 Date: Sat, 30 May 2009 17:59:51 -0700
4084 Subject: [sup-talk] utf patch needs work, i think
4085 In-Reply-To: <1243553511-sup-472@ntdws12.chass.utoronto.ca>
4086 References: <1243539136-sup-9008@ntdws12.chass.utoronto.ca>
4087 <1243553511-sup-472@ntdws12.chass.utoronto.ca>
4088 Message-ID: <1243731497-sup-5619@entry>
4089
4090 Reformatted excerpts from Ben Walton's message of 2009-05-28:
4091 > ...a followup on the list makes me wonder if this isn't actually a sup
4092 > thing, but a weird encoding 'joke' by the poster. Even if the body
4093 > display wasn't a sup bug, the name is still munged up.
4094
4095 I have the same message. I'll play around with it... I suspect there's
4096 something like a tab or a weird character coming out of the decoding
4097 (which appears to be some non-utf16 text claiming a utf16 big-endian
4098 encoding) that is screwing with Ncurses.
4099 --
4100 William <wmorgan-sup at masanjin.net>
4101
4102 From wmorgan-sup@masanjin.net Sat May 30 21:03:40 2009
4103 From: wmorgan-sup@masanjin.net (William Morgan)
4104 Date: Sat, 30 May 2009 18:03:40 -0700
4105 Subject: [sup-talk] [PATCH] Use rake/packagegemtask
4106 In-Reply-To: <20090528170633.GA4432@bach>
4107 References: <20090528170316.GA4359@bach> <20090528170633.GA4432@bach>
4108 Message-ID: <1243731812-sup-3370@entry>
4109
4110 Reformatted excerpts from Ingmar Vanhassel's message of 2009-05-28:
4111 > Ehm, attached right now...
4112
4113 Applied, thanks!
4114 --
4115 William <wmorgan-sup at masanjin.net>
4116
4117 From bwalton@artsci.utoronto.ca Sun May 31 20:54:08 2009
4118 From: bwalton@artsci.utoronto.ca (Ben Walton)
4119 Date: Sun, 31 May 2009 20:54:08 -0400
4120 Subject: [sup-talk] [RFC] Bounce messages
4121 Message-ID: <1243817649-7642-1-git-send-email-bwalton@artsci.utoronto.ca>
4122
4123 Hi All,
4124
4125 I spent a few hours this evening putting together the basics of (I
4126 think) the last feature of mutt that I miss in sup: Message bouncing.
4127
4128 It works in it's current form, but I think it needs a little further
4129 tweaking before it is merge ready.
4130
4131 Currently it's pretty dumb wrt which sendmail command it calls. It
4132 simply calls sendmail with some sane (for my environment, anyway) args
4133 and a list of recipients (skipping the -t flag which makes it read
4134 recipients from headers in the input). I didn't want to implement a
4135 second mail variable per account, although that would solve the
4136 problem, and I didn't want to use the default sendmail command with
4137 the -t stripped from the args (although that would also work).
4138
4139 The other thing that I don't like presently is the confirmation UI.
4140 Without resorting to a whole bounce-mode, is there a better way to
4141 handle this in the face of (potentially) multiple recipients that may
4142 make the question stretch outside the viewable area?
4143
4144 I'm interested in what others think is the right solution to these
4145 problems...and whether others besides myself miss this feature of
4146 mutt.
4147
4148 Thanks
4149 -Ben
4150
4151 From bwalton@cquest.utoronto.ca Sun May 31 21:01:10 2009
4152 From: bwalton@cquest.utoronto.ca (Ben Walton)
4153 Date: Sun, 31 May 2009 21:01:10 -0400
4154 Subject: [sup-talk] (no subject)
4155 Message-ID: <200906010101.n5111ADJ007928@ntdws12.chass.utoronto.ca>
4156
4157 >From 702b2cc1e652c1f20f4280b11355cb337291df87 Mon Sep 17 00:00:00 2001
4158 From: Ben Walton <bwalton at artsci.utoronto.ca>
4159 Date: Sun, 31 May 2009 20:37:11 -0400
4160 Subject: [PATCH] Add bounce message feature
4161
4162 By pressing ! in thread view mode, a message can be re-injected to the
4163 mail system without any modification. The interesting/useful property
4164 of this feature is that, because only the envelope sender changes, the
4165 mail will show up at the new destination with the original From:
4166 header. A use case for this is redirecting mail sent to an individual
4167 into a ticket system such that the original sender gets the
4168 auto-response.
4169
4170 Signed-off-by: Ben Walton <bwalton at artsci.utoronto.ca>
4171 ---
4172 lib/sup/modes/thread-view-mode.rb | 19 +++++++++++++++++++
4173 1 files changed, 19 insertions(+), 0 deletions(-)
4174
4175 diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
4176 index 42c6280..4737dde 100644
4177 --- a/lib/sup/modes/thread-view-mode.rb
4178 +++ b/lib/sup/modes/thread-view-mode.rb
4179 @@ -41,6 +41,7 @@ EOS
4180 # k.add :collapse_non_new_messages, "Collapse all but unread messages", 'N'
4181 k.add :reply, "Reply to a message", 'r'
4182 k.add :forward, "Forward a message or attachment", 'f'
4183 + k.add :bounce, "Bounce message to other recipient(s)", '!'
4184 k.add :alias, "Edit alias/nickname for a person", 'i'
4185 k.add :edit_as_new, "Edit message as new", 'D'
4186 k.add :save_to_disk, "Save message/attachment to disk", 's'
4187 @@ -172,6 +173,24 @@ EOS
4188 end
4189 end
4190
4191 + def bounce
4192 + m = @message_lines[curpos] or return
4193 + to = BufferManager.ask_for_contacts(:people, "Bounce To: ") or return
4194 +
4195 + if BufferManager.ask_yes_or_no "Really bounce to #{to.join(', ')}?"
4196 + cmd = "sendmail -oem -i #{to.map { |t| t.email}.join(' ')}"
4197 + begin
4198 + IO.popen(cmd, 'w') do |sm|
4199 + sm.puts m.raw_message
4200 + end
4201 + raise SendmailCommandFailed, "Couldn't execute #{cmd}" unless $? == 0
4202 + rescue SystemCallError, SendmailCommandFailed => e
4203 + Redwood::log "Problem sending mail: #{e.message}"
4204 + BufferManager.flash "Problem sending mail: #{e.message}"
4205 + end
4206 + end
4207 + end
4208 +
4209 include CanAliasContacts
4210 def alias
4211 p = @person_lines[curpos] or return
4212 --
4213 1.6.3
4214
4215
4216 From bwalton@artsci.utoronto.ca Sun May 31 21:04:45 2009
4217 From: bwalton@artsci.utoronto.ca (Ben Walton)
4218 Date: Sun, 31 May 2009 21:04:45 -0400
4219 Subject: [sup-talk] (no subject)
4220 In-Reply-To: <200906010101.n5111ADJ007928@ntdws12.chass.utoronto.ca>
4221 References: <200906010101.n5111ADJ007928@ntdws12.chass.utoronto.ca>
4222 Message-ID: <1243818192-sup-3945@ntdws12.chass.utoronto.ca>
4223
4224 Excerpts from Ben Walton's message of Sun May 31 21:01:10 -0400 2009:
4225
4226 > >From 702b2cc1e652c1f20f4280b11355cb337291df87 Mon Sep 17 00:00:00 2001
4227 > From: Ben Walton <bwalton at artsci.utoronto.ca>
4228 > Date: Sun, 31 May 2009 20:37:11 -0400
4229 > Subject: [PATCH] Add bounce message feature
4230
4231 ...sorry for the odd way in which this arrived. The changed behaviour
4232 in the recent git send-email threw me for a bit and I fired the cover
4233 letter without the patch following.
4234
4235 Thanks.
4236 -Ben
4237 --
4238 Ben Walton
4239 Systems Programmer - CHASS
4240 University of Toronto
4241 C:416.407.5610 | W:416.978.4302
4242
4243 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
4244 Contact me to arrange for a CAcert assurance meeting.
4245 -------------- next part --------------
4246 A non-text attachment was scrubbed...
4247 Name: signature.asc
4248 Type: application/pgp-signature
4249 Size: 189 bytes
4250 Desc: not available
4251 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090531/e287f32c/attachment.bin>
4252
4253 From bwalton@artsci.utoronto.ca Sun May 31 22:13:40 2009
4254 From: bwalton@artsci.utoronto.ca (Ben Walton)
4255 Date: Sun, 31 May 2009 22:13:40 -0400
4256 Subject: [sup-talk] (no subject)
4257 In-Reply-To: <200906010101.n5111ADJ007928@ntdws12.chass.utoronto.ca>
4258 References: <200906010101.n5111ADJ007928@ntdws12.chass.utoronto.ca>
4259 Message-ID: <1243822252-sup-9322@ntdws12.chass.utoronto.ca>
4260
4261 Excerpts from Ben Walton's message of Sun May 31 21:01:10 -0400 2009:
4262 > >From 702b2cc1e652c1f20f4280b11355cb337291df87 Mon Sep 17 00:00:00 2001
4263 > From: Ben Walton <bwalton at artsci.utoronto.ca>
4264 > Date: Sun, 31 May 2009 20:37:11 -0400
4265 > Subject: [PATCH] Add bounce message feature
4266
4267 I thought I'd also clarify that in its final form, there should be a
4268 refactor of EditMessageMode::send_message to pull out the wrapped
4269 IO.popen into a method usable for sending a normal message and
4270 bouncing a message.
4271
4272 Thanks
4273 -Ben
4274 --
4275 Ben Walton
4276 Systems Programmer - CHASS
4277 University of Toronto
4278 C:416.407.5610 | W:416.978.4302
4279
4280 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
4281 Contact me to arrange for a CAcert assurance meeting.
4282 -------------- next part --------------
4283 A non-text attachment was scrubbed...
4284 Name: signature.asc
4285 Type: application/pgp-signature
4286 Size: 189 bytes
4287 Desc: not available
4288 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090531/a19dd890/attachment.bin>
4289