community/pipermail-archives/sup-talk/2007-09.txt (122526B) - raw
1 From wmorgan-sup@masanjin.net Sat Sep 1 02:28:55 2007
2 From: wmorgan-sup@masanjin.net (William Morgan)
3 Date: Fri, 31 Aug 2007 23:28:55 -0700
4 Subject: [sup-talk] new in svn: mime-type hook
5 In-Reply-To: <1188586680-sup-8783@mona>
6 References: <1188360667-sup-3717@south> <1188586680-sup-8783@mona>
7 Message-ID: <1188628101-sup-5592@south>
8
9 Excerpts from jeff.covey's message of Fri Aug 31 12:02:44 -0700 2007:
10 > in the process of making this, did something go wrong with sup's
11 > decoding of ordinary messages? i'm seeing a lot of messages with
12 > equals marks at the ends of lines, like:
13
14 Whoops, yes. SVN up and see if that fixes it.
15
16 --
17 _____________________________________________________________________________
18 | |
19 | | \ | / | |
20 | |\ \|/ /| |
21 | |XXXXX||>>>>>>>>>>>>>>>>>>>>>>> ((*)) <<<<<<<<<<<<<<<<<<<<<<<||XXXXX| |
22 | |/ /|\ \| |
23 | | / | \ | |
24 | |
25 | Death Star |
26 | War Lord of the Sup wmorgan-sup at masanjin.net |
27 |___________________________________________________________________________|
28
29 From magnus@therning.org Sat Sep 1 19:47:03 2007
30 From: magnus@therning.org (Magnus Therning)
31 Date: Sun, 02 Sep 2007 00:47:03 +0100
32 Subject: [sup-talk] Hooks?
33 Message-ID: <1188690036-sup-8770@tatooine>
34
35 There seems to be extended support for inserting hooks in sup. However,
36 any sort of hint as to how to add a hook is missing. I assume they have
37 to be written in Ruby, they should probably live in ~/.sup/hooks.
38 Beyond that it's a little difficult for someone who's never read Ruby
39 source before to figure things out. Can anyone offer any example on how
40 to implement a hook?
41
42 --
43 Magnus Therning (OpenPGP: 0xAB4DFBA4)
44 magnus?therning?org Jabber: magnus?therning?gmail?com
45 http://therning.org/magnus
46
47 As we enjoy great advantages from the inventions of others we should
48 be glad of an opportunity to serve others by any invention of
49 ours, and this we should do freely and generously.
50 -- Benjamin Franklin
51
52 From wmorgan-sup@masanjin.net Sun Sep 2 02:28:52 2007
53 From: wmorgan-sup@masanjin.net (William Morgan)
54 Date: Sat, 01 Sep 2007 23:28:52 -0700
55 Subject: [sup-talk] Hooks?
56 In-Reply-To: <1188690036-sup-8770@tatooine>
57 References: <1188690036-sup-8770@tatooine>
58 Message-ID: <1188714270-sup-4582@south>
59
60 Excerpts from Magnus Therning's message of Sat Sep 01 16:47:03 -0700 2007:
61 > There seems to be extended support for inserting hooks in sup.
62 > However, any sort of hint as to how to add a hook is missing. I
63 > assume they have to be written in Ruby, they should probably live in
64 > ~/.sup/hooks.
65
66 Hooks were added just a couple SVN revisions ago so documentation isn't
67 great. Running sup -l will give you a list of possible hooks and their
68 corresponding locations on disk. Here's my current set of hooks (and if
69 you search the list archives I've posted a couple more examples):
70
71 $ head .sup/hooks/*.rb
72 ==> .sup/hooks/before-poll.rb <==
73 if (@last_fetchmail_time || Time.at(0)) < Time.now - 60
74 say "Running fetchmail..."
75 system "fetchmail >& /dev/null"
76 say "Done running fetchmail."
77 end
78 @last_fetchmail_time = Time.now
79
80
81 ==> .sup/hooks/mime-decode.rb <==
82 unless sibling_types.member? "text/plain"
83 case content_type
84 when "text/html"
85 `/usr/bin/w3m -dump -T #{content_type} '#{filename}'`
86 end
87 end
88
89 ==> .sup/hooks/signature.rb <==
90 "William <#{from_email}>"
91
92
93 --
94 William <wmorgan-sup at masanjin.net>
95
96 From jeff.covey@pobox.com Sun Sep 2 07:31:45 2007
97 From: jeff.covey@pobox.com (jeff covey)
98 Date: Sun, 02 Sep 2007 07:31:45 -0400
99 Subject: [sup-talk] new in svn: mime-type hook
100 In-Reply-To: <1188628101-sup-5592@south>
101 References: <1188360667-sup-3717@south> <1188586680-sup-8783@mona>
102 <1188628101-sup-5592@south>
103 Message-ID: <1188732653-sup-3553@mona>
104
105 Excerpts from William Morgan's message of Sat Sep 01 02:28:55 -0400 2007:
106
107 > > in the process of making this, did something go wrong with sup's
108 > > decoding of ordinary messages? i'm seeing a lot of messages with equals
109 > > marks at the ends of lines
110 >
111 > Whoops, yes. SVN up and see if that fixes it.
112
113 yes, seems to be fine now.
114
115 thanks,
116
117 --
118 jeff covey
119 http://jeffcovey.net/
120
121
122 From wmorgan-sup@masanjin.net Sun Sep 2 19:03:29 2007
123 From: wmorgan-sup@masanjin.net (William Morgan)
124 Date: Sun, 02 Sep 2007 16:03:29 -0700
125 Subject: [sup-talk] on sup
126 In-Reply-To: <20070831171234.GD8312@die.therning.org>
127 References: <1188557360-sup-7369@bryma> <1188573751-sup-6067@south>
128 <20070831171234.GD8312@die.therning.org>
129 Message-ID: <1188773706-sup-1502@south>
130
131 Excerpts from Magnus Therning's message of Fri Aug 31 10:12:34 -0700 2007:
132 > On Fri, Aug 31, 2007 at 08:31:04 -0700, William Morgan wrote:
133 > >By default ~/.signature should be appended to email (not in the
134 > >editor, but in Sup's review screen immediate post editing). If it's
135 > >not, it's probably that ~/.sup/config.yaml is pointing to a different
136 > >file.
137 >
138 > Ah, that's slightly confusing behaviour especially after being used to
139 > mutt. I think I can adapt though :-)
140
141 The signature selection algorithm is tied to Sup's multiple account
142 support: the signature file Sup uses is based on the From: address you
143 select. You can get the simpler mutt-style behavior by specifying
144 :edit_signature: true in config.yaml, which always takes the signature
145 of the default account and dumps it into the editor, or you can now
146 specify more complicated behavior now with the signature hook.
147
148 > >Yep, I plan to have first-order GPG support (i.e. not just in the
149 > >hooks system.) Not for the next release, but possibly the one after.
150 > >The time is nigh.
151 >
152 > Is anyone working on it already?
153
154 There were patches submitted by I think Christian Lee a while ago, but
155 they never made it into the svn, mostly because I was waiting for
156 multiple account support to stabilize a bit. Which it now pretty much
157 has.
158
159 > Given this I want to control where sent mails end up so that I can
160 > access those mails from all those locations.
161
162 Sup stores its sent mail in ~/.sup/sent.mbox by default. I'm not opposed
163 to making that filename configurable, but the quickest fix might be just
164 to make that a symlink to the actual destination file.
165
166 > This makes me think of another little detail, it seems sup's idea of
167 > what's read and what's new isn't based on the maildir notion of what's
168 > read and what's new (i.e. sup doesn't move mail from /new to /cur when
169 > it's read and doesn't recognise that mail in /cur is read).
170
171 Yeah, Sup doesn't sync back any state changes to the original sources.
172 The Sup philosophy has been to treat the sources as dumb, which means
173 Sup doesn't play well with others. I won't turn aside patches which do
174 sync back (partial) message state to the sources, but I'm not planning
175 on implementing that stuff myself.
176
177
178 --
179 William <wmorgan-sup at masanjin.net>
180
181 From jeff.covey@pobox.com Mon Sep 3 08:33:48 2007
182 From: jeff.covey@pobox.com (jeff covey)
183 Date: Mon, 03 Sep 2007 08:33:48 -0400
184 Subject: [sup-talk] saving sent mail to places other than the default
185 In-Reply-To: <20070831171234.GD8312@die.therning.org>
186 References: <1188557360-sup-7369@bryma> <1188573751-sup-6067@south>
187 <20070831171234.GD8312@die.therning.org>
188 Message-ID: <1188822120-sup-9376@mona>
189
190 Excerpts from Magnus Therning's message of Fri Aug 31 13:12:34 -0400 2007:
191
192 > > > - support for choosing where to save sent messages
193 > >
194 > > This I'm a little curious about. Why do you care where they live on
195 > > disk, as long as they show up in the index?
196 >
197 > I have a fairly extensive configuration of procmail for sorting mails
198
199 i also want my sent mail sorted by procmail instead of stored in ~/.sup, so
200 i run it through "formail -s procmail". below is the script i run at the
201 end of the day to empty ~/.sup/sent.mbox and file the messages with
202 procmail; you might try something similar, perhaps by cron if it's on your
203 friend's machine.
204
205
206 #------------------------------------------------------
207 #!/bin/sh
208
209 ruby='ruby -I lib -w'
210
211 cd ~/tmp/sup/trunk
212
213 tmpfile=~/tmp/sup-sent/sup-sent-`/bin/date +%F-%T`.mbox
214
215 mv ~/.sup/sent.mbox $tmpfile
216 touch ~/.sup/sent.mbox
217
218 echo "processing messages..."
219 formail -s procmail < $tmpfile
220
221 $ruby bin/sup-sync --changed sup://sent
222
223 echo "original sup sent mbox in $tmpfile"
224
225 #------------------------------------------------------
226
227
228 this assumes that the resulting destinations for sent messages are checked
229 by sup in its poll for new messages, so they show up in sup's index again.
230
231 sincerely,
232
233 --
234 jeff covey
235 http://jeffcovey.net/
236
237
238 From jeff.covey@pobox.com Mon Sep 3 08:40:52 2007
239 From: jeff.covey@pobox.com (jeff covey)
240 Date: Mon, 03 Sep 2007 08:40:52 -0400
241 Subject: [sup-talk] new in svn: signature generation hook
242 In-Reply-To: <1188576459-sup-2368@south>
243 References: <1188576459-sup-2368@south>
244 Message-ID: <1188823194-sup-29@mona>
245
246 Excerpts from William Morgan's message of Fri Aug 31 12:09:10 -0400 2007:
247
248 > Check out my new awesome sig.
249
250 my eyes!
251
252 --
253 jeff covey
254 http://jeffcovey.net/
255
256
257 From magnus@therning.org Wed Sep 5 03:48:03 2007
258 From: magnus@therning.org (Magnus Therning)
259 Date: Wed, 05 Sep 2007 08:48:03 +0100
260 Subject: [sup-talk] on sup
261 In-Reply-To: <1188773706-sup-1502@south>
262 References: <1188557360-sup-7369@bryma> <1188573751-sup-6067@south>
263 <20070831171234.GD8312@die.therning.org>
264 <1188773706-sup-1502@south>
265 Message-ID: <1188977552-sup-60@tatooine>
266
267 -----BEGIN PGP SIGNED MESSAGE-----
268 Hash: SHA1
269
270 Excerpts from William Morgan's message of Mon Sep 03 00:03:29 +0100 2007:
271 > Excerpts from Magnus Therning's message of Fri Aug 31 10:12:34 -0700 2007:
272 > > On Fri, Aug 31, 2007 at 08:31:04 -0700, William Morgan wrote:
273 > > >By default ~/.signature should be appended to email (not in the
274 > > >editor, but in Sup's review screen immediate post editing). If it's
275 > > >not, it's probably that ~/.sup/config.yaml is pointing to a different
276 > > >file.
277 > >
278 > > Ah, that's slightly confusing behaviour especially after being used to
279 > > mutt. I think I can adapt though :-)
280 >
281 > The signature selection algorithm is tied to Sup's multiple account
282 > support: the signature file Sup uses is based on the From: address you
283 > select. You can get the simpler mutt-style behavior by specifying
284 > :edit_signature: true in config.yaml, which always takes the signature
285 > of the default account and dumps it into the editor, or you can now
286 > specify more complicated behavior now with the signature hook.
287
288 Ah, cool. That all makes sense. I think I like the flow of things as
289 they are.
290
291 > > >Yep, I plan to have first-order GPG support (i.e. not just in the
292 > > >hooks system.) Not for the next release, but possibly the one
293 > > >after. The time is nigh.
294 > >
295 > > Is anyone working on it already?
296 >
297 > There were patches submitted by I think Christian Lee a while ago, but
298 > they never made it into the svn, mostly because I was waiting for
299 > multiple account support to stabilize a bit. Which it now pretty much
300 > has.
301
302 I wouldn't mind to be a beta-tester for that. Let me know if you merge
303 it, or share the changes in another branch or something.
304
305 After thinking a little about this I think it's the receiving of
306 encrypted/signed emails that's cumbersome to deal with at the moment.
307 If I'm not completely daft it seems like sending is infinitely flexible
308 through the hooks system.
309
310 > > This makes me think of another little detail, it seems sup's idea of
311 > > what's read and what's new isn't based on the maildir notion of
312 > > what's read and what's new (i.e. sup doesn't move mail from /new to
313 > > /cur when it's read and doesn't recognise that mail in /cur is
314 > > read).
315 >
316 > Yeah, Sup doesn't sync back any state changes to the original sources.
317 > The Sup philosophy has been to treat the sources as dumb, which means
318 > Sup doesn't play well with others. I won't turn aside patches which do
319 > sync back (partial) message state to the sources, but I'm not planning
320 > on implementing that stuff myself.
321
322 I'll see if I can't get my head around this red-corundum language you're
323 using and take a stab at adding this. ;-)
324
325 One more question, is there anything "site specific" in the state data
326 sup maintains? Would I run into problem if I use rsync/unison to
327 synchronise sup's state to several machines?
328 -----BEGIN PGP SIGNATURE-----
329 Version: GnuPG v1.4.6 (GNU/Linux)
330
331 iD8DBQFG3l8kiMWTaatN+6QRAmP1AJ9ynvIgglFT4z1ku8LyjfeIoNOxoQCffjey
332 bnjeItGmOKF/TOVTIBtWmF8=
333 =zyyx
334 -----END PGP SIGNATURE-----
335
336 --
337 Magnus Therning (OpenPGP: 0xAB4DFBA4)
338 magnus?therning?org Jabber: magnus?therning?gmail?com
339 http://therning.org/magnus
340
341 What if I don't want to obey the laws? Do they throw me in jail with
342 the other bad monads?
343 -- Daveman
344
345 From wmorgan-sup@masanjin.net Wed Sep 5 11:27:14 2007
346 From: wmorgan-sup@masanjin.net (William Morgan)
347 Date: Wed, 05 Sep 2007 08:27:14 -0700
348 Subject: [sup-talk] on sup
349 In-Reply-To: <1188977552-sup-60@tatooine>
350 References: <1188557360-sup-7369@bryma> <1188573751-sup-6067@south>
351 <20070831171234.GD8312@die.therning.org>
352 <1188773706-sup-1502@south> <1188977552-sup-60@tatooine>
353 Message-ID: <1189005324-sup-9685@south>
354
355 Excerpts from Magnus Therning's message of Wed Sep 05 00:48:03 -0700 2007:
356 > After thinking a little about this I think it's the receiving of
357 > encrypted/signed emails that's cumbersome to deal with at the moment.
358 > If I'm not completely daft it seems like sending is infinitely
359 > flexible through the hooks system.
360
361 The hooks would be an option, but I'm actually planning to stick it in
362 the code directly. What I'm thinking is that decoding will just hide the
363 attachment and display a little message at the top of the message saying
364 "signature verified", or a big nasty message if not. For encoding, I
365 would like to have some nice way of choosing sign/sign&encrypt/nothing
366 on a per-message basis, but I'm not sure what the best UI for that is. I
367 was originally thinking something like the reply-mode options, but then
368 how would the two interact? I could also make each option correspond to
369 various keyboard combinations, but that seems a little obtuse. I don't
370 really like the mutt-style prompt at the bottom on the screen (the
371 "minibuffer", as I style it).
372
373 > One more question, is there anything "site specific" in the state data
374 > sup maintains? Would I run into problem if I use rsync/unison to
375 > synchronise sup's state to several machines?
376
377 Sup uses sources.yaml to map between integer source ids (which are
378 stored in the index) and the source URIs, which for mbox files are
379 absolute pathnames. So if you're using local mbox files and the paths
380 differ between machines, you'll have to tweak sources.yaml to reflect
381 that. If the source URIs are the same, then as long as sources.yaml is
382 synchronized along with the ferret/ directory, you should be fine.
383
384 Beyond that, Sup uses Ferret to store all state, so if the different
385 sites have different architecture, it's going to be up to Ferret as to
386 whether the indexes are portable. I'm not sure of the answer on this
387 one.
388
389 --
390 William <wmorgan-sup at masanjin.net>
391
392 From wmorgan-sup@masanjin.net Wed Sep 5 17:55:38 2007
393 From: wmorgan-sup@masanjin.net (William Morgan)
394 Date: Wed, 05 Sep 2007 14:55:38 -0700
395 Subject: [sup-talk] on sup
396 In-Reply-To: <1188977552-sup-60@tatooine>
397 References: <1188557360-sup-7369@bryma> <1188573751-sup-6067@south>
398 <20070831171234.GD8312@die.therning.org>
399 <1188773706-sup-1502@south> <1188977552-sup-60@tatooine>
400 Message-ID: <1189029109-sup-7643@south>
401
402 Excerpts from Magnus Therning's message of Wed Sep 05 00:48:03 -0700 2007:
403 > > Yeah, Sup doesn't sync back any state changes to the original
404 > > sources. The Sup philosophy has been to treat the sources as dumb,
405 > > which means Sup doesn't play well with others. I won't turn aside
406 > > patches which do sync back (partial) message state to the sources,
407 > > but I'm not planning on implementing that stuff myself.
408 >
409 > I'll see if I can't get my head around this red-corundum language
410 > you're using and take a stab at adding this. ;-)
411
412 What little Sup currently does in the way of pushing state information
413 back into sources, it does through sup-sync-back, which is meant to push
414 a batch of state changes back to one or more sources in one go. Right
415 now that's restricted to deleting messages marked as deleted or spam
416 from mbox sources, but it would be the natural place to push the
417 new/read state back as well, at least if you were happy with batch
418 operation.
419
420 --
421 William <wmorgan-sup at masanjin.net>
422
423 From magnus@therning.org Thu Sep 6 02:50:33 2007
424 From: magnus@therning.org (Magnus Therning)
425 Date: Thu, 06 Sep 2007 07:50:33 +0100
426 Subject: [sup-talk] on sup
427 In-Reply-To: <1189029109-sup-7643@south>
428 References: <1188557360-sup-7369@bryma> <1188573751-sup-6067@south>
429 <20070831171234.GD8312@die.therning.org>
430 <1188773706-sup-1502@south> <1188977552-sup-60@tatooine>
431 <1189029109-sup-7643@south>
432 Message-ID: <1189060693-sup-3576@tatooine>
433
434 Excerpts from William Morgan's message of Wed Sep 05 22:55:38 +0100 2007:
435 [..]
436 > What little Sup currently does in the way of pushing state information
437 > back into sources, it does through sup-sync-back, which is meant to
438 > push a batch of state changes back to one or more sources in one go.
439 > Right now that's restricted to deleting messages marked as deleted or
440 > spam from mbox sources, but it would be the natural place to push the
441 > new/read state back as well, at least if you were happy with batch
442 > operation.
443
444 I'm more than happy with batch operations. I suspect that doing this
445 outside of sup proper also keeps the main program itself a little
446 simpler.
447
448 I did look at the sup-sync-back tool and noticed that it performs some
449 mbox operations on its own. Operations that I feel really belong in the
450 mbox source class itself. I feel sup-sync-back would become simpler if
451 polymorphism was put to use a bit more. So, do you have any
452 philosophical problems with a `delete` method being added to the
453 sources? (It would probably be followed by a `mark_as_read` in the
454 future.)
455
456 --
457 Magnus Therning (OpenPGP: 0xAB4DFBA4)
458 magnus?therning?org Jabber: magnus?therning?gmail?com
459 http://therning.org/magnus
460
461 What if I don't want to obey the laws? Do they throw me in jail with
462 the other bad monads?
463 -- Daveman
464
465 From magnus@therning.org Thu Sep 6 03:02:27 2007
466 From: magnus@therning.org (Magnus Therning)
467 Date: Thu, 06 Sep 2007 08:02:27 +0100
468 Subject: [sup-talk] on sup
469 In-Reply-To: <1189005324-sup-9685@south>
470 References: <1188557360-sup-7369@bryma> <1188573751-sup-6067@south>
471 <20070831171234.GD8312@die.therning.org>
472 <1188773706-sup-1502@south> <1188977552-sup-60@tatooine>
473 <1189005324-sup-9685@south>
474 Message-ID: <1189061510-sup-5845@tatooine>
475
476 Excerpts from William Morgan's message of Wed Sep 05 16:27:14 +0100 2007:
477 > Excerpts from Magnus Therning's message of Wed Sep 05 00:48:03 -0700 2007:
478 > > After thinking a little about this I think it's the receiving of
479 > > encrypted/signed emails that's cumbersome to deal with at the
480 > > moment. If I'm not completely daft it seems like sending is
481 > > infinitely flexible through the hooks system.
482 >
483 > The hooks would be an option, but I'm actually planning to stick it in
484 > the code directly. What I'm thinking is that decoding will just hide
485 > the attachment and display a little message at the top of the message
486 > saying "signature verified", or a big nasty message if not. For
487 > encoding, I would like to have some nice way of choosing
488 > sign/sign&encrypt/nothing on a per-message basis, but I'm not sure
489 > what the best UI for that is. I was originally thinking something like
490 > the reply-mode options, but then how would the two interact? I could
491 > also make each option correspond to various keyboard combinations, but
492 > that seems a little obtuse. I don't really like the mutt-style prompt
493 > at the bottom on the screen (the "minibuffer", as I style it).
494
495 Yes, the UI will be hard to get right on this. What about adding an
496 extra screen with extra options for sending (encryption/signing might
497 only be one set of options that are needed). That would push the
498 problem to being one of making sure that good, fairly powerful default
499 behaviours are in place. These are the default behaviours I'd like to
500 see:
501
502 - Don't sign, don't encrypt
503 - Sign all out-going messages, don't encrypt
504 - Sign all replies to signed messages, don't encrypt
505 - Sign all replies to signed messages, encrypt replies to encrypted
506 messages
507 - Sign all out-going messages, encrypt all messages to recipients with
508 a known public key
509
510 I hope that covers more usage so that visiting that extra screen won't
511 be necessary in most cases.
512
513 Making sure that it all works on emails with multiple recipients
514 shouldn't be too difficult. (Signing isn't a problem, and encryption
515 only happens if _all_ recipients have a known public key.)
516
517 --
518 Magnus Therning (OpenPGP: 0xAB4DFBA4)
519 magnus?therning?org Jabber: magnus?therning?gmail?com
520 http://therning.org/magnus
521
522 What if I don't want to obey the laws? Do they throw me in jail with
523 the other bad monads?
524 -- Daveman
525
526 From magnus@therning.org Thu Sep 6 03:19:20 2007
527 From: magnus@therning.org (Magnus Therning)
528 Date: Thu, 06 Sep 2007 08:19:20 +0100
529 Subject: [sup-talk] Error in contact list
530 Message-ID: <1189063072-sup-1724@tatooine>
531
532 Bringing up the contact list and pressing enter on an item results in
533 the following:
534
535 The problem was: 'undefined method `edit' for #<Redwood::ComposeMode:0x2b2ff1688b38>' (error type NoMethodError)
536 A backtrace follows:
537 /home/magnus/devo/tmp/sup/sup/lib/sup/modes/contact-list-mode.rb:70:in `multi_select': undefined method `edit' for #<Redwood::ComposeMode:0x2b2ff1688b38> (NoMethodError)
538 from /home/magnus/devo/tmp/sup/sup/lib/sup/modes/contact-list-mode.rb:76:in `select'
539 from /home/magnus/devo/tmp/sup/sup/lib/sup/mode.rb:52:in `send'
540 from /home/magnus/devo/tmp/sup/sup/lib/sup/mode.rb:52:in `handle_input'
541 from /home/magnus/devo/tmp/sup/sup/lib/sup/buffer.rb:193:in `handle_input'
542 from /home/magnus/devo/tmp/sup/sup/bin/sup:192
543
544 --
545 Magnus Therning (OpenPGP: 0xAB4DFBA4)
546 magnus?therning?org Jabber: magnus?therning?gmail?com
547 http://therning.org/magnus
548
549 What if I don't want to obey the laws? Do they throw me in jail with
550 the other bad monads?
551 -- Daveman
552
553 From magnus@therning.org Thu Sep 6 03:21:59 2007
554 From: magnus@therning.org (Magnus Therning)
555 Date: Thu, 06 Sep 2007 08:21:59 +0100
556 Subject: [sup-talk] Two small fixes
557 Message-ID: <1189063161-sup-9162@tatooine>
558
559 Yesterday I ran into some warnings when using sup from SVN:
560
561 === modified file 'lib/sup/message.rb'
562 --- lib/sup/message.rb 2007-09-01 06:29:01 +0000
563 +++ lib/sup/message.rb 2007-09-05 18:04:48 +0000
564 @@ -55,6 +55,7 @@
565 @raw_content = encoded_content.decode
566 charset = encoded_content.charset
567
568 + @lines = ""
569 if @content_type =~ /^text\/plain\b/
570 @lines = Message.convert_from(@raw_content, charset).split("\n")
571 else
572
573 === modified file 'lib/sup/textfield.rb'
574 --- lib/sup/textfield.rb 2007-08-06 00:05:54 +0000
575 +++ lib/sup/textfield.rb 2007-09-05 18:10:35 +0000
576 @@ -46,6 +46,7 @@
577 def position_cursor
578 @w.attrset Colormap.color_for(:none)
579 @w.mvaddstr @y, 0, @question
580 + @value = ""
581 Ncurses.curs_set 1
582 Ncurses::Form.form_driver @form, Ncurses::Form::REQ_END_FIELD
583 Ncurses::Form.form_driver @form, Ncurses::Form::REQ_NEXT_CHAR if @value && @value =~ / $/ # fucking RETARDED!!!!
584
585
586 The fixes are probably not the right ones, but they did make sup shut up about
587 undefined members.
588
589 --
590 Magnus Therning (OpenPGP: 0xAB4DFBA4)
591 magnus?therning?org Jabber: magnus?therning?gmail?com
592 http://therning.org/magnus
593
594 What if I don't want to obey the laws? Do they throw me in jail with
595 the other bad monads?
596 -- Daveman
597
598 From magnus@therning.org Fri Sep 7 03:37:21 2007
599 From: magnus@therning.org (Magnus Therning)
600 Date: Fri, 7 Sep 2007 08:37:21 +0100
601 Subject: [sup-talk] Tilde in maildir/mbox paths
602 Message-ID: <20070907073721.GA10465@die.therning.org>
603
604 I find it useful to be able to stick '~' in paths so here's an attempt
605 at a patch that allows a source with the URI maildir:~/mail/in.
606
607 Two comments:
608
609 1. I didn't really know where to stick expand_uri so it's duplicated in
610 Maildir and Mbox. This is far from ideal. Please tell me where it
611 belongs.
612
613 2. Parsing URIs of the form maildir://~/mail/in seems to be
614 problematic:
615
616 irb(main):001:0> require 'uri'
617 => true
618 irb(main):002:0> URI('maildir://~/mail/in')
619 URI::InvalidURIError: the scheme maildir does not accept registry part: ~ (or bad hostname?)
620 from /usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize'
621 from /usr/lib/ruby/1.8/uri/common.rb:492:in `new'
622 from /usr/lib/ruby/1.8/uri/common.rb:492:in `parse'
623 from /usr/lib/ruby/1.8/uri/common.rb:608:in `URI'
624 from (irb):2
625 from :0
626
627 I don't know how to get around this so I changed the help text for
628 sup-add.
629
630 /M
631
632 --
633 Magnus Therning (OpenPGP: 0xAB4DFBA4)
634 magnus?therning?org Jabber: magnus?therning?gmail?com
635 http://therning.org/magnus
636
637 As we enjoy great advantages from the inventions of others we should
638 be glad of an opportunity to serve others by any invention of
639 ours, and this we should do freely and generously.
640 -- Benjamin Franklin
641 -------------- next part --------------
642 A non-text attachment was scrubbed...
643 Name: sup_514-1.diff
644 Type: text/x-diff
645 Size: 2454 bytes
646 Desc: not available
647 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070907/6f68e559/attachment.bin
648 -------------- next part --------------
649 A non-text attachment was scrubbed...
650 Name: not available
651 Type: application/pgp-signature
652 Size: 189 bytes
653 Desc: Digital signature
654 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070907/6f68e559/attachment-0001.bin
655
656 From magnus@therning.org Fri Sep 7 14:47:59 2007
657 From: magnus@therning.org (Magnus Therning)
658 Date: Fri, 07 Sep 2007 19:47:59 +0100
659 Subject: [sup-talk] Tilde in maildir/mbox paths
660 In-Reply-To: <20070907092109.GB23285@die.therning.org>
661 References: <20070907073721.GA10465@die.therning.org>
662 <20070907092109.GB23285@die.therning.org>
663 Message-ID: <1189190787-sup-1919@tatooine>
664
665 Excerpts from Magnus Therning's message of Fri Sep 07 10:21:09 +0100 2007:
666 > On Fri, Sep 07, 2007 at 08:37:21 +0100, Magnus Therning wrote:
667 > >I find it useful to be able to stick '~' in paths so here's an attempt
668 > >at a patch that allows a source with the URI maildir:~/mail/in.
669 > >
670 > >Two comments:
671 > >
672 > > 1. I didn't really know where to stick expand_uri so it's duplicated in
673 > > Maildir and Mbox. This is far from ideal. Please tell me where it
674 > > belongs.
675 >
676 > An obvious place would of course be the parent class Source. For some
677 > strange reason that didn't enter my mind while I was hacking on this.
678
679 A modified patch is attached.
680
681 --
682 Magnus Therning (OpenPGP: 0xAB4DFBA4)
683 magnus?therning?org Jabber: magnus?therning?gmail?com
684 http://therning.org/magnus
685
686 What if I don't want to obey the laws? Do they throw me in jail with
687 the other bad monads?
688 -- Daveman
689 -------------- next part --------------
690 A non-text attachment was scrubbed...
691 Name: sup_514-2.diff
692 Type: application/octet-stream
693 Size: 2273 bytes
694 Desc: not available
695 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070907/4d16512d/attachment.obj
696
697 From jeff.covey@pobox.com Fri Sep 7 14:52:22 2007
698 From: jeff.covey@pobox.com (jeff covey)
699 Date: Fri, 07 Sep 2007 14:52:22 -0400
700 Subject: [sup-talk] an enormously long time to save a message
701 Message-ID: <1189190953-sup-2994@mona>
702
703 i received a message with 8mb of text. i tried to save it to a file, and
704 sup took the load on my computer past 10. i gave it five minutes of
705 grinding my hard drive, then killed it. i opened the source in mutt, and it
706 saved it in about half a second.
707
708 thanks,
709
710 --
711 jeff covey
712 http://jeffcovey.net/
713
714
715 From magnus@therning.org Sun Sep 9 18:40:34 2007
716 From: magnus@therning.org (Magnus Therning)
717 Date: Sun, 9 Sep 2007 23:40:34 +0100
718 Subject: [sup-talk] Minor maildir change
719 Message-ID: <20070909224034.GA3540@die.therning.org>
720
721 I thought it was a little strange the file_path on Maildir objects
722 returned `nil` so I changed that to return the path of the maildir.
723
724 I am somewhat puzzled by the labels one receives from Maildir::each,
725 it's the default labels for the source rather than the labels of the
726 actual message. Especially confusing was the choice to label something
727 'unread' if it's filename doesn't contains an 'R'. IIRC 'R' means that
728 the email has been replied to, it would have been more correct to mark
729 it unread if it doesn't contain an 'S' (as in seen). However, it seems
730 silly to take any of this into consideration when sup doesn't deal with
731 maildirs "properly" anyway. I've removed that strangeness, at least
732 until a full maildir implementation makes it into sup.
733
734 /M
735
736 === modified file 'lib/sup/maildir.rb'
737 --- lib/sup/maildir.rb 2007-09-09 22:27:27 +0000
738 +++ lib/sup/maildir.rb 2007-09-09 22:29:52 +0000
739 @@ -27,6 +27,7 @@
740 @mutex = Mutex.new
741 end
742
743 + def file_path; @dir end
744 def self.suggest_labels_for path; [] end
745
746 def check
747 @@ -93,7 +94,7 @@
748 start.upto(@ids.length - 1) do |i|
749 id = @ids[i]
750 self.cur_offset = id
751 - yield id, @labels + (@ids_to_fns[id] =~ /,.*R.*$/ ? [] : [:unread])
752 + yield id, @labels
753 end
754 end
755
756
757
758 --
759 Magnus Therning (OpenPGP: 0xAB4DFBA4)
760 magnus?therning?org Jabber: magnus?therning?gmail?com
761 http://therning.org/magnus
762 -------------- next part --------------
763 A non-text attachment was scrubbed...
764 Name: not available
765 Type: application/pgp-signature
766 Size: 189 bytes
767 Desc: Digital signature
768 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070909/3ea679f1/attachment-0001.bin
769
770 From wmorgan-sup@masanjin.net Tue Sep 11 15:34:05 2007
771 From: wmorgan-sup@masanjin.net (William Morgan)
772 Date: Tue, 11 Sep 2007 12:34:05 -0700
773 Subject: [sup-talk] an enormously long time to save a message
774 In-Reply-To: <1189190953-sup-2994@mona>
775 References: <1189190953-sup-2994@mona>
776 Message-ID: <1189539108-sup-741@south>
777
778 Excerpts from jeff.covey's message of Fri Sep 07 11:52:22 -0700 2007:
779 > i received a message with 8mb of text. i tried to save it to a file,
780 > and sup took the load on my computer past 10. i gave it five minutes
781 > of grinding my hard drive, then killed it. i opened the source in
782 > mutt, and it saved it in about half a second.
783
784 I think I've sped this up. Untested, of course. And note that Sup will
785 never be anywhere as fast as Mutt, at least until I start using
786 RubyInline to drop in some C code. :)
787
788 In particular saving large attachments worries me, because who knows
789 what RubyMail is doing...
790
791 --
792 William <wmorgan-sup at masanjin.net>
793
794 From wmorgan-sup@masanjin.net Tue Sep 11 15:34:32 2007
795 From: wmorgan-sup@masanjin.net (William Morgan)
796 Date: Tue, 11 Sep 2007 12:34:32 -0700
797 Subject: [sup-talk] Error in contact list
798 In-Reply-To: <1189063072-sup-1724@tatooine>
799 References: <1189063072-sup-1724@tatooine>
800 Message-ID: <1189539254-sup-6133@south>
801
802 Excerpts from Magnus Therning's message of Thu Sep 06 00:19:20 -0700 2007:
803 > Bringing up the contact list and pressing enter on an item results in
804 > the following:
805 >
806 > The problem was: 'undefined method `edit' for #<Redwood::ComposeMode:0x2b2ff1688b38>' (error type NoMethodError)
807
808 Fixed!
809
810 --
811 William <wmorgan-sup at masanjin.net>
812
813 From wmorgan-sup@masanjin.net Tue Sep 11 16:48:55 2007
814 From: wmorgan-sup@masanjin.net (William Morgan)
815 Date: Tue, 11 Sep 2007 13:48:55 -0700
816 Subject: [sup-talk] on sup
817 In-Reply-To: <1189060693-sup-3576@tatooine>
818 References: <1188557360-sup-7369@bryma> <1188573751-sup-6067@south>
819 <20070831171234.GD8312@die.therning.org>
820 <1188773706-sup-1502@south> <1188977552-sup-60@tatooine>
821 <1189029109-sup-7643@south> <1189060693-sup-3576@tatooine>
822 Message-ID: <1189543040-sup-8299@south>
823
824 Excerpts from Magnus Therning's message of Wed Sep 05 23:50:33 -0700 2007:
825 > I did look at the sup-sync-back tool and noticed that it performs some
826 > mbox operations on its own. Operations that I feel really belong in
827 > the mbox source class itself. I feel sup-sync-back would become
828 > simpler if polymorphism was put to use a bit more. So, do you have
829 > any philosophical problems with a `delete` method being added to the
830 > sources? (It would probably be followed by a `mark_as_read` in the
831 > future.)
832
833 I don't have a philosophical problem with that, certainly. Sup-sync-
834 back was written in that way because I was fleshing out a lot half-baked
835 ideas about how things should work at the time, and it will definitely
836 be necessary to move that code to Mbox::loader before it can support
837 other source types.
838
839 In order to support batch operations, I think there should be two
840 methods per source, really: #delete and #write_deletes_to_disk (or
841 whatever), with the semantics that #delete may or may not do something
842 but you're guaranteed that deletions have happened after a call to
843 #write_deletes_to_disk. Then Maildir, IMAP, etc can delete immediately,
844 and mbox can defer (presumably building up an array of offset to be
845 deleted, and then doing the batch deletion as it does currently.)
846
847 (There are actually a couple other things that need to happen to
848 mbox---it shouldn't keep the file pointers open all the time, it should
849 wrap deletion and new message scanning with a call to dotlockfile, and
850 the bizarre division of labor between loader, sshloader, and the source
851 superclass has become a classic example of how not to use inheritance.
852 Luckily, none of those things really affect this issue.)
853
854 What do you think?
855
856 --
857 William <wmorgan-sup at masanjin.net>
858
859 From wmorgan-sup@masanjin.net Tue Sep 11 18:08:34 2007
860 From: wmorgan-sup@masanjin.net (William Morgan)
861 Date: Tue, 11 Sep 2007 15:08:34 -0700
862 Subject: [sup-talk] on sup
863 In-Reply-To: <1189061510-sup-5845@tatooine>
864 References: <1188557360-sup-7369@bryma> <1188573751-sup-6067@south>
865 <20070831171234.GD8312@die.therning.org>
866 <1188773706-sup-1502@south> <1188977552-sup-60@tatooine>
867 <1189005324-sup-9685@south> <1189061510-sup-5845@tatooine>
868 Message-ID: <1189548034-sup-2005@south>
869
870 Excerpts from Magnus Therning's message of Thu Sep 06 00:02:27 -0700 2007:
871 > These are the default behaviours I'd like to see:
872 >
873 > - Don't sign, don't encrypt
874 > - Sign all out-going messages, don't encrypt
875 > - Sign all replies to signed messages, don't encrypt
876 > - Sign all replies to signed messages, encrypt replies to encrypted
877 > messages
878 > - Sign all out-going messages, encrypt all messages to recipients with
879 > a known public key
880
881 I think you've convinced me to hold off any an UI changes and just have
882 a set of behaviors for signing and encryption, configurable in
883 config.yaml, that are sophisticated enough to minimize the need for
884 per-message actions. That should be pretty easy to do.
885
886 --
887 William <wmorgan-sup at masanjin.net>
888
889 From magnus@therning.org Tue Sep 11 19:04:15 2007
890 From: magnus@therning.org (Magnus Therning)
891 Date: Wed, 12 Sep 2007 00:04:15 +0100
892 Subject: [sup-talk] on sup
893 In-Reply-To: <1189548034-sup-2005@south>
894 References: <1188557360-sup-7369@bryma> <1188573751-sup-6067@south>
895 <20070831171234.GD8312@die.therning.org>
896 <1188773706-sup-1502@south> <1188977552-sup-60@tatooine>
897 <1189005324-sup-9685@south> <1189061510-sup-5845@tatooine>
898 <1189548034-sup-2005@south>
899 Message-ID: <20070911230415.GB3448@die.therning.org>
900
901 On Tue, Sep 11, 2007 at 15:08:34 -0700, William Morgan wrote:
902 >Excerpts from Magnus Therning's message of Thu Sep 06 00:02:27 -0700 2007:
903 >> These are the default behaviours I'd like to see:
904 >>
905 >> - Don't sign, don't encrypt
906 >> - Sign all out-going messages, don't encrypt
907 >> - Sign all replies to signed messages, don't encrypt
908 >> - Sign all replies to signed messages, encrypt replies to encrypted
909 >> messages
910 >> - Sign all out-going messages, encrypt all messages to recipients with
911 >> a known public key
912 >
913 >I think you've convinced me to hold off any an UI changes and just have
914 >a set of behaviors for signing and encryption, configurable in
915 >config.yaml, that are sophisticated enough to minimize the need for
916 >per-message actions. That should be pretty easy to do.
917
918 Now I know this might not be a very user friendly idea and probably not
919 ideal for the long run. It might be a good first step to simply have a
920 hook like this:
921
922 crypto_hook sender, recipient, reply_to_signed?, reply_to_encrypted? ->
923 dosign, doencrypt
924
925 (Apply your mad Ruby skills to make it Ruby-esque, but you get the idea.)
926
927 That'd buy you some time to come to a conclusion, while still making sup
928 a lot more useful for early adopters (like me :-).
929
930 /M
931 --
932 Magnus Therning (OpenPGP: 0xAB4DFBA4)
933 magnus?therning?org Jabber: magnus?therning?gmail?com
934 http://therning.org/magnus
935 -------------- next part --------------
936 A non-text attachment was scrubbed...
937 Name: not available
938 Type: application/pgp-signature
939 Size: 189 bytes
940 Desc: Digital signature
941 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070912/91e2358f/attachment.bin
942
943 From wmorgan-sup@masanjin.net Tue Sep 11 19:28:53 2007
944 From: wmorgan-sup@masanjin.net (William Morgan)
945 Date: Tue, 11 Sep 2007 16:28:53 -0700
946 Subject: [sup-talk] Two small fixes
947 In-Reply-To: <1189063161-sup-9162@tatooine>
948 References: <1189063161-sup-9162@tatooine>
949 Message-ID: <1189553292-sup-3297@south>
950
951 Excerpts from Magnus Therning's message of Thu Sep 06 00:21:59 -0700 2007:
952 > Yesterday I ran into some warnings when using sup from SVN:
953
954 Fixed, thanks! How did you get the warnings to pop up? I only
955 occasionally see warnings for an instant before curses takes over the
956 screen...
957
958 --
959 William <wmorgan-sup at masanjin.net>
960
961 From magnus@therning.org Wed Sep 12 03:06:25 2007
962 From: magnus@therning.org (Magnus Therning)
963 Date: Wed, 12 Sep 2007 08:06:25 +0100
964 Subject: [sup-talk] Two small fixes
965 In-Reply-To: <1189553292-sup-3297@south>
966 References: <1189063161-sup-9162@tatooine> <1189553292-sup-3297@south>
967 Message-ID: <20070912070625.GB3345@die.therning.org>
968
969 On Tue, Sep 11, 2007 at 16:28:53 -0700, William Morgan wrote:
970 >Excerpts from Magnus Therning's message of Thu Sep 06 00:21:59 -0700 2007:
971 >> Yesterday I ran into some warnings when using sup from SVN:
972 >
973 >Fixed, thanks! How did you get the warnings to pop up? I only
974 >occasionally see warnings for an instant before curses takes over the
975 >screen...
976
977 I'm not sure why the warnings linger long enough for me to catch them.
978 Could be my choice of terminal (ROXTerm)?
979
980 /M
981
982 --
983 Magnus Therning (OpenPGP: 0xAB4DFBA4)
984 magnus?therning?org Jabber: magnus?therning?gmail?com
985 http://therning.org/magnus
986 -------------- next part --------------
987 A non-text attachment was scrubbed...
988 Name: not available
989 Type: application/pgp-signature
990 Size: 189 bytes
991 Desc: Digital signature
992 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070912/6124205c/attachment.bin
993
994 From jeff.covey@pobox.com Wed Sep 12 23:38:39 2007
995 From: jeff.covey@pobox.com (jeff covey)
996 Date: Wed, 12 Sep 2007 23:38:39 -0400
997 Subject: [sup-talk] draft files aren't deleted when a draft message is
998 deleted in the inbox
999 Message-ID: <1189654538-sup-114@mona>
1000
1001 this may be part of my draft problem:
1002
1003 i postponed a message and decided later not to finish it. it was in my
1004 inbox with a "draft" label. i hit "d", and it disappeared from the inbox,
1005 but ~/.sup/drafts/0 is still there with its contents.
1006
1007 thanks,
1008
1009 --
1010 jeff covey
1011 http://jeffcovey.net/
1012
1013
1014 From itaylor@uark.edu Thu Sep 13 02:15:04 2007
1015 From: itaylor@uark.edu (Ian Taylor)
1016 Date: Thu, 13 Sep 2007 01:15:04 -0500
1017 Subject: [sup-talk] tab completion
1018 Message-ID: <1189663813-sup-4803@zap>
1019
1020 In svn, what fields are currently supposed to be tab-completed? After
1021 hitting 'm' to compose a message, tab completions don't work in the to:
1022 prompt. After glancing at the code, it seemed that their is completion
1023 code for that.
1024
1025 Is it possible I'm missing something from my configs?
1026
1027 --
1028 Ian Taylor, Technical Assistant
1029 Computer Science Computer Engineering
1030 http://www.csce.uark.edu itaylor at uark.edu
1031 University of Arkansas
1032
1033
1034 From magnus@therning.org Thu Sep 13 06:15:19 2007
1035 From: magnus@therning.org (Magnus Therning)
1036 Date: Thu, 13 Sep 2007 11:15:19 +0100
1037 Subject: [sup-talk] More maildir
1038 Message-ID: <20070913101519.GA22606@die.therning.org>
1039
1040 I've attached a patch that adds methods that'll make it easier for sup
1041 to play nice with other MUAs when using maildir for storage.
1042
1043 Here are some questions:
1044
1045 - What's my Ruby like? (I hadn't even looked at Ruby just 2 weeks ago
1046 so please tell me if I'm doing strange things.)
1047
1048 - The methods names are maildir-centric, any suggestions for better
1049 ones?
1050
1051 - The maildir state (the flags) are related to some sup labels
1052 ('trashed' is 'deleted' and '!seen' is 'unread'). Is it important to
1053 keep them in sync? (My thinking is no, at least not automatically.
1054 The maildir state could be used when finding new mail during sync to
1055 set the initial labels. It would also be nice if state/labels on
1056 known messages would sync--I think "read in either => read" and
1057 "trashed in either => trashed" is good enough.)
1058
1059 Next steps:
1060
1061 1. Basically revert the change to Maildir::each I made in another
1062 email. Re-implement it using the methods I introduced here.
1063 2. Implement Maildir::delete
1064 3. Move the delete method in sup-sync-back into MBox::Loader and modify
1065 sup-sync-back.
1066
1067 /M
1068
1069 --
1070 Magnus Therning (OpenPGP: 0xAB4DFBA4)
1071 magnus?therning?org Jabber: magnus?therning?gmail?com
1072 http://therning.org/magnus
1073 -------------- next part --------------
1074 A non-text attachment was scrubbed...
1075 Name: sup_522.patch
1076 Type: text/x-diff
1077 Size: 2076 bytes
1078 Desc: not available
1079 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070913/f0b09067/attachment-0002.bin
1080 -------------- next part --------------
1081 A non-text attachment was scrubbed...
1082 Name: not available
1083 Type: application/pgp-signature
1084 Size: 189 bytes
1085 Desc: not available
1086 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070913/f0b09067/attachment-0003.bin
1087
1088 From magnus@therning.org Thu Sep 13 11:56:20 2007
1089 From: magnus@therning.org (Magnus Therning)
1090 Date: Thu, 13 Sep 2007 16:56:20 +0100
1091 Subject: [sup-talk] More maildir
1092 In-Reply-To: <20070913101519.GA22606@die.therning.org>
1093 References: <20070913101519.GA22606@die.therning.org>
1094 Message-ID: <20070913155620.GH22606@die.therning.org>
1095
1096 On Thu, Sep 13, 2007 at 11:15:19 +0100, Magnus Therning wrote:
1097 >I've attached a patch that adds methods that'll make it easier for sup
1098 >to play nice with other MUAs when using maildir for storage.
1099
1100 The original patch did some silly things to get the filename of a
1101 message. Here's another patch that cleans that up a bit.
1102
1103 /M
1104
1105 --
1106 Magnus Therning (OpenPGP: 0xAB4DFBA4)
1107 magnus?therning?org Jabber: magnus?therning?gmail?com
1108 http://therning.org/magnus
1109
1110 Failure is not an option. It comes bundled with the software.
1111 -------------- next part --------------
1112 A non-text attachment was scrubbed...
1113 Name: sup_522-2.patch
1114 Type: text/x-diff
1115 Size: 783 bytes
1116 Desc: not available
1117 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070913/cec8a05d/attachment-0002.bin
1118 -------------- next part --------------
1119 A non-text attachment was scrubbed...
1120 Name: not available
1121 Type: application/pgp-signature
1122 Size: 189 bytes
1123 Desc: not available
1124 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070913/cec8a05d/attachment-0003.bin
1125
1126 From magnus@therning.org Thu Sep 13 11:45:18 2007
1127 From: magnus@therning.org (Magnus Therning)
1128 Date: Thu, 13 Sep 2007 16:45:18 +0100
1129 Subject: [sup-talk] More maildir
1130 In-Reply-To: <20070913101519.GA22606@die.therning.org>
1131 References: <20070913101519.GA22606@die.therning.org>
1132 Message-ID: <20070913154518.GF22606@die.therning.org>
1133
1134 On Thu, Sep 13, 2007 at 11:15:19 +0100, Magnus Therning wrote:
1135 >I've attached a patch that adds methods that'll make it easier for sup
1136 >to play nice with other MUAs when using maildir for storage.
1137 >
1138 >Here are some questions:
1139 >
1140 > - What's my Ruby like? (I hadn't even looked at Ruby just 2 weeks ago
1141 > so please tell me if I'm doing strange things.)
1142 >
1143 > - The methods names are maildir-centric, any suggestions for better
1144 > ones?
1145 >
1146 > - The maildir state (the flags) are related to some sup labels
1147 > ('trashed' is 'deleted' and '!seen' is 'unread'). Is it important to
1148 > keep them in sync? (My thinking is no, at least not automatically.
1149 > The maildir state could be used when finding new mail during sync to
1150 > set the initial labels. It would also be nice if state/labels on
1151 > known messages would sync--I think "read in either => read" and
1152 > "trashed in either => trashed" is good enough.)
1153 >
1154 >Next steps:
1155 >
1156 > 1. Basically revert the change to Maildir::each I made in another
1157 > email. Re-implement it using the methods I introduced here.
1158 > 2. Implement Maildir::delete
1159 > 3. Move the delete method in sup-sync-back into MBox::Loader and modify
1160 > sup-sync-back.
1161
1162 Patch that uses the new improved maildir methods to add initial labels.
1163
1164 /M
1165
1166 --
1167 Magnus Therning (OpenPGP: 0xAB4DFBA4)
1168 magnus?therning?org Jabber: magnus?therning?gmail?com
1169 http://therning.org/magnus
1170
1171 Some operating systems are called 'user friendly', Linux however is
1172 'expert friendly'.
1173 -------------- next part --------------
1174 A non-text attachment was scrubbed...
1175 Name: sup_522-1.patch
1176 Type: text/x-diff
1177 Size: 387 bytes
1178 Desc: not available
1179 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070913/041a088b/attachment.bin
1180 -------------- next part --------------
1181 A non-text attachment was scrubbed...
1182 Name: not available
1183 Type: application/pgp-signature
1184 Size: 189 bytes
1185 Desc: not available
1186 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070913/041a088b/attachment-0001.bin
1187
1188 From wmorgan-sup@masanjin.net Thu Sep 13 21:34:49 2007
1189 From: wmorgan-sup@masanjin.net (William Morgan)
1190 Date: Thu, 13 Sep 2007 18:34:49 -0700
1191 Subject: [sup-talk] draft files aren't deleted when a draft message is
1192 deleted in the inbox
1193 In-Reply-To: <1189654538-sup-114@mona>
1194 References: <1189654538-sup-114@mona>
1195 Message-ID: <1189733596-sup-2790@south>
1196
1197 Excerpts from jeff.covey's message of Wed Sep 12 20:38:39 -0700 2007:
1198 > i postponed a message and decided later not to finish it. it was in
1199 > my inbox with a "draft" label. i hit "d", and it disappeared from the
1200 > inbox, but ~/.sup/drafts/0 is still there with its contents.
1201
1202 Interesting. Are there weird permissions on that directory, that would
1203 otherwise preclude you from deleting a file?
1204
1205 Can you apply this diagnostic patch and post the "XX" log messages,
1206 please?
1207
1208 Index: lib/sup/draft.rb
1209 ===================================================================
1210 --- lib/sup/draft.rb (revision 566)
1211 +++ lib/sup/draft.rb (working copy)
1212 @@ -35,7 +35,19 @@
1213 raise ArgumentError, "can't find entry for draft: #{mid.inspect}" unless entry
1214 raise ArgumentError, "not a draft: source id #{entry[:source_id].inspect}, should be #{DraftManager.source_id.inspect} for #{mid.inspect} / docno #{docid}" unless entry[:source_id].to_i == DraftManager.source_id
1215 Index.drop_entry docid
1216 - File.delete @source.fn_for_offset(entry[:source_info])
1217 +
1218 + fn = @source.fn_for_offset(entry[:source_info])
1219 + Redwood::log "XX about to delete: #{fn}"
1220 + rv =
1221 + begin
1222 + File.delete fn
1223 + rescue Exception => e
1224 + Redwood::log "XX exception (e.class): #{e.message}"
1225 + nil
1226 + end
1227 + Redwood::log "XX deletion had return value #{rv.inspect}"
1228 + Redwood::log "XX file still there? #{File.exists? fn}"
1229 +
1230 UpdateManager.relay self, :delete, mid
1231 end
1232 end
1233
1234
1235 --
1236 William <wmorgan-sup at masanjin.net>
1237
1238 From wmorgan-sup@masanjin.net Thu Sep 13 21:40:20 2007
1239 From: wmorgan-sup@masanjin.net (William Morgan)
1240 Date: Thu, 13 Sep 2007 18:40:20 -0700
1241 Subject: [sup-talk] tab completion
1242 In-Reply-To: <1189663813-sup-4803@zap>
1243 References: <1189663813-sup-4803@zap>
1244 Message-ID: <1189733895-sup-2965@south>
1245
1246 Excerpts from Ian Taylor's message of Wed Sep 12 23:15:04 -0700 2007:
1247 > In svn, what fields are currently supposed to be tab-completed? After
1248 > hitting 'm' to compose a message, tab completions don't work in the
1249 > to: prompt. After glancing at the code, it seemed that their is
1250 > completion code for that.
1251
1252 The "To:" prompt is tab-completed. It only completes the addresses
1253 you've given aliases to (your "contact list"). Is it possible that set
1254 is empty? You can view your contact list in ~/.sup/contacts.txt.
1255
1256 --
1257 William <wmorgan-sup at masanjin.net>
1258
1259 From wmorgan-sup@masanjin.net Thu Sep 13 21:51:08 2007
1260 From: wmorgan-sup@masanjin.net (William Morgan)
1261 Date: Thu, 13 Sep 2007 18:51:08 -0700
1262 Subject: [sup-talk] tab completion
1263 In-Reply-To: <1189733895-sup-2965@south>
1264 References: <1189663813-sup-4803@zap> <1189733895-sup-2965@south>
1265 Message-ID: <1189734417-sup-8426@south>
1266
1267 Excerpts from William Morgan's message of Thu Sep 13 18:40:20 -0700 2007:
1268 > The "To:" prompt is tab-completed. It only completes the addresses
1269 > you've given aliases to (your "contact list"). Is it possible that set
1270 > is empty? You can view your contact list in ~/.sup/contacts.txt.
1271
1272 I've just committed a change that also loads in the email addresses of
1273 the 10 most recent correspondents for tab completion, so you should get
1274 something now even with an empty contact list.
1275
1276 --
1277 William <wmorgan-sup at masanjin.net>
1278
1279 From wmorgan-sup@masanjin.net Thu Sep 13 22:45:56 2007
1280 From: wmorgan-sup@masanjin.net (William Morgan)
1281 Date: Thu, 13 Sep 2007 19:45:56 -0700
1282 Subject: [sup-talk] Tilde in maildir/mbox paths
1283 In-Reply-To: <20070907073721.GA10465@die.therning.org>
1284 References: <20070907073721.GA10465@die.therning.org>
1285 Message-ID: <1189737312-sup-2958@south>
1286
1287 Hi Magnus,
1288
1289 Excerpts from Magnus Therning's message of Fri Sep 07 00:37:21 -0700 2007:
1290 > I find it useful to be able to stick '~' in paths so here's an attempt
1291 > at a patch that allows a source with the URI maildir:~/mail/in.
1292
1293 Thanks for the patch! What about modifying this slightly so that the
1294 ~-expansion is done at the string level instead of the URI level, in a
1295 method called Source#expand_filesystem_uri or something. Then Maildir
1296 and MBox::Loader sticks the output of that method into URI.
1297
1298 I think that change will solve two problems: it will make clear that the
1299 expansion method is filesystem-specific (i.e. even though the method is
1300 in Source, only filesystem sources want to call it), and it will allow
1301 us to support URIs the "right way", without the weird #opaque stuff and
1302 without dropping all mbox:// and maildir:// URLs. What do you think?
1303
1304 --
1305 William <wmorgan-sup at masanjin.net>
1306
1307 From wmorgan-sup@masanjin.net Thu Sep 13 23:33:04 2007
1308 From: wmorgan-sup@masanjin.net (William Morgan)
1309 Date: Thu, 13 Sep 2007 20:33:04 -0700
1310 Subject: [sup-talk] Minor maildir change
1311 In-Reply-To: <20070909224034.GA3540@die.therning.org>
1312 References: <20070909224034.GA3540@die.therning.org>
1313 Message-ID: <1189740088-sup-6296@south>
1314
1315 Excerpts from Magnus Therning's message of Sun Sep 09 15:40:34 -0700 2007:
1316 > I thought it was a little strange the file_path on Maildir objects
1317 > returned `nil` so I changed that to return the path of the maildir.
1318
1319 Applied, thanks. #file_path is only used by sup-sync-back so I hadn't
1320 bothered to implemented it.
1321
1322 > I am somewhat puzzled by the labels one receives from Maildir::each,
1323 > it's the default labels for the source rather than the labels of the
1324 > actual message.
1325
1326 It's supposed to be both sets of labels unioned together. The source
1327 defines any user labels the user wants to automatically apply to new
1328 messages (kind of a primitive filtering), and we mix these in with the
1329 labels that carry over the read/unread state, etc.
1330
1331 > Especially confusing was the choice to label something 'unread' if
1332 > it's filename doesn't contains an 'R'. IIRC 'R' means that the email
1333 > has been replied to, it would have been more correct to mark it unread
1334 > if it doesn't contain an 'S' (as in seen).
1335
1336 Yep, this was a bug.
1337
1338 > However, it seems silly to take any of this into consideration when
1339 > sup doesn't deal with maildirs "properly" anyway. I've removed that
1340 > strangeness, at least until a full maildir implementation makes it
1341 > into sup.
1342
1343 Hey, as far as Sup is concerned, a source is just a dumb bucket that
1344 occasionally produces a new messages. So in that sense, Maildir is dealt
1345 with "properly". (Sup-sync-back only exists because of the unfortunate
1346 habit of Sup users of wanting to using other email clients alongside
1347 it.) :)
1348
1349
1350 --
1351 William <wmorgan-sup at masanjin.net>
1352
1353 From wmorgan-sup@masanjin.net Thu Sep 13 23:42:15 2007
1354 From: wmorgan-sup@masanjin.net (William Morgan)
1355 Date: Thu, 13 Sep 2007 20:42:15 -0700
1356 Subject: [sup-talk] More maildir
1357 In-Reply-To: <20070913101519.GA22606@die.therning.org>
1358 References: <20070913101519.GA22606@die.therning.org>
1359 Message-ID: <1189740804-sup-800@south>
1360
1361 Excerpts from Magnus Therning's message of Thu Sep 13 03:15:19 -0700 2007:
1362 > I've attached a patch that adds methods that'll make it easier for sup
1363 > to play nice with other MUAs when using maildir for storage.
1364
1365 Applied! I merged in the several patches you sent into one revision. "svn
1366 diff -r572:573" should give it to you.
1367
1368 I no longer use Maildir so it's up to you to test it. :)
1369
1370 > - What's my Ruby like? (I hadn't even looked at Ruby just 2 weeks
1371 > ago so please tell me if I'm doing strange things.)
1372
1373 It's great. I made one or two minor tweaks but that's it. (For example,
1374 x = y || 3 instead of x = y ? y : 3).
1375
1376 > - The methods names are maildir-centric, any suggestions for better
1377 > ones?
1378
1379 Seems fine to me. The only thing that's going to be globally called is
1380 some kind of delete method.
1381
1382 > - The maildir state (the flags) are related to some sup labels
1383 > ('trashed' is 'deleted' and '!seen' is 'unread'). Is it important to
1384 > keep them in sync? (My thinking is no, at least not automatically.
1385 > The maildir state could be used when finding new mail during sync to
1386 > set the initial labels. It would also be nice if state/labels on
1387 > known messages would sync--I think "read in either => read" and
1388 > "trashed in either => trashed" is good enough.)
1389
1390 This is basically right. Sup interacts with sources in two ways: getting
1391 a new message, and during sup-sync-back, and in both places should
1392 synchronize read/unread and deleted/undeleted flags. (Actually
1393 sup-sync-back doesn't even do read/unread for mbox yet.) Other flags are
1394 left alone, except we kindly allow you to delete spam messages as well.
1395
1396 --
1397 William <wmorgan-sup at masanjin.net>
1398
1399 From magnus@therning.org Fri Sep 14 17:38:23 2007
1400 From: magnus@therning.org (Magnus Therning)
1401 Date: Fri, 14 Sep 2007 22:38:23 +0100
1402 Subject: [sup-talk] Tilde in maildir/mbox paths
1403 In-Reply-To: <1189737312-sup-2958@south>
1404 References: <20070907073721.GA10465@die.therning.org>
1405 <1189737312-sup-2958@south>
1406 Message-ID: <20070914213823.GA3321@die.therning.org>
1407
1408 On Thu, Sep 13, 2007 at 19:45:56 -0700, William Morgan wrote:
1409 >Hi Magnus,
1410 >
1411 >Excerpts from Magnus Therning's message of Fri Sep 07 00:37:21 -0700 2007:
1412 >> I find it useful to be able to stick '~' in paths so here's an attempt
1413 >> at a patch that allows a source with the URI maildir:~/mail/in.
1414 >
1415 >Thanks for the patch! What about modifying this slightly so that the
1416 >~-expansion is done at the string level instead of the URI level, in a
1417 >method called Source#expand_filesystem_uri or something. Then Maildir
1418 >and MBox::Loader sticks the output of that method into URI.
1419 >
1420 >I think that change will solve two problems: it will make clear that
1421 >the expansion method is filesystem-specific (i.e. even though the
1422 >method is in Source, only filesystem sources want to call it), and it
1423 >will allow us to support URIs the "right way", without the weird
1424 >#opaque stuff and without dropping all mbox:// and maildir:// URLs.
1425 >What do you think?
1426
1427 File.expand_path requires the tilde to be at the start of its argument,
1428 so that prompted the strange #opaque stuff. I made some changes and
1429 stuck a modified patch in the attachment. Let me know what you think.
1430
1431 /M
1432
1433 --
1434 Magnus Therning (OpenPGP: 0xAB4DFBA4)
1435 magnus?therning?org Jabber: magnus?therning?gmail?com
1436 http://therning.org/magnus
1437 -------------- next part --------------
1438 A non-text attachment was scrubbed...
1439 Name: not available
1440 Type: application/pgp-signature
1441 Size: 189 bytes
1442 Desc: Digital signature
1443 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070914/f67d4866/attachment.bin
1444
1445 From magnus@therning.org Fri Sep 14 18:44:26 2007
1446 From: magnus@therning.org (Magnus Therning)
1447 Date: Fri, 14 Sep 2007 23:44:26 +0100
1448 Subject: [sup-talk] Tilde in maildir/mbox paths
1449 In-Reply-To: <20070914213823.GA3321@die.therning.org>
1450 References: <20070907073721.GA10465@die.therning.org>
1451 <1189737312-sup-2958@south>
1452 <20070914213823.GA3321@die.therning.org>
1453 Message-ID: <20070914224426.GA4460@die.therning.org>
1454
1455 On Fri, Sep 14, 2007 at 22:38:23 +0100, Magnus Therning wrote:
1456 >On Thu, Sep 13, 2007 at 19:45:56 -0700, William Morgan wrote:
1457 >>Hi Magnus,
1458 >>
1459 >>Excerpts from Magnus Therning's message of Fri Sep 07 00:37:21 -0700 2007:
1460 >>> I find it useful to be able to stick '~' in paths so here's an attempt
1461 >>> at a patch that allows a source with the URI maildir:~/mail/in.
1462 >>
1463 >>Thanks for the patch! What about modifying this slightly so that the
1464 >>~-expansion is done at the string level instead of the URI level, in a
1465 >>method called Source#expand_filesystem_uri or something. Then Maildir
1466 >>and MBox::Loader sticks the output of that method into URI.
1467 >>
1468 >>I think that change will solve two problems: it will make clear that
1469 >>the expansion method is filesystem-specific (i.e. even though the
1470 >>method is in Source, only filesystem sources want to call it), and it
1471 >>will allow us to support URIs the "right way", without the weird
1472 >>#opaque stuff and without dropping all mbox:// and maildir:// URLs.
1473 >>What do you think?
1474 >
1475 >File.expand_path requires the tilde to be at the start of its argument,
1476 >so that prompted the strange #opaque stuff. I made some changes and
1477 >stuck a modified patch in the attachment. Let me know what you think.
1478
1479 This time with the attachment...
1480
1481 /M
1482
1483 --
1484 Magnus Therning (OpenPGP: 0xAB4DFBA4)
1485 magnus?therning?org Jabber: magnus?therning?gmail?com
1486 http://therning.org/magnus
1487
1488 Of course I laugh at my own jokes. You can't trust strangers.
1489 -- Phyllis Diller
1490 -------------- next part --------------
1491 A non-text attachment was scrubbed...
1492 Name: sup_529-1.diff
1493 Type: text/x-diff
1494 Size: 1444 bytes
1495 Desc: not available
1496 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070914/79e8f0e8/attachment-0002.bin
1497 -------------- next part --------------
1498 A non-text attachment was scrubbed...
1499 Name: not available
1500 Type: application/pgp-signature
1501 Size: 189 bytes
1502 Desc: Digital signature
1503 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070914/79e8f0e8/attachment-0003.bin
1504
1505 From wmorgan-sup@masanjin.net Fri Sep 14 23:41:28 2007
1506 From: wmorgan-sup@masanjin.net (William Morgan)
1507 Date: Fri, 14 Sep 2007 20:41:28 -0700
1508 Subject: [sup-talk] Tilde in maildir/mbox paths
1509 In-Reply-To: <20070914224426.GA4460@die.therning.org>
1510 References: <20070907073721.GA10465@die.therning.org>
1511 <1189737312-sup-2958@south>
1512 <20070914213823.GA3321@die.therning.org>
1513 <20070914224426.GA4460@die.therning.org>
1514 Message-ID: <1189827595-sup-6610@south>
1515
1516 Excerpts from Magnus Therning's message of Fri Sep 14 15:44:26 -0700 2007:
1517 > This time with the attachment...
1518
1519 Time to turn on :confirm_no_attachments!
1520
1521 I've applied your patch, with a couple changes. Thanks!
1522
1523 --
1524 William <wmorgan-sup at masanjin.net>
1525
1526 From wmorgan-sup@masanjin.net Sat Sep 15 01:55:43 2007
1527 From: wmorgan-sup@masanjin.net (William Morgan)
1528 Date: Fri, 14 Sep 2007 22:55:43 -0700
1529 Subject: [sup-talk] new in svn: gpg signature verification
1530 Message-ID: <1189834628-sup-6238@south>
1531
1532 Still highly experimental, but if you have gpg or pgp in your path, you
1533 should now see a notice at the top of each signed message saying that
1534 the signature was good, bad, or unknown. Please let me know how this
1535 works, particularly if it claims a signature is bad when it actually
1536 isn't. (Figuring out exactly how to format the signed payload such that
1537 gpg/pgp accepts it has been non-trivial.)
1538
1539 --
1540 William <wmorgan-sup at masanjin.net>
1541
1542 From magnus@therning.org Sat Sep 15 06:19:16 2007
1543 From: magnus@therning.org (Magnus Therning)
1544 Date: Sat, 15 Sep 2007 11:19:16 +0100
1545 Subject: [sup-talk] Tilde in maildir/mbox paths
1546 In-Reply-To: <1189827595-sup-6610@south>
1547 References: <20070907073721.GA10465@die.therning.org>
1548 <1189737312-sup-2958@south>
1549 <20070914213823.GA3321@die.therning.org>
1550 <20070914224426.GA4460@die.therning.org>
1551 <1189827595-sup-6610@south>
1552 Message-ID: <20070915101916.GA3361@die.therning.org>
1553
1554 On Fri, Sep 14, 2007 at 20:41:28 -0700, William Morgan wrote:
1555 >Excerpts from Magnus Therning's message of Fri Sep 14 15:44:26 -0700 2007:
1556 >> This time with the attachment...
1557 >
1558 >Time to turn on :confirm_no_attachments!
1559 >
1560 >I've applied your patch, with a couple changes. Thanks!
1561
1562 I really should have found String::gsub myself. I was just so confused
1563 by the existence of String::replace and what it does...
1564
1565 One thing though. You've moved the expansion of tilde so that the
1566 expanded URI is passed to Source and it ends up in .sup/sources.yaml.
1567 My intention was to have the tilde unexpanded in .sup/sources.yaml.
1568 This would allow sharing of sup configuration between different
1569 accounts, as long as the locations of mail boxes are the same relative
1570 to the home directory.
1571
1572 The reason is again my own mail set-up. Mutt takes paths to mail boxes
1573 and expands tilde. This allows me to have identical Mutt configurations
1574 on machines where I have different login names (at some places I don't
1575 have the luxury of getting to choose my own login, e.g. at work).
1576
1577 I've attached a patch that moves the expansion back to the sub-classes
1578 again.
1579
1580 /M
1581
1582 --
1583 Magnus Therning (OpenPGP: 0xAB4DFBA4)
1584 magnus?therning?org Jabber: magnus?therning?gmail?com
1585 http://therning.org/magnus
1586 -------------- next part --------------
1587 A non-text attachment was scrubbed...
1588 Name: sup_537-1.patch
1589 Type: text/x-diff
1590 Size: 1595 bytes
1591 Desc: not available
1592 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070915/ea163096/attachment.bin
1593 -------------- next part --------------
1594 A non-text attachment was scrubbed...
1595 Name: not available
1596 Type: application/pgp-signature
1597 Size: 189 bytes
1598 Desc: Digital signature
1599 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070915/ea163096/attachment-0001.bin
1600
1601 From magnus@therning.org Sat Sep 15 06:35:42 2007
1602 From: magnus@therning.org (Magnus Therning)
1603 Date: Sat, 15 Sep 2007 11:35:42 +0100
1604 Subject: [sup-talk] new in svn: gpg signature verification
1605 In-Reply-To: <1189834628-sup-6238@south>
1606 References: <1189834628-sup-6238@south>
1607 Message-ID: <20070915103542.GB3361@die.therning.org>
1608
1609 On Fri, Sep 14, 2007 at 22:55:43 -0700, William Morgan wrote:
1610 >Still highly experimental, but if you have gpg or pgp in your path, you
1611 >should now see a notice at the top of each signed message saying that
1612 >the signature was good, bad, or unknown. Please let me know how this
1613 >works, particularly if it claims a signature is bad when it actually
1614 >isn't. (Figuring out exactly how to format the signed payload such that
1615 >gpg/pgp accepts it has been non-trivial.)
1616
1617 Seems to work like a charm :-)
1618
1619 Once signing of message is added I can start reading _and_ writing mail
1620 in sup. And when it has support for encrypted emails (sending &
1621 receiving) then mutt is history!
1622
1623 /M
1624
1625 --
1626 Magnus Therning (OpenPGP: 0xAB4DFBA4)
1627 magnus?therning?org Jabber: magnus?therning?gmail?com
1628 http://therning.org/magnus
1629 -------------- next part --------------
1630 A non-text attachment was scrubbed...
1631 Name: not available
1632 Type: application/pgp-signature
1633 Size: 189 bytes
1634 Desc: Digital signature
1635 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070915/3087d189/attachment.bin
1636
1637 From magnus@therning.org Sat Sep 15 14:12:53 2007
1638 From: magnus@therning.org (Magnus Therning)
1639 Date: Sat, 15 Sep 2007 19:12:53 +0100
1640 Subject: [sup-talk] Love your commenting style, mate!
1641 Message-ID: <20070915181253.GA3416@die.therning.org>
1642
1643 Just have to say I _love_ the comment at the top of imap.rb. Don't know
1644 if you have any experience of standardisation processes but I've never
1645 heard of any that doesn't defy logic.
1646
1647 Out of curiosity, what brand of imap server is it you have at your
1648 disposal? (So I can stay away from it.)
1649
1650 /M
1651
1652 --
1653 Magnus Therning (OpenPGP: 0xAB4DFBA4)
1654 magnus?therning?org Jabber: magnus?therning?gmail?com
1655 http://therning.org/magnus
1656 -------------- next part --------------
1657 A non-text attachment was scrubbed...
1658 Name: not available
1659 Type: application/pgp-signature
1660 Size: 189 bytes
1661 Desc: Digital signature
1662 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070915/30b8770a/attachment.bin
1663
1664 From jeff.covey@pobox.com Sun Sep 16 08:46:33 2007
1665 From: jeff.covey@pobox.com (jeff covey)
1666 Date: Sun, 16 Sep 2007 08:46:33 -0400
1667 Subject: [sup-talk] freshmeat article
1668 Message-ID: <1189946695-sup-3343@mona>
1669
1670 i wrote an article about sup for freshmeat; you can see it here:
1671
1672 http://freshmeat.net/articles/view/2824/
1673
1674 sincerely,
1675
1676 --
1677 jeff covey
1678 http://jeffcovey.net/
1679
1680
1681 From wmorgan-sup@masanjin.net Sun Sep 16 14:12:55 2007
1682 From: wmorgan-sup@masanjin.net (William Morgan)
1683 Date: Sun, 16 Sep 2007 11:12:55 -0700
1684 Subject: [sup-talk] freshmeat article
1685 In-Reply-To: <1189946695-sup-3343@mona>
1686 References: <1189946695-sup-3343@mona>
1687 Message-ID: <1189966261-sup-2991@south>
1688
1689 Excerpts from jeff.covey's message of Sun Sep 16 05:46:33 -0700 2007:
1690 > i wrote an article about sup for freshmeat; you can see it here:
1691 >
1692 > http://freshmeat.net/articles/view/2824/
1693
1694 Jeff, that's a great article. Thanks!
1695
1696 --
1697 William <wmorgan-sup at masanjin.net>
1698
1699 From magnus@therning.org Sun Sep 16 14:19:36 2007
1700 From: magnus@therning.org (Magnus Therning)
1701 Date: Sun, 16 Sep 2007 19:19:36 +0100
1702 Subject: [sup-talk] Minor maildir change
1703 In-Reply-To: <1189740088-sup-6296@south>
1704 References: <20070909224034.GA3540@die.therning.org>
1705 <1189740088-sup-6296@south>
1706 Message-ID: <20070916181936.GA5332@die.therning.org>
1707
1708 On Thu, Sep 13, 2007 at 20:33:04 -0700, William Morgan wrote:
1709 >Excerpts from Magnus Therning's message of Sun Sep 09 15:40:34 -0700 2007:
1710 [..]
1711 >> I am somewhat puzzled by the labels one receives from Maildir::each,
1712 >> it's the default labels for the source rather than the labels of the
1713 >> actual message.
1714 >
1715 >It's supposed to be both sets of labels unioned together. The source
1716 >defines any user labels the user wants to automatically apply to new
1717 >messages (kind of a primitive filtering), and we mix these in with the
1718 >labels that carry over the read/unread state, etc.
1719
1720 This is still confusing to me.
1721
1722 It's also a little strange that after a message is read it doesn't
1723 necessarily end up with the correct set of labels. Instead one has to
1724 go to the index to get the proper set.
1725
1726 Another strange thing was that when using PollManager::add_messages_from
1727 all my emails ended up being unread (according to the labels in the
1728 message). I tracked that down to it using the value of a header
1729 ("Status") to see whether a mail was read or not. Is that something
1730 that's used for mboxes? (I've attached a patch that removes the code.)
1731
1732 This adds up to some smelliness IMHO. I've done some thinking and I
1733 think I'd like something like this:
1734
1735 - A source has some default labels (including :archive).
1736
1737 - A message is always loaded from a source so it'll get its labels from
1738 the source iff it's a new message. If it's a known message it'll
1739 take its labels from the database.
1740
1741 - Make all sets of labels actual sets.
1742
1743 Would this fit with the way the rest of sup works?
1744
1745 /M
1746
1747 --
1748 Magnus Therning (OpenPGP: 0xAB4DFBA4)
1749 magnus?therning?org Jabber: magnus?therning?gmail?com
1750 http://therning.org/magnus
1751 -------------- next part --------------
1752 A non-text attachment was scrubbed...
1753 Name: sup-lblfix.diff
1754 Type: text/x-diff
1755 Size: 561 bytes
1756 Desc: not available
1757 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070916/6f2933e7/attachment.bin
1758 -------------- next part --------------
1759 A non-text attachment was scrubbed...
1760 Name: not available
1761 Type: application/pgp-signature
1762 Size: 189 bytes
1763 Desc: Digital signature
1764 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070916/6f2933e7/attachment-0001.bin
1765
1766 From wmorgan-sup@masanjin.net Sun Sep 16 14:42:22 2007
1767 From: wmorgan-sup@masanjin.net (William Morgan)
1768 Date: Sun, 16 Sep 2007 11:42:22 -0700
1769 Subject: [sup-talk] Love your commenting style, mate!
1770 In-Reply-To: <20070915181253.GA3416@die.therning.org>
1771 References: <20070915181253.GA3416@die.therning.org>
1772 Message-ID: <1189967752-sup-6095@south>
1773
1774 Excerpts from Magnus Therning's message of Sat Sep 15 11:12:53 -0700 2007:
1775 > Just have to say I _love_ the comment at the top of imap.rb. Don't
1776 > know if you have any experience of standardisation processes but I've
1777 > never heard of any that doesn't defy logic.
1778
1779 Thanks! I wrote that in a pretty frustrated state (obviously) and
1780 rereading it, I don't think IMAP is quite as terrible as I make it out
1781 to be. Though it certainly smacks of design-by-committee, and one also
1782 gets the distinct impression the committee was composed of people who
1783 would be writing servers, not clients.
1784
1785 > Out of curiosity, what brand of imap server is it you have at your
1786 > disposal? (So I can stay away from it.)
1787
1788 The uidvalidity thing was an issue with some version of the UW imap
1789 server I was receiving mail on, and the spurious flag response thing was
1790 some version of Binc that Brian was connecting to. Of course both
1791 servers do perfectly valid things as far as the spec is concerned.
1792
1793
1794 --
1795 William <wmorgan-sup at masanjin.net>
1796
1797 From kevin.mark@verizon.net Sun Sep 16 23:26:44 2007
1798 From: kevin.mark@verizon.net (Kevin Mark)
1799 Date: Sun, 16 Sep 2007 23:26:44 -0400
1800 Subject: [sup-talk] unable to sup-sync (new install)
1801 Message-ID: <20070917032644.GD27677@horacrux>
1802
1803 Hi Sup folks,
1804 I'm using:
1805 Ubuntu gutsy
1806 Sup 0.1
1807 ruby 1.8, 1.9
1808
1809 Tried to install sup with errors.
1810
1811 I later did this:
1812
1813 sudo aptitude install libncurses5-dev ruby1.8-dev rake libopenssl-ruby
1814
1815 and then was able to:
1816
1817 sudo gem install sup -y
1818
1819 To run 'sup', I needed to add 'export PATH=/var/lib/gems/1.8/bin:"${PATH}"' to .bashrc
1820
1821 When I used 'sup-config' it failed on 'sup-sync'.
1822 I tried 'sup-sync' by itself with these errors:
1823
1824 [Sun Sep 16 23:23:08 -0400 2007] locking /home/kevin/.sup/lock...
1825 [Sun Sep 16 23:23:08 -0400 2007] loading index...
1826 [Sun Sep 16 23:23:08 -0400 2007] loaded index of 0 messages
1827 Scanning sup://drafts...
1828 Scanned 0, added 0, updated 0 messages from sup://drafts.
1829 Scanning maildir:/home/kevin/Maildir...
1830 [Sun Sep 16 23:23:08 -0400 2007] saving index and sources...
1831 [Sun Sep 16 23:23:08 -0400 2007] unlocking /home/kevin/.sup/lock...
1832 /var/lib/gems/1.8/gems/sup-0.1/lib/sup/source.rb:80:in `done?': undefined method `>=' for nil:NilClass (NoMethodError)
1833 from /var/lib/gems/1.8/gems/sup-0.1/lib/sup/util.rb:437:in `send'
1834 from /var/lib/gems/1.8/gems/sup-0.1/lib/sup/util.rb:437:in `__pass'
1835 from /var/lib/gems/1.8/gems/sup-0.1/lib/sup/util.rb:426:in `method_missing'
1836 from /var/lib/gems/1.8/gems/sup-0.1/lib/sup/poll.rb:99:in `add_messages_from'
1837 from /var/lib/gems/1.8/gems/sup-0.1/lib/sup/util.rb:401:in `send'
1838 from /var/lib/gems/1.8/gems/sup-0.1/lib/sup/util.rb:401:in `method_missing'
1839 from /var/lib/gems/1.8/gems/sup-0.1/bin/sup-sync:133
1840 from /var/lib/gems/1.8/gems/sup-0.1/bin/sup-sync:128:in `each'
1841 from /var/lib/gems/1.8/gems/sup-0.1/bin/sup-sync:128
1842 from /var/lib/gems/1.8/bin/sup-sync:16:in `load'
1843 from /var/lib/gems/1.8/bin/sup-sync:16
1844
1845 My home directory is '/home/kevin'
1846 My Maildir is '/home/kevin/Maildir'
1847 Any hints to fix this?
1848 -Kev
1849 --
1850 | .''`. == Debian GNU/Linux == | my web site: |
1851 | : :' : The Universal |mysite.verizon.net/kevin.mark/|
1852 | `. `' Operating System | go to counter.li.org and |
1853 | `- http://www.debian.org/ | be counted! #238656 |
1854 | my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
1855 |join the new debian-community.org to help Debian! |
1856 |_______ Unless I ask to be CCd, assume I am subscribed _______|
1857
1858 From wmorgan-sup@masanjin.net Mon Sep 17 13:12:15 2007
1859 From: wmorgan-sup@masanjin.net (William Morgan)
1860 Date: Mon, 17 Sep 2007 10:12:15 -0700
1861 Subject: [sup-talk] unable to sup-sync (new install)
1862 In-Reply-To: <20070917032644.GD27677@horacrux>
1863 References: <20070917032644.GD27677@horacrux>
1864 Message-ID: <1190048921-sup-8612@south>
1865
1866 Excerpts from Kevin Mark's message of Sun Sep 16 20:26:44 -0700 2007:
1867 > sudo gem install sup -y
1868 >
1869 > To run 'sup', I needed to add 'export PATH=/var/lib/gems/1.8/bin:"${PATH}"' to
1870 > .bashrc
1871
1872 This is a symptom of how Ubuntu deals with gems. Unfortunately there's
1873 not a lot I can do about it from my end.
1874
1875 > /var/lib/gems/1.8/gems/sup-0.1/lib/sup/source.rb:80:in `done?': undefined method `>=' for nil:NilClass (NoMethodError)
1876
1877 Is your maildir empty? If so, this is lousy programming on my part.
1878 Sorry! If a maildir has no messages, Sup dies in this horrific way. I've
1879 just committed a patch to SVN to fix this. You can either pull down the
1880 SVN head, or just add a message to your maildir directory. :)
1881
1882 If the maildir isn't empty, then I need to think of another reason why
1883 this would happen.
1884
1885 --
1886 William <wmorgan-sup at masanjin.net>
1887
1888 From wmorgan-sup@masanjin.net Mon Sep 17 13:30:02 2007
1889 From: wmorgan-sup@masanjin.net (William Morgan)
1890 Date: Mon, 17 Sep 2007 10:30:02 -0700
1891 Subject: [sup-talk] Tilde in maildir/mbox paths
1892 In-Reply-To: <20070915101916.GA3361@die.therning.org>
1893 References: <20070907073721.GA10465@die.therning.org>
1894 <1189737312-sup-2958@south>
1895 <20070914213823.GA3321@die.therning.org>
1896 <20070914224426.GA4460@die.therning.org>
1897 <1189827595-sup-6610@south>
1898 <20070915101916.GA3361@die.therning.org>
1899 Message-ID: <1190050189-sup-8357@south>
1900
1901 Excerpts from Magnus Therning's message of Sat Sep 15 03:19:16 -0700 2007:
1902 > I've attached a patch that moves the expansion back to the sub-classes
1903 > again.
1904
1905 Applied, thanks!
1906
1907 --
1908 William <wmorgan-sup at masanjin.net>
1909
1910 From kevin.mark@verizon.net Mon Sep 17 14:07:10 2007
1911 From: kevin.mark@verizon.net (Kevin Mark)
1912 Date: Mon, 17 Sep 2007 14:07:10 -0400
1913 Subject: [sup-talk] unable to sup-sync (new install)
1914 In-Reply-To: <1190048921-sup-8612@south>
1915 References: <20070917032644.GD27677@horacrux> <1190048921-sup-8612@south>
1916 Message-ID: <20070917180710.GI27677@horacrux>
1917
1918 On Mon, Sep 17, 2007 at 10:12:15AM -0700, William Morgan wrote:
1919 > Excerpts from Kevin Mark's message of Sun Sep 16 20:26:44 -0700 2007:
1920 > > sudo gem install sup -y
1921 > >
1922 > > To run 'sup', I needed to add 'export PATH=/var/lib/gems/1.8/bin:"${PATH}"' to
1923 > > .bashrc
1924 >
1925 > This is a symptom of how Ubuntu deals with gems. Unfortunately there's
1926 > not a lot I can do about it from my end.
1927
1928 That sounds like what I expected, as I think Debian, more or less
1929 upstream, may have a similar 'gem' status, although I have not checked.
1930
1931 >
1932 > > /var/lib/gems/1.8/gems/sup-0.1/lib/sup/source.rb:80:in `done?': undefined method `>=' for nil:NilClass (NoMethodError)
1933 >
1934 > Is your maildir empty?
1935
1936 No.
1937
1938 > If so, this is lousy programming on my part. Sorry! If a maildir has
1939 > no messages, Sup dies in this horrific way. I've just committed a
1940 > patch to SVN to fix this. You can either pull down the SVN head, or
1941 > just add a message to your maildir directory. :)
1942
1943 Hmm. No, my maildir has more than a GB. It includes a few subdirectories
1944 of gziped mbox. And most of the maildir mail boxes start with '.', as in
1945 '~/Maildir/.floss.sup_talk/'
1946
1947 >
1948 > If the maildir isn't empty, then I need to think of another reason why
1949 > this would happen.
1950
1951 Here is a sample:
1952 /home/kevin/Maildir/.people.cothrige
1953 /home/kevin/Maildir/.people.cothrige/cur
1954 /home/kevin/Maildir/.people.cothrige/new
1955 /home/kevin/Maildir/.people.cothrige/tmp
1956 /home/kevin/Maildir/.people.dallas_a_clement
1957 /home/kevin/Maildir/.people.dallas_a_clement/cur
1958 /home/kevin/Maildir/.people.dallas_a_clement/new
1959 /home/kevin/Maildir/.people.dallas_a_clement/tmp
1960 /home/kevin/Maildir/.people.dana_spiegel
1961 /home/kevin/Maildir/.people.dana_spiegel/cur
1962 /home/kevin/Maildir/.people.dana_spiegel/new
1963 /home/kevin/Maildir/.people.dana_spiegel/tmp
1964 /home/kevin/Maildir/.people.david_weinehall
1965 /home/kevin/Maildir/.people.david_weinehall/cur
1966 /home/kevin/Maildir/.people.david_weinehall/new
1967 /home/kevin/Maildir/.people.david_weinehall/tmp
1968 /home/kevin/Maildir/.people.enrico_zini
1969
1970 I just have one thought as to the error:
1971 there are many mail directories and some of them are empty. I archive
1972 them every month. So '/home/kevin/Maildir/.david_weinehall/*' does not
1973 have any messages.
1974
1975 I just thought of a second issue. In sup-config, you ask to define each
1976 individual mailbox. What I did in the program 'mairix' is to define a
1977 group of mail boxes with some kind of 'glob' so that I can say
1978 'maildir/...' and mean all maildir's in that subdirectory.
1979
1980 cheers,
1981 Kev
1982
1983 --
1984 | .''`. == Debian GNU/Linux == | my web site: |
1985 | : :' : The Universal |mysite.verizon.net/kevin.mark/|
1986 | `. `' Operating System | go to counter.li.org and |
1987 | `- http://www.debian.org/ | be counted! #238656 |
1988 | my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
1989 |join the new debian-community.org to help Debian! |
1990 |_______ Unless I ask to be CCd, assume I am subscribed _______|
1991
1992 From wmorgan-sup@masanjin.net Mon Sep 17 14:59:40 2007
1993 From: wmorgan-sup@masanjin.net (William Morgan)
1994 Date: Mon, 17 Sep 2007 11:59:40 -0700
1995 Subject: [sup-talk] unable to sup-sync (new install)
1996 In-Reply-To: <20070917180710.GI27677@horacrux>
1997 References: <20070917032644.GD27677@horacrux> <1190048921-sup-8612@south>
1998 <20070917180710.GI27677@horacrux>
1999 Message-ID: <1190055410-sup-4972@south>
2000
2001 Excerpts from Kevin Mark's message of Mon Sep 17 11:07:10 -0700 2007:
2002 > Here is a sample:
2003 > /home/kevin/Maildir/.people.cothrige
2004 > /home/kevin/Maildir/.people.cothrige/cur
2005 > /home/kevin/Maildir/.people.cothrige/new
2006 > /home/kevin/Maildir/.people.cothrige/tmp
2007 > /home/kevin/Maildir/.people.enrico_zini
2008
2009 Ah, maildir folders. I will have to write some code to support this.
2010 Sorry!
2011
2012 --
2013 William <wmorgan-sup at masanjin.net>
2014
2015 From magnus@therning.org Mon Sep 17 06:55:18 2007
2016 From: magnus@therning.org (Magnus Therning)
2017 Date: Mon, 17 Sep 2007 11:55:18 +0100
2018 Subject: [sup-talk] More maildir
2019 In-Reply-To: <1189740804-sup-800@south>
2020 References: <20070913101519.GA22606@die.therning.org>
2021 <1189740804-sup-800@south>
2022 Message-ID: <20070917105518.GB3564@die.therning.org>
2023
2024 On Thu, Sep 13, 2007 at 20:42:15 -0700, William Morgan wrote:
2025 >Excerpts from Magnus Therning's message of Thu Sep 13 03:15:19 -0700 2007:
2026 >> I've attached a patch that adds methods that'll make it easier for sup
2027 >> to play nice with other MUAs when using maildir for storage.
2028 >
2029 >Applied! I merged in the several patches you sent into one revision. "svn
2030 >diff -r572:573" should give it to you.
2031 >
2032 >I no longer use Maildir so it's up to you to test it. :)
2033
2034 No worries. However, if there were unit tests... ;-)
2035
2036 I've attached another small patch that equates maildir's concept of a
2037 flagged message with sup's concept of a starred message. Seems like an
2038 obvious thing that didn't hit me until walking to work this morning...
2039
2040 /M
2041
2042 --
2043 Magnus Therning (OpenPGP: 0xAB4DFBA4)
2044 magnus?therning?org Jabber: magnus?therning?gmail?com
2045 http://therning.org/magnus
2046 -------------- next part --------------
2047 A non-text attachment was scrubbed...
2048 Name: sup_starred-1.diff
2049 Type: text/x-diff
2050 Size: 488 bytes
2051 Desc: not available
2052 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070917/19bba085/attachment.bin
2053 -------------- next part --------------
2054 A non-text attachment was scrubbed...
2055 Name: not available
2056 Type: application/pgp-signature
2057 Size: 189 bytes
2058 Desc: not available
2059 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070917/19bba085/attachment-0001.bin
2060
2061 From kevin.mark@verizon.net Tue Sep 18 02:26:53 2007
2062 From: kevin.mark@verizon.net (Kevin Mark)
2063 Date: Tue, 18 Sep 2007 02:26:53 -0400
2064 Subject: [sup-talk] unable to sup-sync (new install)
2065 In-Reply-To: <1190055410-sup-4972@south>
2066 References: <20070917032644.GD27677@horacrux> <1190048921-sup-8612@south>
2067 <20070917180710.GI27677@horacrux> <1190055410-sup-4972@south>
2068 Message-ID: <20070918062653.GB22902@horacrux>
2069
2070 On Mon, Sep 17, 2007 at 11:59:40AM -0700, William Morgan wrote:
2071 > Excerpts from Kevin Mark's message of Mon Sep 17 11:07:10 -0700 2007:
2072 > > Here is a sample:
2073 > > /home/kevin/Maildir/.people.cothrige
2074 > > /home/kevin/Maildir/.people.cothrige/cur
2075 > > /home/kevin/Maildir/.people.cothrige/new
2076 > > /home/kevin/Maildir/.people.cothrige/tmp
2077 > > /home/kevin/Maildir/.people.enrico_zini
2078 >
2079 > Ah, maildir folders. I will have to write some code to support this.
2080 > Sorry!
2081
2082 I made some progress on understanding what the config files wanted. I
2083 added a single maildir and that worked. So until I create a small script
2084 to 'find /home/kevin/Maildir/ -type d| create_sup_config', I will add a
2085 few folders. With mutt I have a script that, upon startup, generates
2086 what maildirs it sees:
2087 mailboxes `echo -n "+ "; cd ~/Maildir; for mb in $(find .|grep "/new/" |rev|cut -d/ -f3-|rev|sort|uniq); do echo -n "+'$mb' "; done`
2088
2089 One more thing, is there a way to read one message and go to the next
2090 one. In mutt, when you read one message, you can hit 'space' at the
2091 bottom of a message and then proceed to the next.
2092
2093 The only thing I need to research is how to set up my 'mail sending'
2094 config. On mutt, I did nothing to set it up with exim on ubuntu/debian.
2095 So I can't send yet.
2096
2097 Keep up the good work! So far, I think this is going in an interesting
2098 direction and I'm waiting to see where its going to end up.
2099 -K
2100 --
2101 | .''`. == Debian GNU/Linux == | my web site: |
2102 | : :' : The Universal |mysite.verizon.net/kevin.mark/|
2103 | `. `' Operating System | go to counter.li.org and |
2104 | `- http://www.debian.org/ | be counted! #238656 |
2105 | my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
2106 |join the new debian-community.org to help Debian! |
2107 |_______ Unless I ask to be CCd, assume I am subscribed _______|
2108
2109 From magnus@therning.org Tue Sep 18 02:27:23 2007
2110 From: magnus@therning.org (Magnus Therning)
2111 Date: Tue, 18 Sep 2007 07:27:23 +0100
2112 Subject: [sup-talk] unable to sup-sync (new install)
2113 In-Reply-To: <20070917180710.GI27677@horacrux>
2114 References: <20070917032644.GD27677@horacrux> <1190048921-sup-8612@south>
2115 <20070917180710.GI27677@horacrux>
2116 Message-ID: <20070918062723.GA3384@die.therning.org>
2117
2118 On Mon, Sep 17, 2007 at 14:07:10 -0400, Kevin Mark wrote:
2119 [..]
2120 >I just thought of a second issue. In sup-config, you ask to define each
2121 >individual mailbox. What I did in the program 'mairix' is to define a
2122 >group of mail boxes with some kind of 'glob' so that I can say
2123 >'maildir/...' and mean all maildir's in that subdirectory.
2124
2125 If support for maildir++ is added (that's the extension to maildir that
2126 allows sub-folders) then it would make sense to just add
2127 maildir:~/Maildir and have all sub folders added as well.
2128
2129 For the time being I would suggest not configuring any mailboxes in
2130 sup-config. Use sup-add instead and you'll have access to all the
2131 globbing your shell supports.
2132
2133 /M
2134
2135 --
2136 Magnus Therning (OpenPGP: 0xAB4DFBA4)
2137 magnus?therning?org Jabber: magnus?therning?gmail?com
2138 http://therning.org/magnus
2139 -------------- next part --------------
2140 A non-text attachment was scrubbed...
2141 Name: not available
2142 Type: application/pgp-signature
2143 Size: 189 bytes
2144 Desc: Digital signature
2145 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070918/c3d88829/attachment.bin
2146
2147 From magnus@therning.org Tue Sep 18 02:38:52 2007
2148 From: magnus@therning.org (Magnus Therning)
2149 Date: Tue, 18 Sep 2007 07:38:52 +0100
2150 Subject: [sup-talk] unable to sup-sync (new install)
2151 In-Reply-To: <1190048921-sup-8612@south>
2152 References: <20070917032644.GD27677@horacrux> <1190048921-sup-8612@south>
2153 Message-ID: <20070918063852.GB3384@die.therning.org>
2154
2155 On Mon, Sep 17, 2007 at 10:12:15 -0700, William Morgan wrote:
2156 >Excerpts from Kevin Mark's message of Sun Sep 16 20:26:44 -0700 2007:
2157 >> sudo gem install sup -y
2158 >>
2159 >> To run 'sup', I needed to add 'export
2160 >> PATH=/var/lib/gems/1.8/bin:"${PATH}"' to .bashrc
2161 >
2162 >This is a symptom of how Ubuntu deals with gems. Unfortunately there's
2163 >not a lot I can do about it from my end.
2164
2165 There is one thing you _can_ do--make sup easy to package by providing a
2166 setup.rb or install.rb for installation.
2167
2168 Ruby gems and Python eggs seem to suffer from the same problem; they
2169 don't just deal with packaging but also with versioning and they do it
2170 in a way that makes packaging in Linux distros difficult.
2171
2172 See http://pkg-ruby-extras.alioth.debian.org/rubygems.html for Debian's
2173 position on gems.
2174
2175 /M
2176
2177 --
2178 Magnus Therning (OpenPGP: 0xAB4DFBA4)
2179 magnus?therning?org Jabber: magnus?therning?gmail?com
2180 http://therning.org/magnus
2181 -------------- next part --------------
2182 A non-text attachment was scrubbed...
2183 Name: not available
2184 Type: application/pgp-signature
2185 Size: 189 bytes
2186 Desc: Digital signature
2187 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070918/4facb50f/attachment.bin
2188
2189 From kevin.mark@verizon.net Tue Sep 18 02:54:57 2007
2190 From: kevin.mark@verizon.net (Kevin Mark)
2191 Date: Tue, 18 Sep 2007 02:54:57 -0400
2192 Subject: [sup-talk] unable to sup-sync (new install)
2193 In-Reply-To: <20070918063852.GB3384@die.therning.org>
2194 References: <20070917032644.GD27677@horacrux> <1190048921-sup-8612@south>
2195 <20070918063852.GB3384@die.therning.org>
2196 Message-ID: <20070918065457.GF22902@horacrux>
2197
2198 On Tue, Sep 18, 2007 at 07:38:52AM +0100, Magnus Therning wrote:
2199 > On Mon, Sep 17, 2007 at 10:12:15 -0700, William Morgan wrote:
2200 > >Excerpts from Kevin Mark's message of Sun Sep 16 20:26:44 -0700 2007:
2201 > >> sudo gem install sup -y
2202 > >>
2203 > >> To run 'sup', I needed to add 'export
2204 > >> PATH=/var/lib/gems/1.8/bin:"${PATH}"' to .bashrc
2205 > >
2206 > >This is a symptom of how Ubuntu deals with gems. Unfortunately there's
2207 > >not a lot I can do about it from my end.
2208 >
2209 > There is one thing you _can_ do--make sup easy to package by providing a
2210 > setup.rb or install.rb for installation.
2211 >
2212 > Ruby gems and Python eggs seem to suffer from the same problem; they
2213 > don't just deal with packaging but also with versioning and they do it
2214 > in a way that makes packaging in Linux distros difficult.
2215 >
2216 > See http://pkg-ruby-extras.alioth.debian.org/rubygems.html for Debian's
2217 > position on gems.
2218 >
2219 > /M
2220 If my understanding is correct, these 'gems' thingies are packages which
2221 are outside of the perview of dpkg or other packaging system. Which
2222 means it would be great if someone found a way for their status to be
2223 communicated to the packaging system?
2224
2225 --
2226 | .''`. == Debian GNU/Linux == | my web site: |
2227 | : :' : The Universal |mysite.verizon.net/kevin.mark/|
2228 | `. `' Operating System | go to counter.li.org and |
2229 | `- http://www.debian.org/ | be counted! #238656 |
2230 | my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
2231 |join the new debian-community.org to help Debian! |
2232 |_______ Unless I ask to be CCd, assume I am subscribed _______|
2233
2234 From wmorgan-sup@masanjin.net Tue Sep 18 19:18:59 2007
2235 From: wmorgan-sup@masanjin.net (William Morgan)
2236 Date: Tue, 18 Sep 2007 16:18:59 -0700
2237 Subject: [sup-talk] unable to sup-sync (new install)
2238 In-Reply-To: <20070918062723.GA3384@die.therning.org>
2239 References: <20070917032644.GD27677@horacrux> <1190048921-sup-8612@south>
2240 <20070917180710.GI27677@horacrux>
2241 <20070918062723.GA3384@die.therning.org>
2242 Message-ID: <1190157448-sup-1522@south>
2243
2244 Excerpts from Magnus Therning's message of Mon Sep 17 23:27:23 -0700 2007:
2245 > If support for maildir++ is added (that's the extension to maildir
2246 > that allows sub-folders) then it would make sense to just add
2247 > maildir:~/Maildir and have all sub folders added as well.
2248
2249 I've received a similar request for IMAP (add all folders at once). In
2250 the mean time, as you point out, you can sup-add each Maildir folder
2251 individually and take advantage of shell globbing to do it one command
2252 if desired. I'm content to leave it at that for the near future and not
2253 invest time in explicit Maildir++ support.
2254
2255 --
2256 William <wmorgan-sup at masanjin.net>
2257
2258 From kevin.mark@verizon.net Tue Sep 18 21:39:16 2007
2259 From: kevin.mark@verizon.net (Kevin Mark)
2260 Date: Tue, 18 Sep 2007 21:39:16 -0400
2261 Subject: [sup-talk] unable to sup-sync (new install)
2262 In-Reply-To: <1190157448-sup-1522@south>
2263 References: <20070917032644.GD27677@horacrux> <1190048921-sup-8612@south>
2264 <20070917180710.GI27677@horacrux>
2265 <20070918062723.GA3384@die.therning.org>
2266 <1190157448-sup-1522@south>
2267 Message-ID: <20070919013916.GG22902@horacrux>
2268
2269 On Tue, Sep 18, 2007 at 04:18:59PM -0700, William Morgan wrote:
2270 > Excerpts from Magnus Therning's message of Mon Sep 17 23:27:23 -0700 2007:
2271 > > If support for maildir++ is added (that's the extension to maildir
2272 > > that allows sub-folders) then it would make sense to just add
2273 > > maildir:~/Maildir and have all sub folders added as well.
2274 >
2275 > I've received a similar request for IMAP (add all folders at once). In
2276 > the mean time, as you point out, you can sup-add each Maildir folder
2277 > individually and take advantage of shell globbing to do it one command
2278 > if desired. I'm content to leave it at that for the near future and not
2279 > invest time in explicit Maildir++ support.
2280 >
2281 > --
2282 > William <wmorgan-sup at masanjin.net>
2283 > _______________________________________________
2284 > sup-talk mailing list
2285 > sup-talk at rubyforge.org
2286 > http://rubyforge.org/mailman/listinfo/sup-talk
2287 >
2288 I used this to add my maildir:
2289 ======================================
2290 find ~/Maildir -type d|grep "/cur$"|rev|cut -d"/" -f2-|rev|grep -vi mfolder|while read line; do
2291 N=$(ls $line/cur/|wc -l)
2292 #find the number of messages
2293 #only add if non-zero (otherwise error?)
2294 if [ "$N" != "0" ]; then
2295 sup-add maildir:$line/;
2296 fi
2297 done
2298 ======================================
2299 sup-add noted duplicates, which is good.
2300 -K
2301 --
2302 | .''`. == Debian GNU/Linux == | my web site: |
2303 | : :' : The Universal |mysite.verizon.net/kevin.mark/|
2304 | `. `' Operating System | go to counter.li.org and |
2305 | `- http://www.debian.org/ | be counted! #238656 |
2306 | my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
2307 |join the new debian-community.org to help Debian! |
2308 |_______ Unless I ask to be CCd, assume I am subscribed _______|
2309
2310 From jtang@tchpc.tcd.ie Wed Sep 19 08:36:16 2007
2311 From: jtang@tchpc.tcd.ie (Jimmy Tang)
2312 Date: Wed, 19 Sep 2007 13:36:16 +0100
2313 Subject: [sup-talk] problems with rubymail on an initial sup-add/sync
2314 Message-ID: <20070919123616.GA24149@vual.tchpc.tcd.ie>
2315
2316 Hi,
2317
2318 I've just installed 0.1 of sup with the current stable version of ruby via gems.
2319
2320 i've just tried adding some of my mbox's and this seems to happen...
2321
2322
2323 Scanning mbox:///u1/trhpc/jtang/Mail/system.rancid...
2324 Scanned 0, added 0, updated 0 messages from mbox:///u1/trhpc/jtang/Mail/system.rancid.
2325 Scanning sup://drafts...
2326 Scanned 0, added 0, updated 0 messages from sup://drafts.
2327 Scanning mbox:///u1/trhpc/jtang/Mail/system.RequestTracker...
2328 ## 2300 (61.25%) read; 0:01:00 elapsed; 0:00:37 remaining
2329 [Wed Sep 19 13:32:59 +0100 2007] problem getting messages from mbox:///u1/trhpc/jtang/Mail/system.RequestTracker: For some bizarre reason, RubyMail was unable to parse this message.
2330 [Wed Sep 19 13:32:59 +0100 2007] problem getting messages from mbox:///u1/trhpc/jtang/Mail/system.RequestTracker: For some bizarre reason, RubyMail was unable to parse this message.
2331
2332 is there anyway of turning on more debugging to see whats causing the problem...?
2333
2334 i tried using -v on the commandline as well but it doesnt seem to say anything...
2335
2336
2337 Thanks,
2338 Jimmy
2339
2340 --
2341 Jimmy Tang
2342 Trinity Centre for High Performance Computing,
2343 Lloyd Building, Trinity College Dublin, Dublin 2, Ireland.
2344 http://www.tchpc.tcd.ie/ | http://www.tchpc.tcd.ie/~jtang
2345
2346 From wmorgan-sup@masanjin.net Wed Sep 19 10:41:12 2007
2347 From: wmorgan-sup@masanjin.net (William Morgan)
2348 Date: Wed, 19 Sep 2007 07:41:12 -0700
2349 Subject: [sup-talk] problems with rubymail on an initial sup-add/sync
2350 In-Reply-To: <20070919123616.GA24149@vual.tchpc.tcd.ie>
2351 References: <20070919123616.GA24149@vual.tchpc.tcd.ie>
2352 Message-ID: <1190212675-sup-5699@south>
2353
2354 Excerpts from Jimmy Tang's message of Wed Sep 19 05:36:16 -0700 2007:
2355 > [Wed Sep 19 13:32:59 +0100 2007] problem getting messages from mbox:///u1/trhpc/jtang/Mail/system.RequestTracker: For some bizarre reason, RubyMail was unable to parse this message.
2356
2357 Interesting. I've never seen that triggered, to date. Congratulations!
2358 Basically this means I asked RubyMail to parse the message, and RubyMail
2359 gave up.
2360
2361 > is there anyway of turning on more debugging to see whats causing the
2362 > problem...?
2363
2364 Unfortunately no. The best I can offer is the following patch against
2365 0.1, which will print out the message ids. You can then grep the mbox
2366 for those and see if there's anything weird about the messages. I'm
2367 guessing the MIME is screwed up in such a way that RubyMail chokes.
2368
2369 I'm interested in figuring out why this happens.
2370
2371 --- cut here ---
2372 --- lib/sup/message.rb (revision 503)
2373 +++ lib/sup/message.rb (working copy)
2374 @@ -320,7 +320,7 @@
2375 $1
2376 end
2377
2378 - m.body && body = m.decode or raise MessageFormatError, "For some bizarre reason, RubyMail was unable to parse this message."
2379 + m.body && body = m.decode or raise MessageFormatError, "For some bizarre reason, RubyMail was unable to parse this message (#{m.header['message-id']})."
2380
2381 if charset
2382 begin
2383 --- cut here ---
2384
2385 --
2386 William <wmorgan-sup at masanjin.net>
2387
2388 From wmorgan-sup@masanjin.net Wed Sep 19 11:59:58 2007
2389 From: wmorgan-sup@masanjin.net (William Morgan)
2390 Date: Wed, 19 Sep 2007 08:59:58 -0700
2391 Subject: [sup-talk] Minor maildir change
2392 In-Reply-To: <20070916181936.GA5332@die.therning.org>
2393 References: <20070909224034.GA3540@die.therning.org>
2394 <1189740088-sup-6296@south>
2395 <20070916181936.GA5332@die.therning.org>
2396 Message-ID: <1190216731-sup-3428@south>
2397
2398 Excerpts from Magnus Therning's message of Sun Sep 16 11:19:36 -0700 2007:
2399 > It's also a little strange that after a message is read it doesn't
2400 > necessarily end up with the correct set of labels. Instead one has to
2401 > go to the index to get the proper set.
2402
2403 What do you mean? For a new, unseen message, the initial set of label is
2404 uniquely determined by the source's default labels, unioned with
2405 whatever state (read/unread, flagged, etc) we carry over from the
2406 source. This is what Source#each does.
2407
2408 Now sup-sync has some complicated behavior that does involve the labels
2409 on the index, but that has to do with situations where the message
2410 already exists in the index, or the message state exists in a dumpfile
2411 somewhere, and you're resolving the two potentially different label
2412 sets.
2413
2414 > Another strange thing was that when using
2415 > PollManager::add_messages_from all my emails ended up being unread
2416 > (according to the labels in the message). I tracked that down to it
2417 > using the value of a header ("Status") to see whether a mail was read
2418 > or not. Is that something that's used for mboxes? (I've attached a
2419 > patch that removes the code.)
2420
2421 That is a hack to avoid having the mbox code read the header twice, one
2422 for the labels and again for the actual header contents. Since I'm
2423 planning on reworking mbox anyways (to avoid keeping the file pointer
2424 always open, and to clean up the interface between loader and
2425 ssh-loader), so I'll try and think of a better way to do this. There
2426 might not be.
2427
2428 In the mean time, I'll remove the second half of that statement, which
2429 should make everyone happy.
2430
2431 > - A source has some default labels (including :archive).
2432 >
2433 > - A message is always loaded from a source so it'll get its labels from
2434 > the source iff it's a new message. If it's a known message it'll
2435 > take its labels from the database.
2436 >
2437 > - Make all sets of labels actual sets.
2438
2439 Not sure what you mean by "actual sets", but I think this is pretty much
2440 the way Sup works now.
2441
2442 --
2443 William <wmorgan-sup at masanjin.net>
2444
2445 From wmorgan-sup@masanjin.net Wed Sep 19 12:02:06 2007
2446 From: wmorgan-sup@masanjin.net (William Morgan)
2447 Date: Wed, 19 Sep 2007 09:02:06 -0700
2448 Subject: [sup-talk] More maildir
2449 In-Reply-To: <20070917105518.GB3564@die.therning.org>
2450 References: <20070913101519.GA22606@die.therning.org>
2451 <1189740804-sup-800@south> <20070917105518.GB3564@die.therning.org>
2452 Message-ID: <1190217703-sup-3960@south>
2453
2454 Excerpts from Magnus Therning's message of Mon Sep 17 03:55:18 -0700 2007:
2455 > No worries. However, if there were unit tests... ;-)
2456
2457 Patches accepted! :)
2458
2459 > I've attached another small patch that equates maildir's concept of a
2460 > flagged message with sup's concept of a starred message.
2461
2462 Applied, thanks.
2463
2464 --
2465 William <wmorgan-sup at masanjin.net>
2466
2467 From magnus@therning.org Wed Sep 19 18:02:00 2007
2468 From: magnus@therning.org (Magnus Therning)
2469 Date: Wed, 19 Sep 2007 23:02:00 +0100
2470 Subject: [sup-talk] Minor maildir change
2471 In-Reply-To: <1190216731-sup-3428@south>
2472 References: <20070909224034.GA3540@die.therning.org>
2473 <1189740088-sup-6296@south>
2474 <20070916181936.GA5332@die.therning.org>
2475 <1190216731-sup-3428@south>
2476 Message-ID: <20070919220200.GA3436@die.therning.org>
2477
2478 On Wed, Sep 19, 2007 at 08:59:58 -0700, William Morgan wrote:
2479 >Excerpts from Magnus Therning's message of Sun Sep 16 11:19:36 -0700 2007:
2480 >> It's also a little strange that after a message is read it doesn't
2481 >> necessarily end up with the correct set of labels. Instead one has to
2482 >> go to the index to get the proper set.
2483 >
2484 >What do you mean? For a new, unseen message, the initial set of label
2485 >is uniquely determined by the source's default labels, unioned with
2486 >whatever state (read/unread, flagged, etc) we carry over from the
2487 >source. This is what Source#each does.
2488
2489 Yes, but once it's known Source#each still get labels off the state and
2490 default flags from the source. The same goes for
2491 PollManager#add_messages_from, where the messages will have different
2492 labels compared to the entry. Here's code that hopefully highlight
2493 what I mean:
2494
2495 #!/usr/bin/env ruby
2496
2497 require "uri"
2498 require "sup"
2499
2500 Redwood::start
2501 index = Redwood::Index.new
2502 index.load
2503
2504 index.sources.each { |src|
2505 if "maildir" == URI(src.uri).scheme
2506 src.reset!
2507
2508 Redwood::PollManager.add_messages_from(src) { |m, offset, entry|
2509 puts "#{offset} -"
2510 puts "\t#{m.labels.join(' ')}"
2511 puts "\t#{entry[:label]}"
2512 nil
2513 }
2514 end
2515 }
2516
2517 The output on a maildir source I use for some testing is:
2518
2519 [Wed Sep 19 22:55:02 +0100 2007] loading index...
2520 [Wed Sep 19 22:55:02 +0100 2007] loaded index of 3 messages
2521 11755314090094973 -
2522 sup-test unread deleted inbox
2523 sup-test
2524 11765622040003515 -
2525 sup-test unread inbox
2526 sup-test deleted
2527 11776152050016455 -
2528 sup-test inbox unread
2529 sup-test unread
2530
2531 What's gotten from the source is useful for an unseen message, but why
2532 not mark known messages with the labels from the index?
2533
2534 >> Another strange thing was that when using
2535 >> PollManager::add_messages_from all my emails ended up being unread
2536 >> (according to the labels in the message). I tracked that down to it
2537 >> using the value of a header ("Status") to see whether a mail was read
2538 >> or not. Is that something that's used for mboxes? (I've attached a
2539 >> patch that removes the code.)
2540 >
2541 >That is a hack to avoid having the mbox code read the header twice, one
2542 >for the labels and again for the actual header contents. Since I'm
2543 >planning on reworking mbox anyways (to avoid keeping the file pointer
2544 >always open, and to clean up the interface between loader and
2545 >ssh-loader), so I'll try and think of a better way to do this. There
2546 >might not be.
2547 >
2548 >In the mean time, I'll remove the second half of that statement, which
2549 >should make everyone happy.
2550
2551 Excellent.
2552
2553 [..]
2554 >> - Make all sets of labels actual sets.
2555 >
2556 >Not sure what you mean by "actual sets", but I think this is pretty
2557 >much the way Sup works now.
2558
2559 What I mean is the type set gotten from "require 'set'" :) Currently
2560 labels are lists, not sets.
2561
2562 /M
2563
2564 --
2565 Magnus Therning (OpenPGP: 0xAB4DFBA4)
2566 magnus?therning?org Jabber: magnus?therning?gmail?com
2567 http://therning.org/magnus
2568 -------------- next part --------------
2569 A non-text attachment was scrubbed...
2570 Name: not available
2571 Type: application/pgp-signature
2572 Size: 189 bytes
2573 Desc: Digital signature
2574 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070919/8103ec01/attachment.bin
2575
2576 From jtang@tchpc.tcd.ie Wed Sep 19 18:44:56 2007
2577 From: jtang@tchpc.tcd.ie (Jimmy Tang)
2578 Date: Wed, 19 Sep 2007 23:44:56 +0100
2579 Subject: [sup-talk] problems with rubymail on an initial sup-add/sync
2580 In-Reply-To: <20070919123616.GA24149@vual.tchpc.tcd.ie>
2581 References: <sfid-H20070919-141338-+042.23-1@vual.tchpc.tcd.ie>
2582 <20070919123616.GA24149@vual.tchpc.tcd.ie>
2583 Message-ID: <1190241733-sup-1342@vual.tchpc.tcd.ie>
2584
2585 Hi again
2586
2587 replying to my own mail, i eventually figured out why the previous problem was failing (corrupt mbox's)
2588 but now, this is happening after starting up sup for about 5mins as it scans my mboxes
2589
2590 23:32:23 jtang at vual ~ $ sup
2591 /u1/trhpc/jtang/local/ruby/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/buffer.rb:32: warning: already initialized constant KEY_ENTER
2592 /u1/trhpc/jtang/local/ruby/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/buffer.rb:33: warning: already initialized constant KEY_CANCEL
2593 [Wed Sep 19 23:32:25 +0100 2007] locking /u1/trhpc/jtang/.sup/lock...
2594 [Wed Sep 19 23:32:25 +0100 2007] loading index...
2595 [Wed Sep 19 23:32:25 +0100 2007] loaded index of 65133 messages
2596 [Wed Sep 19 23:32:25 +0100 2007] starting curses
2597 [Wed Sep 19 23:41:20 +0100 2007] stopped cursing
2598 [Wed Sep 19 23:41:20 +0100 2007] oh crap, an exception
2599 [Wed Sep 19 23:41:20 +0100 2007] unlocking /u1/trhpc/jtang/.sup/lock...
2600 ----------------------------------------------------------------
2601 I'm very sorry, but it seems that an error occurred in Sup.
2602 Please accept my sincere apologies. If you don't mind, please
2603 send the backtrace below and a brief report of the circumstances
2604 to sup-talk at rubyforge dot orgs so that I might address this
2605 problem. Thank you!
2606
2607 Sincerely,
2608 William
2609 ----------------------------------------------------------------
2610
2611 The problem was: 'just added message <200610312309.38117.rj200@ but couldn't find it in a search' (error type RuntimeError)
2612 A backtrace follows:
2613 /u1/trhpc/jtang/local/ruby/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/index.rb:187:in `sync_message': just added message <200610312309.38117.rj200@ but couldn't find it in a search (RuntimeError)
2614 from /u1/trhpc/jtang/local/ruby/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/util.rb:401:in `send'
2615 from /u1/trhpc/jtang/local/ruby/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/util.rb:401:in `method_missing'
2616 from /u1/trhpc/jtang/local/ruby/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/poll.rb:122:in `add_messages_from'
2617 from /u1/trhpc/jtang/local/ruby/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/source.rb:93:in `each'
2618 from /u1/trhpc/jtang/local/ruby/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/util.rb:437:in `send'
2619 from /u1/trhpc/jtang/local/ruby/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/util.rb:437:in `__pass'
2620 from /u1/trhpc/jtang/local/ruby/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/util.rb:426:in `method_missing'
2621 from /u1/trhpc/jtang/local/ruby/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/poll.rb:101:in `add_messages_from'
2622 ... 26 levels...
2623 from /u1/trhpc/jtang/local/ruby/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/modes/thread-index-mode.rb:394:in `load_threads'
2624 from /u1/trhpc/jtang/local/ruby/lib/ruby/gems/1.8/gems/sup-0.1/bin/sup:173
2625 from /u1/trhpc/jtang/local/ruby/bin/sup:16:in `load'
2626 from /u1/trhpc/jtang/local/ruby/bin/sup:16
2627
2628
2629 Thanks,
2630 Jimmy
2631
2632 Excerpts from Jimmy Tang's message of Wed Sep 19 13:36:16 +0100 2007:
2633 > Hi,
2634 >
2635 > I've just installed 0.1 of sup with the current stable version of ruby via gems.
2636 >
2637 > i've just tried adding some of my mbox's and this seems to happen...
2638 >
2639 >
2640 > Scanning mbox:///u1/trhpc/jtang/Mail/system.rancid...
2641 > Scanned 0, added 0, updated 0 messages from
2642 > mbox:///u1/trhpc/jtang/Mail/system.rancid.
2643 > Scanning sup://drafts...
2644 > Scanned 0, added 0, updated 0 messages from sup://drafts.
2645 > Scanning mbox:///u1/trhpc/jtang/Mail/system.RequestTracker...
2646 > ## 2300 (61.25%) read; 0:01:00 elapsed; 0:00:37 remaining
2647 > [Wed Sep 19 13:32:59 +0100 2007] problem getting messages from
2648 > mbox:///u1/trhpc/jtang/Mail/system.RequestTracker: For some bizarre reason,
2649 > RubyMail was unable to parse this message.
2650 > [Wed Sep 19 13:32:59 +0100 2007] problem getting messages from
2651 > mbox:///u1/trhpc/jtang/Mail/system.RequestTracker: For some bizarre reason,
2652 > RubyMail was unable to parse this message.
2653 >
2654 > is there anyway of turning on more debugging to see whats causing the
2655 > problem...?
2656 >
2657 > i tried using -v on the commandline as well but it doesnt seem to say
2658 > anything...
2659 >
2660 >
2661 > Thanks,
2662 > Jimmy
2663 >
2664
2665 --
2666 Jimmy Tang
2667 Trinity Centre for High Performance Computing,
2668 Lloyd Building, Trinity College Dublin, Dublin 2, Ireland.
2669 http://www.tchpc.tcd.ie/ | http://www.tchpc.tcd.ie/~jtang
2670
2671 From jtang@tchpc.tcd.ie Thu Sep 20 10:31:09 2007
2672 From: jtang@tchpc.tcd.ie (Jimmy Tang)
2673 Date: Thu, 20 Sep 2007 15:31:09 +0100
2674 Subject: [sup-talk] problems with rubymail on an initial sup-add/sync
2675 In-Reply-To: <1190212675-sup-5699@south>
2676 References: <20070919123616.GA24149@vual.tchpc.tcd.ie>
2677 <sfid-H20070919-154233-+013.70-1@vual.tchpc.tcd.ie>
2678 <1190212675-sup-5699@south>
2679 Message-ID: <1190298293-sup-7853@vual.tchpc.tcd.ie>
2680
2681 Hi William,
2682
2683 Excerpts from William Morgan's message of Wed Sep 19 15:41:12 +0100 2007:
2684 > Excerpts from Jimmy Tang's message of Wed Sep 19 05:36:16 -0700 2007:
2685 > > [Wed Sep 19 13:32:59 +0100 2007] problem getting messages from mbox:///u1/trhpc/jtang/Mail/system.RequestTracker: For some bizarre reason, RubyMail was unable to parse this message.
2686 >
2687 > Interesting. I've never seen that triggered, to date. Congratulations!
2688 > Basically this means I asked RubyMail to parse the message, and RubyMail
2689 > gave up.
2690 >
2691
2692 not too sure whats wrong with that mail box, i eventually found the
2693 offending mails and *cough* just deleted them *cough* they are just old
2694 archives that I have that i wanted indexed.
2695
2696 > > is there anyway of turning on more debugging to see whats causing the
2697 > > problem...?
2698 >
2699 > Unfortunately no. The best I can offer is the following patch against
2700 > 0.1, which will print out the message ids. You can then grep the mbox
2701 > for those and see if there's anything weird about the messages. I'm
2702 > guessing the MIME is screwed up in such a way that RubyMail chokes.
2703 >
2704 > I'm interested in figuring out why this happens.
2705
2706 Thanks for the small patch, if i come across it again, i will save the
2707 email and send it on to you to figure out whats broken. In hindsight I
2708 should have kept some samples before deleting things.
2709
2710 on a slightly off topic on sup, i've eventually got sup working
2711 relatively well with my archives of mail. and i quite like it :), I have
2712 one question about the overall list of the inbox-box mode. Is there any
2713 way of say doing an "all mails" mode? or is there a magic query that will
2714 let me list *all* of my mails much like how gmail has the "all mails"
2715 list where it shows "all mails except spam and trash" ?
2716
2717
2718 Thanks,
2719 Jimmy.
2720
2721 --
2722 Jimmy Tang
2723 Trinity Centre for High Performance Computing,
2724 Lloyd Building, Trinity College Dublin, Dublin 2, Ireland.
2725 http://www.tchpc.tcd.ie/ | http://www.tchpc.tcd.ie/~jtang
2726
2727 From wmorgan-sup@masanjin.net Thu Sep 20 11:24:45 2007
2728 From: wmorgan-sup@masanjin.net (William Morgan)
2729 Date: Thu, 20 Sep 2007 08:24:45 -0700
2730 Subject: [sup-talk] problems with rubymail on an initial sup-add/sync
2731 In-Reply-To: <1190298293-sup-7853@vual.tchpc.tcd.ie>
2732 References: <20070919123616.GA24149@vual.tchpc.tcd.ie>
2733 <sfid-H20070919-154233-+013.70-1@vual.tchpc.tcd.ie>
2734 <1190212675-sup-5699@south> <1190298293-sup-7853@vual.tchpc.tcd.ie>
2735 Message-ID: <1190301501-sup-9904@south>
2736
2737 Excerpts from Jimmy Tang's message of Thu Sep 20 07:31:09 -0700 2007:
2738 > not too sure whats wrong with that mail box, i eventually found the
2739 > offending mails and *cough* just deleted them *cough* they are just
2740 > old archives that I have that i wanted indexed.
2741
2742 That last batch of errors looks like more corrupted email, but I could
2743 be wrong. If it works now, it works.
2744
2745 > Is there any way of say doing an "all mails" mode? or is there a magic
2746 > query that will let me list *all* of my mails much like how gmail has
2747 > the "all mails" list where it shows "all mails except spam and trash"
2748 > ?
2749
2750 Yes, search for "*".
2751
2752 --
2753 William <wmorgan-sup at masanjin.net>
2754
2755 From itaylor@uark.edu Fri Sep 21 13:14:25 2007
2756 From: itaylor@uark.edu (Ian Taylor)
2757 Date: Fri, 21 Sep 2007 13:14:25 -0400
2758 Subject: [sup-talk] new messages don't seem to have NEW status
2759 Message-ID: <1190394617-sup-276@zap>
2760
2761 I'm not sure when this started happening (maybe under a week), but any
2762 new message I receive isn't being marked as unread or new.
2763
2764 I disabled all my hooks to ensure that this wasn't the problem, but no
2765 luck.
2766
2767 Is this the case for anyone else? I'm using latest from svn.
2768
2769 --
2770 Ian Taylor, Technical Assistant
2771 Computer Science Computer Engineering
2772 http://www.csce.uark.edu itaylor at uark.edu
2773 University of Arkansas
2774
2775
2776 From wmorgan-sup@masanjin.net Fri Sep 21 14:52:39 2007
2777 From: wmorgan-sup@masanjin.net (William Morgan)
2778 Date: Fri, 21 Sep 2007 11:52:39 -0700
2779 Subject: [sup-talk] new messages don't seem to have NEW status
2780 In-Reply-To: <1190394617-sup-276@zap>
2781 References: <1190394617-sup-276@zap>
2782 Message-ID: <1190400702-sup-195@south>
2783
2784 Excerpts from Ian Taylor's message of Fri Sep 21 10:14:25 -0700 2007:
2785 > I'm not sure when this started happening (maybe under a week), but any
2786 > new message I receive isn't being marked as unread or new.
2787
2788 There was a bug with this behavior for mbox introduced in r598 that was
2789 fixed in r590. Are you sure you're at r590?
2790
2791 --
2792 William <wmorgan-sup at masanjin.net>
2793
2794 From itaylor@uark.edu Sat Sep 22 03:02:23 2007
2795 From: itaylor@uark.edu (Ian Taylor)
2796 Date: Sat, 22 Sep 2007 03:02:23 -0400
2797 Subject: [sup-talk] new messages don't seem to have NEW status
2798 In-Reply-To: <1190400702-sup-195@south>
2799 References: <1190394617-sup-276@zap> <1190400702-sup-195@south>
2800 Message-ID: <1190444489-sup-7495@zap>
2801
2802 Excerpts from William Morgan's message of Fri Sep 21 14:52:39 -0400 2007:
2803 > Excerpts from Ian Taylor's message of Fri Sep 21 10:14:25 -0700 2007:
2804 > > I'm not sure when this started happening (maybe under a week), but any
2805 > > new message I receive isn't being marked as unread or new.
2806 >
2807 > There was a bug with this behavior for mbox introduced in r598 that was
2808 > fixed in r590. Are you sure you're at r590?
2809 >
2810
2811 Yeah, I'm r590 and it's the imap accounts, not mbox that seem to have
2812 the problem.
2813
2814 --
2815 Ian Taylor, Technical Assistant
2816 Computer Science Computer Engineering
2817 http://www.csce.uark.edu itaylor at uark.edu
2818 University of Arkansas
2819
2820
2821 From jtang@tchpc.tcd.ie Sun Sep 23 06:04:08 2007
2822 From: jtang@tchpc.tcd.ie (Jimmy Tang)
2823 Date: Sun, 23 Sep 2007 11:04:08 +0100
2824 Subject: [sup-talk] the contact list / automatic mapping of names to
2825 addresses
2826 Message-ID: <1190541163-sup-6583@vual.tchpc.tcd.ie>
2827
2828 Hi All,
2829
2830 I've a question (well feature request), it may be a quirk or bug in
2831 sup. I'll try and describe the problem as best I can.
2832
2833 We use a thing called "Request Tracker" here in work, what generally happens is
2834
2835 1. user sends an email to a mail alias/system address say for example
2836
2837 info at my.domain.com
2838
2839 2. the user then gets an automated confirmation that the message is
2840 logged in our system, and everyone in the info at my.domain.com group gets
2841 a copy of the email, but it is no longer from the original user anymore,
2842 now all the mails are "from" the tracking system
2843
2844 and all correspondence is handled via this ticketing system which uses
2845 message id's and magic words and addresses in the headers.
2846
2847 3. now when i load up sup, I think the first mail i read before the
2848 people list is built, it grabs the name from it. Then all subsequent
2849 mails i get (and also the archives) from the ticketing system has the
2850 wrong names in the inbox mode and in the threaded mode when reading,
2851 this gets a little confusing when reading these mails.
2852
2853
2854 i'd assuming it would be difficult to map the correct names to the correct
2855 mails in systems similar to the above? would it be possible to just
2856 "turn off" this particular feature for a given set of email addresses?
2857
2858 or is this already fixed and known and i've just missed what I need to
2859 do to work around it?
2860
2861 Thanks,
2862 Jimmy
2863
2864 --
2865 Jimmy Tang
2866 Trinity Centre for High Performance Computing,
2867 Lloyd Building, Trinity College Dublin, Dublin 2, Ireland.
2868 http://www.tchpc.tcd.ie/ | http://www.tchpc.tcd.ie/~jtang
2869
2870 From wmorgan-sup@masanjin.net Sun Sep 23 22:16:35 2007
2871 From: wmorgan-sup@masanjin.net (William Morgan)
2872 Date: Sun, 23 Sep 2007 19:16:35 -0700
2873 Subject: [sup-talk] new messages don't seem to have NEW status
2874 In-Reply-To: <1190444489-sup-7495@zap>
2875 References: <1190394617-sup-276@zap> <1190400702-sup-195@south>
2876 <1190444489-sup-7495@zap>
2877 Message-ID: <1190600081-sup-619@south>
2878
2879 Excerpts from Ian Taylor's message of Sat Sep 22 00:02:23 -0700 2007:
2880 > Yeah, I'm r590 and it's the imap accounts, not mbox that seem to have
2881 > the problem.
2882
2883 This was another bug introduced by that same revision. If you SVN
2884 update, things should be fixed. I'm finally doing IMAP flags the "right
2885 way", at least in that Sup understands \Seen, \Deleted and \Flagged IMAP
2886 flags and translates them to the Sup equivalent at import time.
2887
2888 --
2889 William <wmorgan-sup at masanjin.net>
2890
2891 From wmorgan-sup@masanjin.net Sun Sep 23 22:29:35 2007
2892 From: wmorgan-sup@masanjin.net (William Morgan)
2893 Date: Sun, 23 Sep 2007 19:29:35 -0700
2894 Subject: [sup-talk] Minor maildir change
2895 In-Reply-To: <20070919220200.GA3436@die.therning.org>
2896 References: <20070909224034.GA3540@die.therning.org>
2897 <1189740088-sup-6296@south>
2898 <20070916181936.GA5332@die.therning.org>
2899 <1190216731-sup-3428@south>
2900 <20070919220200.GA3436@die.therning.org>
2901 Message-ID: <1190600285-sup-4801@south>
2902
2903 Excerpts from Magnus Therning's message of Wed Sep 19 15:02:00 -0700 2007:
2904 > What's gotten from the source is useful for an unseen message, but why
2905 > not mark known messages with the labels from the index?
2906
2907 If your question is, why does Source#add_messages_from yield what it
2908 does, the answer is because all consumers either need the source labels
2909 (for polling) or need both (for syncing---check out sup-sync for the
2910 gory details). Thread-view-mode and all its decendents (inbox-mode, etc)
2911 all talk directly to the index and don't use that method at all.
2912
2913 > >> - Make all sets of labels actual sets.
2914 > >
2915 > >Not sure what you mean by "actual sets", but I think this is pretty
2916 > >much the way Sup works now.
2917 >
2918 > What I mean is the type set gotten from "require 'set'" :) Currently
2919 > labels are lists, not sets.
2920
2921 Honestly, I don't see a real advantage to retrofitting that class onto
2922 things. It doesn't appeal to my Ruby instincts. :)
2923
2924 --
2925 William <wmorgan-sup at masanjin.net>
2926
2927 From wmorgan-sup@masanjin.net Sun Sep 23 22:37:16 2007
2928 From: wmorgan-sup@masanjin.net (William Morgan)
2929 Date: Sun, 23 Sep 2007 19:37:16 -0700
2930 Subject: [sup-talk] the contact list / automatic mapping of names to
2931 addresses
2932 In-Reply-To: <1190541163-sup-6583@vual.tchpc.tcd.ie>
2933 References: <1190541163-sup-6583@vual.tchpc.tcd.ie>
2934 Message-ID: <1190600992-sup-3735@south>
2935
2936 Excerpts from Jimmy Tang's message of Sun Sep 23 03:04:08 -0700 2007:
2937 > i'd assuming it would be difficult to map the correct names to the
2938 > correct mails in systems similar to the above? would it be possible to
2939 > just "turn off" this particular feature for a given set of email
2940 > addresses?
2941
2942 It's not documented anywhere, but the contact list takes priority over
2943 the address->name mapping gleaned from email. So, you can add the
2944 address to your contact list and then manually edit ~/.sup/contacts.txt
2945 and force it to the right name. That should fix it for that address.
2946
2947 This is a frequent problem, and that's a pretty roundabout solution, so
2948 maybe a setting in config.yaml for addresses to ignore would be better.
2949 I'm trying not to bloat Sup with too many configuration options, though,
2950 so I'm waffling on this.
2951
2952 --
2953 William <wmorgan-sup at masanjin.net>
2954
2955 From jtang@tchpc.tcd.ie Mon Sep 24 03:09:37 2007
2956 From: jtang@tchpc.tcd.ie (Jimmy Tang)
2957 Date: Mon, 24 Sep 2007 08:09:37 +0100
2958 Subject: [sup-talk] the contact list / automatic mapping of names to
2959 addresses
2960 In-Reply-To: <1190600992-sup-3735@south>
2961 References: <1190541163-sup-6583@vual.tchpc.tcd.ie>
2962 <sfid-H20070924-033931-+016.46-1@vual.tchpc.tcd.ie>
2963 <1190600992-sup-3735@south>
2964 Message-ID: <1190617627-sup-6425@vual.tchpc.tcd.ie>
2965
2966 Excerpts from William Morgan's message of Mon Sep 24 03:37:16 +0100 2007:
2967 >
2968 > It's not documented anywhere, but the contact list takes priority over
2969 > the address->name mapping gleaned from email. So, you can add the
2970 > address to your contact list and then manually edit ~/.sup/contacts.txt
2971 > and force it to the right name. That should fix it for that address.
2972
2973 this will do fine, thanks again. the first email is usually tagged with names.
2974
2975 >
2976 > This is a frequent problem, and that's a pretty roundabout solution, so
2977 > maybe a setting in config.yaml for addresses to ignore would be better.
2978 > I'm trying not to bloat Sup with too many configuration options, though,
2979 > so I'm waffling on this.
2980 >
2981
2982 if i know ruby i'd poke at it for you :)
2983
2984 Thanks,
2985 Jimmy
2986
2987
2988 --
2989 Jimmy Tang
2990 Trinity Centre for High Performance Computing,
2991 Lloyd Building, Trinity College Dublin, Dublin 2, Ireland.
2992 http://www.tchpc.tcd.ie/ | http://www.tchpc.tcd.ie/~jtang
2993
2994 From jtang@tchpc.tcd.ie Tue Sep 25 06:27:18 2007
2995 From: jtang@tchpc.tcd.ie (Jimmy Tang)
2996 Date: Tue, 25 Sep 2007 11:27:18 +0100
2997 Subject: [sup-talk] problem with labels...
2998 Message-ID: <1190715365-sup-7656@vual.tchpc.tcd.ie>
2999
3000 Hi All,
3001
3002 I think i've found a bug in 0.1 of sup with labels, it seems to be in
3003 the tip of the repository as well.
3004
3005 if i do
3006
3007 for i in $(ls system.*); do echo sup-add -l $i -a mbox://`pwd`/$i; done
3008
3009 to add all my mailboxes, where one of the mbox files is...
3010
3011 system.RequestTracker
3012
3013 the labelling seems to break when I lists all the with the mode "L"
3014
3015
3016 so instead of getting following when i hit "L"
3017
3018
3019 inbox
3020 lists.sup
3021 lists.namd-l
3022 system.RequestTracker
3023 system.amanda
3024 system.cron
3025
3026
3027 I get
3028
3029 inbox
3030 lists.sup
3031 lists.namd-l
3032 system.amanda
3033 system.cron
3034
3035 and the labels starting at system.amanda gets offset by one. sup doesnt
3036 seem to like capitalised letters in the labels.
3037
3038
3039 Thanks,
3040 Jimmy
3041
3042
3043 --
3044 Jimmy Tang
3045 Trinity Centre for High Performance Computing,
3046 Lloyd Building, Trinity College Dublin, Dublin 2, Ireland.
3047 http://www.tchpc.tcd.ie/ | http://www.tchpc.tcd.ie/~jtang
3048
3049 From wmorgan-sup@masanjin.net Wed Sep 26 20:47:51 2007
3050 From: wmorgan-sup@masanjin.net (William Morgan)
3051 Date: Wed, 26 Sep 2007 17:47:51 -0700
3052 Subject: [sup-talk] problem with labels...
3053 In-Reply-To: <1190715365-sup-7656@vual.tchpc.tcd.ie>
3054 References: <1190715365-sup-7656@vual.tchpc.tcd.ie>
3055 Message-ID: <1190853809-sup-2942@south>
3056
3057 Excerpts from Jimmy Tang's message of Tue Sep 25 03:27:18 -0700 2007:
3058 > and the labels starting at system.amanda gets offset by one. sup doesnt
3059 > seem to like capitalised letters in the labels.
3060
3061 Weird. This works for me. Specifically, I added a source with label
3062 "system.RequestTracker", and another with label "system.amanda". The
3063 label list shows them both, and pressing enter works fine.
3064
3065 The tab completion is broken and tries to downcase them, but the label
3066 list should work. Can you try and pare this down to a reproducible test
3067 case?
3068
3069 --
3070 William <wmorgan-sup at masanjin.net>
3071
3072 From jtang@tchpc.tcd.ie Thu Sep 27 06:27:23 2007
3073 From: jtang@tchpc.tcd.ie (Jimmy Tang)
3074 Date: Thu, 27 Sep 2007 11:27:23 +0100
3075 Subject: [sup-talk] problem with labels...
3076 In-Reply-To: <1190853809-sup-2942@south>
3077 References: <1190715365-sup-7656@vual.tchpc.tcd.ie>
3078 <sfid-H20070927-014918-+012.51-1@vual.tchpc.tcd.ie>
3079 <1190853809-sup-2942@south>
3080 Message-ID: <1190888538-sup-1554@vual.tchpc.tcd.ie>
3081
3082 Hi William,
3083
3084 Excerpts from William Morgan's message of Thu Sep 27 01:47:51 +0100 2007:
3085 >
3086 > Weird. This works for me. Specifically, I added a source with label
3087 > "system.RequestTracker", and another with label "system.amanda". The
3088 > label list shows them both, and pressing enter works fine.
3089 >
3090 > The tab completion is broken and tries to downcase them, but the label
3091 > list should work. Can you try and pare this down to a reproducible test
3092 > case?
3093 >
3094
3095 i have a test case with some sample mails that has failed on the machine
3096 i use sup on (on a daily basis) and also on my own desktop machine.
3097
3098 mailserver:
3099 rh9
3100 sup 0.1 and installed from the current version of ruby and rubygems
3101
3102 mydesktop
3103 ubuntu feisty fawn
3104 sup 0.1 and installed from the current version of ruby and rubygems
3105 from the repositorys
3106
3107 both installs of sup just uses all the latest suggested libs.
3108
3109 i was too sure on what you wanted for a reproducible test case, so i just
3110 put a small shell script of the commands and order of commands that causes
3111 it to fail for me together. I'll send you the tarball in a seperate mail.
3112
3113 Thanks,
3114 Jimmy
3115
3116 --
3117 Jimmy Tang
3118 Trinity Centre for High Performance Computing,
3119 Lloyd Building, Trinity College Dublin, Dublin 2, Ireland.
3120 http://www.tchpc.tcd.ie/ | http://www.tchpc.tcd.ie/~jtang
3121