sup

A curses threads-with-tags style email client

sup-website.git

git clone https://supmua.dev/git/sup-website/

community/pipermail-archives/sup-talk/2008-01.txt (370977B) - raw

      1 From wmorgan-sup@masanjin.net  Wed Jan  2 12:50:39 2008
      2 From: wmorgan-sup@masanjin.net (William Morgan)
      3 Date: Wed, 02 Jan 2008 09:50:39 -0800
      4 Subject: [sup-talk] Backtrace with latest git
      5 In-Reply-To: <1199062549-sup-2436@indigo>
      6 References: <1199062549-sup-2436@indigo>
      7 Message-ID: <1199296151-sup-713@south>
      8 
      9 [completely faking this reply because my ISP dropped most of my email
     10  over the last few days... sigh.]
     11 
     12 Ingmar Vanhassel wrote:
     13 > At the risk of boring you to pieces: "thanks for sup! :-)".  Finally a
     14 > mail client that does what we want, how we want it.
     15 
     16 Thanks, it's always good to hear.
     17 
     18 > As of latest git, I get a backtrace when I try to load more threads
     19 > than what the initial buffer shows. Backtrace attached.
     20 
     21 This should be fixed in git. Let me know if not.
     22 
     23 -- 
     24 William <wmorgan-sup at masanjin.net>
     25 
     26 From wmorgan-sup@masanjin.net  Wed Jan  2 13:13:14 2008
     27 From: wmorgan-sup@masanjin.net (William Morgan)
     28 Date: Wed, 02 Jan 2008 10:13:14 -0800
     29 Subject: [sup-talk] a lil' git script
     30 Message-ID: <1199297532-sup-1591@south>
     31 
     32 Slightly OT, but you guys might be interested in a little git staging
     33 script I hacked up, that does a darcs-style walkthrough of all unstaged
     34 changes. http://git-wt-commit.rubyforge.org/
     35 
     36 -- 
     37 William <wmorgan-sup at masanjin.net>
     38 
     39 From wmorgan-sup@masanjin.net  Fri Jan  4 00:04:53 2008
     40 From: wmorgan-sup@masanjin.net (William Morgan)
     41 Date: Thu, 03 Jan 2008 21:04:53 -0800
     42 Subject: [sup-talk] Unit tests, part 2
     43 In-Reply-To: <1197741811-sup-1386@arlanda>
     44 References: <1197741811-sup-1386@arlanda>
     45 Message-ID: <1199422670-sup-6990@south>
     46 
     47 Hi Ismo,
     48 
     49 Sorry for the delay on this. I've added the tests to git. Thank you very
     50 much!
     51 
     52 Excerpts from Ismo Puustinen's message of Sat Dec 15 10:25:35 -0800 2007:
     53 > The difference to previous tests is that this test actually currently
     54 > fails: for some reason, dividing a message body into chunks doesn't
     55 > succeed. The message in question is an actual email message sent to
     56 > vim-mac mailing list; only the names and email addresses have been
     57 > obscured. I selected the message for the tests because it kept
     58 > crashing my sup-sync. :-) 
     59 
     60 Definitely an RMail bug. I've committed a workaround to git so that Sup
     61 doesn't crash, at least...
     62 
     63 -- 
     64 William <wmorgan-sup at masanjin.net>
     65 
     66 From patroclo7@gmail.com  Fri Jan  4 17:54:48 2008
     67 From: patroclo7@gmail.com (Giorgio Lando)
     68 Date: Fri, 4 Jan 2008 23:54:48 +0100
     69 Subject: [sup-talk] Some initial problems with sup
     70 Message-ID: <20080104225448.GA19639@clarabella.clarabella>
     71 
     72 Hi, I am a new user of sup and I like it a lot. I plan to switch
     73 gradually from mutt.
     74 
     75 I have a first problem with gmail imap folders for Drafts and Sent Mail
     76 (the inbox works fine):
     77 their relative path is [Gmail]/Drafts and [Gmail]/Sent Mail. Thus they
     78 include a space and square brackets. If I try to use them in
     79 sources.yaml, but I get:
     80 
     81 /usr/lib/ruby/1.8/uri/common.rb:436:in `split': bad URI(is not URI?): imaps://imap.gmail.com/[Gmail]/Drafts (URI::InvalidURIError)
     82         from /usr/lib/ruby/1.8/uri/common.rb:485:in `parse'
     83         from /usr/lib/ruby/1.8/uri/common.rb:608:in `URI'
     84         from /usr/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/imap.rb:62:in `initialize'
     85         from /usr/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup.rb:29:in `new'
     86         from /usr/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup.rb:29:in `yaml_properties'
     87         from /usr/lib/ruby/1.8/yaml.rb:133:in `call'
     88         from /usr/lib/ruby/1.8/yaml.rb:133:in `transfer'
     89         from /usr/lib/ruby/1.8/yaml.rb:133:in `node_import'
     90          ... 7 levels...
     91         from /usr/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/index.rb:108:in `load'
     92         from /usr/lib/ruby/gems/1.8/gems/sup-0.3/bin/sup-sync:111
     93         from /usr/bin/sup-sync:16:in `load'
     94         from /usr/bin/sup-sync:16
     95 
     96 I tried to escape them with \:
     97 
     98 uri: imaps://imap.gmail.com/\[Gmail\]/Drafts
     99 
    100 But I get exactly the same error message. Is there a proper way to
    101 escape the characters?
    102 Giorgio Lando
    103 
    104 
    105 From patroclo7@gmail.com  Fri Jan  4 18:45:05 2008
    106 From: patroclo7@gmail.com (Giorgio Lando)
    107 Date: Sat, 05 Jan 2008 00:45:05 +0100
    108 Subject: [sup-talk] missing run-mailcap
    109 Message-ID: <1199490036-sup-4674@clarabella.clarabella>
    110 
    111 A further problem: I am currently unable to convince sup to run my ~/.mailcap entries for attachment 
    112 (the mimetypes is properly identified).
    113 
    114 Grepping in the sup directory, I see that it uses a /usr/bin/run-mailcap. I have not this in my linux 
    115 system (archlinux), and I guess that it is something debian specific (I have not in my freebsd, 
    116 and I do not remember to have seen it in my slackware system - not sure of this).
    117 I do not know how mailcap is used here (mutt resorts to it fine).
    118 
    119 Do you know where I could find run-mailcap?
    120 Giorgio Lando
    121 
    122 From patroclo7@gmail.com  Fri Jan  4 18:59:41 2008
    123 From: patroclo7@gmail.com (Giorgio Lando)
    124 Date: Sat, 05 Jan 2008 00:59:41 +0100
    125 Subject: [sup-talk] missing run-mailcap
    126 In-Reply-To: <1199490036-sup-4674@clarabella.clarabella>
    127 References: <1199490036-sup-4674@clarabella.clarabella>
    128 Message-ID: <1199491102-sup-1332@clarabella.clarabella>
    129 
    130 > Do you know where I could find run-mailcap?
    131 > Giorgio Lando
    132 
    133 Do not mind about this, I have been able to extract it from the debian package
    134 and now it works
    135 Giorgio Lando
    136 
    137 From fedzor@gmail.com  Fri Jan  4 19:02:29 2008
    138 From: fedzor@gmail.com (thefed)
    139 Date: Fri, 4 Jan 2008 19:02:29 -0500
    140 Subject: [sup-talk] Setting the Outgoing mail server
    141 Message-ID: <83922F2C-88AB-42E2-82A7-3D16ECDD6B26@gmail.com>
    142 
    143 Hey!
    144 
    145 Quick question - how can I set the outgoing mailserver? I'm trying to  
    146 get gmail to work in sup. So far I can read emails, but not send them.
    147 
    148 
    149 Thanks,
    150 Ari
    151 
    152 From patroclo7@gmail.com  Fri Jan  4 19:13:46 2008
    153 From: patroclo7@gmail.com (Giorgio Lando)
    154 Date: Sat, 5 Jan 2008 01:13:46 +0100
    155 Subject: [sup-talk] Setting the Outgoing mail server
    156 In-Reply-To: <83922F2C-88AB-42E2-82A7-3D16ECDD6B26@gmail.com>
    157 References: <83922F2C-88AB-42E2-82A7-3D16ECDD6B26@gmail.com>
    158 Message-ID: <20080105001346.GA27329@clarabella.clarabella>
    159 
    160 On 19:02 Fri 04 Jan     , thefed wrote:
    161 > Hey!
    162 > 
    163 > Quick question - how can I set the outgoing mailserver? I'm trying to  
    164 > get gmail to work in sup. So far I can read emails, but not send them.
    165 > 
    166 > 
    167 > Thanks,
    168 > Ari
    169 
    170 sup is a mua and relies on an MTA sendmail-compatible (something big
    171 like postfix or something light like esmtp etc) for outgoing mail. sup
    172 calls sendmail when you press y.
    173 Giorgio
    174 
    175 From wmorgan-sup@masanjin.net  Fri Jan  4 19:09:55 2008
    176 From: wmorgan-sup@masanjin.net (William Morgan)
    177 Date: Fri, 04 Jan 2008 16:09:55 -0800
    178 Subject: [sup-talk] Some initial problems with sup
    179 In-Reply-To: <20080104225448.GA19639@clarabella.clarabella>
    180 References: <20080104225448.GA19639@clarabella.clarabella>
    181 Message-ID: <1199491687-sup-7120@south>
    182 
    183 Excerpts from Giorgio Lando's message of Fri Jan 04 14:54:48 -0800 2008:
    184 > Hi, I am a new user of sup and I like it a lot. I plan to switch
    185 > gradually from mutt.
    186 
    187 Yay!
    188 
    189 > /usr/lib/ruby/1.8/uri/common.rb:436:in `split': bad URI(is not URI?):
    190 
    191 Bah. I thought I was going to be so cool by treating everything as a
    192 URI, but it's caused nothing but hassle.
    193 
    194 You need to URL-encode them. Something like this:
    195 
    196   $ irb -rcgi
    197   >> CGI::escape "[Drafts]"
    198   => "%5BDrafts%5D"
    199 
    200 HTH,
    201 
    202 -- 
    203 William <wmorgan-sup at masanjin.net>
    204 
    205 From wmorgan-sup@masanjin.net  Fri Jan  4 19:13:15 2008
    206 From: wmorgan-sup@masanjin.net (William Morgan)
    207 Date: Fri, 04 Jan 2008 16:13:15 -0800
    208 Subject: [sup-talk] missing run-mailcap
    209 In-Reply-To: <1199490036-sup-4674@clarabella.clarabella>
    210 References: <1199490036-sup-4674@clarabella.clarabella>
    211 Message-ID: <1199491806-sup-1304@south>
    212 
    213 Excerpts from Giorgio Lando's message of Fri Jan 04 15:45:05 -0800 2008:
    214 > Grepping in the sup directory, I see that it uses a
    215 > /usr/bin/run-mailcap. I have not this in my linux system (archlinux),
    216 > and I guess that it is something debian specific (I have not in my
    217 > freebsd, and I do not remember to have seen it in my slackware system
    218 > - not sure of this).  I do not know how mailcap is used here (mutt
    219 > resorts to it fine).
    220 > 
    221 > Do you know where I could find run-mailcap?
    222 
    223 I don't have an actual answer for this, but if there's another option
    224 for handling MIME attachments on your system, I'm happy to include it.
    225 Run-mailcap was just what I had on hand at the time I was developing.
    226 It doesn't exist on Macs either.
    227 
    228 I'm just trying to avoid writing my own code to do this, since about a
    229 million other people have written that code already, and since it's
    230 pretty OS-dependent.
    231 
    232 -- 
    233 William <wmorgan-sup at masanjin.net>
    234 
    235 From wmorgan-sup@masanjin.net  Fri Jan  4 19:15:54 2008
    236 From: wmorgan-sup@masanjin.net (William Morgan)
    237 Date: Fri, 04 Jan 2008 16:15:54 -0800
    238 Subject: [sup-talk] Setting the Outgoing mail server
    239 In-Reply-To: <83922F2C-88AB-42E2-82A7-3D16ECDD6B26@gmail.com>
    240 References: <83922F2C-88AB-42E2-82A7-3D16ECDD6B26@gmail.com>
    241 Message-ID: <1199492006-sup-1223@south>
    242 
    243 Excerpts from thefed's message of Fri Jan 04 16:02:29 -0800 2008:
    244 > Quick question - how can I set the outgoing mailserver? I'm trying to
    245 > get gmail to work in sup. So far I can read emails, but not send them.
    246 
    247 Sup doesn't speak SMTP directly, and instead hands off outgoing emails
    248 to an external program. You can set this call in the :sendmail option of
    249 ~/.sup/config.yaml.
    250 
    251 There's a pretty good section on the wiki[1] on how to configure various
    252 mailers to do the right thing.
    253 
    254 [1] http://sup.rubyforge.org/wiki/wiki.pl
    255 
    256 -- 
    257 William <wmorgan-sup at masanjin.net>
    258 
    259 From patroclo7@gmail.com  Fri Jan  4 19:57:26 2008
    260 From: patroclo7@gmail.com (Giorgio Lando)
    261 Date: Sat, 5 Jan 2008 01:57:26 +0100
    262 Subject: [sup-talk] Some initial problems with sup
    263 In-Reply-To: <1199491687-sup-7120@south>
    264 References: <20080104225448.GA19639@clarabella.clarabella>
    265 	<1199491687-sup-7120@south>
    266 Message-ID: <20080105005726.GB27329@clarabella.clarabella>
    267 
    268 >   $ irb -rcgi
    269 >   >> CGI::escape "[Drafts]"
    270 >   => "%5BDrafts%5D"
    271  
    272 Thanks, this works (actually it doesn't work, but this depends from
    273 gmail: it seems that these names of folders are not right / do not exist in my account;
    274 nothing related to sup)
    275 Giorgio
    276 
    277 From patroclo7@gmail.com  Fri Jan  4 20:01:14 2008
    278 From: patroclo7@gmail.com (Giorgio Lando)
    279 Date: Sat, 05 Jan 2008 02:01:14 +0100
    280 Subject: [sup-talk] missing run-mailcap
    281 In-Reply-To: <1199491806-sup-1304@south>
    282 References: <1199490036-sup-4674@clarabella.clarabella>
    283 	<1199491806-sup-1304@south>
    284 Message-ID: <1199494725-sup-2394@clarabella.clarabella>
    285 
    286 > I don't have an actual answer for this, but if there's another option
    287 > for handling MIME attachments on your system, I'm happy to include it.
    288 > Run-mailcap was just what I had on hand at the time I was developing.
    289 > It doesn't exist on Macs either.
    290 > 
    291 > I'm just trying to avoid writing my own code to do this, since about a
    292 > million other people have written that code already, and since it's
    293 > pretty OS-dependent.
    294 
    295 Do not mind, I am going to package a standalone run-mailcap for my
    296 distro (it will be a sup depo when I find the time to package sup &
    297 friends)
    298 Giorgio 
    299 
    300 From patroclo7@gmail.com  Sat Jan  5 07:58:50 2008
    301 From: patroclo7@gmail.com (Giorgio Lando)
    302 Date: Sat, 05 Jan 2008 13:58:50 +0100
    303 Subject: [sup-talk] interface blinking and corrupted on the console
    304 Message-ID: <1199537691-sup-493@clarabella.clarabella>
    305 
    306 Hi, yet another issue. When I run sup on the plain console or on the
    307 framebuffer, it starts to beep and continues forever;  everything
    308 blinks; keybindings seem to work (or at least I am able to get out with
    309 q).
    310 
    311 This does not happen in X; also if I run sup into a screen session on
    312 the onsole everything works fine. Looking at my environment variables,
    313 the only thing which seems to distinguish the plain console from screen
    314 on the console is the TERM variable, which on the console is set to
    315 "linux". I have no similar issues with other ncurses apps on the
    316 console.
    317 
    318 Should I set TERM to something else?
    319 Giorgio Lando  
    320 
    321 
    322 From fedzor@gmail.com  Sat Jan  5 09:49:02 2008
    323 From: fedzor@gmail.com (thefed)
    324 Date: Sat, 5 Jan 2008 09:49:02 -0500
    325 Subject: [sup-talk]  sources
    326 Message-ID: <69CDDE4C-62DE-425E-ADB1-BDD931B25AEC@gmail.com>
    327 
    328 Is the URI in my config.yaml file the incoming mail server?
    329 
    330 From fedzor@gmail.com  Sat Jan  5 09:51:38 2008
    331 From: fedzor@gmail.com (thefed)
    332 Date: Sat, 5 Jan 2008 09:51:38 -0500
    333 Subject: [sup-talk]  IRC
    334 Message-ID: <44A764D0-D48E-49E2-9175-773D25BF9786@gmail.com>
    335 
    336 Hey!
    337 
    338 What's sup's IRC channel? I seem to remember seeing it somewhere but  
    339 I can't find it.
    340 
    341 So what channel is it?
    342 
    343 Thanks,
    344 Ari Brown
    345 
    346 From patroclo7@gmail.com  Sat Jan  5 12:11:10 2008
    347 From: patroclo7@gmail.com (Giorgio Lando)
    348 Date: Sat, 05 Jan 2008 18:11:10 +0100
    349 Subject: [sup-talk] how to have an hook play a sound
    350 Message-ID: <1199552937-sup-9378@clarabella.clarabella>
    351 
    352 Hi again, I do not speak ruby and I am trying to write an after-poll.rb
    353 which plays a sound when there are new messages.
    354 I have tried several things, but probably I am misunderstanding
    355 something radical. I would like that it executes the sound when the
    356 variable @num (the number of polled messages) is >= 1.
    357 
    358 My less absurd try is perhaps:
    359 
    360 if @num>=1
    361 system "/usr/bin/aplay -q <mysound>"
    362 end
    363 
    364 but I get the following error:
    365 
    366 Error running hook: undefined method `>=' for nil:NilClass
    367 
    368 With:
    369 
    370 if @num!=0
    371 system "/usr/bin/aplay -q <mysound>"
    372 end
    373 
    374 The sound is always player, also when there is no new message polled.
    375 
    376 I have tried to define or declare a class or a method somewhere, but I am really
    377 lost.
    378 Any help?
    379 Giorgio Lando
    380 
    381 From wmorgan-sup@masanjin.net  Sat Jan  5 13:33:14 2008
    382 From: wmorgan-sup@masanjin.net (William Morgan)
    383 Date: Sat, 05 Jan 2008 10:33:14 -0800
    384 Subject: [sup-talk] interface blinking and corrupted on the console
    385 In-Reply-To: <1199537691-sup-493@clarabella.clarabella>
    386 References: <1199537691-sup-493@clarabella.clarabella>
    387 Message-ID: <1199557847-sup-5728@south>
    388 
    389 Excerpts from Giorgio Lando's message of Sat Jan 05 04:58:50 -0800 2008:
    390 > Hi, yet another issue. When I run sup on the plain console or on the
    391 > framebuffer, it starts to beep and continues forever;  everything
    392 > blinks; keybindings seem to work (or at least I am able to get out with
    393 > q).
    394 
    395 I believe this is because of the way we're trying to set the X window
    396 title. This patch should help temporarily:
    397 
    398 --- cut here ---
    399 diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
    400 index fa1afe6..7f0ad81 100644
    401 --- a/lib/sup/buffer.rb
    402 +++ b/lib/sup/buffer.rb
    403 @@ -262,7 +262,7 @@ EOS
    404          get_status_and_title @focus_buf # must be called outside of the ncurses
    405        end
    406  
    407 -    print "\033]2;#{title}\07" if title
    408 +    #print "\033]2;#{title}\07" if title
    409  
    410      Ncurses.mutex.lock unless opts[:sync] == false
    411  
    412 
    413 
    414 --- cut here ---
    415 
    416 > This does not happen in X; also if I run sup into a screen session on
    417 > the onsole everything works fine. Looking at my environment variables,
    418 > the only thing which seems to distinguish the plain console from
    419 > screen on the console is the TERM variable, which on the console is
    420 > set to "linux". I have no similar issues with other ncurses apps on
    421 > the console.
    422 
    423 Does anyone know what the correct approach is for determining whether to
    424 set the title or not? Is it a matter of checking $TERM?
    425 
    426 -- 
    427 William <wmorgan-sup at masanjin.net>
    428 
    429 From wmorgan-sup@masanjin.net  Sat Jan  5 13:34:47 2008
    430 From: wmorgan-sup@masanjin.net (William Morgan)
    431 Date: Sat, 05 Jan 2008 10:34:47 -0800
    432 Subject: [sup-talk] sources
    433 In-Reply-To: <69CDDE4C-62DE-425E-ADB1-BDD931B25AEC@gmail.com>
    434 References: <69CDDE4C-62DE-425E-ADB1-BDD931B25AEC@gmail.com>
    435 Message-ID: <1199558077-sup-6458@south>
    436 
    437 Excerpts from thefed's message of Sat Jan 05 06:49:02 -0800 2008:
    438 > Is the URI in my config.yaml file the incoming mail server?
    439 
    440 There's a URI in your config.yaml!?
    441 
    442 -- 
    443 William <wmorgan-sup at masanjin.net>
    444 
    445 From wmorgan-sup@masanjin.net  Sat Jan  5 13:37:12 2008
    446 From: wmorgan-sup@masanjin.net (William Morgan)
    447 Date: Sat, 05 Jan 2008 10:37:12 -0800
    448 Subject: [sup-talk] IRC
    449 In-Reply-To: <44A764D0-D48E-49E2-9175-773D25BF9786@gmail.com>
    450 References: <44A764D0-D48E-49E2-9175-773D25BF9786@gmail.com>
    451 Message-ID: <1199558094-sup-2163@south>
    452 
    453 Excerpts from thefed's message of Sat Jan 05 06:51:38 -0800 2008:
    454 > What's sup's IRC channel? I seem to remember seeing it somewhere but I
    455 > can't find it.
    456 > 
    457 > So what channel is it?
    458 
    459 There is none (that I know of!). By the Sup bylaws, you may only discuss
    460 Sup when using Sup.
    461 
    462 -- 
    463 William <wmorgan-sup at masanjin.net>
    464 
    465 From wmorgan-sup@masanjin.net  Sat Jan  5 13:43:51 2008
    466 From: wmorgan-sup@masanjin.net (William Morgan)
    467 Date: Sat, 05 Jan 2008 10:43:51 -0800
    468 Subject: [sup-talk] how to have an hook play a sound
    469 In-Reply-To: <1199552937-sup-9378@clarabella.clarabella>
    470 References: <1199552937-sup-9378@clarabella.clarabella>
    471 Message-ID: <1199558282-sup-230@south>
    472 
    473 Excerpts from Giorgio Lando's message of Sat Jan 05 09:11:10 -0800 2008:
    474 > Hi again, I do not speak ruby and I am trying to write an
    475 > after-poll.rb which plays a sound when there are new messages.
    476 
    477 No problem. You were just one small character away.
    478 
    479 > My less absurd try is perhaps:
    480 > 
    481 > if @num>=1
    482 > system "/usr/bin/aplay -q <mysound>"
    483 > end
    484 
    485 Just remove the '@'. The variable 'num' is what you want; '@num' refers
    486 to a different, instance, variable. @num is undefined, so it defaults to
    487 'nil', and that's why the error was about an undefined method on the nil
    488 object.
    489 
    490 (Incidentally, you can use instance variables to save state between
    491 successive calls to the same hook. Not useful in this case, but in more
    492 complex hooks this is handy.)
    493 
    494 > With:
    495 > 
    496 > if @num!=0
    497 > system "/usr/bin/aplay -q <mysound>"
    498 > end
    499 > 
    500 > The sound is always player, also when there is no new message polled.
    501 
    502 This is because nil is not equal to 0 in Ruby, so the conditional is
    503 always true.
    504 
    505 You can also check out the example hooks on the Wiki
    506 (http://sup.rubyforge.org/wiki/wiki.pl?Hooks). Feel free to post your
    507 masterpiece there when completed.
    508 
    509 -- 
    510 William <wmorgan-sup at masanjin.net>
    511 
    512 From fedzor@gmail.com  Sat Jan  5 13:52:11 2008
    513 From: fedzor@gmail.com (thefed)
    514 Date: Sat, 5 Jan 2008 13:52:11 -0500
    515 Subject: [sup-talk]  Removing Labels
    516 Message-ID: <94303BA6-0677-4C92-83A4-D3D3BEE68C3E@gmail.com>
    517 
    518 Hello all,
    519 
    520 Is there a way to REMOVE labels? I accidentally  mislabeled some, and  
    521 I, frustratingly, cannot alter them.
    522 
    523 Helpzor Pleasezor!
    524 
    525 -------------------------------------------------------|
    526 ~ Ari
    527 if god gives you lemons
    528 YOU FIND A NEW GOD
    529 
    530 
    531 From fedzor@gmail.com  Sat Jan  5 14:29:40 2008
    532 From: fedzor@gmail.com (thefed)
    533 Date: Sat, 5 Jan 2008 14:29:40 -0500
    534 Subject: [sup-talk] (no subject)
    535 Message-ID: <03D098A5-5894-41A6-A43B-48F9BA1E201D@gmail.com>
    536 
    537 Hey,
    538 
    539 I have two GMail accounts, and they're (of course) on the same server.
    540 
    541 However, I am unable to add it in sup-add because it says it already  
    542 knows of it.
    543 
    544 I am thinking of just altering the sources.yaml file and config.yaml,  
    545 but I do not want to break my system.
    546 
    547 Help?
    548 Ari Brown
    549 
    550 From marcus-sup@bar-coded.net  Sat Jan  5 15:11:14 2008
    551 From: marcus-sup@bar-coded.net (Marcus Williams)
    552 Date: Sat, 05 Jan 2008 20:11:14 +0000
    553 Subject: [sup-talk] interface blinking and corrupted on the console
    554 In-Reply-To: <1199557847-sup-5728@south>
    555 References: <1199537691-sup-493@clarabella.clarabella>
    556 	<1199557847-sup-5728@south>
    557 Message-ID: <1199563333-sup-1769@tomsk>
    558 
    559 On 5.1.2008, William Morgan wrote:
    560 > Does anyone know what the correct approach is for determining whether to
    561 > set the title or not? Is it a matter of checking $TERM?
    562 
    563 I think checking if $TERM is one of "xterm.*" and "rxvt.*". I'd also
    564 add "screen" to the list as well (because screen deals with it and my
    565 main usage of sup is during a screen session :) and maybe "cyg.*" for
    566 whatever the cygwin term variable is (I think its cygwin but might be
    567 cygterm cant remember).  Needs to be a regex because you get stuff
    568 like xterm-color.
    569 
    570 Marcus
    571 
    572 From vasudeva@linkswarm.com  Sat Jan  5 14:38:56 2008
    573 From: vasudeva@linkswarm.com (vasudeva)
    574 Date: Sat, 5 Jan 2008 14:38:56 -0500
    575 Subject: [sup-talk] IRC
    576 In-Reply-To: <1199558094-sup-2163@south>
    577 References: <44A764D0-D48E-49E2-9175-773D25BF9786@gmail.com>
    578 	<1199558094-sup-2163@south>
    579 Message-ID: <20080105193856.GA31161@lenin.sovietwar.org>
    580 
    581 * on 01-05-08, William Morgan wrote:
    582 > Excerpts from thefed's message of Sat Jan 05 06:51:38 -0800 2008:
    583 > > What's sup's IRC channel? I seem to remember seeing it somewhere but I
    584 > > can't find it.
    585 > > 
    586 > > So what channel is it?
    587 > 
    588 > There is none (that I know of!). By the Sup bylaws, you may only discuss
    589 > Sup when using Sup.
    590 
    591 I'd idle in #sup.
    592 
    593 ***
    594 14:14 >>> vasudeva joins #sup
    595 14:14 -ChanServ(Cha1nServ at services.)- [#sup] Hello Ladies!!!!
    596 ***
    597 
    598 Not on freenode though, I guess. 
    599 
    600 (Sup ladies.)
    601 
    602 
    603 
    604 /></
    605 
    606 --
    607 linkswarm.com :: Collaborative Insolence
    608 vasudeva.linkswarm.com/gallery :: For The Faint of Heart
    609 
    610 
    611 From patroclo7@gmail.com  Sat Jan  5 16:29:56 2008
    612 From: patroclo7@gmail.com (Giorgio Lando)
    613 Date: Sat, 05 Jan 2008 22:29:56 +0100
    614 Subject: [sup-talk] how to have an hook play a sound
    615 In-Reply-To: <1199558282-sup-230@south>
    616 References: <1199552937-sup-9378@clarabella.clarabella>
    617 	<1199558282-sup-230@south>
    618 Message-ID: <1199568499-sup-4708@clarabella.clarabella>
    619 
    620 > Just remove the '@'. The variable 'num' is what you want; '@num' refers
    621 > to a different, instance, variable. @num is undefined, so it defaults to
    622 > 'nil', and that's why the error was about an undefined method on the nil
    623 > object.
    624 > 
    625 > (Incidentally, you can use instance variables to save state between
    626 > successive calls to the same hook. Not useful in this case, but in more
    627 > complex hooks this is handy.)
    628 
    629 Thanks, now it sounds properly. As soon as I write something a bit more
    630 elaborate. I will publish it in the wiki for sure.
    631 Giorgio 
    632 
    633 From patroclo7@gmail.com  Sat Jan  5 16:32:26 2008
    634 From: patroclo7@gmail.com (Giorgio Lando)
    635 Date: Sat, 05 Jan 2008 22:32:26 +0100
    636 Subject: [sup-talk] interface blinking and corrupted on the console
    637 In-Reply-To: <1199557847-sup-5728@south>
    638 References: <1199537691-sup-493@clarabella.clarabella>
    639 	<1199557847-sup-5728@south>
    640 Message-ID: <1199568612-sup-4861@clarabella.clarabella>
    641 
    642 > I believe this is because of the way we're trying to set the X window
    643 > title. This patch should help temporarily:
    644 > 
    645 > --- cut here ---
    646 > diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
    647 > index fa1afe6..7f0ad81 100644
    648 > --- a/lib/sup/buffer.rb
    649 > +++ b/lib/sup/buffer.rb
    650 > @@ -262,7 +262,7 @@ EOS
    651 >          get_status_and_title @focus_buf # must be called outside of the ncurses
    652 >        end
    653 >  
    654 > -    print "\033]2;#{title}\07" if title
    655 > +    #print "\033]2;#{title}\07" if title
    656 >  
    657 >      Ncurses.mutex.lock unless opts[:sync] == false
    658 
    659 Yes, the patch fixes the issue.
    660 > 
    661 > Does anyone know what the correct approach is for determining whether to
    662 > set the title or not? Is it a matter of checking $TERM?
    663 > 
    664 It seems so, set title works fine both in *rxvt and screen for me,
    665 except for the fact that the title in screen persists after I quit sup;
    666 but this may be also seen as the correct behaviour.
    667 Giorgio
    668 
    669 From patroclo7@gmail.com  Sat Jan  5 16:46:43 2008
    670 From: patroclo7@gmail.com (Giorgio Lando)
    671 Date: Sat, 05 Jan 2008 22:46:43 +0100
    672 Subject: [sup-talk] the proper way of determining the encoding
    673 Message-ID: <1199569265-sup-4567@clarabella.clarabella>
    674 
    675 I had initially some problems with encoding in sup (accented chars were
    676 not displayed). So I have looked in lib/sup.rb and I have seen that sup
    677 tries to determine the $encoding from the $ctype, determined on its turn
    678 by LC_CTYPE and LANG. This failed in my case (I do not know why: my
    679 $LANG is it_IT and my $LC_ALL - implying $LC_CTYPE - is it_IT at euro). 
    680 
    681 Anyway I guess that sup could/should use the environment variable $CHARSET,
    682 when it is defined, and resort to other methods only if $CHARSET is not
    683 defined. Or at least I have been able to fix my issue with encodings by
    684 changing the 55th line of lib/sup.rb in the following way:
    685 
    686 $encoding = ENV["CHARSET"]
    687 
    688 Cheers
    689 Giorgio
    690 
    691 From fedzor@gmail.com  Sat Jan  5 16:58:44 2008
    692 From: fedzor@gmail.com (thefed)
    693 Date: Sat, 5 Jan 2008 16:58:44 -0500
    694 Subject: [sup-talk]  Dealing with Attachments
    695 Message-ID: <FB93051F-FDD8-493F-B445-D510AA873942@gmail.com>
    696 
    697 Really simple:
    698 
    699 How do I download the attachment included in an email?
    700 
    701 I've tried searching the docs, but to no luck.
    702 
    703 Any help is appreciated,
    704 Ari
    705 
    706 From fedzor@gmail.com  Sat Jan  5 17:00:06 2008
    707 From: fedzor@gmail.com (thefed)
    708 Date: Sat, 5 Jan 2008 17:00:06 -0500
    709 Subject: [sup-talk]  Multiple accounts on the same source
    710 Message-ID: <50BB997E-2741-475C-98BD-7806CDADAF9D@gmail.com>
    711 
    712 Hey,
    713 
    714 I have two GMail accounts, and they're (of course) on the same server.
    715 
    716 However, I am unable to add it in sup-add because it says it already
    717 knows of it.
    718 
    719 I am thinking of just altering the sources.yaml file and config.yaml,
    720 but I do not want to break my system.
    721 
    722 The first one works perfectly - it's just that I want the other to  
    723 work too.
    724 
    725 Help?
    726 Ari Brown
    727 
    728 
    729 From marcus-sup@bar-coded.net  Sat Jan  5 17:01:22 2008
    730 From: marcus-sup@bar-coded.net (Marcus Williams)
    731 Date: Sat, 05 Jan 2008 22:01:22 +0000
    732 Subject: [sup-talk] interface blinking and corrupted on the console
    733 In-Reply-To: <1199568612-sup-4861@clarabella.clarabella>
    734 References: <1199537691-sup-493@clarabella.clarabella>
    735 	<1199557847-sup-5728@south>
    736 	<1199568612-sup-4861@clarabella.clarabella>
    737 Message-ID: <1199570335-sup-6528@tomsk>
    738 
    739 On 5.1.2008, Giorgio Lando wrote:
    740 > It seems so, set title works fine both in *rxvt and screen for me,
    741 > except for the fact that the title in screen persists after I quit sup;
    742 > but this may be also seen as the correct behaviour.
    743 
    744 I'd probably agree this is correct behaviour - vim does the same
    745 thing. I run my xterms with a title set in the bash prompt (so I get
    746 current host/user/directory in the xterm) so when I drop out of sup it
    747 changes to the bash set title.
    748 
    749 Marcus
    750 
    751 From marcus-sup@bar-coded.net  Sat Jan  5 17:04:22 2008
    752 From: marcus-sup@bar-coded.net (Marcus Williams)
    753 Date: Sat, 05 Jan 2008 22:04:22 +0000
    754 Subject: [sup-talk] Dealing with Attachments
    755 In-Reply-To: <FB93051F-FDD8-493F-B445-D510AA873942@gmail.com>
    756 References: <FB93051F-FDD8-493F-B445-D510AA873942@gmail.com>
    757 Message-ID: <1199570586-sup-7012@tomsk>
    758 
    759 On 5.1.2008, thefed wrote:
    760 > How do I download the attachment included in an email?
    761 
    762 Move your cursor (the blue line in thread view mode) over the
    763 attachment line (something like "x:attachment blah") and hit 's' to
    764 save somewhere or '|' to pipe it to an external program.
    765 
    766 Marcus
    767 
    768 From ingmar.stdin@gmail.com  Sat Jan  5 17:14:00 2008
    769 From: ingmar.stdin@gmail.com (Ingmar Vanhassel)
    770 Date: Sat, 05 Jan 2008 23:14:00 +0100
    771 Subject: [sup-talk] Dealing with Attachments
    772 In-Reply-To: <FB93051F-FDD8-493F-B445-D510AA873942@gmail.com>
    773 References: <FB93051F-FDD8-493F-B445-D510AA873942@gmail.com>
    774 Message-ID: <1199571053-sup-8149@indigo>
    775 
    776 Excerpts from thefed's message of Sat Jan 05 22:58:44 +0100 2008:
    777 > Really simple:
    778 > 
    779 > How do I download the attachment included in an email?
    780 Press 's'
    781 s : Save message/attachment to disk
    782 
    783 > I've tried searching the docs, but to no luck.
    784 Pressing the question mark in different buffers in sup will get you a
    785 list of possible actions and the keys to press.
    786 
    787 > Any help is appreciated,
    788 > Ari
    789 
    790 You're welcome,
    791 Ingmar
    792 
    793 From patroclo7@gmail.com  Sun Jan  6 06:25:52 2008
    794 From: patroclo7@gmail.com (Giorgio Lando)
    795 Date: Sun, 06 Jan 2008 12:25:52 +0100
    796 Subject: [sup-talk] Multiple accounts on the same source
    797 In-Reply-To: <50BB997E-2741-475C-98BD-7806CDADAF9D@gmail.com>
    798 References: <50BB997E-2741-475C-98BD-7806CDADAF9D@gmail.com>
    799 Message-ID: <1199618684-sup-9755@clarabella.clarabella>
    800 
    801 I guess that the --force-new option of sup-add could make what you want.
    802 Giorgio
    803 
    804 From marcus-sup@bar-coded.net  Sun Jan  6 07:27:16 2008
    805 From: marcus-sup@bar-coded.net (Marcus Williams)
    806 Date: Sun, 06 Jan 2008 12:27:16 +0000
    807 Subject: [sup-talk] Multiple accounts on the same source
    808 In-Reply-To: <50BB997E-2741-475C-98BD-7806CDADAF9D@gmail.com>
    809 References: <50BB997E-2741-475C-98BD-7806CDADAF9D@gmail.com>
    810 Message-ID: <1199622101-sup-9598@tomsk>
    811 
    812 On 5.1.2008, thefed wrote:
    813 > I have two GMail accounts, and they're (of course) on the same server.
    814 > 
    815 > However, I am unable to add it in sup-add because it says it already
    816 > knows of it.
    817 
    818 William may have to confirm this, but this works for me:
    819 
    820 Either hand edit it in (but see below) or use a trick in the imap uri:
    821 
    822 imap://account1 at gmail.com/
    823 
    824 imap://account2 at gmail.com/
    825 
    826 The account1 and account2 bits can be anything you want - sup ignores
    827 them anyway (except when comparing two uris). But its useful to use so
    828 that you can distinguish between two sources.
    829 
    830 Note that if you dont use above and ever want to distinguish between
    831 your two gmail accounts via the source uri you wont be able to. So my
    832 recommendation is to use the trick above.
    833 
    834 Marcus
    835 
    836 From wmorgan-sup@masanjin.net  Sun Jan  6 14:46:44 2008
    837 From: wmorgan-sup@masanjin.net (William Morgan)
    838 Date: Sun, 06 Jan 2008 11:46:44 -0800
    839 Subject: [sup-talk] Email extensions/alternate emails
    840 In-Reply-To: <1197325495-sup-8186@tomsk>
    841 References: <1196423833-sup-2326@tomsk> <1197150436-sup-2569@south>
    842 	<1197234773-sup-132@tomsk> <1197236481-sup-1886@south>
    843 	<1197300448-sup-7359@tomsk> <1197308174-sup-2458@south>
    844 	<1197325495-sup-8186@tomsk>
    845 Message-ID: <1199648703-sup-3204@south>
    846 
    847 Hi Marcus,
    848 
    849 Excerpts from Marcus Williams's message of Mon Dec 10 14:28:18 -0800 2007:
    850 > Not sure how I missed that, but there we go. Attached is a patch to
    851 > allow for mail extensions via regexes. This adds a :extensions: option
    852 > to the config.yaml something like:
    853 > 
    854 > :extensions:
    855 >  - marcus-sites-\*@domain.com
    856 >  - marcus-lists-\*@domain.com
    857 
    858 I've added your patch to git after a few tweaks. I renamed "extensions"
    859 to "regexen" since really it does a full regex match against the entire
    860 email address. Hope you don't mind. :) Try it and let me know if it
    861 works for your current setup.
    862 
    863 Thanks!
    864 
    865 -- 
    866 William <wmorgan-sup at masanjin.net>
    867 
    868 From fedzor@gmail.com  Sun Jan  6 17:34:46 2008
    869 From: fedzor@gmail.com (thefed)
    870 Date: Sun, 6 Jan 2008 17:34:46 -0500
    871 Subject: [sup-talk]  Loading in 9500 messages
    872 Message-ID: <A7153144-B6DE-481C-81CF-3A1581B838BD@gmail.com>
    873 
    874 Whats the best way to load 9000 messages from an IMAP server into  
    875 sup? I tried doing the sup-sync method, but it kept crashing on me  
    876 about 1000 messages in, and then it just had trouble even starting.
    877 
    878 THEN after that all the key commands stopped functioning (Possibly  
    879 unrelated).
    880 
    881 So I reinstalled everything, but am still looking for a way to get  
    882 those 9000 messages in
    883 
    884 
    885 From patroclo7@gmail.com  Sun Jan  6 17:54:03 2008
    886 From: patroclo7@gmail.com (Giorgio Lando)
    887 Date: Sun, 06 Jan 2008 23:54:03 +0100
    888 Subject: [sup-talk] interface blinking and corrupted on the console
    889 In-Reply-To: <1199557847-sup-5728@south>
    890 References: <1199537691-sup-493@clarabella.clarabella>
    891 	<1199557847-sup-5728@south>
    892 Message-ID: <1199659920-sup-2577@clarabella.clarabella>
    893 
    894 Excerpts from William Morgan's message of Sat Jan 05 19:33:14 +0100 2008:
    895 > 
    896 > I believe this is because of the way we're trying to set the X window
    897 > title. This patch should help temporarily:
    898 > 
    899 > --- cut here ---
    900 > diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
    901 > index fa1afe6..7f0ad81 100644
    902 > --- a/lib/sup/buffer.rb
    903 > +++ b/lib/sup/buffer.rb
    904 > @@ -262,7 +262,7 @@ EOS
    905 >          get_status_and_title @focus_buf # must be called outside of the ncurses
    906 >        end
    907 >  
    908 > -    print "\033]2;#{title}\07" if title
    909 > +    #print "\033]2;#{title}\07" if title
    910 >  
    911 >      Ncurses.mutex.lock unless opts[:sync] == false
    912 > 
    913 Yes I confirm that this is the cause of blinking & corruption in the
    914 plain console, since
    915 the patch blocks this behaviour.
    916 Thanks again
    917 Giorgio
    918 
    919 From wmorgan-sup@masanjin.net  Mon Jan  7 00:56:53 2008
    920 From: wmorgan-sup@masanjin.net (William Morgan)
    921 Date: Sun, 06 Jan 2008 21:56:53 -0800
    922 Subject: [sup-talk] Removing Labels
    923 In-Reply-To: <94303BA6-0677-4C92-83A4-D3D3BEE68C3E@gmail.com>
    924 References: <94303BA6-0677-4C92-83A4-D3D3BEE68C3E@gmail.com>
    925 Message-ID: <1199685277-sup-7018@south>
    926 
    927 Excerpts from thefed's message of Sat Jan 05 10:52:11 -0800 2008:
    928 > Is there a way to REMOVE labels? I accidentally  mislabeled some, and
    929 > I, frustratingly, cannot alter them.
    930 
    931 On a thread-by-thread basis, you can press 'l' to edit the set of labels
    932 applied to a thread. You can also use bin/sup-tweak-labels to
    933 systematically change the labels on all messages from a given source.
    934 
    935 -- 
    936 William <wmorgan-sup at masanjin.net>
    937 
    938 From wmorgan-sup@masanjin.net  Mon Jan  7 01:04:21 2008
    939 From: wmorgan-sup@masanjin.net (William Morgan)
    940 Date: Sun, 06 Jan 2008 22:04:21 -0800
    941 Subject: [sup-talk] the proper way of determining the encoding
    942 In-Reply-To: <1199569265-sup-4567@clarabella.clarabella>
    943 References: <1199569265-sup-4567@clarabella.clarabella>
    944 Message-ID: <1199685831-sup-2011@south>
    945 
    946 Excerpts from Giorgio Lando's message of Sat Jan 05 13:46:43 -0800 2008:
    947 > I had initially some problems with encoding in sup (accented chars
    948 > were not displayed). So I have looked in lib/sup.rb and I have seen
    949 > that sup tries to determine the $encoding from the $ctype, determined
    950 > on its turn by LC_CTYPE and LANG. This failed in my case (I do not
    951 > know why: my $LANG is it_IT and my $LC_ALL - implying $LC_CTYPE - is
    952 > it_IT at euro). 
    953 
    954 The current way I choose the encoding is a complete hack, and clearly
    955 doesn't work for your case. (It looks for a .<something> at the end of
    956 LANG or LC_CTYPE). But I'm not really sure what the correct way is.
    957 
    958 What does this command produce on your system? "locale -c LC_CTYPE |
    959 head -6".
    960 
    961 > $encoding = ENV["CHARSET"]
    962 
    963 I don't really want to use a non-standard environment variable if at all
    964 possible...
    965 
    966 -- 
    967 William <wmorgan-sup at masanjin.net>
    968 
    969 From wmorgan-sup@masanjin.net  Mon Jan  7 01:15:57 2008
    970 From: wmorgan-sup@masanjin.net (William Morgan)
    971 Date: Sun, 06 Jan 2008 22:15:57 -0800
    972 Subject: [sup-talk] Multiple accounts on the same source
    973 In-Reply-To: <1199622101-sup-9598@tomsk>
    974 References: <50BB997E-2741-475C-98BD-7806CDADAF9D@gmail.com>
    975 	<1199622101-sup-9598@tomsk>
    976 Message-ID: <1199686504-sup-4157@south>
    977 
    978 Excerpts from Marcus Williams's message of Sun Jan 06 04:27:16 -0800 2008:
    979 > imap://account1 at gmail.com/
    980 > 
    981 > imap://account2 at gmail.com/
    982 
    983 This is the official recommended best practice. Yet another reason I'm
    984 regretting having used URIs as source identifiers...
    985 
    986 -- 
    987 William <wmorgan-sup at masanjin.net>
    988 
    989 From wmorgan-sup@masanjin.net  Mon Jan  7 01:17:05 2008
    990 From: wmorgan-sup@masanjin.net (William Morgan)
    991 Date: Sun, 06 Jan 2008 22:17:05 -0800
    992 Subject: [sup-talk] Loading in 9500 messages
    993 In-Reply-To: <A7153144-B6DE-481C-81CF-3A1581B838BD@gmail.com>
    994 References: <A7153144-B6DE-481C-81CF-3A1581B838BD@gmail.com>
    995 Message-ID: <1199686580-sup-9110@south>
    996 
    997 Excerpts from thefed's message of Sun Jan 06 14:34:46 -0800 2008:
    998 > Whats the best way to load 9000 messages from an IMAP server into  
    999 > sup? I tried doing the sup-sync method, but it kept crashing on me  
   1000 > about 1000 messages in, and then it just had trouble even starting.
   1001 
   1002 Sup-sync is the right approach. I'd be interested in looking at the
   1003 error messages, since they "shouldn't happen". Are you using a release,
   1004 or a git checkout?
   1005 
   1006 -- 
   1007 William <wmorgan-sup at masanjin.net>
   1008 
   1009 From patroclo7@gmail.com  Mon Jan  7 03:44:39 2008
   1010 From: patroclo7@gmail.com (Giorgio Lando)
   1011 Date: Mon, 07 Jan 2008 09:44:39 +0100
   1012 Subject: [sup-talk] the proper way of determining the encoding
   1013 In-Reply-To: <1199685831-sup-2011@south>
   1014 References: <1199569265-sup-4567@clarabella.clarabella>
   1015 	<1199685831-sup-2011@south>
   1016 Message-ID: <1199695396-sup-1028@clarabella.clarabella>
   1017 
   1018 > What does this command produce on your system? "locale -c LC_CTYPE |
   1019 > head -6".
   1020 
   1021 It produces:
   1022 
   1023 LC_CTYPE
   1024 upper;lower;alpha;digit;xdigit;space;print;graph;blank;cntrl;punct;alnum;combining;combining_level3
   1025 toupper;tolower;totitle
   1026 16
   1027 1
   1028 ISO-8859-15
   1029 
   1030 And actually ISO-8859-15 is the right/desired encoding.
   1031 Giorgio
   1032 
   1033 From patroclo7@gmail.com  Mon Jan  7 03:51:08 2008
   1034 From: patroclo7@gmail.com (Giorgio Lando)
   1035 Date: Mon, 07 Jan 2008 09:51:08 +0100
   1036 Subject: [sup-talk] the proper way of determining the encoding
   1037 In-Reply-To: <1199685831-sup-2011@south>
   1038 References: <1199569265-sup-4567@clarabella.clarabella>
   1039 	<1199685831-sup-2011@south>
   1040 Message-ID: <1199695733-sup-2741@clarabella.clarabella>
   1041 
   1042 > > $encoding = ENV["CHARSET"]
   1043 > 
   1044 > I don't really want to use a non-standard environment variable if at all
   1045 > possible...
   1046 
   1047 I understand. May be the encoding problems are so intricate and
   1048 heterogeneous that they could be worth a configuration option, so the
   1049 user can in anyway force a certain encoding if needed/desired?
   1050 Giorgio
   1051 
   1052 From marcus-sup@bar-coded.net  Mon Jan  7 07:35:20 2008
   1053 From: marcus-sup@bar-coded.net (Marcus Williams)
   1054 Date: Mon, 07 Jan 2008 12:35:20 +0000
   1055 Subject: [sup-talk] Email extensions/alternate emails
   1056 In-Reply-To: <1199648703-sup-3204@south>
   1057 References: <1196423833-sup-2326@tomsk> <1197150436-sup-2569@south>
   1058 	<1197234773-sup-132@tomsk> <1197236481-sup-1886@south>
   1059 	<1197300448-sup-7359@tomsk> <1197308174-sup-2458@south>
   1060 	<1197325495-sup-8186@tomsk> <1199648703-sup-3204@south>
   1061 Message-ID: <1199709289-sup-624@tomsk>
   1062 
   1063 Excerpts from William Morgan's message of Sun Jan 06 19:46:44 +0000 2008:
   1064 > I've added your patch to git after a few tweaks. I renamed "extensions"
   1065 > to "regexen" since really it does a full regex match against the entire
   1066 > email address. Hope you don't mind. :) Try it and let me know if it
   1067 > works for your current setup.
   1068 
   1069 Nice :) Works here anyway!
   1070 
   1071 Marcus
   1072 
   1073 From patroclo7@gmail.com  Mon Jan  7 17:59:01 2008
   1074 From: patroclo7@gmail.com (Giorgio Lando)
   1075 Date: Mon, 07 Jan 2008 23:59:01 +0100
   1076 Subject: [sup-talk] backspace and delete keys
   1077 Message-ID: <1199746454-sup-5936@clarabella.clarabella>
   1078 
   1079 Hi, I am busy in the ancient Unix practice of fixing the behaviour of
   1080 Backspace and Delete in sup choosing the right escape sequence in the
   1081 configuration of the different terminal emulators. Now, after some tweakings, Backspace works for me fine in the minibuffer
   1082 in the console and in every terminal emulator,
   1083 but Delete does not work. Since it does not work in any terminal, may be
   1084 that simply the sup minibuffer editor is supposed to support  only Backspace and not Delete?
   1085 In this case, I am loosing my time :)
   1086 Can someone confirm this?
   1087 Giorgio Lando
   1088 
   1089 From wmorgan-sup@masanjin.net  Mon Jan  7 19:12:08 2008
   1090 From: wmorgan-sup@masanjin.net (William Morgan)
   1091 Date: Mon, 07 Jan 2008 16:12:08 -0800
   1092 Subject: [sup-talk] backspace and delete keys
   1093 In-Reply-To: <1199746454-sup-5936@clarabella.clarabella>
   1094 References: <1199746454-sup-5936@clarabella.clarabella>
   1095 Message-ID: <1199750582-sup-5731@south>
   1096 
   1097 Excerpts from Giorgio Lando's message of Mon Jan 07 14:59:01 -0800 2008:
   1098 > Hi, I am busy in the ancient Unix practice of fixing the behaviour of
   1099 > Backspace and Delete in sup choosing the right escape sequence in the
   1100 > configuration of the different terminal emulators.
   1101 
   1102 I feel your pain.
   1103 
   1104 > Now, after some tweakings, Backspace works for me fine in the
   1105 > minibuffer in the console and in every terminal emulator, but Delete
   1106 > does not work. Since it does not work in any terminal, may be that
   1107 > simply the sup minibuffer editor is supposed to support  only
   1108 > Backspace and not Delete?
   1109 
   1110 Sorry about that. I've just added it now. Git pull and you should be
   1111 able to hit delete.
   1112 
   1113 -- 
   1114 William <wmorgan-sup at masanjin.net>
   1115 
   1116 From patroclo7@gmail.com  Mon Jan  7 19:22:00 2008
   1117 From: patroclo7@gmail.com (Giorgio Lando)
   1118 Date: Tue, 08 Jan 2008 01:22:00 +0100
   1119 Subject: [sup-talk] backspace and delete keys
   1120 In-Reply-To: <1199750582-sup-5731@south>
   1121 References: <1199746454-sup-5936@clarabella.clarabella>
   1122 	<1199750582-sup-5731@south>
   1123 Message-ID: <1199751709-sup-9184@clarabella.clarabella>
   1124 
   1125 > Sorry about that. I've just added it now. Git pull and you should be
   1126 > able to hit delete.
   1127 
   1128 Thanks a lot! Yes it works!
   1129 Giorgio
   1130 
   1131 From nicolas.pouillard@gmail.com  Mon Jan  7 20:34:02 2008
   1132 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   1133 Date: Tue, 08 Jan 2008 02:34:02 +0100
   1134 Subject: [sup-talk] backspace and delete keys
   1135 In-Reply-To: <1199750582-sup-5731@south>
   1136 References: <1199746454-sup-5936@clarabella.clarabella>
   1137 	<1199750582-sup-5731@south>
   1138 Message-ID: <1199756019-sup-216@ausone.local>
   1139 
   1140 Excerpts from William Morgan's message of Tue Jan 08 01:12:08 +0100 2008:
   1141 > Excerpts from Giorgio Lando's message of Mon Jan 07 14:59:01 -0800 2008:
   1142 > > Hi, I am busy in the ancient Unix practice of fixing the behaviour of
   1143 > > Backspace and Delete in sup choosing the right escape sequence in the
   1144 > > configuration of the different terminal emulators.
   1145 > 
   1146 > I feel your pain.
   1147 > 
   1148 > > Now, after some tweakings, Backspace works for me fine in the
   1149 > > minibuffer in the console and in every terminal emulator, but Delete
   1150 > > does not work. Since it does not work in any terminal, may be that
   1151 > > simply the sup minibuffer editor is supposed to support  only
   1152 > > Backspace and not Delete?
   1153 > 
   1154 > Sorry about that. I've just added it now. Git pull and you should be
   1155 > able to hit delete.
   1156 > 
   1157 
   1158 Thanks!
   1159 
   1160 -- 
   1161 Nicolas Pouillard aka Ertai
   1162 
   1163 From nicolas.pouillard@gmail.com  Mon Jan  7 20:40:44 2008
   1164 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   1165 Date: Tue,  8 Jan 2008 02:40:44 +0100
   1166 Subject: [sup-talk] [PATCH] message.rb: Fix the usage of error_message and
   1167 	Chunk::Text.new.
   1168 Message-ID: <11997564441282-git-send-email-nicolas.pouillard@gmail.com>
   1169 
   1170 ---
   1171  lib/sup/message.rb |    4 ++--
   1172  1 files changed, 2 insertions(+), 2 deletions(-)
   1173 
   1174 diff --git a/lib/sup/message.rb b/lib/sup/message.rb
   1175 index b342ea5..01008ed 100644
   1176 --- a/lib/sup/message.rb
   1177 +++ b/lib/sup/message.rb
   1178 @@ -163,7 +163,7 @@ class Message
   1179    def load_from_source!
   1180      @chunks ||=
   1181        if @source.has_errors?
   1182 -        [Chunk::Text.new(error_message(@source.error.message.split("\n")))]
   1183 +        [Chunk::Text.new(error_message(@source.error.message).split("\n"))]
   1184        else
   1185          begin
   1186            ## we need to re-read the header because it contains information
   1187 @@ -182,7 +182,7 @@ class Message
   1188            ## up the error message one
   1189            @source.error ||= e
   1190            Redwood::report_broken_sources :force_to_top => true
   1191 -          [Chunk::Text.new(error_message(e.message))]
   1192 +          [Chunk::Text.new(error_message(e.message).split("\n"))]
   1193          end
   1194        end
   1195    end
   1196 -- 
   1197 1.5.3.1.109.gacd69
   1198 
   1199 From nicolas.pouillard@gmail.com  Mon Jan  7 20:42:56 2008
   1200 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   1201 Date: Tue,  8 Jan 2008 02:42:56 +0100
   1202 Subject: [sup-talk] [PATCH] encoding, fix: Normalize UTF8 and UTF_8 to utf8,
   1203 	to please iconv.
   1204 Message-ID: <11997565763275-git-send-email-nicolas.pouillard@gmail.com>
   1205 
   1206 ---
   1207  lib/sup/message.rb |    1 +
   1208  lib/sup/rfc2047.rb |    2 ++
   1209  2 files changed, 3 insertions(+), 0 deletions(-)
   1210 
   1211 diff --git a/lib/sup/message.rb b/lib/sup/message.rb
   1212 index 01008ed..53ab2a6 100644
   1213 --- a/lib/sup/message.rb
   1214 +++ b/lib/sup/message.rb
   1215 @@ -391,6 +391,7 @@ private
   1216    end
   1217  
   1218    def self.convert_from body, charset
   1219 +    charset = "utf-8" if charset =~ /UTF_?8/i
   1220      begin
   1221        raise MessageFormatError, "RubyMail decode returned a null body" unless body
   1222        return body unless charset
   1223 diff --git a/lib/sup/rfc2047.rb b/lib/sup/rfc2047.rb
   1224 index 10ad7e0..947de02 100644
   1225 --- a/lib/sup/rfc2047.rb
   1226 +++ b/lib/sup/rfc2047.rb
   1227 @@ -52,6 +52,8 @@ module Rfc2047
   1228          # WORD.
   1229        end
   1230  
   1231 +      charset = "utf-8" if charset =~ /UTF_?8/i
   1232 +
   1233        # Convert:
   1234        #
   1235        # Remember - Iconv.open(to, from)!
   1236 -- 
   1237 1.5.3.1.109.gacd69
   1238 
   1239 From nicolas.pouillard@gmail.com  Mon Jan  7 20:43:51 2008
   1240 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   1241 Date: Tue,  8 Jan 2008 02:43:51 +0100
   1242 Subject: [sup-talk] [PATCH] fix: Add parentheses since `||' binds more than
   1243 	`or'.
   1244 Message-ID: <11997566312863-git-send-email-nicolas.pouillard@gmail.com>
   1245 
   1246 ---
   1247  lib/sup/modes/compose-mode.rb |    6 +++---
   1248  1 files changed, 3 insertions(+), 3 deletions(-)
   1249 
   1250 diff --git a/lib/sup/modes/compose-mode.rb b/lib/sup/modes/compose-mode.rb
   1251 index 3c92fd2..f063b92 100644
   1252 --- a/lib/sup/modes/compose-mode.rb
   1253 +++ b/lib/sup/modes/compose-mode.rb
   1254 @@ -21,9 +21,9 @@ class ComposeMode < EditMessageMode
   1255  
   1256    def self.spawn_nicely opts={}
   1257      to = opts[:to] || BufferManager.ask_for_contacts(:people, "To: ") or return
   1258 -    cc = opts[:cc] || BufferManager.ask_for_contacts(:people, "Cc: ") or return if $config[:ask_for_cc]
   1259 -    bcc = opts[:bcc] || BufferManager.ask_for_contacts(:people, "Bcc: ") or return if $config[:ask_for_bcc]
   1260 -    subj = opts[:subj] || BufferManager.ask(:subject, "Subject: ") or return if $config[:ask_for_subject]
   1261 +    cc = opts[:cc] || (BufferManager.ask_for_contacts(:people, "Cc: ") or return if $config[:ask_for_cc])
   1262 +    bcc = opts[:bcc] || (BufferManager.ask_for_contacts(:people, "Bcc: ") or return if $config[:ask_for_bcc])
   1263 +    subj = opts[:subj] || (BufferManager.ask(:subject, "Subject: ") or return if $config[:ask_for_subject])
   1264      
   1265      mode = ComposeMode.new :from => opts[:from], :to => to, :cc => cc, :bcc => bcc, :subj => subj
   1266      BufferManager.spawn "New Message", mode
   1267 -- 
   1268 1.5.3.1.109.gacd69
   1269 
   1270 From patroclo7@gmail.com  Mon Jan  7 22:24:50 2008
   1271 From: patroclo7@gmail.com (Giorgio Lando)
   1272 Date: Tue, 08 Jan 2008 04:24:50 +0100
   1273 Subject: [sup-talk] backspace and delete keys
   1274 In-Reply-To: <1199751709-sup-9184@clarabella.clarabella>
   1275 References: <1199746454-sup-5936@clarabella.clarabella>
   1276 	<1199750582-sup-5731@south>
   1277 	<1199751709-sup-9184@clarabella.clarabella>
   1278 Message-ID: <1199762547-sup-3379@clarabella.clarabella>
   1279 
   1280 However the git version now gets
   1281 an exception and quits when some keys are pressed ( \, /, ? and some
   1282 others).
   1283 
   1284 The following is the sup-exception-log.txt:
   1285 
   1286 --- NameError from thread: main
   1287 uninitialized constant Redwood::InputSequenceAborted
   1288 aur/sources/sup/bin/sup:209
   1289 
   1290 Regards
   1291 Giorgio
   1292 
   1293 From wmorgan-sup@masanjin.net  Tue Jan  8 01:36:35 2008
   1294 From: wmorgan-sup@masanjin.net (William Morgan)
   1295 Date: Mon, 07 Jan 2008 22:36:35 -0800
   1296 Subject: [sup-talk] [PATCH] message.rb: Fix the usage of error_message
   1297 	and Chunk::Text.new.
   1298 In-Reply-To: <11997564441282-git-send-email-nicolas.pouillard@gmail.com>
   1299 References: <11997564441282-git-send-email-nicolas.pouillard@gmail.com>
   1300 Message-ID: <1199774177-sup-8083@south>
   1301 
   1302 Applied, thanks.
   1303 
   1304 -- 
   1305 William <wmorgan-sup at masanjin.net>
   1306 
   1307 From wmorgan-sup@masanjin.net  Tue Jan  8 01:36:48 2008
   1308 From: wmorgan-sup@masanjin.net (William Morgan)
   1309 Date: Mon, 07 Jan 2008 22:36:48 -0800
   1310 Subject: [sup-talk] [PATCH] encoding,
   1311 	fix: Normalize UTF8 and UTF_8 to utf8, to please iconv.
   1312 In-Reply-To: <11997565763275-git-send-email-nicolas.pouillard@gmail.com>
   1313 References: <11997565763275-git-send-email-nicolas.pouillard@gmail.com>
   1314 Message-ID: <1199774201-sup-7114@south>
   1315 
   1316 Applied, thanks.
   1317 
   1318 -- 
   1319 William <wmorgan-sup at masanjin.net>
   1320 
   1321 From wmorgan-sup@masanjin.net  Tue Jan  8 01:39:41 2008
   1322 From: wmorgan-sup@masanjin.net (William Morgan)
   1323 Date: Mon, 07 Jan 2008 22:39:41 -0800
   1324 Subject: [sup-talk] backspace and delete keys
   1325 In-Reply-To: <1199762547-sup-3379@clarabella.clarabella>
   1326 References: <1199746454-sup-5936@clarabella.clarabella>
   1327 	<1199750582-sup-5731@south>
   1328 	<1199751709-sup-9184@clarabella.clarabella>
   1329 	<1199762547-sup-3379@clarabella.clarabella>
   1330 Message-ID: <1199774271-sup-9832@south>
   1331 
   1332 Excerpts from Giorgio Lando's message of Mon Jan 07 19:24:50 -0800 2008:
   1333 > However the git version now gets an exception and quits when some keys
   1334 > are pressed ( \, /, ? and some others).
   1335 
   1336 I can't reproduce this. The backtrace also doesn't make sense, unless
   1337 buffer.rb (loaded by sup.rb) somehow isn't being loaded. That's where
   1338 InterruptedSequenceException is defined... have you made any changes
   1339 locally that may have caused this?
   1340 
   1341 -- 
   1342 William <wmorgan-sup at masanjin.net>
   1343 
   1344 From wmorgan-sup@masanjin.net  Tue Jan  8 01:37:40 2008
   1345 From: wmorgan-sup@masanjin.net (William Morgan)
   1346 Date: Mon, 07 Jan 2008 22:37:40 -0800
   1347 Subject: [sup-talk] [PATCH] fix: Add parentheses since `||' binds more
   1348 	than `or'.
   1349 In-Reply-To: <11997566312863-git-send-email-nicolas.pouillard@gmail.com>
   1350 References: <11997566312863-git-send-email-nicolas.pouillard@gmail.com>
   1351 Message-ID: <1199774246-sup-6042@south>
   1352 
   1353 Applied, thanks! Git is fun.
   1354 
   1355 -- 
   1356 William <wmorgan-sup at masanjin.net>
   1357 
   1358 From patroclo7@gmail.com  Tue Jan  8 06:31:56 2008
   1359 From: patroclo7@gmail.com (Giorgio Lando)
   1360 Date: Tue, 08 Jan 2008 12:31:56 +0100
   1361 Subject: [sup-talk] backspace and delete keys
   1362 In-Reply-To: <1199774271-sup-9832@south>
   1363 References: <1199746454-sup-5936@clarabella.clarabella>
   1364 	<1199750582-sup-5731@south>
   1365 	<1199751709-sup-9184@clarabella.clarabella>
   1366 	<1199762547-sup-3379@clarabella.clarabella>
   1367 	<1199774271-sup-9832@south>
   1368 Message-ID: <1199791609-sup-7134@clarabella.clarabella>
   1369 
   1370 > I can't reproduce this. The backtrace also doesn't make sense, unless
   1371 > buffer.rb (loaded by sup.rb) somehow isn't being loaded. That's where
   1372 > InterruptedSequenceException is defined... have you made any changes
   1373 > locally that may have caused this?
   1374 
   1375 I have tried to git clone from scratch but it still happens:
   1376 with all non-alphabetic keys, except 0, 1, @, &, $ and well... perhaps I
   1377 have not tried all of them, but surely with \, the numbers from 2 to 9,
   1378 quotes.
   1379 I do not know if something goes wrong in my environment, but 0.3
   1380 still works fine.
   1381 I have also tried to remove my two hooks, but with no impact
   1382 Giorgio
   1383 
   1384 From wmorgan-sup@masanjin.net  Tue Jan  8 10:34:28 2008
   1385 From: wmorgan-sup@masanjin.net (William Morgan)
   1386 Date: Tue, 08 Jan 2008 07:34:28 -0800
   1387 Subject: [sup-talk] backspace and delete keys
   1388 In-Reply-To: <1199791609-sup-7134@clarabella.clarabella>
   1389 References: <1199746454-sup-5936@clarabella.clarabella>
   1390 	<1199750582-sup-5731@south>
   1391 	<1199751709-sup-9184@clarabella.clarabella>
   1392 	<1199762547-sup-3379@clarabella.clarabella>
   1393 	<1199774271-sup-9832@south>
   1394 	<1199791609-sup-7134@clarabella.clarabella>
   1395 Message-ID: <1199806348-sup-6626@south>
   1396 
   1397 Excerpts from Giorgio Lando's message of Tue Jan 08 03:31:56 -0800 2008:
   1398 > I have tried to git clone from scratch but it still happens:
   1399 > with all non-alphabetic keys, except 0, 1, @, &, $ and well... perhaps I
   1400 > have not tried all of them, but surely with \, the numbers from 2 to 9,
   1401 > quotes.
   1402 > I do not know if something goes wrong in my environment, but 0.3
   1403 > still works fine.
   1404 > I have also tried to remove my two hooks, but with no impact
   1405 
   1406 I'm willing to bet that this is because it's still loading 0.3
   1407 libraries. Try removing the 0.3 gem entirely before running from git.
   1408 
   1409 -- 
   1410 William <wmorgan-sup at masanjin.net>
   1411 
   1412 From patroclo7@gmail.com  Tue Jan  8 11:21:23 2008
   1413 From: patroclo7@gmail.com (Giorgio Lando)
   1414 Date: Tue, 08 Jan 2008 17:21:23 +0100
   1415 Subject: [sup-talk] backspace and delete keys
   1416 In-Reply-To: <1199806348-sup-6626@south>
   1417 References: <1199746454-sup-5936@clarabella.clarabella>
   1418 	<1199750582-sup-5731@south>
   1419 	<1199751709-sup-9184@clarabella.clarabella>
   1420 	<1199762547-sup-3379@clarabella.clarabella>
   1421 	<1199774271-sup-9832@south>
   1422 	<1199791609-sup-7134@clarabella.clarabella>
   1423 	<1199806348-sup-6626@south>
   1424 Message-ID: <1199809040-sup-2026@clarabella.clarabella>
   1425 
   1426 > I'm willing to bet that this is because it's still loading 0.3
   1427 > libraries. Try removing the 0.3 gem entirely before running from git.
   1428 
   1429 Yes, now it works. Sorry, I wasn't aware that I needed to do that. I had
   1430 tried to adjust the -I option of ruby, but with no luck. Is there in
   1431 general a way to have the release and the git version coexisting?
   1432 
   1433 Giorgio
   1434 
   1435 From wmorgan-sup@masanjin.net  Tue Jan  8 11:40:49 2008
   1436 From: wmorgan-sup@masanjin.net (William Morgan)
   1437 Date: Tue, 08 Jan 2008 08:40:49 -0800
   1438 Subject: [sup-talk] backspace and delete keys
   1439 In-Reply-To: <1199809040-sup-2026@clarabella.clarabella>
   1440 References: <1199746454-sup-5936@clarabella.clarabella>
   1441 	<1199750582-sup-5731@south>
   1442 	<1199751709-sup-9184@clarabella.clarabella>
   1443 	<1199762547-sup-3379@clarabella.clarabella>
   1444 	<1199774271-sup-9832@south>
   1445 	<1199791609-sup-7134@clarabella.clarabella>
   1446 	<1199806348-sup-6626@south>
   1447 	<1199809040-sup-2026@clarabella.clarabella>
   1448 Message-ID: <1199810397-sup-8123@south>
   1449 
   1450 Excerpts from Giorgio Lando's message of Tue Jan 08 08:21:23 -0800 2008:
   1451 > Yes, now it works. Sorry, I wasn't aware that I needed to do that. I
   1452 > had tried to adjust the -I option of ruby, but with no luck. Is there
   1453 > in general a way to have the release and the git version coexisting?
   1454 
   1455 This issue has bitten several people before, including me. Let me see if
   1456 I can come up with a way around it.
   1457 
   1458 -- 
   1459 William <wmorgan-sup at masanjin.net>
   1460 
   1461 From wmorgan-sup@masanjin.net  Tue Jan  8 12:23:03 2008
   1462 From: wmorgan-sup@masanjin.net (William Morgan)
   1463 Date: Tue, 08 Jan 2008 09:23:03 -0800
   1464 Subject: [sup-talk] backspace and delete keys
   1465 In-Reply-To: <1199810397-sup-8123@south>
   1466 References: <1199746454-sup-5936@clarabella.clarabella>
   1467 	<1199750582-sup-5731@south>
   1468 	<1199751709-sup-9184@clarabella.clarabella>
   1469 	<1199762547-sup-3379@clarabella.clarabella>
   1470 	<1199774271-sup-9832@south>
   1471 	<1199791609-sup-7134@clarabella.clarabella>
   1472 	<1199806348-sup-6626@south>
   1473 	<1199809040-sup-2026@clarabella.clarabella>
   1474 	<1199810397-sup-8123@south>
   1475 Message-ID: <1199812350-sup-1695@south>
   1476 
   1477 Excerpts from William Morgan's message of Tue Jan 08 08:40:49 -0800 2008:
   1478 > This issue has bitten several people before, including me. Let me see
   1479 > if I can come up with a way around it.
   1480 
   1481 Weird. I could've sworn I'd seen it before, but after reinstalling the
   1482 0.3 gem, ruby -Ilib bin/sup still works fine.
   1483 
   1484 What's your gem version? I'm at 0.9.0.
   1485 
   1486 -- 
   1487 William <wmorgan-sup at masanjin.net>
   1488 
   1489 From patroclo7@gmail.com  Tue Jan  8 12:32:54 2008
   1490 From: patroclo7@gmail.com (Giorgio Lando)
   1491 Date: Tue, 08 Jan 2008 18:32:54 +0100
   1492 Subject: [sup-talk] backspace and delete keys
   1493 In-Reply-To: <1199812350-sup-1695@south>
   1494 References: <1199746454-sup-5936@clarabella.clarabella>
   1495 	<1199750582-sup-5731@south>
   1496 	<1199751709-sup-9184@clarabella.clarabella>
   1497 	<1199762547-sup-3379@clarabella.clarabella>
   1498 	<1199774271-sup-9832@south>
   1499 	<1199791609-sup-7134@clarabella.clarabella>
   1500 	<1199806348-sup-6626@south>
   1501 	<1199809040-sup-2026@clarabella.clarabella>
   1502 	<1199810397-sup-8123@south> <1199812350-sup-1695@south>
   1503 Message-ID: <1199813518-sup-5839@clarabella.clarabella>
   1504 
   1505 > What's your gem version? I'm at 0.9.0.
   1506 
   1507 The version of gem is 0.9.4. May be I should clarify the scenario where
   1508 the exception happened. I had sup-0.3 in the standard gems system
   1509 directory ans sup-git in a folder in my home directory. I cd to the
   1510 sup-git folder and did ruby -Ilib -w sup.
   1511 Now I have simply moved the sup-git directory in the standard gems
   1512 system directory.
   1513  
   1514 Giorgio Lando
   1515 
   1516 From patroclo7@gmail.com  Tue Jan  8 13:42:59 2008
   1517 From: patroclo7@gmail.com (Giorgio Lando)
   1518 Date: Tue, 08 Jan 2008 19:42:59 +0100
   1519 Subject: [sup-talk] supprint works fine
   1520 Message-ID: <1199817673-sup-5225@clarabella.clarabella>
   1521 
   1522 If anyone is interested, sup interacts perfectly with muttprint. It is
   1523 enough to pipe a message to muttprint through the | shortcut in the git 
   1524 version of sup. So the
   1525 only problem with muttprint is that it should be renamed...
   1526 Giorgio
   1527 
   1528 From 5srmspw02@sneakemail.com  Tue Jan  8 22:39:18 2008
   1529 From: 5srmspw02@sneakemail.com (Guarded Identity)
   1530 Date: Tue, 08 Jan 2008 21:39:18 -0600
   1531 Subject: [sup-talk] New User Questions
   1532 Message-ID: <29393-78803@sneakemail.com>
   1533 
   1534 Hello everyone,
   1535 
   1536 First off.  William, thanks a lot for all the work.  The Mutt home page
   1537 has always had this quote: "All mail clients suck. This one [mutt] just
   1538 sucks less."  I know Sup has room for more features and functionality,
   1539 but it my mind, it's no where near sucking, especially with the option
   1540 of using sup-console or Ruby scripts using Redwood libraries.
   1541 
   1542 Having just gotten started, I have a slew of questions.  I'll try to
   1543 organize/enumerate them below to help with in-line responses.
   1544 
   1545 I'm using maildirs as opposed to mboxes.  I've always preferred maildirs
   1546 over mboxes to avoid dealing with gigantic mail files.
   1547 
   1548    1. Can sent mail only be stored in an mbox, or are other formats
   1549       supported?
   1550 
   1551 I haven't gotten around to digging deeply into Sup's source, so I'm not
   1552 sure about the details of how E-mails are indexed.  I know Sup doesn't
   1553 play well with other MUAs.  The FAQ discusses mboxes pretty well.  I was
   1554 hoping for a little more discussion of how modification of maildir mail
   1555 by other MUAs affects Sup.  For instance, the maildir specification has
   1556 mail put in $MAILDIR/new/ until read by a MUA, which should move the
   1557 mail to $MAILDIR/cur/ to mark the mail as "seen".
   1558 
   1559    2. Will migration of maildir mail from new/ to cur/ necessitate an
   1560       execution of sup-sync?
   1561 
   1562 Also, "read" flags (and others) are stored in the Maildir filename.
   1563 
   1564    3. If the filename of maildir mail changes, is a sup-sync required?
   1565 
   1566 If 2. or 3. are indeed problems, maybe I could front the maildir sources
   1567 with an IMAP server.  I had done this before, actually, but I noticed
   1568 that Sup indexing was slowed down quite a bit (rss2email and mailing
   1569 lists generate a lot of new mail).  If I do go with IMAP, I guess I
   1570 could sequence a sup-sync right after my crontab call to fetchmail to
   1571 help with indexing?  I just wasn't keen on Sup being locked out
   1572 periodically by crontab.
   1573 
   1574 Alternatively, I could move all my Maildirs into mboxes.  I know Sup has
   1575 a bias towards not deleting mail, but sup-sync-back is there for mboxes.
   1576 
   1577    4. How far away is sup-sync-back support for maildirs or IMAP?  Is
   1578       the work straight-forward or are there some technical kinks to be
   1579       ironed out?
   1580 
   1581    5. Should I consider using mboxes for any reason beyond support by
   1582       sup-sync-back?
   1583 
   1584 Also, I would really like to have time-based auto-expiry (excluding
   1585 starred or special-labeled items) for some of my mail (primarily mailing
   1586 lists and rss feeds).  With mboxes, I guess I could do some
   1587 "deleted"-labeling with a Ruby script followed by a call to
   1588 sup-sync-back.
   1589     
   1590    6. What are my scripting options for mail expiry with Maildirs?  The
   1591       search to get the message objects is pretty straight forward.  How
   1592       much further work is it to delete the message from the index and
   1593       to get a filename of the message to delete from the maildir?
   1594 
   1595 Also, I kind of miss urlview.
   1596 
   1597    7. Any proposal for easily opening urls from messages?  
   1598     
   1599       urlview is already coded up, so I'm all for a mechanism for piping
   1600       messages into an external application.  But this leads to other
   1601       design issues, I think, like how to enable user-level key
   1602       bindings.
   1603 
   1604 I have few questions regarding hooks and threading:
   1605 
   1606    8. I'm a little confused about threading interacts with labeling in
   1607       Sup.  Labels are applied to entire threads, but it seems that
   1608       labels are stored on a per-mail basis.  Is seems possible for
   1609       message within a thread to have different labels, say by using a
   1610       before-add-message.rb hook.  Is the label set for the thread a
   1611       union of all the labels of its constituents?
   1612     
   1613    9. If a new message comes into a thread, is it auto-labeled with the
   1614       labels of the thread?
   1615 
   1616   10. I tried to do some auto-archiving with the before-add-message.rb
   1617       hook using message.remove_label("inbox"), but it didn't work.  Is
   1618       this possible?  Or is auto-archiving only possible at the source
   1619       level?
   1620 
   1621 Finally. . .
   1622 
   1623   11. Is it possible to search for mail that has no labels without saying
   1624       "!label:label1 AND !label:label2 AND ..."?
   1625 
   1626       I looked a little in the Ferret documentation, but didn't find a
   1627       way.  I was trying to do this to get at some mail I archived
   1628       accidentally before applying labels.
   1629 
   1630 That's what I've got for now.  I hope I didn't overwhelm the list with a
   1631 lot of stupid questions.
   1632 
   1633 Thanks for your help,
   1634 Sukant
   1635 
   1636 From wmorgan-sup@masanjin.net  Wed Jan  9 11:09:48 2008
   1637 From: wmorgan-sup@masanjin.net (William Morgan)
   1638 Date: Wed, 09 Jan 2008 08:09:48 -0800
   1639 Subject: [sup-talk] interface blinking and corrupted on the console
   1640 In-Reply-To: <1199563333-sup-1769@tomsk>
   1641 References: <1199537691-sup-493@clarabella.clarabella>
   1642 	<1199557847-sup-5728@south> <1199563333-sup-1769@tomsk>
   1643 Message-ID: <1199894905-sup-3585@south>
   1644 
   1645 Excerpts from Marcus Williams's message of Sat Jan 05 12:11:14 -0800 2008:
   1646 > I think checking if $TERM is one of "xterm.*" and "rxvt.*". I'd also
   1647 > add "screen" to the list as well (because screen deals with it and my
   1648 > main usage of sup is during a screen session :) and maybe "cyg.*" for
   1649 > whatever the cygwin term variable is (I think its cygwin but might be
   1650 > cygterm cant remember).  Needs to be a regex because you get stuff
   1651 > like xterm-color.
   1652 
   1653 Ok, I just committed this to git master:
   1654 
   1655 commit 9722a770cadd44ddc4af6ddcb56eb8edb35c93b9
   1656 Author: William Morgan <wmorgan-sup at masanjin.net>
   1657 Date:   Wed Jan 9 08:06:39 2008 -0800
   1658 
   1659     only set terminal title if $TERM is an xterm or rxvt variant
   1660 
   1661 diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
   1662 index fa1afe6..782695b 100644
   1663 --- a/lib/sup/buffer.rb
   1664 +++ b/lib/sup/buffer.rb
   1665 @@ -63,6 +63,7 @@ class Buffer
   1666      @title = opts[:title] || ""
   1667      @force_to_top = opts[:force_to_top] || false
   1668      @x, @y, @width, @height = 0, 0, width, height
   1669 +    @in_x = ENV["TERM"] =~ /(xterm|rxvt)/
   1670    end
   1671  
   1672    def content_height; @height - 1; end
   1673 @@ -262,7 +263,7 @@ EOS
   1674          get_status_and_title @focus_buf # must be called outside of the ncurses
   1675        end
   1676  
   1677 -    print "\033]2;#{title}\07" if title
   1678 +    print "\033]2;#{title}\07" if title && @in_x
   1679  
   1680      Ncurses.mutex.lock unless opts[:sync] == false
   1681 
   1682 
   1683 
   1684 
   1685 -- 
   1686 William <wmorgan-sup at masanjin.net>
   1687 
   1688 From patroclo7@gmail.com  Wed Jan  9 12:49:18 2008
   1689 From: patroclo7@gmail.com (Giorgio Lando)
   1690 Date: Wed, 09 Jan 2008 18:49:18 +0100
   1691 Subject: [sup-talk] interface blinking and corrupted on the console
   1692 In-Reply-To: <1199894905-sup-3585@south>
   1693 References: <1199537691-sup-493@clarabella.clarabella>
   1694 	<1199557847-sup-5728@south> <1199563333-sup-1769@tomsk>
   1695 	<1199894905-sup-3585@south>
   1696 Message-ID: <1199900856-sup-8306@clarabella.clarabella>
   1697 
   1698 >     only set terminal title if $TERM is an xterm or rxvt variant
   1699 
   1700 Thanks. It would be nice if you could add the screen variants, because it works fine in screen,
   1701 as someone else already noted. 
   1702 Giorgio
   1703 
   1704 From wmorgan-sup@masanjin.net  Wed Jan  9 12:57:31 2008
   1705 From: wmorgan-sup@masanjin.net (William Morgan)
   1706 Date: Wed, 09 Jan 2008 09:57:31 -0800
   1707 Subject: [sup-talk] new in git: 'next' branch
   1708 Message-ID: <1199901343-sup-7480@south>
   1709 
   1710 As part of a general effort to make Sup development both more organized
   1711 and easier to contribute to, I've created a branch on the shared repo
   1712 called "next". I'm going to try and push any changes not obviously
   1713 trivial to next, and only migrate them to master once they've had some
   1714 exposure.
   1715 
   1716 The goal is that, if you track master, you should get a Sup that's just
   1717 as stable as a distribution, if not more so, and if you track next, you
   1718 should get a Sup that has the latest and greatest features, but might
   1719 break every once in a while. Neither of these branches will be rebased,
   1720 which means, for those of you not intimately familiar with git arcana,
   1721 that a "git pull" will always work (module changes you've made locally,
   1722 of course).
   1723 
   1724 GIT CRASH-COURSE
   1725 ----------------
   1726 To track next, command your computer as follows:
   1727 
   1728   $ git branch next origin/next
   1729   Branch next set up to track remote branch refs/remotes/origin/next.
   1730   $ git checkout next
   1731   Switched to branch "next"
   1732   $ git pull
   1733   Already up-to-date.
   1734 
   1735 You can switch back to master with "git checkout master". Note that git
   1736 won't let you switch if you have uncommitted changes, so make use of
   1737 "git stash" to stash them away with a nice label.
   1738 
   1739 -- 
   1740 William <wmorgan-sup at masanjin.net>
   1741 
   1742 From wmorgan-sup@masanjin.net  Wed Jan  9 13:00:53 2008
   1743 From: wmorgan-sup@masanjin.net (William Morgan)
   1744 Date: Wed, 09 Jan 2008 10:00:53 -0800
   1745 Subject: [sup-talk] the proper way of determining the encoding
   1746 In-Reply-To: <1199695733-sup-2741@clarabella.clarabella>
   1747 References: <1199569265-sup-4567@clarabella.clarabella>
   1748 	<1199685831-sup-2011@south>
   1749 	<1199695733-sup-2741@clarabella.clarabella>
   1750 Message-ID: <1199901555-sup-2661@south>
   1751 
   1752 Excerpts from Giorgio Lando's message of Mon Jan 07 00:51:08 -0800 2008:
   1753 > I understand. May be the encoding problems are so intricate and
   1754 > heterogeneous that they could be worth a configuration option, so the
   1755 > user can in anyway force a certain encoding if needed/desired?
   1756 
   1757 I'm certainly happy to allow users to force a certain encoding, but I
   1758 think largely issue of encoding problems HAS been solved (at least on
   1759 Unixes) by locale and all the LC_* environment variables. I'm certainly
   1760 not an export on this stuff, though.
   1761 
   1762 I just committed the following terrible patch to next, which should
   1763 properly find everyone's locale, if they have a locale. Mac users, I'd
   1764 love to know if this actually works for you.
   1765 
   1766 commit 6af3048fe82f48f0368a619ea785f0a394b0bbd4
   1767 Author: William Morgan <wmorgan-sup at masanjin.net>
   1768 Date:   Wed Jan 9 08:30:30 2008 -0800
   1769 
   1770     detect character set correctly (but unix-centrically)
   1771 
   1772 diff --git a/lib/sup.rb b/lib/sup.rb
   1773 index 25809dd..5bb27ba 100644
   1774 --- a/lib/sup.rb
   1775 +++ b/lib/sup.rb
   1776 @@ -49,16 +49,6 @@ module Redwood
   1777    YAML_DOMAIN = "masanjin.net"
   1778    YAML_DATE = "2006-10-01"
   1779  
   1780 -## determine encoding and character set
   1781 -## probably a better way to do this
   1782 -  $ctype = ENV["LC_CTYPE"] || ENV["LANG"] || "en-US.utf-8"
   1783 -  $encoding =
   1784 -    if $ctype =~ /\.(.*)?/
   1785 -      $1
   1786 -    else
   1787 -      "utf-8"
   1788 -    end
   1789 -
   1790  ## record exceptions thrown in threads nicely
   1791    def reporting_thread name
   1792      if $opts[:no_threads]
   1793 @@ -235,6 +225,16 @@ module Redwood
   1794    module_function :log
   1795  end
   1796  
   1797 +## determine encoding and character set. there MUST be a better way to
   1798 +## do this.
   1799 +  $encoding = `locale -c LC_CTYPE|head -6|tail -1`.chomp
   1800 +  if $encoding
   1801 +    Redwood::log "using character set encoding #{$encoding.inspect}"
   1802 +  else
   1803 +    Redwood::log "warning: can't find character set by using locale, defaulting
   1804 +    $encoding = "utf-8"
   1805 +  end
   1806 +
   1807  ## now everything else (which can feel free to call Redwood::log at load time)
   1808  require "sup/update"
   1809  require "sup/suicide"
   1810 
   1811 -- 
   1812 William <wmorgan-sup at masanjin.net>
   1813 
   1814 From wmorgan-sup@masanjin.net  Wed Jan  9 13:09:12 2008
   1815 From: wmorgan-sup@masanjin.net (William Morgan)
   1816 Date: Wed, 09 Jan 2008 10:09:12 -0800
   1817 Subject: [sup-talk] interface blinking and corrupted on the console
   1818 In-Reply-To: <1199900856-sup-8306@clarabella.clarabella>
   1819 References: <1199537691-sup-493@clarabella.clarabella>
   1820 	<1199557847-sup-5728@south> <1199563333-sup-1769@tomsk>
   1821 	<1199894905-sup-3585@south>
   1822 	<1199900856-sup-8306@clarabella.clarabella>
   1823 Message-ID: <1199902136-sup-4582@south>
   1824 
   1825 Excerpts from Giorgio Lando's message of Wed Jan 09 09:49:18 -0800 2008:
   1826 > Thanks. It would be nice if you could add the screen variants, because
   1827 > it works fine in screen, as someone else already noted.
   1828 
   1829 Whoops. Added!
   1830 
   1831 -- 
   1832 William <wmorgan-sup at masanjin.net>
   1833 
   1834 From wmorgan-sup@masanjin.net  Wed Jan  9 14:02:47 2008
   1835 From: wmorgan-sup@masanjin.net (William Morgan)
   1836 Date: Wed, 09 Jan 2008 11:02:47 -0800
   1837 Subject: [sup-talk] backspace and delete keys
   1838 In-Reply-To: <1199813518-sup-5839@clarabella.clarabella>
   1839 References: <1199746454-sup-5936@clarabella.clarabella>
   1840 	<1199750582-sup-5731@south>
   1841 	<1199751709-sup-9184@clarabella.clarabella>
   1842 	<1199762547-sup-3379@clarabella.clarabella>
   1843 	<1199774271-sup-9832@south>
   1844 	<1199791609-sup-7134@clarabella.clarabella>
   1845 	<1199806348-sup-6626@south>
   1846 	<1199809040-sup-2026@clarabella.clarabella>
   1847 	<1199810397-sup-8123@south> <1199812350-sup-1695@south>
   1848 	<1199813518-sup-5839@clarabella.clarabella>
   1849 Message-ID: <1199905135-sup-2008@south>
   1850 
   1851 Excerpts from Giorgio Lando's message of Tue Jan 08 09:32:54 -0800 2008:
   1852 > The version of gem is 0.9.4. May be I should clarify the scenario
   1853 > where the exception happened. I had sup-0.3 in the standard gems
   1854 > system directory ans sup-git in a folder in my home directory. I cd to
   1855 > the sup-git folder and did ruby -Ilib -w sup.
   1856 
   1857 That was my setup too. Weird that I no longer seem to have this problem.
   1858 
   1859 I've committed the following patch to next, which explicitly versions
   1860 bin/sup and lib/sup.rb and compares the two upon startup. Hopefully this
   1861 should detect this type of situation. For those of you who like to play
   1862 with sup via "rake gem", gems built from your checkout will have version
   1863 999.  (This was a suggestion Ian Taylor made a long time ago.)
   1864 
   1865 diff --git a/Rakefile b/Rakefile
   1866 index 1932f62..33e9883 100644
   1867 --- a/Rakefile
   1868 +++ b/Rakefile
   1869 @@ -7,7 +7,12 @@ class Hoe
   1870    def extra_deps; @extra_deps.reject { |x| Array(x).first == "hoe" } end
   1871  end # thanks to "Mike H"
   1872  
   1873 -Hoe.new('sup', Redwood::VERSION) do |p|
   1874 +## allow people who use development versions by running "rake gem"
   1875 +## and installing the resulting gem it to be able to do this. (gem
   1876 +## versions must be in dotted-digit notation only).
   1877 +version = Redwood::VERSION == "git" ? 999 : Redwood::VERSION
   1878 +
   1879 +Hoe.new('sup', version) do |p|
   1880    p.rubyforge_name = 'sup'
   1881    p.author = "William Morgan"
   1882    p.summary = 'A console-based email client with the best features of GMail, mutt, and emacs. Features full text search, labels, tagged operations, multiple buffers, recent contacts, and more.'
   1883 diff --git a/bin/sup b/bin/sup
   1884 index 0f48ab4..7314227 100644
   1885 --- a/bin/sup
   1886 +++ b/bin/sup
   1887 @@ -7,6 +7,20 @@ require 'fileutils'
   1888  require 'trollop'
   1889  require "sup"
   1890  
   1891 +BIN_VERSION = "git"
   1892 +
   1893 +unless Redwood::VERSION == BIN_VERSION
   1894 +  $stderr.puts <<EOS
   1895 +
   1896 +Error: version mismatch!
   1897 +The sup executable is at version #{BIN_VERSION.inspect}.
   1898 +The sup libraries are at version #{Redwood::VERSION.inspect}.
   1899 +
   1900 +Is your development environment conflicting with rubygems?
   1901 +EOS
   1902 +  exit(-1)
   1903 +end
   1904 +
   1905  $exceptions = []
   1906  $opts = Trollop::options do
   1907    version "sup v#{Redwood::VERSION}"
   1908 diff --git a/lib/sup.rb b/lib/sup.rb
   1909 index 5bb27ba..d34dec3 100644
   1910 --- a/lib/sup.rb
   1911 +++ b/lib/sup.rb
   1912 @@ -32,7 +32,7 @@ class Module
   1913  end
   1914  
   1915  module Redwood
   1916 -  VERSION = "0.3"
   1917 +  VERSION = "git"
   1918  
   1919    BASE_DIR   = ENV["SUP_BASE"] || File.join(ENV["HOME"], ".sup")
   1920    CONFIG_FN  = File.join(BASE_DIR, "config.yaml")
   1921 
   1922 -- 
   1923 William <wmorgan-sup at masanjin.net>
   1924 
   1925 From marcus-sup@bar-coded.net  Wed Jan  9 16:09:47 2008
   1926 From: marcus-sup@bar-coded.net (Marcus Williams)
   1927 Date: Wed, 09 Jan 2008 21:09:47 +0000
   1928 Subject: [sup-talk] interface blinking and corrupted on the console
   1929 In-Reply-To: <1199894905-sup-3585@south>
   1930 References: <1199537691-sup-493@clarabella.clarabella>
   1931 	<1199557847-sup-5728@south> <1199563333-sup-1769@tomsk>
   1932 	<1199894905-sup-3585@south>
   1933 Message-ID: <1199912893-sup-5782@tomsk>
   1934 
   1935 Excerpts from William Morgan's message of Wed Jan 09 16:09:48 +0000 2008:
   1936 > Ok, I just committed this to git master:
   1937 > 
   1938 > commit 9722a770cadd44ddc4af6ddcb56eb8edb35c93b9
   1939 > Author: William Morgan <wmorgan-sup at masanjin.net>
   1940 > Date:   Wed Jan 9 08:06:39 2008 -0800
   1941 > 
   1942 >     only set terminal title if $TERM is an xterm or rxvt variant
   1943 
   1944 I get lots of @in_x not initialised errors at the terminal title line
   1945 (that ends && @in_x) Is the initialise routine called before the
   1946 buffer titles are set?
   1947 
   1948 Marcus
   1949 
   1950 From wmorgan-sup@masanjin.net  Wed Jan  9 18:02:05 2008
   1951 From: wmorgan-sup@masanjin.net (William Morgan)
   1952 Date: Wed, 09 Jan 2008 15:02:05 -0800
   1953 Subject: [sup-talk] interface blinking and corrupted on the console
   1954 In-Reply-To: <1199912893-sup-5782@tomsk>
   1955 References: <1199537691-sup-493@clarabella.clarabella>
   1956 	<1199557847-sup-5728@south> <1199563333-sup-1769@tomsk>
   1957 	<1199894905-sup-3585@south> <1199912893-sup-5782@tomsk>
   1958 Message-ID: <1199919253-sup-9556@south>
   1959 
   1960 Excerpts from Marcus Williams's message of Wed Jan 09 13:09:47 -0800 2008:
   1961 > I get lots of @in_x not initialised errors at the terminal title line
   1962 > (that ends && @in_x) Is the initialise routine called before the
   1963 > buffer titles are set?
   1964 
   1965 Whoops, I did something silly. Try it now. I just applied:
   1966 
   1967 diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
   1968 index f724f88..2a78787 100644
   1969 --- a/lib/sup/buffer.rb
   1970 +++ b/lib/sup/buffer.rb
   1971 @@ -63,7 +63,6 @@ class Buffer
   1972      @title = opts[:title] || ""
   1973      @force_to_top = opts[:force_to_top] || false
   1974      @x, @y, @width, @height = 0, 0, width, height
   1975 -    @in_x = ENV["TERM"] =~ /(xterm|rxvt|screen)/
   1976    end
   1977  
   1978    def content_height; @height - 1; end
   1979 @@ -178,6 +177,7 @@ EOS
   1980      @textfields = {}
   1981      @flash = nil
   1982      @shelled = @asking = false
   1983 +    @in_x = ENV["TERM"] =~ /(xterm|rxvt|screen)/
   1984  
   1985      self.class.i_am_the_instance self
   1986    end
   1987 
   1988 
   1989 -- 
   1990 William <wmorgan-sup at masanjin.net>
   1991 
   1992 From patroclo7@gmail.com  Wed Jan  9 19:39:10 2008
   1993 From: patroclo7@gmail.com (Giorgio Lando)
   1994 Date: Thu, 10 Jan 2008 01:39:10 +0100
   1995 Subject: [sup-talk] the proper way of determining the encoding
   1996 In-Reply-To: <1199901555-sup-2661@south>
   1997 References: <1199569265-sup-4567@clarabella.clarabella>
   1998 	<1199685831-sup-2011@south>
   1999 	<1199695733-sup-2741@clarabella.clarabella>
   2000 	<1199901555-sup-2661@south>
   2001 Message-ID: <1199925510-sup-7503@clarabella.clarabella>
   2002 
   2003 > I just committed the following terrible patch to next, which should
   2004 > properly find everyone's locale, if they have a locale. Mac users, I'd
   2005 > love to know if this actually works for you.
   2006 
   2007 I am not a mac user, but it works fine for me!
   2008 Giorgio
   2009 
   2010 From wmorgan-sup@masanjin.net  Thu Jan 10 01:34:03 2008
   2011 From: wmorgan-sup@masanjin.net (William Morgan)
   2012 Date: Wed, 09 Jan 2008 22:34:03 -0800
   2013 Subject: [sup-talk] New User Questions
   2014 In-Reply-To: <29393-78803@sneakemail.com>
   2015 References: <29393-78803@sneakemail.com>
   2016 Message-ID: <1199944172-sup-660@south>
   2017 
   2018 Excerpts from Guarded Identity's message of Tue Jan 08 19:39:18 -0800 2008:
   2019 > I know Sup has room for more features and functionality, but it my
   2020 > mind, it's no where near sucking, especially with the option of using
   2021 > sup-console or Ruby scripts using Redwood libraries.
   2022 
   2023 Thanks! Always nice to hear.
   2024 
   2025 > 1. Can sent mail only be stored in an mbox, or are other formats
   2026 > supported?
   2027 
   2028 Right now it's mbox only. There's no technical reason it couldn't be
   2029 stored in a Maildir, it's just that writing to an mbox is just the
   2030 easiest possible thing in the world.
   2031 
   2032 > 2. Will migration of maildir mail from new/ to cur/ necessitate an
   2033 > execution of sup-sync?
   2034 
   2035 Hm. I don't think so. As long as the mtime and size of the file are
   2036 preserved (which I believe they are during a move) you should be ok.
   2037 
   2038 > 3. If the filename of maildir mail changes, is a sup-sync required?
   2039 
   2040 No, for the same reason.
   2041 
   2042 > If 2. or 3. are indeed problems, maybe I could front the maildir
   2043 > sources with an IMAP server.  I had done this before, actually, but I
   2044 > noticed that Sup indexing was slowed down quite a bit (rss2email and
   2045 > mailing lists generate a lot of new mail).
   2046 
   2047 If that's true, then it must be due to IMAP transmission costs. I'm
   2048 certainly willing to believe that pulling a message from IMAP is
   2049 significantly slower than a disk read.
   2050 
   2051 > 4. How far away is sup-sync-back support for maildirs or IMAP?  Is the
   2052 > work straight-forward or are there some technical kinks to be ironed
   2053 > out?
   2054 
   2055 The actual interactions with the sources themselves should be pretty
   2056 easy, because they both support deleting individual messages directly.
   2057 Mbox was actually the hard one, because you have to rewrite the entire
   2058 file to delete messages.
   2059 
   2060 But ideally sup-sync-back would be source type agnostic, so there's some
   2061 work to be done in terms of adding deletability to the source API in
   2062 such a manner that it handles both the mbox case and the not-mbox case.
   2063 (Mbox deletions need to happen in one go, whereas not-mbox deletions can
   2064 happen one at a time.)
   2065 
   2066 > 5. Should I consider using mboxes for any reason beyond support by
   2067 > sup-sync-back?
   2068 
   2069 No. Mbox are a terrible, evil format that just happens to be
   2070 well-supported by Sup.
   2071 
   2072 > Also, I would really like to have time-based auto-expiry (excluding
   2073 > starred or special-labeled items) for some of my mail (primarily
   2074 > mailing lists and rss feeds). With mboxes, I guess I could do some
   2075 > "deleted"-labeling with a Ruby script followed by a call to
   2076 > sup-sync-back.
   2077 
   2078 That sounds like the right approach.
   2079 
   2080 > 6. What are my scripting options for mail expiry with Maildirs?  The
   2081 > search to get the message objects is pretty straight forward.  How
   2082 > much further work is it to delete the message from the index and to
   2083 > get a filename of the message to delete from the maildir?
   2084 
   2085 Trivial, although the filename/IMAP id require minor API changes to
   2086 expose those functions. But with a working sup-sync-back that applies to
   2087 all source types, you won't have to do anything other than inject
   2088 :deleted labels everywhere and simply call sup-sync-back.
   2089 
   2090 > 7. Any proposal for easily opening urls from messages?  
   2091 >     
   2092 > urlview is already coded up, so I'm all for a mechanism for piping
   2093 > messages into an external application.  But this leads to other design
   2094 > issues, I think, like how to enable user-level key bindings.
   2095 
   2096 I'm not familiar with urlview. If it is a console-based interactive
   2097 program, it should be possible to just spawn it via the hooks. We may
   2098 have to add a hook, depending on the exact usage case here.
   2099 
   2100 > 8. I'm a little confused about threading interacts with labeling in
   2101 > Sup.  Labels are applied to entire threads, but it seems that labels
   2102 > are stored on a per-mail basis.
   2103 
   2104 Correct. But you never really get to play directly with message-level
   2105 labels in Sup, except for a few little things like starring and unread
   2106 status, which can be applied per message in thread-view-mode.
   2107 
   2108 > Is seems possible for message within a thread to have different
   2109 > labels, say by using a before-add-message.rb hook.  Is the label set
   2110 > for the thread a union of all the labels of its constituents?
   2111 
   2112 Correct.
   2113 
   2114 > 9. If a new message comes into a thread, is it auto-labeled with the
   2115 > labels of the thread?
   2116 
   2117 No.
   2118 
   2119 > 10. I tried to do some auto-archiving with the before-add-message.rb
   2120 > hook using message.remove_label("inbox"), but it didn't work.  Is this
   2121 > possible?  Or is auto-archiving only possible at the source level?
   2122 
   2123 That should work. If you post your hook we can take a crack at
   2124 debugging.
   2125 
   2126 > 11. Is it possible to search for mail that has no labels without
   2127 > saying "!label:label1 AND !label:label2 AND ..."?
   2128 > 
   2129 > I looked a little in the Ferret documentation, but didn't find a way.
   2130 > I was trying to do this to get at some mail I archived accidentally
   2131 > before applying labels.
   2132 
   2133 Interesting question. I don't know of a better way. If there were one it
   2134 would be in the Ferret documentation. I suppose you could use DeMorgan's
   2135 law to save yourself a few characters though. :)
   2136 
   2137 -- 
   2138 William <wmorgan-sup at masanjin.net>
   2139 
   2140 From ingmar.stdin@gmail.com  Thu Jan 10 02:05:40 2008
   2141 From: ingmar.stdin@gmail.com (Ingmar Vanhassel)
   2142 Date: Thu, 10 Jan 2008 08:05:40 +0100
   2143 Subject: [sup-talk] backspace and delete keys
   2144 In-Reply-To: <1199905135-sup-2008@south>
   2145 References: <1199746454-sup-5936@clarabella.clarabella>
   2146 	<1199750582-sup-5731@south>
   2147 	<1199751709-sup-9184@clarabella.clarabella>
   2148 	<1199762547-sup-3379@clarabella.clarabella>
   2149 	<1199774271-sup-9832@south>
   2150 	<1199791609-sup-7134@clarabella.clarabella>
   2151 	<1199806348-sup-6626@south>
   2152 	<1199809040-sup-2026@clarabella.clarabella>
   2153 	<1199810397-sup-8123@south> <1199812350-sup-1695@south>
   2154 	<1199813518-sup-5839@clarabella.clarabella>
   2155 	<1199905135-sup-2008@south>
   2156 Message-ID: <1199948145-sup-5723@indigo>
   2157 
   2158 Excerpts from William Morgan's message of Wed Jan 09 20:02:47 +0100 2008:
   2159 > That was my setup too. Weird that I no longer seem to have this problem.
   2160 > 
   2161 > I've committed the following patch to next, which explicitly versions
   2162 > bin/sup and lib/sup.rb and compares the two upon startup. Hopefully this
   2163 > should detect this type of situation. For those of you who like to play
   2164 > with sup via "rake gem", gems built from your checkout will have version
   2165 > 999.  (This was a suggestion Ian Taylor made a long time ago.)
   2166 
   2167 Hi,
   2168 That is a good idea imho, I have been doing something similar here.
   2169 Currently `rake gem` fails here though with the following error:
   2170 (using ruby-1.8.6_p111 & rake-0.7.3.)
   2171 
   2172 
   2173 ingmar at indigo /var/temp/portage/net-mail/sup-9999/work $ rake gem
   2174 (in /home/temp/portage/net-mail/sup-9999/work)
   2175 [Thu Jan 10 07:48:47 +0100 2008] using character set encoding "UTF-8"
   2176 rake aborted!
   2177 can't convert Fixnum into String
   2178 /home/temp/portage/net-mail/sup-9999/work/Rakefile:15:in `new'
   2179 
   2180 Thank you
   2181 
   2182 From marcus-sup@bar-coded.net  Thu Jan 10 06:37:45 2008
   2183 From: marcus-sup@bar-coded.net (Marcus Williams)
   2184 Date: Thu, 10 Jan 2008 11:37:45 +0000
   2185 Subject: [sup-talk] interface blinking and corrupted on the console
   2186 In-Reply-To: <1199919253-sup-9556@south>
   2187 References: <1199537691-sup-493@clarabella.clarabella>
   2188 	<1199557847-sup-5728@south> <1199563333-sup-1769@tomsk>
   2189 	<1199894905-sup-3585@south> <1199912893-sup-5782@tomsk>
   2190 	<1199919253-sup-9556@south>
   2191 Message-ID: <1199965039-sup-1853@tomsk>
   2192 
   2193 On 9.1.2008, William Morgan wrote:
   2194 > Whoops, I did something silly. Try it now. I just applied:
   2195 
   2196 Fixed. Thanks.
   2197 
   2198 From wmorgan-sup@masanjin.net  Thu Jan 10 11:22:03 2008
   2199 From: wmorgan-sup@masanjin.net (William Morgan)
   2200 Date: Thu, 10 Jan 2008 08:22:03 -0800
   2201 Subject: [sup-talk] backspace and delete keys
   2202 In-Reply-To: <1199948145-sup-5723@indigo>
   2203 References: <1199746454-sup-5936@clarabella.clarabella>
   2204 	<1199750582-sup-5731@south>
   2205 	<1199751709-sup-9184@clarabella.clarabella>
   2206 	<1199762547-sup-3379@clarabella.clarabella>
   2207 	<1199774271-sup-9832@south>
   2208 	<1199791609-sup-7134@clarabella.clarabella>
   2209 	<1199806348-sup-6626@south>
   2210 	<1199809040-sup-2026@clarabella.clarabella>
   2211 	<1199810397-sup-8123@south> <1199812350-sup-1695@south>
   2212 	<1199813518-sup-5839@clarabella.clarabella>
   2213 	<1199905135-sup-2008@south> <1199948145-sup-5723@indigo>
   2214 Message-ID: <1199982010-sup-5502@south>
   2215 
   2216 Excerpts from Ingmar Vanhassel's message of Wed Jan 09 23:05:40 -0800 2008:
   2217 > ingmar at indigo /var/temp/portage/net-mail/sup-9999/work $ rake gem
   2218 > (in /home/temp/portage/net-mail/sup-9999/work)
   2219 > [Thu Jan 10 07:48:47 +0100 2008] using character set encoding "UTF-8"
   2220 > rake aborted!
   2221 > can't convert Fixnum into String
   2222 > /home/temp/portage/net-mail/sup-9999/work/Rakefile:15:in `new'
   2223 
   2224 Well Rake helpfully omits the backtrace, and I can think of a very easy
   2225 way to convert a fixnum into a string, but I'm guessing this is a
   2226 problem with an earlier version of RubyGems than I have. Does this patch
   2227 help?
   2228 
   2229 diff --git a/Rakefile b/Rakefile
   2230 index 33e9883..69f0b68 100644
   2231 --- a/Rakefile
   2232 +++ b/Rakefile
   2233 @@ -10,7 +10,7 @@ end # thanks to "Mike H"
   2234  ## allow people who use development versions by running "rake gem"
   2235  ## and installing the resulting gem it to be able to do this. (gem
   2236  ## versions must be in dotted-digit notation only).
   2237 -version = Redwood::VERSION == "git" ? 999 : Redwood::VERSION
   2238 +version = Redwood::VERSION == "git" ? "999" : Redwood::VERSION
   2239  
   2240  Hoe.new('sup', version) do |p|
   2241    p.rubyforge_name = 'sup'
   2242 
   2243 
   2244 
   2245 -- 
   2246 William <wmorgan-sup at masanjin.net>
   2247 
   2248 From ingmar.stdin@gmail.com  Thu Jan 10 12:23:35 2008
   2249 From: ingmar.stdin@gmail.com (Ingmar Vanhassel)
   2250 Date: Thu, 10 Jan 2008 18:23:35 +0100
   2251 Subject: [sup-talk] backspace and delete keys
   2252 In-Reply-To: <1199982010-sup-5502@south>
   2253 References: <1199746454-sup-5936@clarabella.clarabella>
   2254 	<1199750582-sup-5731@south>
   2255 	<1199751709-sup-9184@clarabella.clarabella>
   2256 	<1199762547-sup-3379@clarabella.clarabella>
   2257 	<1199774271-sup-9832@south>
   2258 	<1199791609-sup-7134@clarabella.clarabella>
   2259 	<1199806348-sup-6626@south>
   2260 	<1199809040-sup-2026@clarabella.clarabella>
   2261 	<1199810397-sup-8123@south> <1199812350-sup-1695@south>
   2262 	<1199813518-sup-5839@clarabella.clarabella>
   2263 	<1199905135-sup-2008@south> <1199948145-sup-5723@indigo>
   2264 	<1199982010-sup-5502@south>
   2265 Message-ID: <1199985758-sup-6668@indigo>
   2266 
   2267 Excerpts from William Morgan's message of Thu Jan 10 17:22:03 +0100 2008:
   2268 > Excerpts from Ingmar Vanhassel's message of Wed Jan 09 23:05:40 -0800 2008:
   2269 > > ingmar at indigo /var/temp/portage/net-mail/sup-9999/work $ rake gem
   2270 > > (in /home/temp/portage/net-mail/sup-9999/work)
   2271 > > [Thu Jan 10 07:48:47 +0100 2008] using character set encoding "UTF-8"
   2272 > > rake aborted!
   2273 > > can't convert Fixnum into String
   2274 > > /home/temp/portage/net-mail/sup-9999/work/Rakefile:15:in `new'
   2275 > 
   2276 > Well Rake helpfully omits the backtrace, and I can think of a very easy
   2277 > way to convert a fixnum into a string, but I'm guessing this is a
   2278 > problem with an earlier version of RubyGems than I have.
   2279 
   2280 I have rubygems-0.9.4-r2.
   2281 
   2282 > Does this patch help?
   2283 
   2284 It does, thanks!
   2285 
   2286 > diff --git a/Rakefile b/Rakefile
   2287 > index 33e9883..69f0b68 100644
   2288 > --- a/Rakefile
   2289 > +++ b/Rakefile
   2290 > @@ -10,7 +10,7 @@ end # thanks to "Mike H"
   2291 >  ## allow people who use development versions by running "rake gem"
   2292 >  ## and installing the resulting gem it to be able to do this. (gem
   2293 >  ## versions must be in dotted-digit notation only).
   2294 > -version = Redwood::VERSION == "git" ? 999 : Redwood::VERSION
   2295 > +version = Redwood::VERSION == "git" ? "999" : Redwood::VERSION
   2296 >  
   2297 >  Hoe.new('sup', version) do |p|
   2298 >    p.rubyforge_name = 'sup'
   2299 > 
   2300 
   2301 From wmorgan-sup@masanjin.net  Thu Jan 10 12:45:50 2008
   2302 From: wmorgan-sup@masanjin.net (William Morgan)
   2303 Date: Thu, 10 Jan 2008 09:45:50 -0800
   2304 Subject: [sup-talk] backspace and delete keys
   2305 In-Reply-To: <1199985758-sup-6668@indigo>
   2306 References: <1199746454-sup-5936@clarabella.clarabella>
   2307 	<1199750582-sup-5731@south>
   2308 	<1199751709-sup-9184@clarabella.clarabella>
   2309 	<1199762547-sup-3379@clarabella.clarabella>
   2310 	<1199774271-sup-9832@south>
   2311 	<1199791609-sup-7134@clarabella.clarabella>
   2312 	<1199806348-sup-6626@south>
   2313 	<1199809040-sup-2026@clarabella.clarabella>
   2314 	<1199810397-sup-8123@south> <1199812350-sup-1695@south>
   2315 	<1199813518-sup-5839@clarabella.clarabella>
   2316 	<1199905135-sup-2008@south> <1199948145-sup-5723@indigo>
   2317 	<1199982010-sup-5502@south> <1199985758-sup-6668@indigo>
   2318 Message-ID: <1199987116-sup-9006@south>
   2319 
   2320 Excerpts from Ingmar Vanhassel's message of Thu Jan 10 09:23:35 -0800 2008:
   2321 > I have rubygems-0.9.4-r2.
   2322 
   2323 Ok, 1.0.1 here, so that's probably the difference.
   2324 
   2325 > > Does this patch help?
   2326 > 
   2327 > It does, thanks!
   2328 
   2329 Applied to next.
   2330 
   2331 -- 
   2332 William <wmorgan-sup at masanjin.net>
   2333 
   2334 From marcus-sup@bar-coded.net  Fri Jan 11 06:09:12 2008
   2335 From: marcus-sup@bar-coded.net (Marcus Williams)
   2336 Date: Fri, 11 Jan 2008 11:09:12 +0000
   2337 Subject: [sup-talk] [PATCH] Fix for some warnings
   2338 Message-ID: <1200049520-sup-6114@tomsk>
   2339 
   2340 This patch fixes a couple of warnings in message and message-chunks.
   2341 The first is because a log message uses the from address before it is
   2342 assigned, the second is because @lines is uninitialised in some cases
   2343 (a sourceforge message in my case that didnt have any text content)
   2344 
   2345 This stops the console getting filled with warnings on spam.
   2346 
   2347 Marcus
   2348 -------------- next part --------------
   2349 A non-text attachment was scrubbed...
   2350 Name: warnings-patch
   2351 Type: application/octet-stream
   2352 Size: 1668 bytes
   2353 Desc: not available
   2354 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080111/07581dd7/attachment.obj 
   2355 
   2356 From marcus-sup@bar-coded.net  Fri Jan 11 12:20:58 2008
   2357 From: marcus-sup@bar-coded.net (Marcus Williams)
   2358 Date: Fri, 11 Jan 2008 17:20:58 +0000
   2359 Subject: [sup-talk] [PATCH] (Double/guarded) keypress to show all threads
   2360 Message-ID: <1200071751-sup-5552@tomsk>
   2361 
   2362 Hi -
   2363 
   2364 This patch adds a multi key combination to expand the thread index
   2365 view to all available threads. Note that this could return _a lot_ of
   2366 threads, which is why I've used a double keypress '!!' as a guard to
   2367 accidental usage. Its useful in conjunction with the tag all and apply
   2368 to all commands though.
   2369 
   2370 So you may search for some term, by default you will get a limited
   2371 number of threads back. Hitting ! twice allows you to expand the
   2372 search to all available results.
   2373 
   2374 It will be slow if you've got a large number of search results.
   2375 
   2376 Marcus
   2377 
   2378 -------------- next part --------------
   2379 A non-text attachment was scrubbed...
   2380 Name: load-all-threads
   2381 Type: application/octet-stream
   2382 Size: 2164 bytes
   2383 Desc: not available
   2384 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080111/65f63fe8/attachment-0001.obj 
   2385 
   2386 From wmorgan-sup@masanjin.net  Sat Jan 12 21:22:58 2008
   2387 From: wmorgan-sup@masanjin.net (William Morgan)
   2388 Date: Sat, 12 Jan 2008 18:22:58 -0800
   2389 Subject: [sup-talk] the proper way of determining the encoding
   2390 In-Reply-To: <1199925510-sup-7503@clarabella.clarabella>
   2391 References: <1199569265-sup-4567@clarabella.clarabella>
   2392 	<1199685831-sup-2011@south>
   2393 	<1199695733-sup-2741@clarabella.clarabella>
   2394 	<1199901555-sup-2661@south>
   2395 	<1199925510-sup-7503@clarabella.clarabella>
   2396 Message-ID: <1200190710-sup-6881@south>
   2397 
   2398 Excerpts from Giorgio Lando's message of Wed Jan 09 16:39:10 -0800 2008:
   2399 > I am not a mac user, but it works fine for me!
   2400 
   2401 I think I've found a better way, although it introduces yet another
   2402 dependency, to the 'gettext' gem. I'd be interested to see if this works
   2403 for you, Giorgio, and also for anyone who's running Sup under Cygwin or
   2404 OS X. This is an approach I feel a lot better about.
   2405 
   2406 diff --git a/Rakefile b/Rakefile
   2407 index 2f2b992..d4060c1 100644
   2408 --- a/Rakefile
   2409 +++ b/Rakefile
   2410 @@ -17,7 +17,7 @@ Hoe.new('sup', Redwood::VERSION) do |p|
   2411    p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[2].gsub(/^\s+/, "")
   2412    p.changes = p.paragraphs_of('History.txt', 0..0).join("\n\n")
   2413    p.email = "wmorgan-sup at masanjin.net"
   2414 -  p.extra_deps = [['ferret', '>= 0.10.13'], ['ncurses', '>= 0.9.1'], ['rmail', '>= 0.17'], 'highline', 'net-ssh', ['trollop', '>= 1.7'], 'lockfile', 'mime-types']
   2415 +  p.extra_deps = [['ferret', '>= 0.10.13'], ['ncurses', '>= 0.9.1'], ['rmail', '>= 0.17'], 'highline', 'net-ssh', ['trollop', '>= 1.7'], 'lockfile', 'mime-types', 'gettext']
   2416  end
   2417  
   2418  rule 'ss?.png' => 'ss?-small.png' do |t|
   2419 diff --git a/lib/sup.rb b/lib/sup.rb
   2420 index 5bb27ba..064e0af 100644
   2421 --- a/lib/sup.rb
   2422 +++ b/lib/sup.rb
   2423 @@ -3,6 +3,7 @@ require 'yaml'
   2424  require 'zlib'
   2425  require 'thread'
   2426  require 'fileutils'
   2427 +require 'gettext'
   2428  require 'curses'
   2429  
   2430  class Object
   2431 @@ -225,9 +226,8 @@ module Redwood
   2432    module_function :log
   2433  end
   2434  
   2435 -## determine encoding and character set. there MUST be a better way to
   2436 -## do this.
   2437 -  $encoding = `locale -c LC_CTYPE|head -6|tail -1`.chomp
   2438 +## determine encoding and character set
   2439 +  $encoding = Locale.current.charset
   2440    if $encoding
   2441      Redwood::log "using character set encoding #{$encoding.inspect}"
   2442    else
   2443 -- 
   2444 1.5.4.rc2.60.gb2e62-dirty
   2445 
   2446 
   2447 -- 
   2448 William <wmorgan-sup at masanjin.net>
   2449 
   2450 From wmorgan-sup@masanjin.net  Sat Jan 12 21:32:20 2008
   2451 From: wmorgan-sup@masanjin.net (William Morgan)
   2452 Date: Sat, 12 Jan 2008 18:32:20 -0800
   2453 Subject: [sup-talk] [PATCH] Fix for some warnings
   2454 In-Reply-To: <1200049520-sup-6114@tomsk>
   2455 References: <1200049520-sup-6114@tomsk>
   2456 Message-ID: <1200191029-sup-8287@south>
   2457 
   2458 Hi Marcus,
   2459 
   2460 >          returning("sup-faked-" + Digest::MD5.hexdigest(raw_header)) do |id|
   2461 > -          Redwood::log "faking message-id for message from #@from: #{id}"
   2462 > +          fakeid = id
   2463 >          end
   2464 
   2465 In this case, we can just assign the result directly to fakeid rather
   2466 than using the k-combinator (aka "returning"). Also there was a bit of
   2467 extraneous whitespace introduced at the end of one line in that patch,
   2468 which became obvious when I did a git diff --color.
   2469 
   2470 Can you try using git-format-patch to send the patch? It will create a
   2471 nice email out of a commit for you, which I can then apply without too
   2472 much effort. (Or if you're feeling courageous, use git-send-email, which
   2473 will also do the emailing for you.)
   2474 
   2475 I'm going to add a page to the wiki with an overview of git, branching,
   2476 and submitting patches.
   2477 
   2478 -- 
   2479 William <wmorgan-sup at masanjin.net>
   2480 
   2481 From wmorgan-sup@masanjin.net  Sat Jan 12 22:32:04 2008
   2482 From: wmorgan-sup@masanjin.net (William Morgan)
   2483 Date: Sat, 12 Jan 2008 19:32:04 -0800
   2484 Subject: [sup-talk] [PATCH] Fix for some warnings
   2485 In-Reply-To: <1200191029-sup-8287@south>
   2486 References: <1200049520-sup-6114@tomsk> <1200191029-sup-8287@south>
   2487 Message-ID: <1200195117-sup-7883@south>
   2488 
   2489 Excerpts from William Morgan's message of Sat Jan 12 18:32:20 -0800 2008:
   2490 > I'm going to add a page to the wiki with an overview of git,
   2491 > branching, and submitting patches.
   2492 
   2493 http://sup.rubyforge.org/wiki/wiki.pl?Contributing
   2494 
   2495 -- 
   2496 William <wmorgan-sup at masanjin.net>
   2497 
   2498 From wmorgan-sup@masanjin.net  Sun Jan 13 00:30:16 2008
   2499 From: wmorgan-sup@masanjin.net (William Morgan)
   2500 Date: Sat, 12 Jan 2008 21:30:16 -0800
   2501 Subject: [sup-talk] [PATCH] (Double/guarded) keypress to show all threads
   2502 In-Reply-To: <1200071751-sup-5552@tomsk>
   2503 References: <1200071751-sup-5552@tomsk>
   2504 Message-ID: <1200201168-sup-5812@south>
   2505 
   2506 Excerpts from Marcus Williams's message of Fri Jan 11 09:20:58 -0800 2008:
   2507 > This patch adds a multi key combination to expand the thread index
   2508 > view to all available threads. Note that this could return _a lot_ of
   2509 > threads, which is why I've used a double keypress '!!' as a guard to
   2510 > accidental usage. Its useful in conjunction with the tag all and apply
   2511 > to all commands though.
   2512 
   2513 This does make me a little nervous. Is the use case always that you want
   2514 to apply a command to all threads for a given search? If so, I wonder if
   2515 it would be better to explicitly model that, without the intermediate
   2516 process of loading all the threads.
   2517 
   2518 If we're going to have a potentially long-running activity like this
   2519 available from the UI, then I'd prefer to do it in a manner that gives
   2520 the user an indication of how long until completion, the ability to
   2521 abort, etc.
   2522 
   2523 How does gmail handle this type of thing? Or is everything so fast with
   2524 gmail that it doesn't matter?
   2525 
   2526 -- 
   2527 William <wmorgan-sup at masanjin.net>
   2528 
   2529 From wmorgan-sup@masanjin.net  Sun Jan 13 01:04:16 2008
   2530 From: wmorgan-sup@masanjin.net (William Morgan)
   2531 Date: Sat, 12 Jan 2008 22:04:16 -0800
   2532 Subject: [sup-talk] new in next: moving between messages in thread-view-mode
   2533 Message-ID: <1200204144-sup-1329@south>
   2534 
   2535 I've committed some slight changes in the way that 'n' and 'p' work in
   2536 thread-view-mode: they now always align the current message at the top
   2537 left of the screen. I think this makes them a little more handy for
   2538 running through all messages in a thread, since you can keep your eyes
   2539 in the same place.
   2540 
   2541 I've also added a 'z' command to align whatever message the cursor's on
   2542 currently to the top left.
   2543 
   2544 Comments?
   2545 
   2546 -- 
   2547 William <wmorgan-sup at masanjin.net>
   2548 
   2549 From patroclo7@gmail.com  Sun Jan 13 08:09:02 2008
   2550 From: patroclo7@gmail.com (Giorgio Lando)
   2551 Date: Sun, 13 Jan 2008 14:09:02 +0100
   2552 Subject: [sup-talk] the proper way of determining the encoding
   2553 In-Reply-To: <1200190710-sup-6881@south>
   2554 References: <1199569265-sup-4567@clarabella.clarabella>
   2555 	<1199685831-sup-2011@south>
   2556 	<1199695733-sup-2741@clarabella.clarabella>
   2557 	<1199901555-sup-2661@south>
   2558 	<1199925510-sup-7503@clarabella.clarabella>
   2559 	<1200190710-sup-6881@south>
   2560 Message-ID: <1200229710-sup-3448@clarabella.clarabella>
   2561 
   2562 Excerpts from William Morgan's message of Sun Jan 13 03:22:58 +0100 2008:
   2563 > 
   2564 > I think I've found a better way, although it introduces yet another
   2565 > dependency, to the 'gettext' gem. I'd be interested to see if this works
   2566 > for you, Giorgio, and also for anyone who's running Sup under Cygwin or
   2567 > OS X. This is an approach I feel a lot better about.
   2568 
   2569 Yes, it works for me!
   2570 Giorgio
   2571 
   2572 From patroclo7@gmail.com  Sun Jan 13 08:10:16 2008
   2573 From: patroclo7@gmail.com (Giorgio Lando)
   2574 Date: Sun, 13 Jan 2008 14:10:16 +0100
   2575 Subject: [sup-talk] new in next: moving between messages in
   2576 	thread-view-mode
   2577 In-Reply-To: <1200204144-sup-1329@south>
   2578 References: <1200204144-sup-1329@south>
   2579 Message-ID: <1200229762-sup-5238@clarabella.clarabella>
   2580 
   2581 Excerpts from William Morgan's message of Sun Jan 13 07:04:16 +0100 2008:
   2582 > Comments?
   2583 
   2584 I like it a lot and  I did not yet find any drawback
   2585 Giorgio Lando
   2586 
   2587 From patroclo7@gmail.com  Sun Jan 13 08:22:18 2008
   2588 From: patroclo7@gmail.com (Giorgio Lando)
   2589 Date: Sun, 13 Jan 2008 14:22:18 +0100
   2590 Subject: [sup-talk] little problem with the file browser
   2591 Message-ID: <1200230054-sup-7242@clarabella.clarabella>
   2592 
   2593 Hi, I have a little problem when I browse files (for example when
   2594 choosing an attachment). It happens only in some cases and in a way that
   2595 seems to be random (but may be I am missing some kind of regularity).
   2596 
   2597 For some folders  (but only sometimes for each of
   2598 them) I do not get immediately a full display of the files in the
   2599 folder. The display starts at the last file, and the others are
   2600 displayed only if I press k to go up. At least in two cases the display
   2601 started not at the last file but at an intermediate files, so that only
   2602 some of the files can be immediately seen, while I had to press k to see
   2603 and select the others.
   2604 
   2605 It does not ever happen to me with the first folder I enter (my home
   2606 directory), but only when I enter some of its subfolders.
   2607 I am pretty sure that they have no peculiar permissions (also because
   2608 everything can be finally seen and accessed, it is enough to press k).
   2609 
   2610 If the description of the problem is unclear, I can provide a couple of
   2611 screenshots, just ask.
   2612 
   2613 It happens with both git versions (and with the release)
   2614 
   2615 Giorgio
   2616 
   2617 
   2618 From nicolas.pouillard@gmail.com  Sun Jan 13 09:46:15 2008
   2619 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   2620 Date: Sun, 13 Jan 2008 15:46:15 +0100
   2621 Subject: [sup-talk] [PATCH] Avoid re-adding the signature when re-editing a
   2622 	draft with edit_signature: true
   2623 Message-ID: <1200235575295-git-send-email-nicolas.pouillard@gmail.com>
   2624 
   2625 ---
   2626  lib/sup/modes/edit-message-mode.rb |    2 +-
   2627  lib/sup/modes/resume-mode.rb       |    2 +-
   2628  2 files changed, 2 insertions(+), 2 deletions(-)
   2629 
   2630 diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mode.rb
   2631 index f058d03..710d390 100644
   2632 --- a/lib/sup/modes/edit-message-mode.rb
   2633 +++ b/lib/sup/modes/edit-message-mode.rb
   2634 @@ -59,7 +59,7 @@ EOS
   2635      @header_lines = []
   2636  
   2637      @body = opts.delete(:body) || []
   2638 -    @body += sig_lines if $config[:edit_signature]
   2639 +    @body += sig_lines if $config[:edit_signature] and not opts.delete(:have_signature)
   2640  
   2641      if opts[:attachments]
   2642        @attachments = opts[:attachments].values
   2643 diff --git a/lib/sup/modes/resume-mode.rb b/lib/sup/modes/resume-mode.rb
   2644 index 3470975..b1c69fc 100644
   2645 --- a/lib/sup/modes/resume-mode.rb
   2646 +++ b/lib/sup/modes/resume-mode.rb
   2647 @@ -8,7 +8,7 @@ class ResumeMode < EditMessageMode
   2648      header, body = parse_file m.draft_filename
   2649      header.delete "Date"
   2650  
   2651 -    super :header => header, :body => body
   2652 +    super :header => header, :body => body, :have_signature => true
   2653    end
   2654  
   2655    def killable?
   2656 -- 
   2657 1.5.3.1.109.gacd69
   2658 
   2659 From nicolas.pouillard@gmail.com  Sun Jan 13 10:57:26 2008
   2660 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   2661 Date: Sun, 13 Jan 2008 16:57:26 +0100
   2662 Subject: [sup-talk] [PATCH] (Double/guarded) keypress to show all threads
   2663 In-Reply-To: <1200201168-sup-5812@south>
   2664 References: <1200071751-sup-5552@tomsk> <1200201168-sup-5812@south>
   2665 Message-ID: <1200239611-sup-4801@ausone.local>
   2666 
   2667 Excerpts from William Morgan's message of Sun Jan 13 06:30:16 +0100 2008:
   2668 > Excerpts from Marcus Williams's message of Fri Jan 11 09:20:58 -0800 2008:
   2669 > > This patch adds a multi key combination to expand the thread index
   2670 > > view to all available threads. Note that this could return _a lot_ of
   2671 > > threads, which is why I've used a double keypress '!!' as a guard to
   2672 > > accidental usage. Its useful in conjunction with the tag all and apply
   2673 > > to all commands though.
   2674 > 
   2675 > This does make me a little nervous. Is the use case always that you want
   2676 > to apply a command to all threads for a given search? If so, I wonder if
   2677 > it would be better to explicitly model that, without the intermediate
   2678 > process of loading all the threads.
   2679 > 
   2680 > If we're going to have a potentially long-running activity like this
   2681 > available from the UI, then I'd prefer to do it in a manner that gives
   2682 > the user an indication of how long until completion, the ability to
   2683 > abort, etc.
   2684 > 
   2685 
   2686 > How does gmail handle this type of thing? Or is everything so fast with
   2687 > gmail that it doesn't matter?
   2688 
   2689 By  default  it  occurs  only  seen  threads  (25,50,100 messages depending on
   2690 configuration),  but  you  have  also  a  check box to apply on all the search
   2691 results.
   2692 
   2693 Then  that's  indeed  so fast that there's no need for a progress bar. However
   2694 that's  fast  because  operations  are  chosen  to  apply  fast (add or remove
   2695 labels, basically).
   2696 
   2697 -- 
   2698 Nicolas Pouillard aka Ertai
   2699 
   2700 From marcus-sup@bar-coded.net  Sun Jan 13 13:16:12 2008
   2701 From: marcus-sup@bar-coded.net (Marcus Williams)
   2702 Date: Sun, 13 Jan 2008 18:16:12 +0000
   2703 Subject: [sup-talk] [PATCH] (Double/guarded) keypress to show all threads
   2704 In-Reply-To: <1200201168-sup-5812@south>
   2705 References: <1200071751-sup-5552@tomsk> <1200201168-sup-5812@south>
   2706 Message-ID: <1200247733-sup-3710@tomsk>
   2707 
   2708 On 13.1.2008, William Morgan wrote:
   2709 > This does make me a little nervous. Is the use case always that you want
   2710 > to apply a command to all threads for a given search? If so, I wonder if
   2711 > it would be better to explicitly model that, without the intermediate
   2712 > process of loading all the threads.
   2713 
   2714 I dont use it when I know the search will generate a lot of threads :)
   2715 What I'm working on is getting it to stop searching if the user
   2716 presses a key (so you get a progress of 'Found ??? threads (press ESC
   2717 to stop)' or something, but no luck yet :(
   2718 
   2719 I guess it doesnt actually have to return the threads a la gmail
   2720 (gmail lets you select all threads in search without actually
   2721 displaying them but its _fast_). I tried doing this but since the
   2722 majority of searches I do end up being with labels I think you
   2723 actually need to thread them in order to be of any use (because not
   2724 all labels are on every message in thread).
   2725 
   2726 I can resubmit once I figure out the interrupt.
   2727 
   2728 Marcus
   2729 
   2730 From marcus-sup@bar-coded.net  Sun Jan 13 13:19:46 2008
   2731 From: marcus-sup@bar-coded.net (Marcus Williams)
   2732 Date: Sun, 13 Jan 2008 18:19:46 +0000
   2733 Subject: [sup-talk] [PATCH] Fix for some warnings
   2734 In-Reply-To: <1200191029-sup-8287@south>
   2735 References: <1200049520-sup-6114@tomsk> <1200191029-sup-8287@south>
   2736 Message-ID: <1200248339-sup-5704@tomsk>
   2737 
   2738 On 13.1.2008, William Morgan wrote:
   2739 > In this case, we can just assign the result directly to fakeid rather
   2740 > than using the k-combinator (aka "returning"). Also there was a bit of
   2741 > extraneous whitespace introduced at the end of one line in that patch,
   2742 > which became obvious when I did a git diff --color.
   2743 
   2744 Yep, sorry sent the patch in half cocked and realised this afterwards.
   2745 Will resubmit tonight sometime.
   2746 
   2747 MArcus
   2748 
   2749 From wmorgan-sup@masanjin.net  Sun Jan 13 19:55:28 2008
   2750 From: wmorgan-sup@masanjin.net (William Morgan)
   2751 Date: Sun, 13 Jan 2008 16:55:28 -0800
   2752 Subject: [sup-talk] [PATCH] Avoid re-adding the signature when
   2753 	re-editing a draft with edit_signature: true
   2754 In-Reply-To: <1200235575295-git-send-email-nicolas.pouillard@gmail.com>
   2755 References: <1200235575295-git-send-email-nicolas.pouillard@gmail.com>
   2756 Message-ID: <1200271922-sup-919@south>
   2757 
   2758 Hi Nicholas,
   2759 
   2760 Forgive me for being picky. I've just updated HACKING (on master) to
   2761 add:
   2762 
   2763 +- and/or versus ||/&&. In Ruby, "and" and "or" bind very loosely---even
   2764 +  more loosely than function application. This makes them ideal for
   2765 +  end-of-line short-circuit control in poetry mode. So, use || and &&
   2766 +  for ordinary logical comparisons, and "and" and "or" for end-of-line
   2767 +  flow control. E.g.:
   2768 +    x = a || b or raise "neither is true"
   2769 
   2770 So can you change this:
   2771 
   2772 > +    @body += sig_lines if $config[:edit_signature] and not
   2773 > opts.delete(:have_signature)
   2774 
   2775 To either "&& !" or to "unless".
   2776 
   2777 Other than that everything looks good.
   2778 
   2779 -- 
   2780 William <wmorgan-sup at masanjin.net>
   2781 
   2782 From wmorgan-sup@masanjin.net  Sun Jan 13 19:56:00 2008
   2783 From: wmorgan-sup@masanjin.net (William Morgan)
   2784 Date: Sun, 13 Jan 2008 16:56:00 -0800
   2785 Subject: [sup-talk] [PATCH] Avoid re-adding the signature when
   2786 	re-editing a draft with edit_signature: true
   2787 In-Reply-To: <1200271922-sup-919@south>
   2788 References: <1200235575295-git-send-email-nicolas.pouillard@gmail.com>
   2789 	<1200271922-sup-919@south>
   2790 Message-ID: <1200272143-sup-1070@south>
   2791 
   2792 Excerpts from William Morgan's message of Sun Jan 13 16:55:28 -0800 2008:
   2793 > Hi Nicholas,
   2794 
   2795 Nicolas. Sorry!
   2796 
   2797 -- 
   2798 William <wmorgan-sup at masanjin.net>
   2799 
   2800 From wmorgan-sup@masanjin.net  Sun Jan 13 20:06:37 2008
   2801 From: wmorgan-sup@masanjin.net (William Morgan)
   2802 Date: Sun, 13 Jan 2008 17:06:37 -0800
   2803 Subject: [sup-talk] [PATCH] (Double/guarded) keypress to show all threads
   2804 In-Reply-To: <1200247733-sup-3710@tomsk>
   2805 References: <1200071751-sup-5552@tomsk> <1200201168-sup-5812@south>
   2806 	<1200247733-sup-3710@tomsk>
   2807 Message-ID: <1200272179-sup-6412@south>
   2808 
   2809 Excerpts from Marcus Williams's message of Sun Jan 13 10:16:12 -0800 2008:
   2810 > What I'm working on is getting it to stop searching if the user
   2811 > presses a key (so you get a progress of 'Found ??? threads (press ESC
   2812 > to stop)' or something, but no luck yet :(
   2813 
   2814 Excellent, that would be great. I don't think it will be too hard: in
   2815 ThreadIndexMode#load_n_threads, in the block that's passed to
   2816 @ts.load_n_threads, just check to see if a boolean instance variable is
   2817 true, and break if so (and reset it). That block is called after each
   2818 thread is loaded, so the ThreadSet will still be in a consistent state.
   2819 Then add a keypress to set that flag to true, if @load_thread is true.
   2820 
   2821 > I guess it doesnt actually have to return the threads a la gmail
   2822 > (gmail lets you select all threads in search without actually
   2823 > displaying them but its _fast_).
   2824 
   2825 The general slowness of this type of operation in Sup is a real
   2826 problem, IMO. I think we can go a long way by caching threading
   2827 information, though of course that's at the expense of disk space.
   2828 
   2829 -- 
   2830 William <wmorgan-sup at masanjin.net>
   2831 
   2832 From wmorgan-sup@masanjin.net  Sun Jan 13 20:23:25 2008
   2833 From: wmorgan-sup@masanjin.net (William Morgan)
   2834 Date: Sun, 13 Jan 2008 17:23:25 -0800
   2835 Subject: [sup-talk] little problem with the file browser
   2836 In-Reply-To: <1200230054-sup-7242@clarabella.clarabella>
   2837 References: <1200230054-sup-7242@clarabella.clarabella>
   2838 Message-ID: <1200273694-sup-6854@south>
   2839 
   2840 Excerpts from Giorgio Lando's message of Sun Jan 13 05:22:18 -0800 2008:
   2841 > Hi, I have a little problem when I browse files (for example when
   2842 > choosing an attachment). It happens only in some cases and in a way
   2843 > that seems to be random (but may be I am missing some kind of
   2844 > regularity).
   2845 
   2846 Does this patch fix the problem?
   2847 
   2848 diff --git a/lib/sup/modes/file-browser-mode.rb b/lib/sup/modes/file-browser-mode.rb
   2849 index 3c68eec..b49f3f4 100644
   2850 --- a/lib/sup/modes/file-browser-mode.rb
   2851 +++ b/lib/sup/modes/file-browser-mode.rb
   2852 @@ -38,6 +38,7 @@ protected
   2853  
   2854    def reload
   2855      regen_text
   2856 +    jump_to_start
   2857      buffer.mark_dirty
   2858    end
   2859 
   2860 
   2861 -- 
   2862 William <wmorgan-sup at masanjin.net>
   2863 
   2864 From wmorgan-sup@masanjin.net  Sun Jan 13 21:16:19 2008
   2865 From: wmorgan-sup@masanjin.net (William Morgan)
   2866 Date: Sun, 13 Jan 2008 18:16:19 -0800
   2867 Subject: [sup-talk] little problem with the file browser
   2868 In-Reply-To: <704d6aa20801131801j3a5516b9teeaafbc468451fcc@mail.gmail.com>
   2869 References: <1200230054-sup-7242@clarabella.clarabella>
   2870 	<1200273694-sup-6854@south>
   2871 	<704d6aa20801131801j3a5516b9teeaafbc468451fcc@mail.gmail.com>
   2872 Message-ID: <1200276942-sup-1155@south>
   2873 
   2874 Excerpts from Giorgio Lando's message of Sun Jan 13 18:01:19 -0800 2008:
   2875 > 2008/1/14, William Morgan <wmorgan-sup at masanjin.net>:
   2876 > > Does this patch fix the problem?
   2877 > 
   2878 > Yes, it does solve the problem!
   2879 
   2880 Ok, I've pushed that patch to master.
   2881 
   2882 -- 
   2883 William <wmorgan-sup at masanjin.net>
   2884 
   2885 From wmorgan-sup@masanjin.net  Sun Jan 13 21:17:26 2008
   2886 From: wmorgan-sup@masanjin.net (William Morgan)
   2887 Date: Sun, 13 Jan 2008 18:17:26 -0800
   2888 Subject: [sup-talk] [PATCH] Fix for some warnings
   2889 In-Reply-To: <1200195117-sup-7883@south>
   2890 References: <1200049520-sup-6114@tomsk> <1200191029-sup-8287@south>
   2891 	<1200195117-sup-7883@south>
   2892 Message-ID: <1200277007-sup-616@south>
   2893 
   2894 Excerpts from William Morgan's message of Sat Jan 12 19:32:04 -0800 2008:
   2895 > http://sup.rubyforge.org/wiki/wiki.pl?Contributing
   2896 
   2897 I've updated this with a bit more information on how to create a
   2898 beautiful patch. Comments welcome.
   2899 
   2900 -- 
   2901 William <wmorgan-sup at masanjin.net>
   2902 
   2903 From nicolas.pouillard@gmail.com  Mon Jan 14 04:00:38 2008
   2904 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   2905 Date: Mon, 14 Jan 2008 10:00:38 +0100
   2906 Subject: [sup-talk] [PATCH] Avoid re-adding the signature when re-editing a
   2907 	draft with edit_signature: true
   2908 Message-ID: <120030123886-git-send-email-nicolas.pouillard@gmail.com>
   2909 
   2910 ---
   2911  lib/sup/modes/edit-message-mode.rb |    2 +-
   2912  lib/sup/modes/resume-mode.rb       |    2 +-
   2913  2 files changed, 2 insertions(+), 2 deletions(-)
   2914 
   2915 diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mode.rb
   2916 index f058d03..6a7f273 100644
   2917 --- a/lib/sup/modes/edit-message-mode.rb
   2918 +++ b/lib/sup/modes/edit-message-mode.rb
   2919 @@ -59,7 +59,7 @@ EOS
   2920      @header_lines = []
   2921  
   2922      @body = opts.delete(:body) || []
   2923 -    @body += sig_lines if $config[:edit_signature]
   2924 +    @body += sig_lines if $config[:edit_signature] && !opts.delete(:have_signature)
   2925  
   2926      if opts[:attachments]
   2927        @attachments = opts[:attachments].values
   2928 diff --git a/lib/sup/modes/resume-mode.rb b/lib/sup/modes/resume-mode.rb
   2929 index 3470975..b1c69fc 100644
   2930 --- a/lib/sup/modes/resume-mode.rb
   2931 +++ b/lib/sup/modes/resume-mode.rb
   2932 @@ -8,7 +8,7 @@ class ResumeMode < EditMessageMode
   2933      header, body = parse_file m.draft_filename
   2934      header.delete "Date"
   2935  
   2936 -    super :header => header, :body => body
   2937 +    super :header => header, :body => body, :have_signature => true
   2938    end
   2939  
   2940    def killable?
   2941 -- 
   2942 1.5.3.1.109.gacd69
   2943 
   2944 From nicolas.pouillard@gmail.com  Mon Jan 14 04:01:58 2008
   2945 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   2946 Date: Mon, 14 Jan 2008 10:01:58 +0100
   2947 Subject: [sup-talk] [PATCH] Avoid re-adding the signature when
   2948 	re-editing a draft with edit_signature: true
   2949 In-Reply-To: <1200271922-sup-919@south>
   2950 References: <1200235575295-git-send-email-nicolas.pouillard@gmail.com>
   2951 	<1200271922-sup-919@south>
   2952 Message-ID: <1200301275-sup-5169@ausone.local>
   2953 
   2954 Excerpts from William Morgan's message of Mon Jan 14 01:55:28 +0100 2008:
   2955 > Hi Nicholas,
   2956 Hi,
   2957 
   2958 > Forgive me for being picky. I've just updated HACKING (on master) to
   2959 > add:
   2960 > 
   2961 > +- and/or versus ||/&&. In Ruby, "and" and "or" bind very loosely---even
   2962 > +  more loosely than function application. This makes them ideal for
   2963 > +  end-of-line short-circuit control in poetry mode. So, use || and &&
   2964 > +  for ordinary logical comparisons, and "and" and "or" for end-of-line
   2965 > +  flow control. E.g.:
   2966 > +    x = a || b or raise "neither is true"
   2967 > 
   2968 > So can you change this:
   2969 > 
   2970 > > +    @body += sig_lines if $config[:edit_signature] and not
   2971 > > opts.delete(:have_signature)
   2972 > 
   2973 > To either "&& !" or to "unless".
   2974 
   2975 Done.
   2976 
   2977 > Other than that everything looks good.
   2978 
   2979 Thanks.
   2980 
   2981 -- 
   2982 Nicolas Pouillard aka Ertai
   2983 
   2984 From marcus-sup@bar-coded.net  Mon Jan 14 05:54:26 2008
   2985 From: marcus-sup@bar-coded.net (Marcus Williams)
   2986 Date: Mon, 14 Jan 2008 10:54:26 +0000
   2987 Subject: [sup-talk] [PATCH] (Double/guarded) keypress to show all threads
   2988 In-Reply-To: <1200272179-sup-6412@south>
   2989 References: <1200071751-sup-5552@tomsk> <1200201168-sup-5812@south>
   2990 	<1200247733-sup-3710@tomsk> <1200272179-sup-6412@south>
   2991 Message-ID: <1200307947-sup-1357@tomsk>
   2992 
   2993 On 14.1.2008, William Morgan wrote:
   2994 > The general slowness of this type of operation in Sup is a real
   2995 > problem, IMO. I think we can go a long way by caching threading
   2996 > information, though of course that's at the expense of disk space.
   2997 
   2998 Disk space is cheap :) So if this gets us a speed up I think its worth
   2999 it. If people are worried about that sort of thing it could be a
   3000 configurable option. 
   3001 
   3002 Marcus
   3003 
   3004 From marcus-sup@bar-coded.net  Mon Jan 14 07:24:27 2008
   3005 From: marcus-sup@bar-coded.net (Marcus Williams)
   3006 Date: Mon, 14 Jan 2008 12:24:27 +0000
   3007 Subject: [sup-talk] [PATCH] Added quoteline hook. This allows you to specify
   3008 	how the text above the quoted email should look (Normally
   3009 	'Excerpts froms...')
   3010 Message-ID: <1200313448-sup-3169@tomsk>
   3011 
   3012 ---
   3013  lib/sup/modes/reply-mode.rb |   15 ++++++++++++++-
   3014  1 files changed, 14 insertions(+), 1 deletions(-)
   3015 
   3016 diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb
   3017 index 04018e3..59ffa66 100644
   3018 --- a/lib/sup/modes/reply-mode.rb
   3019 +++ b/lib/sup/modes/reply-mode.rb
   3020 @@ -9,6 +9,14 @@ class ReplyMode < EditMessageMode
   3021      :list => "Mailing list",
   3022      :user => "Customized"
   3023    }
   3024 +  
   3025 +  HookManager.register "quoteline", <<EOS
   3026 +Generates a quote line "On 1/4/2007, Joe Bloggs wrote:".
   3027 +Variables:
   3028 +      message: A message object representing the message being replied to
   3029 +Return value:
   3030 +  A string containing the text of the quote line
   3031 +EOS
   3032  
   3033    def initialize message
   3034      @m = message
   3035 @@ -115,11 +123,16 @@ protected
   3036    end
   3037  
   3038    def reply_body_lines m
   3039 -    lines = ["Excerpts from #{@m.from.name}'s message of #{@m.date}:"] + m.quotable_body_lines.map { |l| "> #{l}" }
   3040 +    quoteline = HookManager.run("quoteline", :message => m) || default_quoteline(m)
   3041 +    lines = [quoteline] + m.quotable_body_lines.map { |l| "> #{l}" }
   3042      lines.pop while lines.last =~ /^\s*$/
   3043      lines
   3044    end
   3045  
   3046 +  def default_quoteline m
   3047 +    "Excerpts from #{@m.from.name}'s message of #{@m.date}:"
   3048 +  end
   3049 +
   3050    def handle_new_text new_header, new_body
   3051      old_header = @headers[@type_selector.val]
   3052      if new_header.size != old_header.size || old_header.any? { |k, v| new_header[k] != v }
   3053 -- 
   3054 1.5.3.7
   3055 
   3056 
   3057 From wmorgan-sup@masanjin.net  Mon Jan 14 23:49:35 2008
   3058 From: wmorgan-sup@masanjin.net (William Morgan)
   3059 Date: Mon, 14 Jan 2008 20:49:35 -0800
   3060 Subject: [sup-talk] [PATCH] (Double/guarded) keypress to show all threads
   3061 In-Reply-To: <1200307947-sup-1357@tomsk>
   3062 References: <1200071751-sup-5552@tomsk> <1200201168-sup-5812@south>
   3063 	<1200247733-sup-3710@tomsk> <1200272179-sup-6412@south>
   3064 	<1200307947-sup-1357@tomsk>
   3065 Message-ID: <1200372469-sup-1813@south>
   3066 
   3067 Excerpts from Marcus Williams's message of Mon Jan 14 02:54:26 -0800 2008:
   3068 > Disk space is cheap :) So if this gets us a speed up I think its worth
   3069 > it. If people are worried about that sort of thing it could be a
   3070 > configurable option. 
   3071 
   3072 I agree. I don't think it will be terribly hard to do, either, but I
   3073 should probably do some real profiling before just diving in.
   3074 
   3075 -- 
   3076 William <wmorgan-sup at masanjin.net>
   3077 
   3078 From wmorgan-sup@masanjin.net  Tue Jan 15 00:05:58 2008
   3079 From: wmorgan-sup@masanjin.net (William Morgan)
   3080 Date: Mon, 14 Jan 2008 21:05:58 -0800
   3081 Subject: [sup-talk] [PATCH] Avoid re-adding the signature when
   3082 	re-editing a draft with edit_signature: true
   3083 In-Reply-To: <120030123886-git-send-email-nicolas.pouillard@gmail.com>
   3084 References: <120030123886-git-send-email-nicolas.pouillard@gmail.com>
   3085 Message-ID: <1200373546-sup-7983@south>
   3086 
   3087 Applied straight to master. Thanks!
   3088 
   3089 -- 
   3090 William <wmorgan-sup at masanjin.net>
   3091 
   3092 From wmorgan-sup@masanjin.net  Tue Jan 15 00:20:17 2008
   3093 From: wmorgan-sup@masanjin.net (William Morgan)
   3094 Date: Mon, 14 Jan 2008 21:20:17 -0800
   3095 Subject: [sup-talk] [PATCH] Added quoteline hook. This allows you to
   3096 	specify how the text above the quoted email should look
   3097 	(Normally 'Excerpts froms...')
   3098 In-Reply-To: <1200313448-sup-3169@tomsk>
   3099 References: <1200313448-sup-3169@tomsk>
   3100 Message-ID: <1200374341-sup-8557@south>
   3101 
   3102 Hi Marcus,
   3103 
   3104 Two small comments:
   3105 
   3106 First, can you please use the Official Commit Log Entry Format(tm) as
   3107 detailed on the wiki, so that all the git tools that rely on that
   3108 function nicely?
   3109 
   3110 Second:
   3111 
   3112 Excerpts from Marcus Williams's message of Mon Jan 14 04:24:27 -0800 2008:
   3113 > +    lines = [quoteline] + m.quotable_body_lines.map { |l| "> #{l}" }
   3114 
   3115 Can we instead do quoteline.split("\n"), so that people can return
   3116 multi-line things? Not that I endore that practice, but, de gustibus and
   3117 all that.
   3118 
   3119 Other than that looks good.
   3120 
   3121 -- 
   3122 William <wmorgan-sup at masanjin.net>
   3123 
   3124 From marcus-sup@bar-coded.net  Tue Jan 15 04:18:28 2008
   3125 From: marcus-sup@bar-coded.net (Marcus Williams)
   3126 Date: Tue, 15 Jan 2008 09:18:28 +0000
   3127 Subject: [sup-talk] [PATCH] Added quoteline hook. This allows you to
   3128 	specify how the text above the quoted email should look
   3129 	(Normally 'Excerpts froms...')
   3130 In-Reply-To: <1200374341-sup-8557@south>
   3131 References: <1200313448-sup-3169@tomsk> <1200374341-sup-8557@south>
   3132 Message-ID: <1200388608-sup-6945@tomsk>
   3133 
   3134 On 15.1.2008, William Morgan wrote:
   3135 > First, can you please use the Official Commit Log Entry Format(tm) as
   3136 > detailed on the wiki, so that all the git tools that rely on that
   3137 > function nicely?
   3138 
   3139 Sorry missed that - I did try to get git to do something like that but
   3140 couldnt figure out how to bend it the way I wanted. Will revert and
   3141 resend.
   3142 
   3143 > Excerpts from Marcus Williams's message of Mon Jan 14 04:24:27 -0800 2008:
   3144 > > +    lines = [quoteline] + m.quotable_body_lines.map { |l| "> #{l}" }
   3145 > 
   3146 > Can we instead do quoteline.split("\n"), so that people can return
   3147 > multi-line things? Not that I endore that practice, but, de gustibus and
   3148 > all that.
   3149 
   3150 No problems (multi-line quote lines... bleurgh)
   3151 
   3152 Marcus
   3153 
   3154 From marcus-sup@bar-coded.net  Tue Jan 15 04:40:04 2008
   3155 From: marcus-sup@bar-coded.net (Marcus Williams)
   3156 Date: Tue, 15 Jan 2008 09:40:04 +0000
   3157 Subject: [sup-talk] [PATCH] Added quoteline hook for reply mode
   3158 In-Reply-To: <1200388608-sup-6945@tomsk>
   3159 References: <1200313448-sup-3169@tomsk> <1200374341-sup-8557@south>
   3160 	<1200388608-sup-6945@tomsk>
   3161 Message-ID: <1200389942-sup-6442@tomsk>
   3162 
   3163 This hook allows a user to configure a quote line for replies. The
   3164 default is the standard sup quote line "Excerpts from...". Multiple
   3165 lines are allowed.
   3166 ---
   3167  lib/sup/modes/reply-mode.rb |   15 ++++++++++++++-
   3168  1 files changed, 14 insertions(+), 1 deletions(-)
   3169 
   3170 diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb
   3171 index 04018e3..9c4b11d 100644
   3172 --- a/lib/sup/modes/reply-mode.rb
   3173 +++ b/lib/sup/modes/reply-mode.rb
   3174 @@ -9,6 +9,14 @@ class ReplyMode < EditMessageMode
   3175      :list => "Mailing list",
   3176      :user => "Customized"
   3177    }
   3178 +  
   3179 +  HookManager.register "quoteline", <<EOS
   3180 +Generates a quote line "On 1/4/2007, Joe Bloggs wrote:".
   3181 +Variables:
   3182 +      message: A message object representing the message being replied to
   3183 +Return value:
   3184 +  A string containing the text of the quote line (can be multi-line)
   3185 +EOS
   3186  
   3187    def initialize message
   3188      @m = message
   3189 @@ -115,11 +123,16 @@ protected
   3190    end
   3191  
   3192    def reply_body_lines m
   3193 -    lines = ["Excerpts from #{@m.from.name}'s message of #{@m.date}:"] + m.quotable_body_lines.map { |l| "> #{l}" }
   3194 +    quoteline = HookManager.run("quoteline", :message => m) || default_quoteline(m)
   3195 +    lines = quoteline.split("\n") + m.quotable_body_lines.map { |l| "> #{l}" }
   3196      lines.pop while lines.last =~ /^\s*$/
   3197      lines
   3198    end
   3199  
   3200 +  def default_quoteline m
   3201 +    "Excerpts from #{@m.from.name}'s message of #{@m.date}:"
   3202 +  end
   3203 +
   3204    def handle_new_text new_header, new_body
   3205      old_header = @headers[@type_selector.val]
   3206      if new_header.size != old_header.size || old_header.any? { |k, v| new_header[k] != v }
   3207 -- 
   3208 1.5.3.7
   3209 
   3210 
   3211 From marcus-sup@bar-coded.net  Tue Jan 15 07:29:57 2008
   3212 From: marcus-sup@bar-coded.net (Marcus Williams)
   3213 Date: Tue, 15 Jan 2008 12:29:57 +0000
   3214 Subject: [sup-talk] [PATCH] Search all threads with option to cancel
   3215 In-Reply-To: <1200372469-sup-1813@south>
   3216 References: <1200071751-sup-5552@tomsk> <1200201168-sup-5812@south>
   3217 	<1200247733-sup-3710@tomsk> <1200272179-sup-6412@south>
   3218 	<1200307947-sup-1357@tomsk> <1200372469-sup-1813@south>
   3219 Message-ID: <1200400125-sup-5900@tomsk>
   3220 
   3221 This adds the ability to extend your search to display all threads
   3222 (which may take a _long_ time) instead of the standard maximum (usually
   3223 screen height). It is accessed via a multi-key action !C in thread index
   3224 modes. To cancel the search the user can press another multi-key action
   3225 !S
   3226 ---
   3227  lib/sup/modes/thread-index-mode.rb |   40 +++++++++++++++++++++++++++++++----
   3228  lib/sup/thread.rb                  |    2 +-
   3229  2 files changed, 36 insertions(+), 6 deletions(-)
   3230 
   3231 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
   3232 index 0d90be4..f86a5a4 100644
   3233 --- a/lib/sup/modes/thread-index-mode.rb
   3234 +++ b/lib/sup/modes/thread-index-mode.rb
   3235 @@ -16,6 +16,10 @@ EOS
   3236  
   3237    register_keymap do |k|
   3238      k.add :load_threads, "Load #{LOAD_MORE_THREAD_NUM} more threads", 'M'
   3239 +    k.add_multi "Search all threads - (C)onfirm, or (S)top current search :", '!' do |kk|
   3240 +      kk.add :load_all_threads, "Load all threads (may list a _lot_ of threads)", 'C'
   3241 +      kk.add :break_search, "Stop current search", 'S'
   3242 +    end
   3243      k.add :reload, "Refresh view", '@'
   3244      k.add :toggle_archived, "Toggle archived status", 'a'
   3245      k.add :toggle_starred, "Star or unstar all messages in thread", '*'
   3246 @@ -49,6 +53,8 @@ EOS
   3247      @load_thread_opts = load_thread_opts
   3248      @hidden_labels = hidden_labels + LabelManager::HIDDEN_RESERVED_LABELS
   3249      @date_width = DATE_WIDTH
   3250 +
   3251 +    @interrupt_search = false
   3252      
   3253      initialize_threads # defines @ts and @ts_mutex
   3254      update # defines @text and @lines
   3255 @@ -444,15 +450,20 @@ EOS
   3256    ## TODO: figure out @ts_mutex in this method
   3257    def load_n_threads n=LOAD_MORE_THREAD_NUM, opts={}
   3258      @mbid = BufferManager.say "Searching for threads..."
   3259 +
   3260 +    ts_to_load = n
   3261 +    ts_to_load = ts_to_load + @ts.size unless n == -1 # -1 means all threads
   3262 +
   3263      orig_size = @ts.size
   3264      last_update = Time.now
   3265 -    @ts.load_n_threads(@ts.size + n, opts) do |i|
   3266 +    @ts.load_n_threads(ts_to_load, opts) do |i|
   3267        if (Time.now - last_update) >= 0.25
   3268 -        BufferManager.say "Loaded #{i.pluralize 'thread'}...", @mbid
   3269 +        BufferManager.say "Loaded #{i.pluralize 'thread'} (use !S to cancel search)...", @mbid
   3270          update
   3271          BufferManager.draw_screen
   3272          last_update = Time.now
   3273        end
   3274 +      break if @interrupt_search
   3275      end
   3276      @ts.threads.each { |th| th.labels.each { |l| LabelManager << l } }
   3277  
   3278 @@ -472,13 +483,32 @@ EOS
   3279      end
   3280    end
   3281  
   3282 -  def load_threads opts={}
   3283 -    n = opts[:num] || ThreadIndexMode::LOAD_MORE_THREAD_NUM
   3284 +  def break_search
   3285 +    @interrupt_search = true
   3286 +  end
   3287  
   3288 +  def load_all_threads
   3289 +    load_threads :num => -1
   3290 +  end
   3291 +
   3292 +  def load_threads opts={}
   3293 +    if opts[:num].nil?
   3294 +      n = ThreadIndexMode::LOAD_MORE_THREAD_NUM
   3295 +    else
   3296 +      n = opts[:num]
   3297 +    end
   3298 +        
   3299      myopts = @load_thread_opts.merge({ :when_done => (lambda do |num|
   3300        opts[:when_done].call(num) if opts[:when_done]
   3301 +      
   3302 +      cancelled = ""
   3303 +      if @interrupt_search
   3304 +        cancelled = " (search cancelled by user)" 
   3305 +        @interrupt_search = false
   3306 +      end
   3307 +
   3308        if num > 0
   3309 -        BufferManager.flash "Found #{num.pluralize 'thread'}."
   3310 +        BufferManager.flash "Found #{num.pluralize 'thread'}#{cancelled}."
   3311        else
   3312          BufferManager.flash "No matches."
   3313        end
   3314 diff --git a/lib/sup/thread.rb b/lib/sup/thread.rb
   3315 index 83f0db7..5b0a300 100644
   3316 --- a/lib/sup/thread.rb
   3317 +++ b/lib/sup/thread.rb
   3318 @@ -324,7 +324,7 @@ class ThreadSet
   3319    ## load in (at most) num number of threads from the index
   3320    def load_n_threads num, opts={}
   3321      @index.each_id_by_date opts do |mid, builder|
   3322 -      break if size >= num
   3323 +      break if size >= num unless num == -1
   3324        next if contains_id? mid
   3325  
   3326        m = builder.call
   3327 -- 
   3328 1.5.3.7
   3329 
   3330 
   3331 From patroclo7@gmail.com  Tue Jan 15 07:54:44 2008
   3332 From: patroclo7@gmail.com (Giorgio Lando)
   3333 Date: Tue, 15 Jan 2008 13:54:44 +0100
   3334 Subject: [sup-talk] header cache
   3335 Message-ID: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   3336 
   3337 Hi,
   3338 after ten days of successful use of sup. I would like to say that it
   3339 is very useful in many circumstances (I have tried maildir, mbox, IMAP
   3340 folders, and a mix of them).
   3341 
   3342 When using it with gmail imap, the only thing I lack is the header
   3343 cache. In fact, I access directly the "All mail" folder (since
   3344 anything else in gmail is actually a duplicate of the mails in All
   3345 mail; moreover in this way any change by sup does not interfere with
   3346 the archiviation from the gmail web interface, and the archiviation
   3347 from the web interface does not prevent sup from seeing the message).
   3348 
   3349 My "All mail" includes approximately 40000 messages so the fetching of
   3350 IMAP headers is highly time-consuming (also the initial sup-sync took
   3351 about 8 hours, but this happens only one time).
   3352 
   3353 I see that in TODO the header cache is scheduled for the 0.4 release.
   3354 So am I correct to expect it quite soon?
   3355 
   3356 Thanks in advance for any info
   3357 Giorgio Lando
   3358 
   3359 From marcus-sup@bar-coded.net  Tue Jan 15 09:02:27 2008
   3360 From: marcus-sup@bar-coded.net (Marcus Williams)
   3361 Date: Tue, 15 Jan 2008 14:02:27 +0000
   3362 Subject: [sup-talk] [PATCH] Fix for some warnings on faked addresses and ids
   3363 In-Reply-To: <1200248339-sup-5704@tomsk>
   3364 References: <1200049520-sup-6114@tomsk> <1200191029-sup-8287@south>
   3365 	<1200248339-sup-5704@tomsk>
   3366 Message-ID: <1200405667-sup-9034@tomsk>
   3367 
   3368 Fixes a few unitialised variable warnings when logging faked message
   3369 addresses or faked message ids. Also initialises the @lines var when the
   3370 message is not text.
   3371 ---
   3372  lib/sup/message-chunks.rb |    1 +
   3373  lib/sup/message.rb        |   17 ++++++++++-------
   3374  2 files changed, 11 insertions(+), 7 deletions(-)
   3375 
   3376 diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
   3377 index 2fcf8f9..08dcf27 100644
   3378 --- a/lib/sup/message-chunks.rb
   3379 +++ b/lib/sup/message-chunks.rb
   3380 @@ -82,6 +82,7 @@ EOS
   3381                            :sibling_types => sibling_types
   3382          end
   3383  
   3384 +      @lines = nil
   3385        if text
   3386          @lines = text.gsub("\r\n", "\n").gsub(/\t/, "        ").gsub(/\r/, "").split("\n")
   3387          @quotable = true
   3388 diff --git a/lib/sup/message.rb b/lib/sup/message.rb
   3389 index 65aebd5..bd37162 100644
   3390 --- a/lib/sup/message.rb
   3391 +++ b/lib/sup/message.rb
   3392 @@ -60,25 +60,28 @@ class Message
   3393  
   3394    def parse_header header
   3395      header.each { |k, v| header[k.downcase] = v }
   3396 -    
   3397 +
   3398 +    fakeid = nil
   3399 +    fakename = nil
   3400 +
   3401      @id =
   3402        if header["message-id"]
   3403          sanitize_message_id header["message-id"]
   3404        else
   3405 -        returning("sup-faked-" + Digest::MD5.hexdigest(raw_header)) do |id|
   3406 -          Redwood::log "faking message-id for message from #@from: #{id}"
   3407 -        end
   3408 +        fakeid = "sup-faked-" + Digest::MD5.hexdigest(raw_header)
   3409        end
   3410      
   3411      @from =
   3412        if header["from"]
   3413          PersonManager.person_for header["from"]
   3414        else
   3415 -        name = "Sup Auto-generated Fake Sender <sup at fake.sender.example.com>"
   3416 -        Redwood::log "faking from for message #@id: #{name}"
   3417 -        PersonManager.person_for name
   3418 +        fakename = "Sup Auto-generated Fake Sender <sup at fake.sender.example.com>"
   3419 +        PersonManager.person_for fakename
   3420        end
   3421  
   3422 +    Redwood::log "faking message-id for message from #@from: #{id}" if fakeid
   3423 +    Redwood::log "faking from for message #@id: #{fakename}" if fakename
   3424 +
   3425      date = header["date"]
   3426      @date =
   3427        case date
   3428 -- 
   3429 1.5.3.7
   3430 
   3431 
   3432 From grant@antiflux.org  Tue Jan 15 11:30:04 2008
   3433 From: grant@antiflux.org (Grant Hollingworth)
   3434 Date: Tue, 15 Jan 2008 11:30:04 -0500
   3435 Subject: [sup-talk] the proper way of determining the encoding
   3436 In-Reply-To: <1200190710-sup-6881@south>
   3437 References: <1199569265-sup-4567@clarabella.clarabella>
   3438 	<1199685831-sup-2011@south>
   3439 	<1199695733-sup-2741@clarabella.clarabella>
   3440 	<1199901555-sup-2661@south>
   3441 	<1199925510-sup-7503@clarabella.clarabella>
   3442 	<1200190710-sup-6881@south>
   3443 Message-ID: <1200414495-sup-4477@spooky.local>
   3444 
   3445 Excerpts from William Morgan's message of Sat Jan 12 21:22:58 -0500 2008:
   3446 > I think I've found a better way, although it introduces yet another
   3447 > dependency, to the 'gettext' gem. I'd be interested to see if this works
   3448 > for you, Giorgio, and also for anyone who's running Sup under Cygwin or
   3449 > OS X. This is an approach I feel a lot better about.
   3450 
   3451 This works on OS X (10.5.1). Your other method of using locale(1) didn't.
   3452 ('locale -c LC_CTYPE' returns 'LC_CTYPE' on my machine... not very useful.)
   3453 
   3454 From grant@antiflux.org  Tue Jan 15 11:34:48 2008
   3455 From: grant@antiflux.org (Grant Hollingworth)
   3456 Date: Tue, 15 Jan 2008 11:34:48 -0500
   3457 Subject: [sup-talk] mailcap for os x
   3458 In-Reply-To: <1198781360-sup-2193@south>
   3459 References: <1196351498-sup-4803@spooky.local> <1198781360-sup-2193@south>
   3460 Message-ID: <1200414674-sup-1175@spooky.local>
   3461 
   3462 Excerpts from William Morgan's message of Thu Dec 27 13:50:26 -0500 2007:
   3463 > I'd willingly accept a patch to hook into Attachment#view! and allow
   3464 > overriding of the default run-mailcap behavior.
   3465 
   3466 Sure, but I don't know of the best way to do that. It wouldn't be like other
   3467 hooks, because it has to replace behaviour and not just supplement it.
   3468 
   3469 Lots of systems don't have run-mailcap(1). Probably we should port it and push
   3470 it out as a gem that Sup depends on.
   3471 
   3472 From wmorgan-sup@masanjin.net  Tue Jan 15 20:31:33 2008
   3473 From: wmorgan-sup@masanjin.net (William Morgan)
   3474 Date: Tue, 15 Jan 2008 17:31:33 -0800
   3475 Subject: [sup-talk] [PATCH] Added quoteline hook for reply mode
   3476 In-Reply-To: <1200389942-sup-6442@tomsk>
   3477 References: <1200313448-sup-3169@tomsk> <1200374341-sup-8557@south>
   3478 	<1200388608-sup-6945@tomsk> <1200389942-sup-6442@tomsk>
   3479 Message-ID: <1200447083-sup-7802@south>
   3480 
   3481 Reformatted excerpts from Marcus Williams's message of 2008-01-15:
   3482 > This hook allows a user to configure a quote line for replies. The
   3483 > default is the standard sup quote line "Excerpts from...". Multiple
   3484 > lines are allowed.
   3485 
   3486 Applied to next. Thanks!
   3487 
   3488 -- 
   3489 William <wmorgan-sup at masanjin.net>
   3490 
   3491 From wmorgan-sup@masanjin.net  Tue Jan 15 20:32:31 2008
   3492 From: wmorgan-sup@masanjin.net (William Morgan)
   3493 Date: Tue, 15 Jan 2008 17:32:31 -0800
   3494 Subject: [sup-talk] [PATCH] Fix for some warnings on faked addresses and
   3495 	ids
   3496 In-Reply-To: <1200405667-sup-9034@tomsk>
   3497 References: <1200049520-sup-6114@tomsk> <1200191029-sup-8287@south>
   3498 	<1200248339-sup-5704@tomsk> <1200405667-sup-9034@tomsk>
   3499 Message-ID: <1200447103-sup-1512@south>
   3500 
   3501 Reformatted excerpts from Marcus Williams's message of 2008-01-15:
   3502 > Fixes a few unitialised variable warnings when logging faked message
   3503 > addresses or faked message ids. Also initialises the @lines var when
   3504 > the message is not text.
   3505 
   3506 Applied to next. I think it's probably safe enough for master but I
   3507 wanted to give those of you who get such poorly-behaved email a chance
   3508 to test it out.
   3509 
   3510 -- 
   3511 William <wmorgan-sup at masanjin.net>
   3512 
   3513 From wmorgan-sup@masanjin.net  Tue Jan 15 20:45:14 2008
   3514 From: wmorgan-sup@masanjin.net (William Morgan)
   3515 Date: Tue, 15 Jan 2008 17:45:14 -0800
   3516 Subject: [sup-talk] the proper way of determining the encoding
   3517 In-Reply-To: <1200414495-sup-4477@spooky.local>
   3518 References: <1199569265-sup-4567@clarabella.clarabella>
   3519 	<1199685831-sup-2011@south>
   3520 	<1199695733-sup-2741@clarabella.clarabella>
   3521 	<1199901555-sup-2661@south>
   3522 	<1199925510-sup-7503@clarabella.clarabella>
   3523 	<1200190710-sup-6881@south> <1200414495-sup-4477@spooky.local>
   3524 Message-ID: <1200447310-sup-8536@south>
   3525 
   3526 Reformatted excerpts from Grant Hollingworth's message of 2008-01-15:
   3527 > Excerpts from William Morgan's message of Sat Jan 12 21:22:58 -0500 2008:
   3528 > > I think I've found a better way, although it introduces yet another
   3529 > > dependency, to the 'gettext' gem. I'd be interested to see if this
   3530 > > works for you, Giorgio, and also for anyone who's running Sup under
   3531 > > Cygwin or OS X. This is an approach I feel a lot better about.
   3532 > 
   3533 > This works on OS X (10.5.1). Your other method of using locale(1)
   3534 > didn't.  ('locale -c LC_CTYPE' returns 'LC_CTYPE' on my machine... not
   3535 > very useful.)
   3536 
   3537 Exactly what I was hoping to hear. I'll merge those changes down to
   3538 master, then.
   3539 
   3540 BTW, your past few messages have been using charset=LC_CTYPE, which the
   3541 mailing list ever-so-helpfully wraps in a nasty MIME attachment. So you
   3542 should switch back to the functioning version. :)
   3543 
   3544 -- 
   3545 William <wmorgan-sup at masanjin.net>
   3546 
   3547 From nicolas.pouillard@gmail.com  Tue Jan 15 21:20:02 2008
   3548 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   3549 Date: Wed, 16 Jan 2008 03:20:02 +0100
   3550 Subject: [sup-talk] the proper way of determining the encoding
   3551 In-Reply-To: <1200447310-sup-8536@south>
   3552 References: <1199569265-sup-4567@clarabella.clarabella>
   3553 	<1199685831-sup-2011@south>
   3554 	<1199695733-sup-2741@clarabella.clarabella>
   3555 	<1199901555-sup-2661@south>
   3556 	<1199925510-sup-7503@clarabella.clarabella>
   3557 	<1200190710-sup-6881@south> <1200414495-sup-4477@spooky.local>
   3558 	<1200447310-sup-8536@south>
   3559 Message-ID: <1200449354-sup-9441@ausone.local>
   3560 
   3561 Excerpts from William Morgan's message of Wed Jan 16 02:45:14 +0100 2008:
   3562 > Reformatted excerpts from Grant Hollingworth's message of 2008-01-15:
   3563 > > Excerpts from William Morgan's message of Sat Jan 12 21:22:58 -0500 2008:
   3564 > > > I think I've found a better way, although it introduces yet another
   3565 > > > dependency, to the 'gettext' gem. I'd be interested to see if this
   3566 > > > works for you, Giorgio, and also for anyone who's running Sup under
   3567 > > > Cygwin or OS X. This is an approach I feel a lot better about.
   3568 > > 
   3569 > > This works on OS X (10.5.1). Your other method of using locale(1)
   3570 > > didn't.  ('locale -c LC_CTYPE' returns 'LC_CTYPE' on my machine... not
   3571 > > very useful.)
   3572 > 
   3573 > Exactly what I was hoping to hear. I'll merge those changes down to
   3574 > master, then.
   3575 > 
   3576 > BTW, your past few messages have been using charset=LC_CTYPE, which the
   3577 > mailing list ever-so-helpfully wraps in a nasty MIME attachment. So you
   3578 > should switch back to the functioning version. :)
   3579 
   3580 Yuck! I got this virus too :)
   3581 
   3582 And I don't see your gettext patch neither on master nor on next ;( 
   3583 
   3584 -- 
   3585 Nicolas Pouillard aka Ertai
   3586 
   3587 From wmorgan-sup@masanjin.net  Tue Jan 15 21:57:00 2008
   3588 From: wmorgan-sup@masanjin.net (William Morgan)
   3589 Date: Tue, 15 Jan 2008 18:57:00 -0800
   3590 Subject: [sup-talk] the proper way of determining the encoding
   3591 In-Reply-To: <1200449354-sup-9441@ausone.local>
   3592 References: <1199569265-sup-4567@clarabella.clarabella>
   3593 	<1199685831-sup-2011@south>
   3594 	<1199695733-sup-2741@clarabella.clarabella>
   3595 	<1199901555-sup-2661@south>
   3596 	<1199925510-sup-7503@clarabella.clarabella>
   3597 	<1200190710-sup-6881@south> <1200414495-sup-4477@spooky.local>
   3598 	<1200447310-sup-8536@south> <1200449354-sup-9441@ausone.local>
   3599 Message-ID: <1200452148-sup-9276@south>
   3600 
   3601 Reformatted excerpts from nicolas.pouillard's message of 2008-01-15:
   3602 > And I don't see your gettext patch neither on master nor on next ;( 
   3603 
   3604 Whoops, I had never merged it onto next in the first place. Well, it's
   3605 on master now. Let me know if it gives you any trouble.
   3606 
   3607 -- 
   3608 William <wmorgan-sup at masanjin.net>
   3609 
   3610 From wmorgan-sup@masanjin.net  Tue Jan 15 22:09:48 2008
   3611 From: wmorgan-sup@masanjin.net (William Morgan)
   3612 Date: Tue, 15 Jan 2008 19:09:48 -0800
   3613 Subject: [sup-talk] the proper way of determining the encoding
   3614 In-Reply-To: <1200452148-sup-9276@south>
   3615 References: <1199569265-sup-4567@clarabella.clarabella>
   3616 	<1199685831-sup-2011@south>
   3617 	<1199695733-sup-2741@clarabella.clarabella>
   3618 	<1199901555-sup-2661@south>
   3619 	<1199925510-sup-7503@clarabella.clarabella>
   3620 	<1200190710-sup-6881@south> <1200414495-sup-4477@spooky.local>
   3621 	<1200447310-sup-8536@south> <1200449354-sup-9441@ausone.local>
   3622 	<1200452148-sup-9276@south>
   3623 Message-ID: <1200452938-sup-9442@south>
   3624 
   3625 Reformatted excerpts from William Morgan's message of 2008-01-15:
   3626 > Reformatted excerpts from nicolas.pouillard's message of 2008-01-15:
   3627 > > And I don't see your gettext patch neither on master nor on next ;( 
   3628 > 
   3629 > Whoops, I had never merged it onto next in the first place. Well, it's
   3630 > on master now. Let me know if it gives you any trouble.
   3631 
   3632 Aaaand merged onto next. I do seem to spend a lot of my time merging
   3633 from master to next. I wonder if that's proper git usage. Seems to
   3634 clutter up my pretty gitk graph.
   3635 
   3636 -- 
   3637 William <wmorgan-sup at masanjin.net>
   3638 
   3639 From nicolas.pouillard@gmail.com  Tue Jan 15 22:14:10 2008
   3640 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   3641 Date: Wed, 16 Jan 2008 04:14:10 +0100
   3642 Subject: [sup-talk] the proper way of determining the encoding
   3643 In-Reply-To: <1200452148-sup-9276@south>
   3644 References: <1199569265-sup-4567@clarabella.clarabella>
   3645 	<1199685831-sup-2011@south>
   3646 	<1199695733-sup-2741@clarabella.clarabella>
   3647 	<1199901555-sup-2661@south>
   3648 	<1199925510-sup-7503@clarabella.clarabella>
   3649 	<1200190710-sup-6881@south> <1200414495-sup-4477@spooky.local>
   3650 	<1200447310-sup-8536@south> <1200449354-sup-9441@ausone.local>
   3651 	<1200452148-sup-9276@south>
   3652 Message-ID: <1200453166-sup-9993@ausone.local>
   3653 
   3654 Excerpts from William Morgan's message of Wed Jan 16 03:57:00 +0100 2008:
   3655 > Reformatted excerpts from nicolas.pouillard's message of 2008-01-15:
   3656 > > And I don't see your gettext patch neither on master nor on next ;( 
   3657 > 
   3658 > Whoops, I had never merged it onto next in the first place. Well, it's
   3659 > on master now. Let me know if it gives you any trouble.
   3660 
   3661 Still  not  working,  gettext  is  guessing  ASCII-US but my LC_CTYPE contains
   3662 en_US.UTF-8.
   3663 
   3664 What about `locale | grep LC_CTYPE | cut -d'"' -f2`?
   3665 
   3666 -- 
   3667 Nicolas Pouillard aka Ertai
   3668 
   3669 From wmorgan-sup@masanjin.net  Tue Jan 15 22:20:45 2008
   3670 From: wmorgan-sup@masanjin.net (William Morgan)
   3671 Date: Tue, 15 Jan 2008 19:20:45 -0800
   3672 Subject: [sup-talk] mailcap for os x
   3673 In-Reply-To: <1200414674-sup-1175@spooky.local>
   3674 References: <1196351498-sup-4803@spooky.local> <1198781360-sup-2193@south>
   3675 	<1200414674-sup-1175@spooky.local>
   3676 Message-ID: <1200453317-sup-5958@south>
   3677 
   3678 Reformatted excerpts from Grant Hollingworth's message of 2008-01-15:
   3679 > Excerpts from William Morgan's message of Thu Dec 27 13:50:26 -0500 2007:
   3680 > > I'd willingly accept a patch to hook into Attachment#view! and allow
   3681 > > overriding of the default run-mailcap behavior.
   3682 > 
   3683 > Sure, but I don't know of the best way to do that. It wouldn't be like
   3684 > other hooks, because it has to replace behaviour and not just
   3685 > supplement it.
   3686 
   3687 That's not a problem. There are plenty of hooks that override default
   3688 behavior if they're present, but do nothing if not. The quoteline one
   3689 Marcus just submitted is a good example.
   3690 
   3691 > Lots of systems don't have run-mailcap(1). Probably we should port it
   3692 > and push it out as a gem that Sup depends on.
   3693 
   3694 If we want to make some kind of a mailcap-parsing gem, there's a Python
   3695 version that is probably more directly portable:
   3696 http://docs.python.org/lib/module-mailcap.html
   3697 Ruby doesn't seem to have any mailcap library, so this would be a good
   3698 contribution to the community, especially if it played nicely with
   3699 MIME::Types.
   3700 
   3701 Of course, mailcap only gets you Unix systems. Or does OS X use
   3702 mailcaps? I imagine for Windows you would need some hideous registry
   3703 parsing thing that I'm not even close to writing...
   3704 
   3705 -- 
   3706 William <wmorgan-sup at masanjin.net>
   3707 
   3708 From wmorgan-sup@masanjin.net  Tue Jan 15 22:23:35 2008
   3709 From: wmorgan-sup@masanjin.net (William Morgan)
   3710 Date: Tue, 15 Jan 2008 19:23:35 -0800
   3711 Subject: [sup-talk] the proper way of determining the encoding
   3712 In-Reply-To: <1200453166-sup-9993@ausone.local>
   3713 References: <1199569265-sup-4567@clarabella.clarabella>
   3714 	<1199685831-sup-2011@south>
   3715 	<1199695733-sup-2741@clarabella.clarabella>
   3716 	<1199901555-sup-2661@south>
   3717 	<1199925510-sup-7503@clarabella.clarabella>
   3718 	<1200190710-sup-6881@south> <1200414495-sup-4477@spooky.local>
   3719 	<1200447310-sup-8536@south> <1200449354-sup-9441@ausone.local>
   3720 	<1200452148-sup-9276@south> <1200453166-sup-9993@ausone.local>
   3721 Message-ID: <1200453783-sup-4968@south>
   3722 
   3723 Sorry, meant to reply to list.
   3724 
   3725 Reformatted excerpts from nicolas.pouillard's message of 2008-01-15:
   3726 > Still  not  working,  gettext  is  guessing  ASCII-US but my LC_CTYPE
   3727 > contains en_US.UTF-8.
   3728 
   3729 Well crap. Do you have a $LC_CTYPE environment variable defined, that
   3730 it's not picking up on?
   3731 
   3732 -- 
   3733 William <wmorgan-sup at masanjin.net>
   3734 
   3735 From wmorgan-sup@masanjin.net  Tue Jan 15 22:24:47 2008
   3736 From: wmorgan-sup@masanjin.net (William Morgan)
   3737 Date: Tue, 15 Jan 2008 19:24:47 -0800
   3738 Subject: [sup-talk] header cache
   3739 In-Reply-To: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   3740 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   3741 Message-ID: <1200453820-sup-4777@south>
   3742 
   3743 Reformatted excerpts from Giorgio Lando's message of 2008-01-15:
   3744 > My "All mail" includes approximately 40000 messages so the fetching of
   3745 > IMAP headers is highly time-consuming (also the initial sup-sync took
   3746 > about 8 hours, but this happens only one time).
   3747 > 
   3748 > I see that in TODO the header cache is scheduled for the 0.4 release.
   3749 > So am I correct to expect it quite soon?
   3750 
   3751 Yes, I have a stub implementation in the works that should be ready for
   3752 testing soon. I'll focus more attention on it now that I have a
   3753 customer. :)
   3754 
   3755 -- 
   3756 William <wmorgan-sup at masanjin.net>
   3757 
   3758 From nicolas.pouillard@gmail.com  Tue Jan 15 22:28:54 2008
   3759 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   3760 Date: Wed, 16 Jan 2008 04:28:54 +0100
   3761 Subject: [sup-talk] the proper way of determining the encoding
   3762 In-Reply-To: <1200453783-sup-4968@south>
   3763 References: <1199569265-sup-4567@clarabella.clarabella>
   3764 	<1199685831-sup-2011@south>
   3765 	<1199695733-sup-2741@clarabella.clarabella>
   3766 	<1199901555-sup-2661@south>
   3767 	<1199925510-sup-7503@clarabella.clarabella>
   3768 	<1200190710-sup-6881@south> <1200414495-sup-4477@spooky.local>
   3769 	<1200447310-sup-8536@south> <1200449354-sup-9441@ausone.local>
   3770 	<1200452148-sup-9276@south> <1200453166-sup-9993@ausone.local>
   3771 	<1200453783-sup-4968@south>
   3772 Message-ID: <1200453980-sup-9189@ausone.local>
   3773 
   3774 Excerpts from William Morgan's message of Wed Jan 16 04:23:35 +0100 2008:
   3775 > Sorry, meant to reply to list.
   3776 > 
   3777 > Reformatted excerpts from nicolas.pouillard's message of 2008-01-15:
   3778 > > Still  not  working,  gettext  is  guessing  ASCII-US but my LC_CTYPE
   3779 > > contains en_US.UTF-8.
   3780 > 
   3781 > Well crap. Do you have a $LC_CTYPE environment variable defined, that
   3782 > it's not picking up on?
   3783 
   3784 Yes $LC_CTYPE is set to en_US.UTF-8. I've looked at the gettext code and found something:
   3785 
   3786 In locale_posix.rb:
   3787 ...
   3788       [ENV["LC_ALL"], ENV["LC_MESSAGES"], ENV["LANG"],
   3789 ...
   3790 
   3791 In locale_win32.rb:
   3792 ...
   3793       ["LC_ALL", "LC_CTYPE", "LC_MESSAGES", "LANG"].each do |env|
   3794 ...
   3795 
   3796 Adding LC_CTYPE to the first list solve my problem...
   3797 
   3798 -- 
   3799 Nicolas Pouillard aka Ertai
   3800 
   3801 From wmorgan-sup@masanjin.net  Tue Jan 15 22:38:14 2008
   3802 From: wmorgan-sup@masanjin.net (William Morgan)
   3803 Date: Tue, 15 Jan 2008 19:38:14 -0800
   3804 Subject: [sup-talk] the proper way of determining the encoding
   3805 In-Reply-To: <1200453980-sup-9189@ausone.local>
   3806 References: <1199569265-sup-4567@clarabella.clarabella>
   3807 	<1199685831-sup-2011@south>
   3808 	<1199695733-sup-2741@clarabella.clarabella>
   3809 	<1199901555-sup-2661@south>
   3810 	<1199925510-sup-7503@clarabella.clarabella>
   3811 	<1200190710-sup-6881@south> <1200414495-sup-4477@spooky.local>
   3812 	<1200447310-sup-8536@south> <1200449354-sup-9441@ausone.local>
   3813 	<1200452148-sup-9276@south> <1200453166-sup-9993@ausone.local>
   3814 	<1200453783-sup-4968@south> <1200453980-sup-9189@ausone.local>
   3815 Message-ID: <1200454570-sup-2537@south>
   3816 
   3817 Reformatted excerpts from nicolas.pouillard's message of 2008-01-15:
   3818 > In locale_posix.rb:
   3819 > ...
   3820 >       [ENV["LC_ALL"], ENV["LC_MESSAGES"], ENV["LANG"],
   3821 > ...
   3822 > 
   3823 > In locale_win32.rb:
   3824 > ...
   3825 >       ["LC_ALL", "LC_CTYPE", "LC_MESSAGES", "LANG"].each do |env|
   3826 > ...
   3827 > 
   3828 > Adding LC_CTYPE to the first list solve my problem...
   3829 
   3830 Excellent, sounds like a bug in gettext. If you submit a bug report,
   3831 would you mind cc'ing me?
   3832 
   3833 -- 
   3834 William <wmorgan-sup at masanjin.net>
   3835 
   3836 From wmorgan-sup@masanjin.net  Tue Jan 15 22:39:55 2008
   3837 From: wmorgan-sup@masanjin.net (William Morgan)
   3838 Date: Tue, 15 Jan 2008 19:39:55 -0800
   3839 Subject: [sup-talk] mailcap for os x
   3840 In-Reply-To: <1200453317-sup-5958@south>
   3841 References: <1196351498-sup-4803@spooky.local> <1198781360-sup-2193@south>
   3842 	<1200414674-sup-1175@spooky.local> <1200453317-sup-5958@south>
   3843 Message-ID: <1200454766-sup-5388@south>
   3844 
   3845 Reformatted excerpts from William Morgan's message of 2008-01-15:
   3846 > Or does OS X use mailcaps?
   3847 
   3848 Hm, I think you answered this in your original email.
   3849 
   3850 -- 
   3851 William <wmorgan-sup at masanjin.net>
   3852 
   3853 From wmorgan-sup@masanjin.net  Tue Jan 15 23:06:01 2008
   3854 From: wmorgan-sup@masanjin.net (William Morgan)
   3855 Date: Tue, 15 Jan 2008 20:06:01 -0800
   3856 Subject: [sup-talk] mailcap for os x
   3857 In-Reply-To: <1200453317-sup-5958@south>
   3858 References: <1196351498-sup-4803@spooky.local> <1198781360-sup-2193@south>
   3859 	<1200414674-sup-1175@spooky.local> <1200453317-sup-5958@south>
   3860 Message-ID: <1200456328-sup-4928@south>
   3861 
   3862 Reformatted excerpts from William Morgan's message of 2008-01-15:
   3863 > That's not a problem. There are plenty of hooks that override default
   3864 > behavior if they're present, but do nothing if not. The quoteline one
   3865 > Marcus just submitted is a good example.
   3866 
   3867 Something like this. Then you can move all the quick_look and
   3868 explicit_view stuff in your original email into a mime-view.rb hook.
   3869 
   3870 diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
   3871 index 08dcf27..8e5def9 100644
   3872 --- a/lib/sup/message-chunks.rb
   3873 +++ b/lib/sup/message-chunks.rb
   3874 @@ -53,6 +53,16 @@ Variables:
   3875  Return value:
   3876    The decoded text of the attachment, or nil if not decoded.
   3877  EOS
   3878 +
   3879 +    HookManager.register "mime-view", <<EOS
   3880 +Executes when viewing a MIME attachment, i.e., launching a separate
   3881 +viewer program.
   3882 +Variables:
   3883 +   content_type: the content-type of the attachment
   3884 +       filename: the filename of the attachment as saved to disk
   3885 +Return value:
   3886 +  True if the viewing was successful, false otherwise.
   3887 +EOS
   3888  #' stupid ruby-mode
   3889  
   3890      ## raw_content is the post-MIME-decode content. this is used for
   3891 @@ -105,12 +115,18 @@ EOS
   3892      def expandable?; !viewable? end
   3893      def initial_state; :open end
   3894      def viewable?; @lines.nil? end
   3895 -    def view!
   3896 -      path = write_to_disk
   3897 +    def view_default! path
   3898        system "/usr/bin/run-mailcap --action=view #{@content_type}:#{path} > /dev/null 2> /dev/null"
   3899        $? == 0
   3900      end
   3901  
   3902 +    def view!
   3903 +      path = write_to_disk
   3904 +      ret = HookManager.run "mime-view", :content_type => @content_type,
   3905 +                                         :filename => path
   3906 +      view_default! path unless ret
   3907 +    end
   3908 +
   3909      def write_to_disk
   3910        file = Tempfile.new(@filename || "sup-attachment")
   3911        file.print @raw_content
   3912 
   3913 -- 
   3914 William <wmorgan-sup at masanjin.net>
   3915 
   3916 From wmorgan-sup@masanjin.net  Tue Jan 15 23:30:07 2008
   3917 From: wmorgan-sup@masanjin.net (William Morgan)
   3918 Date: Tue, 15 Jan 2008 20:30:07 -0800
   3919 Subject: [sup-talk] [PATCH] Search all threads with option to cancel
   3920 In-Reply-To: <1200400125-sup-5900@tomsk>
   3921 References: <1200071751-sup-5552@tomsk> <1200201168-sup-5812@south>
   3922 	<1200247733-sup-3710@tomsk> <1200272179-sup-6412@south>
   3923 	<1200307947-sup-1357@tomsk> <1200372469-sup-1813@south>
   3924 	<1200400125-sup-5900@tomsk>
   3925 Message-ID: <1200457554-sup-9055@south>
   3926 
   3927 Reformatted excerpts from Marcus Williams's message of 2008-01-15:
   3928 > This adds the ability to extend your search to display all threads
   3929 > (which may take a _long_ time) instead of the standard maximum
   3930 > (usually screen height). It is accessed via a multi-key action !C in
   3931 > thread index modes. To cancel the search the user can press another
   3932 > multi-key action !S.
   3933 
   3934 I think you should split this into two patches, the first of which adds
   3935 the ability to stop any current thread-loading operation, and the second
   3936 of which gives you the "load everything now" button. I'd like to
   3937 evaluate each one independently.
   3938 
   3939 I think I'd like the stop loading button to be ^G, which is the general
   3940 cancel command everywhere in Sup. The load everything now button can be
   3941 a scary multi-key sequence like "!!".
   3942 
   3943 Comments welcome.
   3944 
   3945 -- 
   3946 William <wmorgan-sup at masanjin.net>
   3947 
   3948 From nicolas.pouillard@gmail.com  Wed Jan 16 03:46:08 2008
   3949 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   3950 Date: Wed, 16 Jan 2008 09:46:08 +0100
   3951 Subject: [sup-talk] the proper way of determining the encoding
   3952 In-Reply-To: <1200454570-sup-2537@south>
   3953 References: <1199569265-sup-4567@clarabella.clarabella>
   3954 	<1199685831-sup-2011@south>
   3955 	<1199695733-sup-2741@clarabella.clarabella>
   3956 	<1199901555-sup-2661@south>
   3957 	<1199925510-sup-7503@clarabella.clarabella>
   3958 	<1200190710-sup-6881@south> <1200414495-sup-4477@spooky.local>
   3959 	<1200447310-sup-8536@south> <1200449354-sup-9441@ausone.local>
   3960 	<1200452148-sup-9276@south> <1200453166-sup-9993@ausone.local>
   3961 	<1200453783-sup-4968@south> <1200453980-sup-9189@ausone.local>
   3962 	<1200454570-sup-2537@south>
   3963 Message-ID: <1200473133-sup-6533@ausone.local>
   3964 
   3965 Excerpts from William Morgan's message of Wed Jan 16 04:38:14 +0100 2008:
   3966 > Reformatted excerpts from nicolas.pouillard's message of 2008-01-15:
   3967 > > In locale_posix.rb:
   3968 > > ...
   3969 > >       [ENV["LC_ALL"], ENV["LC_MESSAGES"], ENV["LANG"],
   3970 > > ...
   3971 > > 
   3972 > > In locale_win32.rb:
   3973 > > ...
   3974 > >       ["LC_ALL", "LC_CTYPE", "LC_MESSAGES", "LANG"].each do |env|
   3975 > > ...
   3976 > > 
   3977 > > Adding LC_CTYPE to the first list solve my problem...
   3978 > 
   3979 > Excellent, sounds like a bug in gettext. If you submit a bug report,
   3980 > would you mind cc'ing me?
   3981 
   3982 http://rubyforge.org/tracker/index.php?func=detail&aid=17133&group_id=855&atid=3377
   3983 
   3984 -- 
   3985 Nicolas Pouillard aka Ertai
   3986 
   3987 From nicolas.pouillard@gmail.com  Wed Jan 16 03:51:54 2008
   3988 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   3989 Date: Wed, 16 Jan 2008 09:51:54 +0100
   3990 Subject: [sup-talk] the proper way of determining the encoding
   3991 In-Reply-To: <1200452938-sup-9442@south>
   3992 References: <1199569265-sup-4567@clarabella.clarabella>
   3993 	<1199685831-sup-2011@south>
   3994 	<1199695733-sup-2741@clarabella.clarabella>
   3995 	<1199901555-sup-2661@south>
   3996 	<1199925510-sup-7503@clarabella.clarabella>
   3997 	<1200190710-sup-6881@south> <1200414495-sup-4477@spooky.local>
   3998 	<1200447310-sup-8536@south> <1200449354-sup-9441@ausone.local>
   3999 	<1200452148-sup-9276@south> <1200452938-sup-9442@south>
   4000 Message-ID: <1200473352-sup-5980@ausone.local>
   4001 
   4002 Excerpts from William Morgan's message of Wed Jan 16 04:09:48 +0100 2008:
   4003 > Reformatted excerpts from William Morgan's message of 2008-01-15:
   4004 > > Reformatted excerpts from nicolas.pouillard's message of 2008-01-15:
   4005 > > > And I don't see your gettext patch neither on master nor on next ;( 
   4006 > > 
   4007 > > Whoops, I had never merged it onto next in the first place. Well, it's
   4008 > > on master now. Let me know if it gives you any trouble.
   4009 > 
   4010 > Aaaand merged onto next. I do seem to spend a lot of my time merging
   4011 > from master to next. I wonder if that's proper git usage. Seems to
   4012 > clutter up my pretty gitk graph.
   4013 
   4014 I  don't  know  the proper git usage, but I think that you should make all you
   4015 commits  on  next,  apply all patches from users on next, and then cherry-pick
   4016 changes from next to master when they are well tested.
   4017 
   4018 -- 
   4019 Nicolas Pouillard aka Ertai
   4020 
   4021 From marcus-sup@bar-coded.net  Wed Jan 16 05:47:39 2008
   4022 From: marcus-sup@bar-coded.net (Marcus Williams)
   4023 Date: Wed, 16 Jan 2008 10:47:39 +0000
   4024 Subject: [sup-talk] [PATCH] Search all threads with option to cancel
   4025 In-Reply-To: <1200457554-sup-9055@south>
   4026 References: <1200071751-sup-5552@tomsk> <1200201168-sup-5812@south>
   4027 	<1200247733-sup-3710@tomsk> <1200272179-sup-6412@south>
   4028 	<1200307947-sup-1357@tomsk> <1200372469-sup-1813@south>
   4029 	<1200400125-sup-5900@tomsk> <1200457554-sup-9055@south>
   4030 Message-ID: <1200480144-sup-10@tomsk>
   4031 
   4032 On 16.1.2008, William Morgan wrote:
   4033 > I think you should split this into two patches, the first of which adds
   4034 > the ability to stop any current thread-loading operation, and the second
   4035 > of which gives you the "load everything now" button. I'd like to
   4036 > evaluate each one independently.
   4037 
   4038 At the moment isnt the only thread-loading operation the
   4039 load_n_threads method in thread-index-view? All the possibly long
   4040 running operations that run threads that I can think of end up going
   4041 through this as far as I can see.
   4042 
   4043 So do you want a patch for interrupting the load threads method, and
   4044 then a patch to add the potentially long running load_all_threads?
   4045 
   4046 > I think I'd like the stop loading button to be ^G, which is the general
   4047 > cancel command everywhere in Sup. The load everything now button can be
   4048 > a scary multi-key sequence like "!!".
   4049 > 
   4050 
   4051 Ok, easily done - I didnt use ^G originally because I thought you
   4052 couldnt overload a key action in a mode and I though ^G was added
   4053 elsewhere.
   4054 
   4055 Marcus
   4056 
   4057 From grant@antiflux.org  Wed Jan 16 11:32:06 2008
   4058 From: grant@antiflux.org (Grant Hollingworth)
   4059 Date: Wed, 16 Jan 2008 11:32:06 -0500
   4060 Subject: [sup-talk] [PATCH] Added quoteline hook for reply mode
   4061 In-Reply-To: <1200389942-sup-6442@tomsk>
   4062 References: <1200313448-sup-3169@tomsk> <1200374341-sup-8557@south>
   4063 	<1200388608-sup-6945@tomsk> <1200389942-sup-6442@tomsk>
   4064 Message-ID: <1200501059-sup-4520@spooky.local>
   4065 
   4066 * Marcus Williams [Tue Jan 15 04:40:04 -0500 2008]:
   4067 > This hook allows a user to configure a quote line for replies. The
   4068 > default is the standard sup quote line "Excerpts from...". Multiple
   4069 > lines are allowed.
   4070 
   4071 Thanks! I can take that off my to-do list now.
   4072 
   4073 I like Mutt's term "attribution" slightly more than "quoteline".
   4074 
   4075 From marcus-sup@bar-coded.net  Wed Jan 16 11:39:43 2008
   4076 From: marcus-sup@bar-coded.net (Marcus Williams)
   4077 Date: Wed, 16 Jan 2008 16:39:43 +0000
   4078 Subject: [sup-talk] [PATCH] Added quoteline hook for reply mode
   4079 In-Reply-To: <1200501059-sup-4520@spooky.local>
   4080 References: <1200313448-sup-3169@tomsk> <1200374341-sup-8557@south>
   4081 	<1200388608-sup-6945@tomsk> <1200389942-sup-6442@tomsk>
   4082 	<1200501059-sup-4520@spooky.local>
   4083 Message-ID: <1200501489-sup-1907@tomsk>
   4084 
   4085 On 16.1.2008, Grant Hollingworth wrote:
   4086 > I like Mutt's term "attribution" slightly more than "quoteline".
   4087 
   4088 :) I only called it quoteline because I couldnt think of a term for
   4089 it. "attribution" is much nicer.
   4090 
   4091 Marcus
   4092 
   4093 From grant@antiflux.org  Wed Jan 16 12:38:22 2008
   4094 From: grant@antiflux.org (Grant Hollingworth)
   4095 Date: Wed, 16 Jan 2008 12:38:22 -0500
   4096 Subject: [sup-talk] labels for updated messages
   4097 Message-ID: <1200504528-sup-4009@spooky.local>
   4098 
   4099 When a message is updated, source labels are not applied to it.
   4100 
   4101 PollManager.do_poll:
   4102   add_messages_from source do |m, offset, entry|
   4103     ## always preserve the labels on disk.
   4104     m.labels = entry[:label].split(/\s+/).map { |x| x.intern } if entry
   4105 
   4106 This means that when I write to a mailing list, the message never gets a list
   4107 label applied, even when the message is updated from a source for that list.
   4108 The thread will be missing its label unless someone replies to my message.
   4109 
   4110 The code above could merge in the source labels. It seems to me that it would
   4111 be uncommon to remove a label only to have it re-added when the message is
   4112 updated. It still bugs me to leave that unaddressed, though. We could keep
   4113 track of deleted labels, but that seems like a lot of work for an uncommon
   4114 situation.
   4115 
   4116 From patroclo7@gmail.com  Wed Jan 16 15:26:44 2008
   4117 From: patroclo7@gmail.com (Giorgio Lando)
   4118 Date: Wed, 16 Jan 2008 21:26:44 +0100
   4119 Subject: [sup-talk] header cache
   4120 In-Reply-To: <1200453820-sup-4777@south>
   4121 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   4122 	<1200453820-sup-4777@south>
   4123 Message-ID: <1200514969-sup-7541@clarabella.clarabella>
   4124 
   4125 > Yes, I have a stub implementation in the works that should be ready for
   4126 > testing soon. I'll focus more attention on it now that I have a
   4127 > customer. :)
   4128 
   4129 Fine, ready for eventual testing, although I have finally decided to
   4130 sync locally the 40000 messages with another tool, so to have them
   4131 indexed and opened by sup in a faster way. Anyway I guess that a cache
   4132 helps only relatively with such a monster (or at least also mutt's
   4133 header cache helps only a bit with 40000 messages in an IMAP folder), 
   4134 so I will be able to make tests with other, much smaller imap folders.
   4135 Giorgio
   4136 
   4137 From wmorgan-sup@masanjin.net  Wed Jan 16 15:48:47 2008
   4138 From: wmorgan-sup@masanjin.net (William Morgan)
   4139 Date: Wed, 16 Jan 2008 12:48:47 -0800
   4140 Subject: [sup-talk] header cache
   4141 In-Reply-To: <1200514969-sup-7541@clarabella.clarabella>
   4142 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   4143 	<1200453820-sup-4777@south>
   4144 	<1200514969-sup-7541@clarabella.clarabella>
   4145 Message-ID: <1200516410-sup-1963@south>
   4146 
   4147 Reformatted excerpts from Giorgio Lando's message of 2008-01-16:
   4148 > Anyway I guess that a cache helps only relatively with such a monster
   4149 > (or at least also mutt's header cache helps only a bit with 40000
   4150 > messages in an IMAP folder), so I will be able to make tests with
   4151 > other, much smaller imap folders.
   4152 
   4153 If you look at the log messages, there's one at the emitted at the
   4154 beginning of loading the headers, and one at the end, so you can see
   4155 exactly how much time adding a cache will save you (minus however long
   4156 it takes to load things in from disk).
   4157 
   4158 I'm curious what this number is for 40000 headers. It seems to be about
   4159 10 seconds for my 5000-message IMAP folder, so I can imagine it being
   4160 quite significant.
   4161 
   4162 -- 
   4163 William <wmorgan-sup at masanjin.net>
   4164 
   4165 From wmorgan-sup@masanjin.net  Wed Jan 16 16:09:36 2008
   4166 From: wmorgan-sup@masanjin.net (William Morgan)
   4167 Date: Wed, 16 Jan 2008 13:09:36 -0800
   4168 Subject: [sup-talk] [PATCH] Search all threads with option to cancel
   4169 In-Reply-To: <1200480144-sup-10@tomsk>
   4170 References: <1200071751-sup-5552@tomsk> <1200201168-sup-5812@south>
   4171 	<1200247733-sup-3710@tomsk> <1200272179-sup-6412@south>
   4172 	<1200307947-sup-1357@tomsk> <1200372469-sup-1813@south>
   4173 	<1200400125-sup-5900@tomsk> <1200457554-sup-9055@south>
   4174 	<1200480144-sup-10@tomsk>
   4175 Message-ID: <1200517677-sup-7041@south>
   4176 
   4177 Reformatted excerpts from Marcus Williams's message of 2008-01-16:
   4178 > At the moment isnt the only thread-loading operation the
   4179 > load_n_threads method in thread-index-view? All the possibly long
   4180 > running operations that run threads that I can think of end up going
   4181 > through this as far as I can see.
   4182 
   4183 Yes.
   4184 
   4185 > So do you want a patch for interrupting the load threads method, and
   4186 > then a patch to add the potentially long running load_all_threads?
   4187 
   4188 Precisely.
   4189 
   4190 > Ok, easily done - I didnt use ^G originally because I thought you
   4191 > couldnt overload a key action in a mode and I though ^G was added
   4192 > elsewhere.
   4193 
   4194 In general that is more or less true, but ^G is only caught by the
   4195 top-level event handler (which we override every time we define a
   4196 mode-specific keyboard command), and by the text entry stuff, which does
   4197 its own keyboard handling routine. So I think you should be fine.
   4198 
   4199 -- 
   4200 William <wmorgan-sup at masanjin.net>
   4201 
   4202 From wmorgan-sup@masanjin.net  Wed Jan 16 16:09:59 2008
   4203 From: wmorgan-sup@masanjin.net (William Morgan)
   4204 Date: Wed, 16 Jan 2008 13:09:59 -0800
   4205 Subject: [sup-talk] [PATCH] Added quoteline hook for reply mode
   4206 In-Reply-To: <1200501489-sup-1907@tomsk>
   4207 References: <1200313448-sup-3169@tomsk> <1200374341-sup-8557@south>
   4208 	<1200388608-sup-6945@tomsk> <1200389942-sup-6442@tomsk>
   4209 	<1200501059-sup-4520@spooky.local> <1200501489-sup-1907@tomsk>
   4210 Message-ID: <1200517786-sup-7789@south>
   4211 
   4212 Reformatted excerpts from Marcus Williams's message of 2008-01-16:
   4213 > :) I only called it quoteline because I couldnt think of a term for
   4214 > it. "attribution" is much nicer.
   4215 
   4216 Patches welcome! :)
   4217 
   4218 -- 
   4219 William <wmorgan-sup at masanjin.net>
   4220 
   4221 From patroclo7@gmail.com  Wed Jan 16 17:04:26 2008
   4222 From: patroclo7@gmail.com (Giorgio Lando)
   4223 Date: Wed, 16 Jan 2008 23:04:26 +0100
   4224 Subject: [sup-talk] header cache
   4225 In-Reply-To: <1200516410-sup-1963@south>
   4226 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   4227 	<1200453820-sup-4777@south>
   4228 	<1200514969-sup-7541@clarabella.clarabella>
   4229 	<1200516410-sup-1963@south>
   4230 Message-ID: <1200519319-sup-915@clarabella.clarabella>
   4231 
   4232 > If you look at the log messages, there's one at the emitted at the
   4233 > beginning of loading the headers, and one at the end, so you can see
   4234 > exactly how much time adding a cache will save you (minus however long
   4235 > it takes to load things in from disk).
   4236 > 
   4237 > I'm curious what this number is for 40000 headers. It seems to be about
   4238 > 10 seconds for my 5000-message IMAP folder, so I can imagine it being
   4239 > quite significant.
   4240 
   4241 I guess you are referring to mutt: in this case I can confirm that the
   4242 cache (mutt is compiled with gdbm) saves about 80 secs.
   4243 
   4244 What I meant is that it is nonetheless very slow, and that this is why
   4245 one SHOULD NOT ordinarily access an IMAP folder with 40000 headers. In fact I
   4246 do not do this in mutt, where on the contrary I enter INBOX and change folder only when
   4247 needed (so only seldom I change to All Mail). I can not do exactly the same 
   4248 with sup: either I pull mails only from the INBOX, but then everything already 
   4249 archived in gmail through the web interface will
   4250 not be seen by sup, or I go with All Mail, but then I have to load each
   4251 time 40000 headers, which is extra slow (and would be very slow also with an header cache).
   4252 Finally, there would not be any point to pull mails from all the other folders/labels, 
   4253 because they would include only duplicates of mails in All Mail and they
   4254 would not enrich sup index at all.
   4255 
   4256 I have also the feeling that sup's philosophy is not very consistent
   4257 with IMAP's philosophy, which is to access the same structure of folders
   4258 from different interfaces, syncing immediately any operation on the server, 
   4259 so that folders and labels are exactly the same from any interface.
   4260 Sup follows its own philosophy: thus, it does not deal with folders at all, 
   4261 and (as you admit often) does not aim to play well with other ways to check emails.
   4262 Gmail's imap is not an exception to this conflict between sup's
   4263 philosophy and imap's philosophy, because gmail's labels are, when you
   4264 access gmail through IMAP, nothing else than folders!
   4265 
   4266 So I have finally decided to go back to POP3, download all mails (including
   4267 mails sent from the web interface, in the case of gmail) locally and let sup
   4268 index and open them locally. The mails are anyway kept on the server, so
   4269 I can also access them through a traditional IMAP client with folders
   4270 (such as mutt) or through the web interface when I am around the world
   4271 without my laptop.
   4272 In this way, I can use sup in a fast way without any bad interplay with
   4273 other ways of checking emails. This is very important for me because I
   4274 travel a lot and it
   4275 is not possible for me to access emails exclusively from my own
   4276 computers with sup installed :) .
   4277 
   4278 Thus I do not think that I will go back to access gmail through IMAP
   4279 with sup. Anyway I hope to be able to do some testing of the IMAP headers cache 
   4280 with other small IMAP servers I have access to.
   4281 
   4282 Giorgio
   4283 
   4284 
   4285 
   4286  
   4287 
   4288 
   4289 
   4290 From alec@thened.net  Wed Jan 16 17:58:17 2008
   4291 From: alec@thened.net (Alec Berryman)
   4292 Date: Wed, 16 Jan 2008 16:58:17 -0600
   4293 Subject: [sup-talk] header cache
   4294 In-Reply-To: <1200519319-sup-915@clarabella.clarabella>
   4295 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   4296 	<1200453820-sup-4777@south>
   4297 	<1200514969-sup-7541@clarabella.clarabella>
   4298 	<1200516410-sup-1963@south>
   4299 	<1200519319-sup-915@clarabella.clarabella>
   4300 Message-ID: <20080116225816.GA25381@thened.net>
   4301 
   4302 Giorgio Lando on 2008-01-16 23:04:26 +0100:
   4303 
   4304 > So I have finally decided to go back to POP3, download all mails (including
   4305 > mails sent from the web interface, in the case of gmail) locally and let sup
   4306 > index and open them locally. The mails are anyway kept on the server, so
   4307 > I can also access them through a traditional IMAP client with folders
   4308 > (such as mutt) or through the web interface when I am around the world
   4309 > without my laptop.
   4310 
   4311 Have you looked at offlineimap?  I started using it with mutt because
   4312 IMAP, even with header cachine, was just way too slow.
   4313 
   4314 From patroclo7@gmail.com  Wed Jan 16 18:36:55 2008
   4315 From: patroclo7@gmail.com (Giorgio Lando)
   4316 Date: Thu, 17 Jan 2008 00:36:55 +0100
   4317 Subject: [sup-talk] header cache
   4318 In-Reply-To: <20080116225816.GA25381@thened.net>
   4319 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   4320 	<1200453820-sup-4777@south>
   4321 	<1200514969-sup-7541@clarabella.clarabella>
   4322 	<1200516410-sup-1963@south>
   4323 	<1200519319-sup-915@clarabella.clarabella>
   4324 	<20080116225816.GA25381@thened.net>
   4325 Message-ID: <1200526085-sup-9510@clarabella.clarabella>
   4326 
   4327 Excerpts from Alec Berryman's message of Wed Jan 16 23:58:17 +0100 2008:
   4328 > Have you looked at offlineimap?  I started using it with mutt because
   4329 > IMAP, even with header cachine, was just way too slow.
   4330 
   4331 Yes, I have used it and isync: you are right,they solve the problem of the slowness, 
   4332 since all the syncing happens in the background when using mutt or sup. 
   4333 
   4334 But still I think that, when one does not care about folders and about
   4335 synchronization of different interfaces, the intrinsic advantages of
   4336 IMAP over POP3 tend to disappear. On the contrary there is the risk of
   4337 strange interplay (such as sup changing the flags in way that
   4338 offlineimap syncs to an IMAP server which does not understand or does
   4339 strange things); a solution is to use isync as a push-only synchronizer
   4340 (only sync the changes from the server to the local machine and not the
   4341 opposite), but really in this way you loose all the advantages of IMAP
   4342 and I prefer to use well-tested and powerful fetchers for POP3, such
   4343 as fdm and getmail.
   4344 
   4345 Obviously if on the contrary for some reason you are forced to use IMAP,
   4346 then offlineimap and isync are the best solution
   4347 
   4348 Giorgio
   4349 
   4350 From wmorgan-sup@masanjin.net  Wed Jan 16 20:52:57 2008
   4351 From: wmorgan-sup@masanjin.net (William Morgan)
   4352 Date: Wed, 16 Jan 2008 17:52:57 -0800
   4353 Subject: [sup-talk] new in next: thread joining and better quotes
   4354 Message-ID: <1200533604-sup-2015@south>
   4355 
   4356 Some minor quote-detection improvements in next, so tell me if the quote
   4357 blocks (the "+ (n quoted lines)" blocks) are wrong. I don't think I'll
   4358 be able to always get all cases, but at least the more common ones
   4359 should be detected now.
   4360 
   4361 Also, you can now select multiple threads and press '#' to join them
   4362 into one thread. Once you write this back to index, there's no good way
   4363 to split them apart besides sup-syncing, so be careful.
   4364 
   4365 -- 
   4366 William <wmorgan-sup at masanjin.net>
   4367 
   4368 From nicolas.pouillard@gmail.com  Thu Jan 17 03:13:21 2008
   4369 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   4370 Date: Thu, 17 Jan 2008 09:13:21 +0100
   4371 Subject: [sup-talk] header cache
   4372 In-Reply-To: <1200519319-sup-915@clarabella.clarabella>
   4373 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   4374 	<1200453820-sup-4777@south>
   4375 	<1200514969-sup-7541@clarabella.clarabella>
   4376 	<1200516410-sup-1963@south>
   4377 	<1200519319-sup-915@clarabella.clarabella>
   4378 Message-ID: <1200557516-sup-8444@ausone.local>
   4379 
   4380 Excerpts from Giorgio Lando's message of Wed Jan 16 23:04:26 +0100 2008:
   4381 > 
   4382 
   4383 [...]
   4384 
   4385 > So I have finally decided to go back to POP3, download all mails (including
   4386 > mails sent from the web interface, in the case of gmail) locally and let sup
   4387 > index and open them locally. The mails are anyway kept on the server, so
   4388 > I can also access them through a traditional IMAP client with folders
   4389 > (such as mutt) or through the web interface when I am around the world
   4390 > without my laptop.
   4391 
   4392 I use this setup too, using mbox and it's quite fast.
   4393 
   4394 -- 
   4395 Nicolas Pouillard aka Ertai
   4396 
   4397 From patroclo7@gmail.com  Thu Jan 17 06:40:47 2008
   4398 From: patroclo7@gmail.com (Giorgio Lando)
   4399 Date: Thu, 17 Jan 2008 12:40:47 +0100
   4400 Subject: [sup-talk] header cache
   4401 In-Reply-To: <1200557516-sup-8444@ausone.local>
   4402 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   4403 	<1200453820-sup-4777@south>
   4404 	<1200514969-sup-7541@clarabella.clarabella>
   4405 	<1200516410-sup-1963@south>
   4406 	<1200519319-sup-915@clarabella.clarabella>
   4407 	<1200557516-sup-8444@ausone.local>
   4408 Message-ID: <1200570003-sup-1529@clarabella.clarabella>
   4409 
   4410 Excerpts from nicolas.pouillard's message of Thu Jan 17 09:13:21 +0100 2008:
   4411 > Excerpts from Giorgio Lando's message of Wed Jan 16 23:04:26 +0100 2008:
   4412 > > 
   4413 > 
   4414 > [...]
   4415 > 
   4416 > > So I have finally decided to go back to POP3, download all mails (including
   4417 > > mails sent from the web interface, in the case of gmail) locally and let sup
   4418 > > index and open them locally. The mails are anyway kept on the server, so
   4419 > > I can also access them through a traditional IMAP client with folders
   4420 > > (such as mutt) or through the web interface when I am around the world
   4421 > > without my laptop.
   4422 > 
   4423 > I use this setup too, using mbox and it's quite fast.
   4424 
   4425 Yes, it is fast also with maildir! Quite satisfied
   4426 Giorgio
   4427 
   4428 -- 
   4429 Giorgio Lando <patroclo7 at gmail dot com>
   4430 
   4431 From marko.myllymaki@iki.fi  Thu Jan 17 07:51:51 2008
   4432 From: marko.myllymaki@iki.fi (=?UTF-8?B?TWFya28gTXlsbHltw6RraQ==?=)
   4433 Date: Thu, 17 Jan 2008 14:51:51 +0200
   4434 Subject: [sup-talk] char. encoding problems - garbled output
   4435 Message-ID: <478F4F67.1040405@iki.fi>
   4436 
   4437 Hi,
   4438 
   4439 Sup seems very promising email-client for my purposes, good job! 
   4440 However, I have some problems with wrong character encodings which 
   4441 garble the sup output a bit unusable...
   4442 Uppercase umlaut characters seem to be the biggest problem. But I may 
   4443 also have some configuration option wrong..
   4444 
   4445 The following mail has weird content-type:
   4446 Content-type: multipart/mixed; boundary="===============2134700068=="
   4447 
   4448 And here is the garbled output for that mail, which makes also other 
   4449 lines in the message list interface garbled :(
   4450 ----
   4451 Yest. 9am laskutus >Some subject text... +/INBOX K?~DYT?~D EHDOTTOMASTI 
   4452 VIITETT
   4453 ?~D Jan 15
   4454 ----
   4455 
   4456 This kind of content-type works fine with umlaut ??????:
   4457 Content-type: text/plain; charset=ISO-8859-1; format=flowed
   4458 
   4459 But this doesn't:
   4460 Content-type: text/plain; Format=Flowed; Charset=iso-8859-1
   4461 
   4462 I'm not actually sure what causes these problems, there may be something 
   4463 else too... at the moment I'm using thunderbird email client and it 
   4464 handles all the encodings well. But I want to change it to Sup :)
   4465 
   4466 -Marko
   4467 
   4468 
   4469 
   4470 From nicolas.pouillard@gmail.com  Thu Jan 17 09:56:19 2008
   4471 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   4472 Date: Thu, 17 Jan 2008 15:56:19 +0100
   4473 Subject: [sup-talk] header cache
   4474 In-Reply-To: <1200570003-sup-1529@clarabella.clarabella>
   4475 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   4476 	<1200453820-sup-4777@south>
   4477 	<1200514969-sup-7541@clarabella.clarabella>
   4478 	<1200516410-sup-1963@south>
   4479 	<1200519319-sup-915@clarabella.clarabella>
   4480 	<1200557516-sup-8444@ausone.local>
   4481 	<1200570003-sup-1529@clarabella.clarabella>
   4482 Message-ID: <1200581670-sup-9273@ausone.local>
   4483 
   4484 Excerpts from Giorgio Lando's message of Thu Jan 17 12:40:47 +0100 2008:
   4485 > Excerpts from nicolas.pouillard's message of Thu Jan 17 09:13:21 +0100 2008:
   4486 > > Excerpts from Giorgio Lando's message of Wed Jan 16 23:04:26 +0100 2008:
   4487 > > > 
   4488 > > 
   4489 > > [...]
   4490 > > 
   4491 > > > So I have finally decided to go back to POP3, download all mails (including
   4492 > > > mails sent from the web interface, in the case of gmail) locally and let sup
   4493 > > > index and open them locally. The mails are anyway kept on the server, so
   4494 > > > I can also access them through a traditional IMAP client with folders
   4495 > > > (such as mutt) or through the web interface when I am around the world
   4496 > > > without my laptop.
   4497 > > 
   4498 > > I use this setup too, using mbox and it's quite fast.
   4499 > 
   4500 > Yes, it is fast also with maildir! Quite satisfied
   4501 
   4502 I've also tried maildir for some time, and found it slower.
   4503 
   4504 That's because Sup needs to compute a hash from file names to message ids.
   4505 
   4506 -- 
   4507 Nicolas Pouillard aka Ertai
   4508 
   4509 From grant@antiflux.org  Thu Jan 17 12:49:21 2008
   4510 From: grant@antiflux.org (Grant Hollingworth)
   4511 Date: Thu, 17 Jan 2008 12:49:21 -0500
   4512 Subject: [sup-talk] [PATCH] renamed "quoteline" hook to "attribution"
   4513 In-Reply-To: <1200517786-sup-7789@south>
   4514 References: <1200313448-sup-3169@tomsk> <1200374341-sup-8557@south>
   4515 	<1200388608-sup-6945@tomsk> <1200389942-sup-6442@tomsk>
   4516 	<1200501059-sup-4520@spooky.local> <1200501489-sup-1907@tomsk>
   4517 	<1200517786-sup-7789@south>
   4518 Message-ID: <1200591847-sup-3296@spooky.local>
   4519 
   4520 ---
   4521  lib/sup/modes/reply-mode.rb |   13 +++++++------
   4522  1 files changed, 7 insertions(+), 6 deletions(-)
   4523 
   4524 diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb
   4525 index 2d05f15..3b8c920 100644
   4526 --- a/lib/sup/modes/reply-mode.rb
   4527 +++ b/lib/sup/modes/reply-mode.rb
   4528 @@ -10,10 +10,11 @@ class ReplyMode < EditMessageMode
   4529      :user => "Customized"
   4530    }
   4531  
   4532 -  HookManager.register "quoteline", <<EOS
   4533 -Generates a quote line "On 1/4/2007, Joe Bloggs wrote:".
   4534 +  HookManager.register "attribution", <<EOS
   4535 +Generates an attribution ("Excerpts from Joe Bloggs's message of Fri Jan 11 09:54:32 -0500 2008:").
   4536  Variables:
   4537 -      message: A message object representing the message being replied to
   4538 +  message: a message object representing the message being replied to
   4539 +    (useful values include message.from.name and message.date)
   4540  Return value:
   4541    A string containing the text of the quote line (can be multi-line)
   4542  EOS
   4543 @@ -123,13 +124,13 @@ protected
   4544    end
   4545  
   4546    def reply_body_lines m
   4547 -    quoteline = HookManager.run("quoteline", :message => m) || default_quoteline(m)
   4548 -    lines = quoteline.split("\n") + m.quotable_body_lines.map { |l| "> #{l}" }
   4549 +    attribution = HookManager.run("attribution", :message => m) || default_attribution(m)
   4550 +    lines = attribution.split("\n") + m.quotable_body_lines.map { |l| "> #{l}" }
   4551      lines.pop while lines.last =~ /^\s*$/
   4552      lines
   4553    end
   4554  
   4555 -  def default_quoteline m
   4556 +  def default_attribution m
   4557      "Excerpts from #{@m.from.name}'s message of #{@m.date}:"
   4558    end
   4559  
   4560 -- 
   4561 1.5.3.7
   4562 
   4563 From its.jeff.balogh@gmail.com  Thu Jan 17 14:27:15 2008
   4564 From: its.jeff.balogh@gmail.com (Jeff Balogh)
   4565 Date: Thu, 17 Jan 2008 14:27:15 -0500
   4566 Subject: [sup-talk] sup not seeing new messages in a maildir
   4567 Message-ID: <1200598009-sup-5063@archie>
   4568 
   4569 I've been running sup for a while from gmail imap, and sup is great, but it was
   4570 miserably slow.  Yesterday I switched to using offlineimap, and pointed sup at
   4571 the maildir.
   4572 
   4573 Now sup isn't noticing any new messages (yes, they are there).  It does pick
   4574 them up if I run sup-sync --changed, but not with --new.
   4575 
   4576 Any ideas?
   4577 
   4578 Thanks.
   4579 
   4580 -- jeff
   4581 
   4582 From patroclo7@gmail.com  Thu Jan 17 16:38:03 2008
   4583 From: patroclo7@gmail.com (Giorgio Lando)
   4584 Date: Thu, 17 Jan 2008 22:38:03 +0100
   4585 Subject: [sup-talk] sup not seeing new messages in a maildir
   4586 In-Reply-To: <1200598009-sup-5063@archie>
   4587 References: <1200598009-sup-5063@archie>
   4588 Message-ID: <1200605584-sup-5549@clarabella.clarabella>
   4589 
   4590 > I've been running sup for a while from gmail imap, and sup is great, but it was
   4591 > miserably slow.  Yesterday I switched to using offlineimap, and pointed sup at
   4592 > the maildir.
   4593 
   4594 I can only confirm that this happened to me too, not with maildir in
   4595 general, but with only a giant maildir generated syncing an imap folder
   4596 with offlineimap. For the reasons explained in another thread, I then
   4597 stopped to experiment with it, and actually I did not investigate the
   4598 reasons of this behaviour (also for me the options -a and -c for
   4599 sup-sync ere the only way to find the new mails). Since I am now using
   4600 successfully sup with big maildirs generated by other tools, one could
   4601 suspect that the problem is just in the interplay with offlineimap and
   4602 the flags offlineimap gives to the synced emails.
   4603 
   4604 -- 
   4605 Giorgio Lando <patroclo7 at gmail dot com>
   4606 
   4607 From dfortunato@gmail.com  Thu Jan 17 19:11:22 2008
   4608 From: dfortunato@gmail.com (David Fortunato)
   4609 Date: Thu, 17 Jan 2008 19:11:22 -0500
   4610 Subject: [sup-talk] crash with 'Too many clauses'
   4611 Message-ID: <12ACF456-3FEA-4BC0-B4AD-BD918B80C095@gmail.com>
   4612 
   4613 I've run into a problem with sup 0.3.  I tried the current git HEAD  
   4614 and have the same problem.
   4615 
   4616 It seems similar to http://rubyforge.org/pipermail/sup-talk/2007-December/000688.html
   4617 
   4618 The crash log is attached, any ideas?
   4619 
   4620 Thanks,
   4621 Dave
   4622 
   4623 --- Ferret::StateError from thread: load threads for thread-index-mode
   4624 State Error occured at <except.c>:93 in xraise
   4625 Error occured in q_boolean.c:1595 - bq_add_query_nr
   4626          Two many clauses. The max clause limit is set to <1024> but  
   4627 your query has <1024> clauses
   4628 . You can try increasing :max_clause_count for the BooleanQuery or  
   4629 using a different type of quer
   4630 y.
   4631 
   4632 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/index.rb:270:in `add_query'
   4633 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/index.rb:270:in  
   4634 `each_message_in_thread_for'
   4635 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/index.rb:268:in `each'
   4636 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/index.rb:268:in  
   4637 `each_message_in_thread_for'
   4638 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/thread.rb:321:in  
   4639 `load_thread_for_message'
   4640 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/thread.rb:313:in  
   4641 `load_n_threads'
   4642 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/index.rb:217:in  
   4643 `each_id_by_date'
   4644 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/index.rb:217:in `each'
   4645 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/index.rb:217:in  
   4646 `each_id_by_date'
   4647 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/thread.rb:308:in  
   4648 `load_n_threads'
   4649 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/thread-index-mode.rb: 
   4650 415:in `__unprotected_load
   4651 _n_threads'
   4652 (eval):12:in `load_n_threads'
   4653 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/thread-index-mode.rb: 
   4654 404:in `load_n_threads_bac
   4655 kground'
   4656 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup.rb:69:in `reporting_thread'
   4657 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup.rb:67:in `initialize'
   4658 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup.rb:67:in `new'
   4659 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup.rb:67:in `reporting_thread'
   4660 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/thread-index-mode.rb: 
   4661 403:in `load_n_threads_bac
   4662 kground'
   4663 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/thread-index-mode.rb: 
   4664 454:in `__unprotected_load
   4665 _threads'
   4666 (eval):12:in `load_threads'
   4667 bin/sup:185
   4668 --- SystemExit from thread: main
   4669 State Error occured at <except.c>:93 in xraise
   4670 Error occured in q_boolean.c:1595 - bq_add_query_nr
   4671          Two many clauses. The max clause limit is set to <1024> but  
   4672 your query has <1024> clauses
   4673 . You can try increasing :max_clause_count for the BooleanQuery or  
   4674 using a different type of quer
   4675 y.
   4676 
   4677 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup.rb:73:in `select'
   4678 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:31:in  
   4679 `nonblocking_getch'
   4680 bin/sup:198
   4681 
   4682 
   4683 -------------- next part --------------
   4684 An embedded and charset-unspecified text was scrubbed...
   4685 Name: sup-exception-log-git.txt
   4686 Url: http://rubyforge.org/pipermail/sup-talk/attachments/20080117/e139b3e0/attachment.txt 
   4687 -------------- next part --------------
   4688 
   4689 
   4690 From dfortunato@gmail.com  Thu Jan 17 21:56:37 2008
   4691 From: dfortunato@gmail.com (David Fortunato)
   4692 Date: Thu, 17 Jan 2008 18:56:37 -0800 (PST)
   4693 Subject: [sup-talk] crash with 'Too many clauses'
   4694 In-Reply-To: <12ACF456-3FEA-4BC0-B4AD-BD918B80C095@gmail.com>
   4695 References: <12ACF456-3FEA-4BC0-B4AD-BD918B80C095@gmail.com>
   4696 Message-ID: <14944700.post@talk.nabble.com>
   4697 
   4698 
   4699 Please ignore the previous email.  I hadn't read HACKING yet, and it was
   4700 running the 0.3 gem.  Everything is working great.
   4701 -- 
   4702 View this message in context: http://www.nabble.com/crash-with-%27Too-many-clauses%27-tp14939928p14944700.html
   4703 Sent from the SUP Talk mailing list archive at Nabble.com.
   4704 
   4705 
   4706 From its.jeff.balogh@gmail.com  Fri Jan 18 03:58:33 2008
   4707 From: its.jeff.balogh@gmail.com (Jeff Balogh)
   4708 Date: Fri, 18 Jan 2008 03:58:33 -0500
   4709 Subject: [sup-talk] [PATCH] modulo the file size in a maildir,
   4710 	so it's <= 7 digits.
   4711 Message-ID: <1200646334-sup-3256@archie>
   4712 
   4713 The size needs to be <= 7 digits to preserve sup's increasing id
   4714 requirement.  Otherwise, large messages (probably w/ attachments) have
   4715 an id that is a magnitude larger than small messages.
   4716 ---
   4717  lib/sup/maildir.rb |    2 +-
   4718  1 files changed, 1 insertions(+), 1 deletions(-)
   4719 
   4720 diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb
   4721 index ba9da00..7b85383 100644
   4722 --- a/lib/sup/maildir.rb
   4723 +++ b/lib/sup/maildir.rb
   4724 @@ -144,7 +144,7 @@ private
   4725  
   4726    def make_id fn
   4727      # use 7 digits for the size. why 7? seems nice.
   4728 -    sprintf("%d%07d", File.mtime(fn), File.size(fn)).to_i
   4729 +    sprintf("%d%07d", File.mtime(fn), File.size(fn) % 10000000).to_i
   4730    end
   4731  
   4732    def with_file_for id
   4733 -- 
   4734 1.5.3.7
   4735 
   4736 
   4737 
   4738 From nicolas.pouillard@gmail.com  Fri Jan 18 04:59:59 2008
   4739 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   4740 Date: Fri, 18 Jan 2008 10:59:59 +0100
   4741 Subject: [sup-talk] [PATCH] Show drafts in red, in thread-index-mode.
   4742 Message-ID: <12006503991760-git-send-email-nicolas.pouillard@gmail.com>
   4743 
   4744 This patch would help to think about finishing drafts.
   4745 ---
   4746  bin/sup                            |    2 ++
   4747  lib/sup/modes/thread-index-mode.rb |    5 +++--
   4748  2 files changed, 5 insertions(+), 2 deletions(-)
   4749 
   4750 diff --git a/bin/sup b/bin/sup
   4751 index 7314227..a49e2c4 100644
   4752 --- a/bin/sup
   4753 +++ b/bin/sup
   4754 @@ -137,6 +137,8 @@ begin
   4755             Ncurses::A_BOLD
   4756      c.add :index_starred_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK, 
   4757             Ncurses::A_BOLD
   4758 +    c.add :index_draft_color, Ncurses::COLOR_RED, Ncurses::COLOR_BLACK, 
   4759 +           Ncurses::A_BOLD
   4760      c.add :labellist_old_color, Ncurses::COLOR_WHITE, Ncurses::COLOR_BLACK
   4761      c.add :labellist_new_color, Ncurses::COLOR_WHITE, Ncurses::COLOR_BLACK, 
   4762             Ncurses::A_BOLD
   4763 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
   4764 index 0d90be4..fac7500 100644
   4765 --- a/lib/sup/modes/thread-index-mode.rb
   4766 +++ b/lib/sup/modes/thread-index-mode.rb
   4767 @@ -599,7 +599,6 @@ protected
   4768  
   4769      date = t.date.to_nice_s
   4770  
   4771 -    new = t.has_label?(:unread)
   4772      starred = t.has_label?(:starred)
   4773  
   4774      ## format the from column
   4775 @@ -636,7 +635,9 @@ protected
   4776      p = dp || t.participants.any? { |p| AccountManager.is_account? p }
   4777  
   4778      subj_color =
   4779 -      if new
   4780 +      if t.has_label?(:draft)
   4781 +        :index_draft_color
   4782 +      elsif t.has_label?(:unread)
   4783          :index_new_color
   4784        elsif starred
   4785          :index_starred_color
   4786 -- 
   4787 1.5.3.1.109.gacd69
   4788 
   4789 From nicolas.pouillard@gmail.com  Fri Jan 18 05:03:21 2008
   4790 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   4791 Date: Fri, 18 Jan 2008 11:03:21 +0100
   4792 Subject: [sup-talk] [PATCH] Show drafts in red, in thread-index-mode.
   4793 In-Reply-To: <12006503991760-git-send-email-nicolas.pouillard@gmail.com>
   4794 References: <12006503991760-git-send-email-nicolas.pouillard@gmail.com>
   4795 Message-ID: <1200650441-sup-9935@ausone.inria.fr>
   4796 
   4797 Excerpts from Nicolas Pouillard's message of Fri Jan 18 10:59:59 +0100 2008:
   4798 > This patch would help to think about finishing drafts.
   4799 
   4800 Colors  and  UI are rather user dependent, so it's just in case...
   4801 
   4802 -- 
   4803 Nicolas Pouillard aka Ertai
   4804 
   4805 From vasudeva@linkswarm.com  Fri Jan 18 11:37:07 2008
   4806 From: vasudeva@linkswarm.com (vasudeva)
   4807 Date: Fri, 18 Jan 2008 11:37:07 -0500
   4808 Subject: [sup-talk] [PATCH] More gmail search goodness
   4809 In-Reply-To: <1198367430-sup-936@south>
   4810 References: <1196202259-sup-7348@tomsk> <1198367430-sup-936@south>
   4811 Message-ID: <1200673899-sup-1833@lenin>
   4812 
   4813 Excerpts from William Morgan's message of Sat Dec 22 19:45:54 -0500 2007:
   4814 > Excerpts from Marcus Williams's message of Tue Nov 27 14:34:02 -0800 2007:
   4815 > >
   4816 > > I'd like to add a has:attachment operator but the ferret index doesnt
   4817 > > appear to store enough info for this. It would be really nice to be
   4818 > > able to search for attachments (of certain types as well with
   4819 > > filename:...) I took a look at extending the index to add a new field
   4820 > > "filename" that contains a list of filenames attached to a message,
   4821 > > but this would break everyones index so I'm just requesting it as a
   4822 > > wishlist item rather than submitting a patch.
   4823 > 
   4824 > You're right, it requires adding an attachment field to the index. I
   4825 > think that adding a field to the Ferret index doesn't break index
   4826 > compatibility, so this actually might not be too hard to do. You'll have
   4827 > to rebuild the index to fill in the attachment status for pre-existing
   4828 > messages, but the change wouldn't invalidate anyone's index.
   4829 
   4830 Was there every any movement in this direction? Specifically, toward a
   4831 has:attachment search function?
   4832 
   4833 I ask because I find myself repeatedly running out of diskspace at work
   4834 (Outlook, 100Mb PST), which is actually almost enough space, without a
   4835 particular line of business that causes customers to mail me gigantic
   4836 attachments (1.5Mb PDF containing a 20k GIF, awesome), which I then have to go
   4837 in and delete. I mucked about with ways of programmatically seeking these out
   4838 and deleting them, before it eventually dawned on me that attachment references
   4839 aren't stored in the index.
   4840 
   4841 (Business like 'is:larger-than=1000k' would be nifty.)
   4842 
   4843 -- 
   4844 linkswarm.com :: Collaborative Insolence
   4845 vasudeva.linkswarm.com/gallery :: For The Faint of Heart
   4846 
   4847 
   4848 From nicolas.pouillard@gmail.com  Fri Jan 18 11:40:19 2008
   4849 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   4850 Date: Fri, 18 Jan 2008 17:40:19 +0100
   4851 Subject: [sup-talk] the proper way of determining the encoding
   4852 In-Reply-To: <1200473133-sup-6533@ausone.local>
   4853 References: <1199569265-sup-4567@clarabella.clarabella>
   4854 	<1199685831-sup-2011@south>
   4855 	<1199695733-sup-2741@clarabella.clarabella>
   4856 	<1199901555-sup-2661@south>
   4857 	<1199925510-sup-7503@clarabella.clarabella>
   4858 	<1200190710-sup-6881@south> <1200414495-sup-4477@spooky.local>
   4859 	<1200447310-sup-8536@south> <1200449354-sup-9441@ausone.local>
   4860 	<1200452148-sup-9276@south> <1200453166-sup-9993@ausone.local>
   4861 	<1200453783-sup-4968@south> <1200453980-sup-9189@ausone.local>
   4862 	<1200454570-sup-2537@south> <1200473133-sup-6533@ausone.local>
   4863 Message-ID: <1200674268-sup-6999@ausone.inria.fr>
   4864 
   4865 Excerpts from Nicolas Pouillard's message of Wed Jan 16 09:46:08 +0100 2008:
   4866 > Excerpts from William Morgan's message of Wed Jan 16 04:38:14 +0100 2008:
   4867 > > Reformatted excerpts from nicolas.pouillard's message of 2008-01-15:
   4868 > > > In locale_posix.rb:
   4869 > > > ...
   4870 > > >       [ENV["LC_ALL"], ENV["LC_MESSAGES"], ENV["LANG"],
   4871 > > > ...
   4872 > > > 
   4873 > > > In locale_win32.rb:
   4874 > > > ...
   4875 > > >       ["LC_ALL", "LC_CTYPE", "LC_MESSAGES", "LANG"].each do |env|
   4876 > > > ...
   4877 > > > 
   4878 > > > Adding LC_CTYPE to the first list solve my problem...
   4879 > > 
   4880 > > Excellent, sounds like a bug in gettext. If you submit a bug report,
   4881 > > would you mind cc'ing me?
   4882 > 
   4883 > http://rubyforge.org/tracker/index.php?func=detail&aid=17133&group_id=855&atid=3377
   4884 > 
   4885 
   4886 It's end by a "wont fix":
   4887 
   4888 """
   4889 Date: 2008-01-17 12:29
   4890 Sender: Masao Mutoh
   4891 
   4892 LC_CTYPE is not for messaging. So locale_win32.rb was wrong.
   4893 And it removed in current CVS version.
   4894 """
   4895 
   4896 I  don't  know  much  about locale and encoding but I thought LC_CTYPE was a
   4897 good way of setting it.
   4898 
   4899 -- 
   4900 Nicolas Pouillard aka Ertai
   4901 
   4902 From grant@antiflux.org  Fri Jan 18 12:06:49 2008
   4903 From: grant@antiflux.org (Grant Hollingworth)
   4904 Date: Fri, 18 Jan 2008 12:06:49 -0500
   4905 Subject: [sup-talk] [PATCH] return sources in id-order,
   4906 	with non-archived sources first
   4907 Message-ID: <1200675726-sup-4860@spooky.local>
   4908 
   4909 To speed up the user's view of polling, deal with sources that affect the
   4910 inbox before (for example) large mailing lists. It seemed tidier to implement
   4911 this in Index rather than PollManager.
   4912 
   4913 I changed "@sources.values" to "sources" in some other methods for clarity,
   4914 which I think in this case outweighs lost efficiency.
   4915 
   4916 ---
   4917  lib/sup/index.rb |   12 ++++++++----
   4918  1 files changed, 8 insertions(+), 4 deletions(-)
   4919 
   4920 diff --git a/lib/sup/index.rb b/lib/sup/index.rb
   4921 index 1997c92..b2a1612 100644
   4922 --- a/lib/sup/index.rb
   4923 +++ b/lib/sup/index.rb
   4924 @@ -125,9 +125,13 @@ EOS
   4925      @sources[source.id] = source
   4926    end
   4927  
   4928 -  def source_for uri; @sources.values.find { |s| s.is_source_for? uri }; end
   4929 -  def usual_sources; @sources.values.find_all { |s| s.usual? }; end
   4930 -  def sources; @sources.values; end
   4931 +  def sources
   4932 +    ## favour the inbox by listing non-archived sources first
   4933 +    @sources.values.sort_by {|s| s.id }.partition {|s| !s.archived? }.flatten
   4934 +  end
   4935 +  
   4936 +  def source_for uri; sources.find { |s| s.is_source_for? uri }; end
   4937 +  def usual_sources; sources.find_all { |s| s.usual? }; end
   4938  
   4939    def load_index dir=File.join(@dir, "ferret")
   4940      if File.exists? dir
   4941 @@ -512,7 +516,7 @@ protected
   4942          File.chmod 0600, fn
   4943          FileUtils.mv fn, bakfn, :force => true unless File.exists?(bakfn) && File.size(fn) == 0
   4944        end
   4945 -      Redwood::save_yaml_obj @sources.values.sort_by { |s| s.id.to_i }, fn, true
   4946 +      Redwood::save_yaml_obj sources.sort_by { |s| s.id.to_i }, fn, true
   4947        File.chmod 0600, fn
   4948      end
   4949      @sources_dirty = false
   4950 -- 
   4951 1.5.3.7
   4952 
   4953 From marcus-sup@bar-coded.net  Fri Jan 18 12:18:00 2008
   4954 From: marcus-sup@bar-coded.net (Marcus Williams)
   4955 Date: Fri, 18 Jan 2008 17:18:00 +0000
   4956 Subject: [sup-talk] [PATCH] More gmail search goodness
   4957 In-Reply-To: <1200673899-sup-1833@lenin>
   4958 References: <1196202259-sup-7348@tomsk> <1198367430-sup-936@south>
   4959 	<1200673899-sup-1833@lenin>
   4960 Message-ID: <1200676644-sup-5342@tomsk>
   4961 
   4962 On 18.1.2008, vasudeva wrote:
   4963 > Was there every any movement in this direction? Specifically, toward a
   4964 > has:attachment search function?
   4965 
   4966 Its next on my todo list :) unless someone else has picked it up.
   4967 
   4968 Marcus
   4969 
   4970 From johnbent@gmail.com  Sat Jan 19 00:21:44 2008
   4971 From: johnbent@gmail.com (John Bent)
   4972 Date: Fri, 18 Jan 2008 22:21:44 -0700
   4973 Subject: [sup-talk] sup crash on tab completion
   4974 Message-ID: <ad5e29c50801182121k7299b14anf352653d648d4342@mail.gmail.com>
   4975 
   4976 Hey William,
   4977 
   4978 I'm just trying out sup and I'm really excited about it so far.  My deal is
   4979 that I really like gmail but my work doesn't allow us to use any external
   4980 web servers so I can't forward my work email to gmail.  My work's webmail
   4981 absolutely sucks so I want to run some client on my own computer but I also
   4982 want to use it when I'm on a different computer.  So I need something that
   4983 works over X-windows or in the console.  I was using pine but I got
   4984 completely frustrated by the lack of search.  So sup looks really great.
   4985 I'm only just starting to mess with it and some things do seem a little
   4986 strange.  For example, can I remove a label?  By I'm hoping that most of the
   4987 problems I'm seeing so far are just learning curve.  So really, thank you so
   4988 much for writing sup - it's exactly what I want / need.
   4989 
   4990 Anyway, I did just crash it when I was doing tab completion on a contact.
   4991 The two possible contacts were:
   4992 John Bent <johnbent at lanl.gov> and John Bent (gmail) <johnbent at gmail.com>.
   4993 It was prompting me to
   4994 either add a < or a (.  It died when I added the ( and hit TAB:
   4995 
   4996 --- RegexpError from thread: main
   4997 premature end of regular expression: /^John Bent (/
   4998 /opt/local/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:426:in
   4999 `ask_many_emails_with_completions'
   5000 
   5001 Also, I can't figure out how to search on the from field.  I'm doing
   5002 from:Username and getting an empty thing.
   5003 Also, can I automatically archive sent-messages that aren't part of a thread
   5004 that includes received messages?
   5005 
   5006 Thanks again!
   5007 
   5008 John
   5009 -------------- next part --------------
   5010 An HTML attachment was scrubbed...
   5011 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20080118/57f947c7/attachment.html 
   5012 
   5013 From wmorgan-sup@masanjin.net  Sat Jan 19 12:18:13 2008
   5014 From: wmorgan-sup@masanjin.net (William Morgan)
   5015 Date: Sat, 19 Jan 2008 09:18:13 -0800
   5016 Subject: [sup-talk] labels for updated messages
   5017 In-Reply-To: <1200504528-sup-4009@spooky.local>
   5018 References: <1200504528-sup-4009@spooky.local>
   5019 Message-ID: <1200761079-sup-3213@south>
   5020 
   5021 Reformatted excerpts from Grant Hollingworth's message of 2008-01-16:
   5022 > When a message is updated, source labels are not applied to it.
   5023 > 
   5024 > PollManager.do_poll:
   5025 >   add_messages_from source do |m, offset, entry|
   5026 >     ## always preserve the labels on disk.
   5027 >     m.labels = entry[:label].split(/\s+/).map { |x| x.intern } if entry
   5028 > 
   5029 > This means that when I write to a mailing list, the message never gets
   5030 > a list label applied, even when the message is updated from a source
   5031 > for that list.  The thread will be missing its label unless someone
   5032 > replies to my message.
   5033 
   5034 This is a good point, and it's related to the broader question of, when
   5035 multiple different copies of a message, which should take precedence?
   5036 (In addition to having different automatically-assigned labels, the
   5037 subject may be rewritten by the list, list signatures may be added,
   5038 etc.)
   5039 
   5040 The obvious answer is that later messages should supercede earlier ones,
   5041 and I think that's what most MUAs do. Regardless, we definitely need to
   5042 merge labels so that we don't lose user information.
   5043 
   5044 What is tricky in our case is that sup-sync may be called to reprocess a
   5045 source containing an older copy of the message. We then have two
   5046 options:
   5047 
   5048 1. Oh well. If you reprocess an older message, you'll get its version,
   5049    and you just have to be aware of it.
   5050 2. Keep the arrival time of each message in the index, and guarantee the
   5051    later-supercedes-earlier behavior described above.
   5052 
   5053 I'm leaning towards #1, since it's less work. :)
   5054 
   5055 > The code above could merge in the source labels. It seems to me that
   5056 > it would be uncommon to remove a label only to have it re-added when
   5057 > the message is updated. It still bugs me to leave that unaddressed,
   5058 > though. We could keep track of deleted labels, but that seems like a
   5059 > lot of work for an uncommon situation.
   5060 
   5061 I'm having a hard time imagining what the situation in which a label
   5062 would be re-added would even look like. Something like: you send a
   5063 message to a list, tag it with the label that is automatically applied
   5064 to messages of that list, but then decide to remove that label, only to
   5065 have it readded when the ML copy arrives? Seems pretty unlikely.
   5066 
   5067 
   5068 -- 
   5069 William <wmorgan-sup at masanjin.net>
   5070 
   5071 From wmorgan-sup@masanjin.net  Sat Jan 19 12:25:00 2008
   5072 From: wmorgan-sup@masanjin.net (William Morgan)
   5073 Date: Sat, 19 Jan 2008 09:25:00 -0800
   5074 Subject: [sup-talk] char. encoding problems - garbled output
   5075 In-Reply-To: <478F4F67.1040405@iki.fi>
   5076 References: <478F4F67.1040405@iki.fi>
   5077 Message-ID: <1200763427-sup-2564@south>
   5078 
   5079 Hi Marko,
   5080 
   5081 Reformatted excerpts from =?UTF-8?B?TWFya28gTXlsbHltw6RraQ==?='s message of 2008-01-17:
   5082 > This kind of content-type works fine with umlaut ??????:
   5083 > Content-type: text/plain; charset=ISO-8859-1; format=flowed
   5084 > 
   5085 > But this doesn't:
   5086 > Content-type: text/plain; Format=Flowed; Charset=iso-8859-1
   5087 
   5088 Does the following patch help?
   5089 
   5090 diff --git a/lib/sup/util.rb b/lib/sup/util.rb
   5091 index 47bc1c2..ceaf0b8 100644
   5092 --- a/lib/sup/util.rb
   5093 +++ b/lib/sup/util.rb
   5094 @@ -62,7 +62,7 @@ module RMail
   5095      end
   5096  
   5097      def charset
   5098 -      if header.field?("content-type") && header.fetch("content-type") =~ /charset="?(.*?)"?(;|$)/
   5099 +      if header.field?("content-type") && header.fetch("content-type") =~ /charset="?(.*?)"?(;|$)/i
   5100          $1
   5101        end
   5102      end
   5103 
   5104 -- 
   5105 William <wmorgan-sup at masanjin.net>
   5106 
   5107 From marcus-sup@bar-coded.net  Sat Jan 19 13:42:57 2008
   5108 From: marcus-sup@bar-coded.net (Marcus Williams)
   5109 Date: Sat, 19 Jan 2008 18:42:57 +0000
   5110 Subject: [sup-talk] [PATCH] Add ability to interrupt current thread
   5111 	operation (search)
   5112 Message-ID: <1200768101-sup-3312@tomsk>
   5113 
   5114 This adds the ability to stop the current threading operation. This is
   5115 usually a search, but its anything that ends up calling load_n_threads
   5116 in thread-index-view. The user can hit ctrl-g to stop the operation.
   5117 ---
   5118  lib/sup/modes/thread-index-mode.rb |   34 +++++++++++++++++++++++++++++-----
   5119  lib/sup/thread.rb                  |    2 +-
   5120  2 files changed, 30 insertions(+), 6 deletions(-)
   5121 
   5122 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
   5123 index dec3c1d..a265a04 100644
   5124 --- a/lib/sup/modes/thread-index-mode.rb
   5125 +++ b/lib/sup/modes/thread-index-mode.rb
   5126 @@ -16,6 +16,7 @@ EOS
   5127  
   5128    register_keymap do |k|
   5129      k.add :load_threads, "Load #{LOAD_MORE_THREAD_NUM} more threads", 'M'
   5130 +    k.add :cancel_search, "Cancel current search", :ctrl_g
   5131      k.add :reload, "Refresh view", '@'
   5132      k.add :toggle_archived, "Toggle archived status", 'a'
   5133      k.add :toggle_starred, "Star or unstar all messages in thread", '*'
   5134 @@ -50,6 +51,8 @@ EOS
   5135      @load_thread_opts = load_thread_opts
   5136      @hidden_labels = hidden_labels + LabelManager::HIDDEN_RESERVED_LABELS
   5137      @date_width = DATE_WIDTH
   5138 +
   5139 +    @interrupt_search = false
   5140      
   5141      initialize_threads # defines @ts and @ts_mutex
   5142      update # defines @text and @lines
   5143 @@ -456,16 +459,22 @@ EOS
   5144  
   5145    ## TODO: figure out @ts_mutex in this method
   5146    def load_n_threads n=LOAD_MORE_THREAD_NUM, opts={}
   5147 +    @interrupt_search = false
   5148      @mbid = BufferManager.say "Searching for threads..."
   5149 +
   5150 +    ts_to_load = n
   5151 +    ts_to_load = ts_to_load + @ts.size unless n == -1 # -1 means all threads
   5152 +
   5153      orig_size = @ts.size
   5154      last_update = Time.now
   5155 -    @ts.load_n_threads(@ts.size + n, opts) do |i|
   5156 +    @ts.load_n_threads(ts_to_load, opts) do |i|
   5157        if (Time.now - last_update) >= 0.25
   5158 -        BufferManager.say "Loaded #{i.pluralize 'thread'}...", @mbid
   5159 +        BufferManager.say "Loaded #{i.pluralize 'thread'} (use ^G to cancel search)...", @mbid
   5160          update
   5161          BufferManager.draw_screen
   5162          last_update = Time.now
   5163        end
   5164 +      break if @interrupt_search
   5165      end
   5166      @ts.threads.each { |th| th.labels.each { |l| LabelManager << l } }
   5167  
   5168 @@ -485,13 +494,28 @@ EOS
   5169      end
   5170    end
   5171  
   5172 -  def load_threads opts={}
   5173 -    n = opts[:num] || ThreadIndexMode::LOAD_MORE_THREAD_NUM
   5174 +  def cancel_search
   5175 +    @interrupt_search = true
   5176 +  end
   5177  
   5178 +  def load_all_threads
   5179 +    load_threads :num => -1
   5180 +  end
   5181 +
   5182 +  def load_threads opts={}
   5183 +    if opts[:num].nil?
   5184 +      n = ThreadIndexMode::LOAD_MORE_THREAD_NUM
   5185 +    else
   5186 +      n = opts[:num]
   5187 +    end
   5188 +        
   5189      myopts = @load_thread_opts.merge({ :when_done => (lambda do |num|
   5190        opts[:when_done].call(num) if opts[:when_done]
   5191 +
   5192 +      cancelled = @interrupt_search?" (search cancelled by user)":""
   5193 +      
   5194        if num > 0
   5195 -        BufferManager.flash "Found #{num.pluralize 'thread'}."
   5196 +        BufferManager.flash "Found #{num.pluralize 'thread'}#{cancelled}."
   5197        else
   5198          BufferManager.flash "No matches."
   5199        end
   5200 diff --git a/lib/sup/thread.rb b/lib/sup/thread.rb
   5201 index 32002c4..09fbfbb 100644
   5202 --- a/lib/sup/thread.rb
   5203 +++ b/lib/sup/thread.rb
   5204 @@ -324,7 +324,7 @@ class ThreadSet
   5205    ## load in (at most) num number of threads from the index
   5206    def load_n_threads num, opts={}
   5207      @index.each_id_by_date opts do |mid, builder|
   5208 -      break if size >= num
   5209 +      break if size >= num unless num == -1
   5210        next if contains_id? mid
   5211  
   5212        m = builder.call
   5213 -- 
   5214 1.5.3.7
   5215 
   5216 
   5217 From marcus-sup@bar-coded.net  Sat Jan 19 13:49:04 2008
   5218 From: marcus-sup@bar-coded.net (Marcus Williams)
   5219 Date: Sat, 19 Jan 2008 18:49:04 +0000
   5220 Subject: [sup-talk] [PATCH] Add ability to interrupt current thread
   5221 	operation (search)
   5222 In-Reply-To: <1200768101-sup-3312@tomsk>
   5223 References: <1200768101-sup-3312@tomsk>
   5224 Message-ID: <1200768474-sup-7396@tomsk>
   5225 
   5226 On 19.1.2008, I wrote:
   5227 > This adds the ability to stop the current threading operation. This
   5228 > is usually a search, but its anything that ends up calling
   5229 > load_n_threads in thread-index-view. The user can hit ctrl-g to stop
   5230 > the operation.
   5231 
   5232 bah... sorry sent a duff patch that included some stuff for the load
   5233 all threads option. Will resend again so ignore that one!
   5234 
   5235 Marcus
   5236 
   5237 
   5238 From marcus-sup@bar-coded.net  Sat Jan 19 13:59:14 2008
   5239 From: marcus-sup@bar-coded.net (Marcus Williams)
   5240 Date: Sat, 19 Jan 2008 18:59:14 +0000
   5241 Subject: [sup-talk] [PATCH] Add ability to interrupt current thread
   5242 	operation (search)
   5243 In-Reply-To: <1200768474-sup-7396@tomsk>
   5244 References: <1200768101-sup-3312@tomsk> <1200768474-sup-7396@tomsk>
   5245 Message-ID: <1200769080-sup-4420@tomsk>
   5246 
   5247 This adds the ability to stop the current threading operation. This is
   5248 usually a search, but its anything that ends up calling load_n_threads
   5249 in thread-index-view. The user can hit ctrl-g to stop the operation.
   5250 ---
   5251  lib/sup/modes/thread-index-mode.rb |   17 +++++++++++++++--
   5252  1 files changed, 15 insertions(+), 2 deletions(-)
   5253 
   5254 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
   5255 index dec3c1d..2b8cc20 100644
   5256 --- a/lib/sup/modes/thread-index-mode.rb
   5257 +++ b/lib/sup/modes/thread-index-mode.rb
   5258 @@ -16,6 +16,7 @@ EOS
   5259  
   5260    register_keymap do |k|
   5261      k.add :load_threads, "Load #{LOAD_MORE_THREAD_NUM} more threads", 'M'
   5262 +    k.add :cancel_search, "Cancel current search", :ctrl_g
   5263      k.add :reload, "Refresh view", '@'
   5264      k.add :toggle_archived, "Toggle archived status", 'a'
   5265      k.add :toggle_starred, "Star or unstar all messages in thread", '*'
   5266 @@ -50,6 +51,8 @@ EOS
   5267      @load_thread_opts = load_thread_opts
   5268      @hidden_labels = hidden_labels + LabelManager::HIDDEN_RESERVED_LABELS
   5269      @date_width = DATE_WIDTH
   5270 +
   5271 +    @interrupt_search = false
   5272      
   5273      initialize_threads # defines @ts and @ts_mutex
   5274      update # defines @text and @lines
   5275 @@ -456,16 +459,19 @@ EOS
   5276  
   5277    ## TODO: figure out @ts_mutex in this method
   5278    def load_n_threads n=LOAD_MORE_THREAD_NUM, opts={}
   5279 +    @interrupt_search = false
   5280      @mbid = BufferManager.say "Searching for threads..."
   5281 +
   5282      orig_size = @ts.size
   5283      last_update = Time.now
   5284      @ts.load_n_threads(@ts.size + n, opts) do |i|
   5285        if (Time.now - last_update) >= 0.25
   5286 -        BufferManager.say "Loaded #{i.pluralize 'thread'}...", @mbid
   5287 +        BufferManager.say "Loaded #{i.pluralize 'thread'} (use ^G to cancel)...", @mbid
   5288          update
   5289          BufferManager.draw_screen
   5290          last_update = Time.now
   5291        end
   5292 +      break if @interrupt_search
   5293      end
   5294      @ts.threads.each { |th| th.labels.each { |l| LabelManager << l } }
   5295  
   5296 @@ -485,13 +491,20 @@ EOS
   5297      end
   5298    end
   5299  
   5300 +  def cancel_search
   5301 +    @interrupt_search = true
   5302 +  end
   5303 +
   5304    def load_threads opts={}
   5305      n = opts[:num] || ThreadIndexMode::LOAD_MORE_THREAD_NUM
   5306  
   5307      myopts = @load_thread_opts.merge({ :when_done => (lambda do |num|
   5308        opts[:when_done].call(num) if opts[:when_done]
   5309 +
   5310 +      cancelled = @interrupt_search?" (search cancelled by user)":""
   5311 +
   5312        if num > 0
   5313 -        BufferManager.flash "Found #{num.pluralize 'thread'}."
   5314 +        BufferManager.flash "Found #{num.pluralize 'thread'}#{cancelled}."
   5315        else
   5316          BufferManager.flash "No matches."
   5317        end
   5318 -- 
   5319 1.5.3.7
   5320 
   5321 
   5322 From marcus-sup@bar-coded.net  Sat Jan 19 14:17:03 2008
   5323 From: marcus-sup@bar-coded.net (Marcus Williams)
   5324 Date: Sat, 19 Jan 2008 19:17:03 +0000
   5325 Subject: [sup-talk] [PATCH] Allow user to show all matching threads
   5326 Message-ID: <1200770173-sup-671@tomsk>
   5327 
   5328 This adds a double keypress action "!!" to load all threads in the
   5329 current search/view. Obviously this can return a lot of threads, but
   5330 coupled with the cancel search option it is now easy to stop.
   5331 ---
   5332  lib/sup/modes/thread-index-mode.rb |   18 ++++++++++++++++--
   5333  lib/sup/thread.rb                  |    2 +-
   5334  2 files changed, 17 insertions(+), 3 deletions(-)
   5335 
   5336 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
   5337 index 2b8cc20..1785a91 100644
   5338 --- a/lib/sup/modes/thread-index-mode.rb
   5339 +++ b/lib/sup/modes/thread-index-mode.rb
   5340 @@ -16,6 +16,9 @@ EOS
   5341  
   5342    register_keymap do |k|
   5343      k.add :load_threads, "Load #{LOAD_MORE_THREAD_NUM} more threads", 'M'
   5344 +    k.add_multi "Load all threads (! to confirm) :", '!' do |kk|
   5345 +      kk.add :load_all_threads, "Load all threads (may list a _lot_ of threads)", '!'
   5346 +    end
   5347      k.add :cancel_search, "Cancel current search", :ctrl_g
   5348      k.add :reload, "Refresh view", '@'
   5349      k.add :toggle_archived, "Toggle archived status", 'a'
   5350 @@ -462,9 +465,12 @@ EOS
   5351      @interrupt_search = false
   5352      @mbid = BufferManager.say "Searching for threads..."
   5353  
   5354 +    ts_to_load = n
   5355 +    ts_to_load = ts_to_load + @ts.size unless n == -1 # -1 means all threads
   5356 +
   5357      orig_size = @ts.size
   5358      last_update = Time.now
   5359 -    @ts.load_n_threads(@ts.size + n, opts) do |i|
   5360 +    @ts.load_n_threads(ts_to_load, opts) do |i|
   5361        if (Time.now - last_update) >= 0.25
   5362          BufferManager.say "Loaded #{i.pluralize 'thread'} (use ^G to cancel)...", @mbid
   5363          update
   5364 @@ -495,8 +501,16 @@ EOS
   5365      @interrupt_search = true
   5366    end
   5367  
   5368 +  def load_all_threads
   5369 +    load_threads :num => -1
   5370 +  end
   5371 +
   5372    def load_threads opts={}
   5373 -    n = opts[:num] || ThreadIndexMode::LOAD_MORE_THREAD_NUM
   5374 +    if opts[:num].nil?
   5375 +      n = ThreadIndexMode::LOAD_MORE_THREAD_NUM
   5376 +    else
   5377 +      n = opts[:num]
   5378 +    end
   5379  
   5380      myopts = @load_thread_opts.merge({ :when_done => (lambda do |num|
   5381        opts[:when_done].call(num) if opts[:when_done]
   5382 diff --git a/lib/sup/thread.rb b/lib/sup/thread.rb
   5383 index 32002c4..09fbfbb 100644
   5384 --- a/lib/sup/thread.rb
   5385 +++ b/lib/sup/thread.rb
   5386 @@ -324,7 +324,7 @@ class ThreadSet
   5387    ## load in (at most) num number of threads from the index
   5388    def load_n_threads num, opts={}
   5389      @index.each_id_by_date opts do |mid, builder|
   5390 -      break if size >= num
   5391 +      break if size >= num unless num == -1
   5392        next if contains_id? mid
   5393  
   5394        m = builder.call
   5395 -- 
   5396 1.5.3.7
   5397 
   5398 
   5399 From nicolas.pouillard@gmail.com  Mon Jan 21 11:15:40 2008
   5400 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   5401 Date: Mon, 21 Jan 2008 17:15:40 +0100
   5402 Subject: [sup-talk] sup and gpg-agent
   5403 Message-ID: <1200931947-sup-6993@ausone.inria.fr>
   5404 
   5405 Hi all,
   5406 
   5407 After  giving  to  gpg  my  pass  phrase (ncurses based), sup seems completely
   5408 lost, arrow bindings no longer works... and I have to restart sup.
   5409 
   5410 I  would  like  (at  least  if  can't  found  the bug) have a command to reset
   5411 terminal/curses stuffs...
   5412 
   5413 -- 
   5414 Nicolas Pouillard aka Ertai
   5415 
   5416 From wmorgan-sup@masanjin.net  Mon Jan 21 21:36:48 2008
   5417 From: wmorgan-sup@masanjin.net (William Morgan)
   5418 Date: Mon, 21 Jan 2008 18:36:48 -0800
   5419 Subject: [sup-talk] header cache
   5420 In-Reply-To: <1200581670-sup-9273@ausone.local>
   5421 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   5422 	<1200453820-sup-4777@south>
   5423 	<1200514969-sup-7541@clarabella.clarabella>
   5424 	<1200516410-sup-1963@south>
   5425 	<1200519319-sup-915@clarabella.clarabella>
   5426 	<1200557516-sup-8444@ausone.local>
   5427 	<1200570003-sup-1529@clarabella.clarabella>
   5428 	<1200581670-sup-9273@ausone.local>
   5429 Message-ID: <1200969359-sup-2816@south>
   5430 
   5431 Reformatted excerpts from nicolas.pouillard's message of 2008-01-17:
   5432 > That's because Sup needs to compute a hash from file names to message
   5433 > ids.
   5434 
   5435 Like IMAP headers, this is a one-time cost upon startup and could easily
   5436 be cached. Maildir shouldn't be significantly slower than mbox except
   5437 for this.
   5438 
   5439 -- 
   5440 William <wmorgan-sup at masanjin.net>
   5441 
   5442 From wmorgan-sup@masanjin.net  Mon Jan 21 21:49:26 2008
   5443 From: wmorgan-sup@masanjin.net (William Morgan)
   5444 Date: Mon, 21 Jan 2008 18:49:26 -0800
   5445 Subject: [sup-talk] [PATCH] renamed "quoteline" hook to "attribution"
   5446 In-Reply-To: <1200591847-sup-3296@spooky.local>
   5447 References: <1200313448-sup-3169@tomsk> <1200374341-sup-8557@south>
   5448 	<1200388608-sup-6945@tomsk> <1200389942-sup-6442@tomsk>
   5449 	<1200501059-sup-4520@spooky.local> <1200501489-sup-1907@tomsk>
   5450 	<1200517786-sup-7789@south> <1200591847-sup-3296@spooky.local>
   5451 Message-ID: <1200970130-sup-9888@south>
   5452 
   5453 Applied, thanks. Anyone tracking next with a quoteline hook, you will
   5454 have to rename the file.
   5455 
   5456 -- 
   5457 William <wmorgan-sup at masanjin.net>
   5458 
   5459 From wmorgan-sup@masanjin.net  Mon Jan 21 22:03:38 2008
   5460 From: wmorgan-sup@masanjin.net (William Morgan)
   5461 Date: Mon, 21 Jan 2008 19:03:38 -0800
   5462 Subject: [sup-talk] [PATCH] modulo the file size in a maildir,
   5463 	so it's <= 7 digits.
   5464 In-Reply-To: <1200646334-sup-3256@archie>
   5465 References: <1200646334-sup-3256@archie>
   5466 Message-ID: <1200970931-sup-8284@south>
   5467 
   5468 Reformatted excerpts from its.jeff.balogh's message of 2008-01-18:
   5469 > The size needs to be <= 7 digits to preserve sup's increasing id
   5470 > requirement.  Otherwise, large messages (probably w/ attachments) have
   5471 > an id that is a magnitude larger than small messages.
   5472 
   5473 God, I was hoping no one would ever see this code. And I apparently
   5474 forgot how printf works when writing it.
   5475 
   5476 Did this solve the problem you were having with Sup not noticing new
   5477 Maildir messages?
   5478 
   5479 -- 
   5480 William <wmorgan-sup at masanjin.net>
   5481 
   5482 From wmorgan-sup@masanjin.net  Tue Jan 22 02:17:01 2008
   5483 From: wmorgan-sup@masanjin.net (William Morgan)
   5484 Date: Mon, 21 Jan 2008 23:17:01 -0800
   5485 Subject: [sup-talk] sup and gpg-agent
   5486 In-Reply-To: <1200931947-sup-6993@ausone.inria.fr>
   5487 References: <1200931947-sup-6993@ausone.inria.fr>
   5488 Message-ID: <1200985659-sup-8098@south>
   5489 
   5490 Reformatted excerpts from nicolas.pouillard's message of 2008-01-21:
   5491 > After  giving  to  gpg  my  pass  phrase (ncurses based), sup seems
   5492 > completely lost, arrow bindings no longer works... and I have to
   5493 > restart sup.
   5494 
   5495 Assuming you're talking about pinentry-curses, I see the same behavior
   5496 too. I'm not sure how to fix it, or if it's even possible. It might be
   5497 that pinentry-curses isn't restoring the console state to how it found
   5498 it, it might be that Sup is supposed to be doing something different
   5499 (but what? It's not notified when pinentry-curses is called). Someone
   5500 who's a curses expert might know.
   5501 
   5502 My workaround was to install pinentry-gtk. :)
   5503 
   5504 -- 
   5505 William <wmorgan-sup at masanjin.net>
   5506 
   5507 From wmorgan-sup@masanjin.net  Tue Jan 22 02:41:43 2008
   5508 From: wmorgan-sup@masanjin.net (William Morgan)
   5509 Date: Mon, 21 Jan 2008 23:41:43 -0800
   5510 Subject: [sup-talk] sup crash on tab completion
   5511 In-Reply-To: <ad5e29c50801182121k7299b14anf352653d648d4342@mail.gmail.com>
   5512 References: <ad5e29c50801182121k7299b14anf352653d648d4342@mail.gmail.com>
   5513 Message-ID: <1200987490-sup-7392@south>
   5514 
   5515 Hi John,
   5516 
   5517 Reformatted excerpts from John Bent's message of 2008-01-18:
   5518 > I'm just trying out sup and I'm really excited about it so far.
   5519 
   5520 Great!
   5521 
   5522 > My deal is that I really like gmail but my work doesn't allow us to
   5523 > use any external web servers so I can't forward my work email to
   5524 > gmail.  My work's webmail absolutely sucks so I want to run some
   5525 > client on my own computer but I also want to use it when I'm on a
   5526 > different computer.  So I need something that works over X-windows or
   5527 > in the console.  I was using pine but I got completely frustrated by
   5528 > the lack of search.
   5529 
   5530 Sounds like Sup is perfect for you.
   5531 
   5532 > I'm only just starting to mess with it and some things do seem a
   5533 > little strange.  For example, can I remove a label?
   5534 
   5535 You can remove labels by editing the labels for a thread. If you press
   5536 'l' while in a thread-index-mode, you can then backspace over any labels
   5537 you don't want.
   5538 
   5539 > premature end of regular expression: /^John Bent (/
   5540 > /opt/local/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:426:in
   5541 > `ask_many_emails_with_completions'
   5542 
   5543 I have a fix for this that I've just applied to master. I've attached
   5544 the patch below if you just want to update your local copy, or you can
   5545 wait for the next release (any day now), or you can get the latest
   5546 version form git.
   5547 
   5548 > Also, I can't figure out how to search on the from field.  I'm doing
   5549 > from:Username and getting an empty thing.
   5550 
   5551 Searcing on from: currently requires a full email address or a contact
   5552 nickname. Hm, I should improve this.
   5553 
   5554 > Also, can I automatically archive sent-messages that aren't part of a
   5555 > thread that includes received messages?
   5556 
   5557 I'm not sure I entirely understand. Currently, sent messages appear in
   5558 your inbox. Do you want sent messages to instead be archived
   5559 automatically, unless they're part of a thread that already appears in
   5560 your inbox?
   5561 
   5562 If so, this would be a pretty easy change, and possibly worthy of a
   5563 config option.
   5564 
   5565 Here's the patch that fixes tab completion:
   5566 
   5567 ---
   5568  lib/sup/buffer.rb |    8 ++++----
   5569  1 files changed, 4 insertions(+), 4 deletions(-)
   5570 
   5571 diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
   5572 index 2a78787..4374fa8 100644
   5573 --- a/lib/sup/buffer.rb
   5574 +++ b/lib/sup/buffer.rb
   5575 @@ -398,7 +398,7 @@ EOS
   5576  
   5577    def ask_with_completions domain, question, completions, default=nil
   5578      ask domain, question, default do |s|
   5579 -      completions.select { |x| x =~ /^#{s}/i }.map { |x| [x, x] }
   5580 +      completions.select { |x| x =~ /^#{Regexp::escape s}/i }.map { |x| [x, x] }
   5581      end
   5582    end
   5583  
   5584 @@ -414,7 +414,7 @@ EOS
   5585            raise "william screwed up completion: #{partial.inspect}"
   5586          end
   5587  
   5588 -      completions.select { |x| x =~ /^#{target}/i }.map { |x| [prefix + x, x] }
   5589 +      completions.select { |x| x =~ /^#{Regexp::escape target}/i }.map { |x| [prefix + x, x] }
   5590      end
   5591    end
   5592  
   5593 @@ -423,7 +423,7 @@ EOS
   5594        prefix, target = partial.split_on_commas_with_remainder
   5595        target ||= prefix.pop || ""
   5596        prefix = prefix.join(", ") + (prefix.empty? ? "" : ", ")
   5597 -      completions.select { |x| x =~ /^#{target}/i }.map { |x| [prefix + x, x] }
   5598 +      completions.select { |x| x =~ /^#{Regexp::escape target}/i }.map { |x| [prefix + x, x] }
   5599      end
   5600    end
   5601  
   5602 @@ -436,7 +436,7 @@ EOS
   5603          if dir
   5604            [[s.sub(full, dir), "~#{name}"]]
   5605          else
   5606 -          users.select { |u| u =~ /^#{name}/ }.map do |u|
   5607 +          users.select { |u| u =~ /^#{Regexp::escape name}/ }.map do |u|
   5608              [s.sub("~#{name}", "~#{u}"), "~#{u}"]
   5609            end
   5610          end
   5611 -- 
   5612 1.5.4.rc2.69.g10f0
   5613 
   5614 
   5615 -- 
   5616 William <wmorgan-sup at masanjin.net>
   5617 
   5618 From wmorgan-sup@masanjin.net  Tue Jan 22 03:04:19 2008
   5619 From: wmorgan-sup@masanjin.net (William Morgan)
   5620 Date: Tue, 22 Jan 2008 00:04:19 -0800
   5621 Subject: [sup-talk] 0.4 release plans and git comments
   5622 Message-ID: <1200987860-sup-9887@south>
   5623 
   5624 Hi all,
   5625 
   5626 There've been enough bug fixes and other changes that I'm going to try
   5627 to push 0.4 out the door over the next few days. I'll try and give a
   5628 report of what features are in and which are still percolating in next.
   5629 
   5630 I realize now that I've been using Git wrong---I've been maintaining
   5631 features as branches off of next, which has the effect that I can't
   5632 easily merge a "topic" over to master without also merging in everything
   5633 else that happened to be merged into next at an earlier point. So this
   5634 might be a little messy. (But I've learned my lesson!)
   5635 
   5636 The upshot is that, if you submit a patches, it should typically be cut
   5637 against master, not against next. (I'll update the wiki to reflect
   5638 this.) Then I can merge topics into next just as before, but there's no
   5639 false dependence between features introduced by Git.
   5640 
   5641 -- 
   5642 William <wmorgan-sup at masanjin.net>
   5643 
   5644 From nicolas.pouillard@gmail.com  Tue Jan 22 03:22:32 2008
   5645 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   5646 Date: Tue, 22 Jan 2008 09:22:32 +0100
   5647 Subject: [sup-talk] sup and gpg-agent
   5648 In-Reply-To: <1200985659-sup-8098@south>
   5649 References: <1200931947-sup-6993@ausone.inria.fr> <1200985659-sup-8098@south>
   5650 Message-ID: <1200990103-sup-9355@ausone.local>
   5651 
   5652 Excerpts from William Morgan's message of Tue Jan 22 08:17:01 +0100 2008:
   5653 > Reformatted excerpts from nicolas.pouillard's message of 2008-01-21:
   5654 > > After  giving  to  gpg  my  pass  phrase (ncurses based), sup seems
   5655 > > completely lost, arrow bindings no longer works... and I have to
   5656 > > restart sup.
   5657 > 
   5658 > Assuming you're talking about pinentry-curses, I see the same behavior
   5659 > too. I'm not sure how to fix it, or if it's even possible. It might be
   5660 > that pinentry-curses isn't restoring the console state to how it found
   5661 > it, it might be that Sup is supposed to be doing something different
   5662 > (but what? It's not notified when pinentry-curses is called). Someone
   5663 > who's a curses expert might know.
   5664 > 
   5665 > My workaround was to install pinentry-gtk. :)
   5666 
   5667 You're right, this *workaround* works for me too :)
   5668 
   5669 -- 
   5670 Nicolas Pouillard aka Ertai
   5671 -------------- next part --------------
   5672 A non-text attachment was scrubbed...
   5673 Name: signature.asc
   5674 Type: application/pgp-signature
   5675 Size: 186 bytes
   5676 Desc: not available
   5677 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080122/ad8bfe3e/attachment-0001.bin 
   5678 
   5679 From nicolas.pouillard@gmail.com  Tue Jan 22 03:40:05 2008
   5680 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   5681 Date: Tue, 22 Jan 2008 09:40:05 +0100
   5682 Subject: [sup-talk] header cache
   5683 In-Reply-To: <1200969359-sup-2816@south>
   5684 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   5685 	<1200453820-sup-4777@south>
   5686 	<1200514969-sup-7541@clarabella.clarabella>
   5687 	<1200516410-sup-1963@south>
   5688 	<1200519319-sup-915@clarabella.clarabella>
   5689 	<1200557516-sup-8444@ausone.local>
   5690 	<1200570003-sup-1529@clarabella.clarabella>
   5691 	<1200581670-sup-9273@ausone.local> <1200969359-sup-2816@south>
   5692 Message-ID: <1200990925-sup-1529@ausone.local>
   5693 
   5694 Excerpts from William Morgan's message of Tue Jan 22 03:36:48 +0100 2008:
   5695 > Reformatted excerpts from nicolas.pouillard's message of 2008-01-17:
   5696 > > That's because Sup needs to compute a hash from file names to message
   5697 > > ids.
   5698 > 
   5699 > Like IMAP headers, this is a one-time cost upon startup and could easily
   5700 > be cached. Maildir shouldn't be significantly slower than mbox except
   5701 > for this.
   5702 
   5703 Looking  at  the  code  'scan_mailbox' seems to be called quite often (but not
   5704 more than every 30 seconds).
   5705 
   5706 I'm  wondering  if  peeking  a  file  in  a very large directory is as fast as
   5707 seeking to a particular offset in a large file?
   5708 
   5709 -- 
   5710 Nicolas Pouillard aka Ertai
   5711 -------------- next part --------------
   5712 A non-text attachment was scrubbed...
   5713 Name: signature.asc
   5714 Type: application/pgp-signature
   5715 Size: 186 bytes
   5716 Desc: not available
   5717 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080122/41112479/attachment.bin 
   5718 
   5719 From marcus-sup@bar-coded.net  Tue Jan 22 04:40:57 2008
   5720 From: marcus-sup@bar-coded.net (Marcus Williams)
   5721 Date: Tue, 22 Jan 2008 09:40:57 +0000
   5722 Subject: [sup-talk] sup crash on tab completion
   5723 In-Reply-To: <1200987490-sup-7392@south>
   5724 References: <ad5e29c50801182121k7299b14anf352653d648d4342@mail.gmail.com>
   5725 	<1200987490-sup-7392@south>
   5726 Message-ID: <1200994656-sup-4998@tomsk>
   5727 
   5728 On 22.1.2008, William Morgan wrote:
   5729 > > Also, I can't figure out how to search on the from field.  I'm doing
   5730 > > from:Username and getting an empty thing.
   5731 > 
   5732 > Searcing on from: currently requires a full email address or a contact
   5733 > nickname. Hm, I should improve this.
   5734 
   5735 Note that you can use wildcards... "from:joe*" will find emails from
   5736 joey/joe.bloggs/joel etc. Although it must be said I was pondering
   5737 yesterday whether it was possible to get searches assume wildcards
   5738 some how so when you searched for from:joe you would actually be
   5739 searching for from:*joe* or maybe from:joe* automagically. I dug
   5740 around in the ferret docs to see if this was possible but only came up
   5741 with the fuzzy operators and you might as well use a wildcard instead.
   5742 
   5743 Marcus
   5744 
   5745 From its.jeff.balogh@gmail.com  Tue Jan 22 09:01:37 2008
   5746 From: its.jeff.balogh@gmail.com (Jeff Balogh)
   5747 Date: Tue, 22 Jan 2008 09:01:37 -0500
   5748 Subject: [sup-talk] [PATCH] modulo the file size in a maildir,
   5749 	so it's <= 7 digits.
   5750 In-Reply-To: <1200970931-sup-8284@south>
   5751 References: <1200646334-sup-3256@archie> <1200970931-sup-8284@south>
   5752 Message-ID: <1201010230-sup-3444@archie>
   5753 
   5754 William Morgan wrote:
   5755 > Reformatted excerpts from its.jeff.balogh's message of 2008-01-18:
   5756 > > The size needs to be <= 7 digits to preserve sup's increasing id
   5757 > > requirement.  Otherwise, large messages (probably w/ attachments) have
   5758 > > an id that is a magnitude larger than small messages.
   5759 > 
   5760 > God, I was hoping no one would ever see this code. And I apparently
   5761 > forgot how printf works when writing it.
   5762 > 
   5763 > Did this solve the problem you were having with Sup not noticing new
   5764 > Maildir messages?
   5765 
   5766 Yes, Sup works for me with Maildir.
   5767 
   5768 -- jeff
   5769 
   5770 From johnbent@lanl.gov  Tue Jan 22 11:40:05 2008
   5771 From: johnbent@lanl.gov (John Bent)
   5772 Date: Tue, 22 Jan 2008 09:40:05 -0700
   5773 Subject: [sup-talk] missing run-mailcap
   5774 Message-ID: <1201019996-sup-8960@tangerine.lanl.gov>
   5775 
   5776 I saw some earlier discussion in the list archives about a missing run-mailcap
   5777 script.  I had this same problem too on my mac (10.4.11 Power PC).  It's sort
   5778 of a kluge but I dealt with this by writing my own /usr/bin/run-mailcap which
   5779 just does a simple hash lookup of mime type to rename the file with an
   5780 appropriate extension and then uses the mac 'open' command.  I haven't fully
   5781 populated the hash table yet; I'll do that lazily.  If the 'file' command
   5782 could return an extension, I'd be tempted to use it and avoid the hash table
   5783 but the best it can do is return the mime-type which we already know.  Or if
   5784 there was some way to pass the mime-type to the 'open' command, that'd be
   5785 better too.  But at least this works...
   5786 
   5787 ===========================================================================
   5788 
   5789  
   5790 #! /usr/bin/perl
   5791 
   5792 my %mimes = (
   5793     'image/jpeg'    => 'jpg',
   5794     'text/html'     => 'html',
   5795 );
   5796 
   5797 my ( $type, $file ) = split( /:/, $ARGV[1] );
   5798 Log( "$type - $file\n" );
   5799 my $extension = $mimes{$type};
   5800 if ( ! defined $extension ) {
   5801     Log( "Unknown type $type\n" );
   5802 } else {
   5803     rename( $file, "$file.$extension" );
   5804     Log( "open $file.$extension\n" );
   5805     system( "open $file.$extension" );
   5806 }
   5807 
   5808 #######################################################################
   5809 
   5810 my $log_fd;
   5811 sub
   5812 Log {
   5813     if ( ! defined $log_fd ) {
   5814         open LOG, ">>/tmp/mailcap.log" or warn "open log: $!\n";
   5815         $log_fd = \*LOG;
   5816     }
   5817     #print "@_";
   5818     print LOG "@_";
   5819 }
   5820 
   5821 From marcus-sup@bar-coded.net  Tue Jan 22 15:44:47 2008
   5822 From: marcus-sup@bar-coded.net (Marcus Williams)
   5823 Date: Tue, 22 Jan 2008 20:44:47 +0000
   5824 Subject: [sup-talk] [PATCH] modulo the file size in a maildir,
   5825 	so it's <= 7 digits.
   5826 In-Reply-To: <1200970931-sup-8284@south>
   5827 References: <1200646334-sup-3256@archie> <1200970931-sup-8284@south>
   5828 Message-ID: <1201034511-sup-3452@tomsk>
   5829 
   5830 On 22.1.2008, William Morgan wrote:
   5831 > God, I was hoping no one would ever see this code. And I apparently
   5832 > forgot how printf works when writing it.
   5833 
   5834 :) Why do you use mtime + filesize rather than just the filename
   5835 (before the colon) as the id? Other than the flags on files (after the
   5836 colon) does this ever change?
   5837 
   5838 Marcus
   5839 
   5840 From johnbent@lanl.gov  Tue Jan 22 17:33:22 2008
   5841 From: johnbent@lanl.gov (John Bent)
   5842 Date: Tue, 22 Jan 2008 15:33:22 -0700
   5843 Subject: [sup-talk] missing run-mailcap
   5844 In-Reply-To: <1201019996-sup-8960@tangerine.lanl.gov>
   5845 References: <1201019996-sup-8960@tangerine.lanl.gov>
   5846 Message-ID: <1201041081-sup-6034@tangerine.lanl.gov>
   5847 
   5848 Excerpts from John Bent's message of Tue Jan 22 09:40:05 -0700 2008:
   5849 > I saw some earlier discussion in the list archives about a missing run-mailcap
   5850 > script.  I had this same problem too on my mac (10.4.11 Power PC).  It's sort
   5851 > of a kluge but I dealt with this by writing my own /usr/bin/run-mailcap which
   5852 > just does a simple hash lookup of mime type to rename the file with an
   5853 > appropriate extension and then uses the mac 'open' command.  I haven't fully
   5854 > populated the hash table yet; I'll do that lazily.  If the 'file' command
   5855 > could return an extension, I'd be tempted to use it and avoid the hash table
   5856 > but the best it can do is return the mime-type which we already know.  Or if
   5857 > there was some way to pass the mime-type to the 'open' command, that'd be
   5858 > better too.  But at least this works...
   5859 > 
   5860 
   5861 Here's a cleaner version that doesn't have anything hard-coded but relies
   5862 on the 'find' command and the MIME::Types perl module:
   5863 
   5864 ============================================================================
   5865 
   5866 
   5867 #! /opt/local/bin/perl
   5868 
   5869 use MIME::Types;
   5870 
   5871 my ( $type, $file ) = split( /:/, $ARGV[1] );
   5872 if ( $type eq 'application/octet-stream' ) {
   5873     $type = findType( $file );
   5874 }
   5875 my $extension = findExtension( $type );
   5876 
   5877 my $newfile    = "$file.$extension";
   5878 my $command    = "open $newfile";
   5879 rename( $file, $newfile );
   5880 Log( "Extension for $type is $extension -> $command\n" );
   5881 system( $command ); 
   5882 
   5883 #######################################################################
   5884 
   5885 sub
   5886 findExtension {
   5887     my $mimetypes           = MIME::Types->new;
   5888     my MIME::Type $mimetype = $mimetypes->type($type);
   5889     my @extensions          = $mimetype->extensions;
   5890     return $extensions[0];
   5891 }
   5892 
   5893 sub
   5894 findType {
   5895     my $file = shift;
   5896     my $type = `file -i -b $file`;
   5897     chomp( $type );
   5898     return $type;
   5899 }
   5900 
   5901 my $log_fd;
   5902 sub
   5903 Log {
   5904     if ( ! defined $log_fd ) {
   5905         open LOG, ">>/tmp/mailcap.log" or warn "open log: $!\n";
   5906         $log_fd = \*LOG;
   5907     }
   5908     #print "@_";
   5909     print LOG "@_";
   5910 }
   5911 
   5912 From wmorgan-sup@masanjin.net  Wed Jan 23 00:20:16 2008
   5913 From: wmorgan-sup@masanjin.net (William Morgan)
   5914 Date: Tue, 22 Jan 2008 21:20:16 -0800
   5915 Subject: [sup-talk] [PATCH] modulo the file size in a maildir,
   5916 	so it's <= 7 digits.
   5917 In-Reply-To: <1201034511-sup-3452@tomsk>
   5918 References: <1200646334-sup-3256@archie> <1200970931-sup-8284@south>
   5919 	<1201034511-sup-3452@tomsk>
   5920 Message-ID: <1201065536-sup-7142@south>
   5921 
   5922 Reformatted excerpts from Marcus Williams's message of 2008-01-22:
   5923 > :) Why do you use mtime + filesize rather than just the filename
   5924 > (before the colon) as the id? Other than the flags on files (after the
   5925 > colon) does this ever change?
   5926 
   5927 Exactly the type of question man was not meant to ask.
   5928 
   5929 The short answer is: because maildir filenames, while unique, are not
   5930 integers, and Sup needs integers.
   5931 
   5932 The long answer is: in order to have a mailstore-format-indepedent way
   5933 of keeping track of messages that haven't been added to the index (as
   5934 opposed to messages which the mailstore thinks are unread, which is a
   5935 different question entirely), Sup uses message identifiers that are
   5936 unique, increasing, but not necessarily continguous, integers. Then Sup
   5937 can keep track of the last id that was added to the index for each
   5938 source, and polling consists of simply adding messages for which the id
   5939 is greater than the last id that Sup added from that source.
   5940 
   5941 The other way to do this would be to have each source type maintain its
   5942 own logic for returning which messages hadn't been added to the index.
   5943 That could have been implemented by either pawing through the index upon
   5944 startup for each message (unacceptably slow for large mailstores), or by
   5945 maintaining a separate listing of added messages (probably very large
   5946 and seems a bit silly).
   5947 
   5948 The terrible part about this solution, of course, is that Sup can't
   5949 uniquely represent two messages that have the same mtime and the same
   5950 size. One day I'm sure this will cause pain.
   5951 
   5952 -- 
   5953 William <wmorgan-sup at masanjin.net>
   5954 
   5955 From wmorgan-sup@masanjin.net  Wed Jan 23 00:20:38 2008
   5956 From: wmorgan-sup@masanjin.net (William Morgan)
   5957 Date: Tue, 22 Jan 2008 21:20:38 -0800
   5958 Subject: [sup-talk] [PATCH] modulo the file size in a maildir,
   5959 	so it's <= 7 digits.
   5960 In-Reply-To: <1201010230-sup-3444@archie>
   5961 References: <1200646334-sup-3256@archie> <1200970931-sup-8284@south>
   5962 	<1201010230-sup-3444@archie>
   5963 Message-ID: <1201065624-sup-4708@south>
   5964 
   5965 Reformatted excerpts from its.jeff.balogh's message of 2008-01-22:
   5966 > Yes, Sup works for me with Maildir.
   5967 
   5968 Ok, this patch is in both master and next.
   5969 
   5970 -- 
   5971 William <wmorgan-sup at masanjin.net>
   5972 
   5973 From wmorgan-sup@masanjin.net  Wed Jan 23 01:42:15 2008
   5974 From: wmorgan-sup@masanjin.net (William Morgan)
   5975 Date: Tue, 22 Jan 2008 22:42:15 -0800
   5976 Subject: [sup-talk] 0.4 release plans and git comments
   5977 In-Reply-To: <1200987860-sup-9887@south>
   5978 References: <1200987860-sup-9887@south>
   5979 Message-ID: <1201070427-sup-2914@south>
   5980 
   5981 Reformatted excerpts from William Morgan's message of 2008-01-22:
   5982 > There've been enough bug fixes and other changes that I'm going to try
   5983 > to push 0.4 out the door over the next few days. I'll try and give a
   5984 > report of what features are in and which are still percolating in
   5985 > next.
   5986 
   5987 Everything that was applied to next is now in master. 0.4 release
   5988 imminent!
   5989 
   5990 > The upshot is that, if you submit a patches, it should typically be
   5991 > cut against master, not against next. (I'll update the wiki to reflect
   5992 > this.) Then I can merge topics into next just as before, but there's
   5993 > no false dependence between features introduced by Git.
   5994 
   5995 I've updated the wiki with better Git instructions.
   5996 
   5997 -- 
   5998 William <wmorgan-sup at masanjin.net>
   5999 
   6000 From wmorgan-sup@masanjin.net  Wed Jan 23 02:09:10 2008
   6001 From: wmorgan-sup@masanjin.net (William Morgan)
   6002 Date: Tue, 22 Jan 2008 23:09:10 -0800
   6003 Subject: [sup-talk] sup crash on tab completion
   6004 In-Reply-To: <1200994656-sup-4998@tomsk>
   6005 References: <ad5e29c50801182121k7299b14anf352653d648d4342@mail.gmail.com>
   6006 	<1200987490-sup-7392@south> <1200994656-sup-4998@tomsk>
   6007 Message-ID: <1201072070-sup-2323@south>
   6008 
   6009 Reformatted excerpts from Marcus Williams's message of 2008-01-22:
   6010 > Note that you can use wildcards... "from:joe*" will find emails from
   6011 > joey/joe.bloggs/joel etc.
   6012 
   6013 Wow, I totally forgot about that.
   6014 
   6015 > Although it must be said I was pondering yesterday whether it was
   6016 > possible to get searches assume wildcards some how so when you
   6017 > searched for from:joe you would actually be searching for from:*joe*
   6018 > or maybe from:joe* automagically. I dug around in the ferret docs to
   6019 > see if this was possible but only came up with the fuzzy operators and
   6020 > you might as well use a wildcard instead.
   6021 
   6022 I don't recall seeing anything like this in the Ferret docs, so it's
   6023 probably not possible. What I'm thinking of doing, which will kind of
   6024 approximate this, is adding the LHS of the email address and the
   6025 sender's name to the from: field at index time, so that email from you
   6026 would match e.g. from:marcus, from:williams, and from:marcus-sup. 
   6027 
   6028 -- 
   6029 William <wmorgan-sup at masanjin.net>
   6030 
   6031 From rgh@roughage.com.au  Wed Jan 23 01:57:03 2008
   6032 From: rgh@roughage.com.au (Richard Heycock)
   6033 Date: Wed, 23 Jan 2008 17:57:03 +1100
   6034 Subject: [sup-talk] 0.4 release plans and git comments
   6035 In-Reply-To: <1201070427-sup-2914@south>
   6036 References: <1200987860-sup-9887@south> <1201070427-sup-2914@south>
   6037 Message-ID: <1201071368-sup-3588@wrasse>
   6038 
   6039 Excerpts from William Morgan's message of Wed Jan 23 17:42:15 +1100 2008:
   6040 > Reformatted excerpts from William Morgan's message of 2008-01-22:
   6041 > > There've been enough bug fixes and other changes that I'm going to try
   6042 > > to push 0.4 out the door over the next few days. I'll try and give a
   6043 > > report of what features are in and which are still percolating in
   6044 > > next.
   6045 > 
   6046 > Everything that was applied to next is now in master. 0.4 release
   6047 > imminent!
   6048 
   6049 And the release notes ...
   6050 
   6051 :-)
   6052 
   6053 By the way I've just started using sup. Lovin' it!
   6054 
   6055 rgh
   6056 
   6057 > > The upshot is that, if you submit a patches, it should typically be
   6058 > > cut against master, not against next. (I'll update the wiki to reflect
   6059 > > this.) Then I can merge topics into next just as before, but there's
   6060 > > no false dependence between features introduced by Git.
   6061 > 
   6062 > I've updated the wiki with better Git instructions.
   6063 > 
   6064 
   6065 -- 
   6066 You're worried criminals will continue to penetrate into cyberspace, and
   6067 I'm worried complexity, poor design and mismanagement will be there to meet
   6068 them - Marcus Ranum
   6069 
   6070 From marcus-sup@bar-coded.net  Wed Jan 23 04:59:54 2008
   6071 From: marcus-sup@bar-coded.net (Marcus Williams)
   6072 Date: Wed, 23 Jan 2008 09:59:54 +0000
   6073 Subject: [sup-talk] [PATCH] modulo the file size in a maildir,
   6074 	so it's <= 7 digits.
   6075 In-Reply-To: <1201065536-sup-7142@south>
   6076 References: <1200646334-sup-3256@archie> <1200970931-sup-8284@south>
   6077 	<1201034511-sup-3452@tomsk> <1201065536-sup-7142@south>
   6078 Message-ID: <1201081580-sup-6798@tomsk>
   6079 
   6080 On 23.1.2008, William Morgan wrote:
   6081 > Reformatted excerpts from Marcus Williams's message of 2008-01-22:
   6082 > > :) Why do you use mtime + filesize rather than just the filename
   6083 > > (before the colon) as the id? Other than the flags on files (after the
   6084 > > colon) does this ever change?
   6085 > 
   6086 > Exactly the type of question man was not meant to ask.
   6087 
   6088 :)
   6089 
   6090 > The terrible part about this solution, of course, is that Sup can't
   6091 > uniquely represent two messages that have the same mtime and the same
   6092 > size. One day I'm sure this will cause pain.
   6093 
   6094 If you store the id in the ferret index, is it quick enough just to
   6095 use ferret to tell you if its there? That way an id could be a string
   6096 and could be tracked by the source via ferret (a source would just
   6097 have to guarantee its unique when combined with the source id).
   6098 
   6099 Off on a slight tangent - I cant get any maildir working with sup
   6100 here. I added a maildir to my sources list and it gets scanned as
   6101 expected but nothing gets into the index. I'm wondering whether this
   6102 is as a result of the id function.
   6103 
   6104 Marcus
   6105 
   6106 From grant@antiflux.org  Wed Jan 23 07:41:58 2008
   6107 From: grant@antiflux.org (Grant Hollingworth)
   6108 Date: Wed, 23 Jan 2008 07:41:58 -0500
   6109 Subject: [sup-talk] sup crash on tab completion
   6110 In-Reply-To: <1201072070-sup-2323@south>
   6111 References: <ad5e29c50801182121k7299b14anf352653d648d4342@mail.gmail.com>
   6112 	<1200987490-sup-7392@south> <1200994656-sup-4998@tomsk>
   6113 	<1201072070-sup-2323@south>
   6114 Message-ID: <1201092080-sup-1011@spooky.local>
   6115 
   6116 * William Morgan [Wed Jan 23 02:09:10 -0500 2008]:
   6117 > I don't recall seeing anything like this in the Ferret docs, so it's
   6118 > probably not possible. What I'm thinking of doing, which will kind of
   6119 > approximate this, is adding the LHS of the email address and the
   6120 > sender's name to the from: field at index time, so that email from you
   6121 > would match e.g. from:marcus, from:williams, and from:marcus-sup. 
   6122 
   6123 That would be excellent. I try to search like that all the time.
   6124 
   6125 From wmorgan-sup@masanjin.net  Wed Jan 23 13:14:53 2008
   6126 From: wmorgan-sup@masanjin.net (William Morgan)
   6127 Date: Wed, 23 Jan 2008 10:14:53 -0800
   6128 Subject: [sup-talk] [ANN] Sup 0.4 released
   6129 Message-ID: <1201112082-sup-9754@south>
   6130 
   6131 Sup version 0.4 has been released!
   6132 
   6133 http://sup.rubyforge.org
   6134 
   6135 Sup is a console-based email client for people with a lot of email.
   6136 It supports tagging, very fast full-text search, automatic contact-
   6137 list management, and more. If you're the type of person who treats
   6138 email as an extension of your long-term memory, Sup is for you.
   6139 
   6140 Sup makes it easy to:
   6141 - Handle massive amounts of email.
   6142 
   6143 - Mix email from different sources: mbox files (even across different
   6144   machines), Maildir directories, IMAP folders, POP accounts, and
   6145   GMail accounts.
   6146 
   6147 - Instantaneously search over your entire email collection. Search
   6148   over body text, or use a query language to combine search
   6149   predicates in any way.
   6150 
   6151 - Handle multiple accounts. Replying to email sent to a particular
   6152   account will use the correct SMTP server, signature, and from
   6153   address.
   6154 
   6155 - Add custom code to handle certain types of messages or to handle
   6156   certain types of text within messages.
   6157 
   6158 - Organize email with user-defined labels, automatically track
   6159   recent contacts, and much more!
   6160 
   6161 The goal of Sup is to become the email client of choice for nerds
   6162 everywhere.
   6163 
   6164 Changes:
   6165 
   6166 ## 0.4 / 2008-01-23
   6167 * GPG support for signing and encrypting outgoing mail
   6168 * New hooks: mime attachment, attribution line
   6169 * Improved local charset detection using gettext library
   6170 * Better quoted region detection
   6171 * Many bugfixes and UI improvements
   6172 
   6173 -- 
   6174 William <wmorgan-sup at masanjin.net>
   6175 
   6176 From wmorgan-sup@masanjin.net  Wed Jan 23 13:18:41 2008
   6177 From: wmorgan-sup@masanjin.net (William Morgan)
   6178 Date: Wed, 23 Jan 2008 10:18:41 -0800
   6179 Subject: [sup-talk] 0.4 release plans and git comments
   6180 In-Reply-To: <1201071368-sup-3588@wrasse>
   6181 References: <1200987860-sup-9887@south> <1201070427-sup-2914@south>
   6182 	<1201071368-sup-3588@wrasse>
   6183 Message-ID: <1201112273-sup-2410@south>
   6184 
   6185 Reformatted excerpts from Richard Heycock's message of 2008-01-22:
   6186 > And the release notes ...
   6187 
   6188 In the announcement, in History.txt, and on the website now.
   6189 
   6190 > By the way I've just started using sup. Lovin' it!
   6191 
   6192 Great to hear!
   6193 
   6194 -- 
   6195 William <wmorgan-sup at masanjin.net>
   6196 
   6197 From wmorgan-sup@masanjin.net  Wed Jan 23 13:22:11 2008
   6198 From: wmorgan-sup@masanjin.net (William Morgan)
   6199 Date: Wed, 23 Jan 2008 10:22:11 -0800
   6200 Subject: [sup-talk] [PATCH] Show drafts in red, in thread-index-mode.
   6201 In-Reply-To: <12006503991760-git-send-email-nicolas.pouillard@gmail.com>
   6202 References: <12006503991760-git-send-email-nicolas.pouillard@gmail.com>
   6203 Message-ID: <1201112451-sup-5510@south>
   6204 
   6205 Reformatted excerpts from nicolas.pouillard's message of 2008-01-18:
   6206 > This patch would help to think about finishing drafts.
   6207 
   6208 I like it. There's trailing whitespace on the c.add line. After that I'm
   6209 happy to apply it.
   6210 
   6211 -- 
   6212 William <wmorgan-sup at masanjin.net>
   6213 
   6214 From wmorgan-sup@masanjin.net  Wed Jan 23 14:15:35 2008
   6215 From: wmorgan-sup@masanjin.net (William Morgan)
   6216 Date: Wed, 23 Jan 2008 11:15:35 -0800
   6217 Subject: [sup-talk] [PATCH] Add ability to interrupt current thread
   6218 	operation (search)
   6219 In-Reply-To: <1200769080-sup-4420@tomsk>
   6220 References: <1200768101-sup-3312@tomsk> <1200768474-sup-7396@tomsk>
   6221 	<1200769080-sup-4420@tomsk>
   6222 Message-ID: <1201114113-sup-1607@south>
   6223 
   6224 Reformatted excerpts from Marcus Williams's message of 2008-01-19:
   6225 > This adds the ability to stop the current threading operation. This is
   6226 > usually a search, but its anything that ends up calling load_n_threads
   6227 > in thread-index-view. The user can hit ctrl-g to stop the operation.
   6228 
   6229 This looks great. I have a mild preference for not changing the
   6230 messages, and there just being a general expectation of ^G being a
   6231 cancelling key in Sup like it is in Emacs, but I'm open to suggestion by
   6232 others.
   6233 
   6234 I'm merging this into next and we can all meditate on it.
   6235 
   6236 I'm slowly working my way through the other patches, so have patience,
   6237 everyone.
   6238 
   6239 -- 
   6240 William <wmorgan-sup at masanjin.net>
   6241 
   6242 From gsf@fruct.us  Wed Jan 23 14:25:21 2008
   6243 From: gsf@fruct.us (Gabriel Sean Farrell)
   6244 Date: Wed, 23 Jan 2008 14:25:21 -0500
   6245 Subject: [sup-talk] sup crash on tab completion
   6246 In-Reply-To: <1201072070-sup-2323@south>
   6247 References: <ad5e29c50801182121k7299b14anf352653d648d4342@mail.gmail.com>
   6248 	<1200987490-sup-7392@south> <1200994656-sup-4998@tomsk>
   6249 	<1201072070-sup-2323@south>
   6250 Message-ID: <20080123192521.GA30955@manheim.library.drexel.edu>
   6251 
   6252 On Tue, Jan 22, 2008 at 11:09:10PM -0800, William Morgan wrote:
   6253 > Reformatted excerpts from Marcus Williams's message of 2008-01-22:
   6254 > > Note that you can use wildcards... "from:joe*" will find emails from
   6255 > > joey/joe.bloggs/joel etc.
   6256 > 
   6257 > Wow, I totally forgot about that.
   6258 > 
   6259 > > Although it must be said I was pondering yesterday whether it was
   6260 > > possible to get searches assume wildcards some how so when you
   6261 > > searched for from:joe you would actually be searching for from:*joe*
   6262 > > or maybe from:joe* automagically. I dug around in the ferret docs to
   6263 > > see if this was possible but only came up with the fuzzy operators and
   6264 > > you might as well use a wildcard instead.
   6265 > 
   6266 > I don't recall seeing anything like this in the Ferret docs, so it's
   6267 > probably not possible. What I'm thinking of doing, which will kind of
   6268 > approximate this, is adding the LHS of the email address and the
   6269 > sender's name to the from: field at index time, so that email from you
   6270 > would match e.g. from:marcus, from:williams, and from:marcus-sup. 
   6271 
   6272 Using Ferret's LetterAnalyzer on the "from" and "to" fields should do
   6273 this for you (i.e., create the appropriate tokens).  I've stuck it in
   6274 the code, but I haven't been able to make it work.  Something to do with
   6275 the twice-over query parsing, I think.
   6276 
   6277 gsf
   6278 
   6279 From rgh@roughage.com.au  Wed Jan 23 15:10:48 2008
   6280 From: rgh@roughage.com.au (Richard Heycock)
   6281 Date: Thu, 24 Jan 2008 07:10:48 +1100
   6282 Subject: [sup-talk] gem dependency for sup 0.4
   6283 Message-ID: <1201118863-sup-4011@wrasse>
   6284 
   6285 I upgraded to version 0.4 this morning using the gem and it didn't pull in
   6286 the gettext gem. I guess the gem doesn't include gettext as a dependency.
   6287 
   6288 On a slightly different note is there a bug tracker for sup?
   6289 
   6290 rgh
   6291 
   6292 -- 
   6293 You're worried criminals will continue to penetrate into cyberspace, and
   6294 I'm worried complexity, poor design and mismanagement will be there to meet
   6295 them - Marcus Ranum
   6296 
   6297 From marcus-sup@bar-coded.net  Wed Jan 23 15:14:23 2008
   6298 From: marcus-sup@bar-coded.net (Marcus Williams)
   6299 Date: Wed, 23 Jan 2008 20:14:23 +0000
   6300 Subject: [sup-talk] [PATCH] Add ability to interrupt current thread
   6301 	operation (search)
   6302 In-Reply-To: <1201114113-sup-1607@south>
   6303 References: <1200768101-sup-3312@tomsk> <1200768474-sup-7396@tomsk>
   6304 	<1200769080-sup-4420@tomsk> <1201114113-sup-1607@south>
   6305 Message-ID: <1201119167-sup-8440@tomsk>
   6306 
   6307 On 23.1.2008, William Morgan wrote:
   6308 > Reformatted excerpts from Marcus Williams's message of 2008-01-19:
   6309 > > This adds the ability to stop the current threading operation. This is
   6310 > > usually a search, but its anything that ends up calling load_n_threads
   6311 > > in thread-index-view. The user can hit ctrl-g to stop the operation.
   6312 > 
   6313 > This looks great. I have a mild preference for not changing the
   6314 > messages, and there just being a general expectation of ^G being a
   6315 > cancelling key in Sup like it is in Emacs, but I'm open to suggestion by
   6316 > others.
   6317 
   6318 My feeling was it wasnt obvious that you could cancel the operation
   6319 without it. If there was some way of making that more obvious
   6320 somewhere then the message could be removed. I didnt even realise I
   6321 could use ^G elsewhere until fairly recently!
   6322 
   6323 Marcus
   6324 
   6325 From johnbent@lanl.gov  Wed Jan 23 15:22:25 2008
   6326 From: johnbent@lanl.gov (John Bent)
   6327 Date: Wed, 23 Jan 2008 13:22:25 -0700
   6328 Subject: [sup-talk] debugging hooks
   6329 Message-ID: <1201119592-sup-2472@tangerine.lanl.gov>
   6330 
   6331 I seem to have a ruby bug in my before-add-message.rb hook.  When new
   6332 messages are loaded, I see a very quickly displayed error message about
   6333 the hook.  Is this same error written to a file anywhere because it flashes
   6334 too quickly for me to read it?  I tried just directly executing the
   6335 before-add-message.rb code with ruby but of course it complains that message
   6336 is undefined.  What is the best way to debug hooks?
   6337 
   6338 Thanks,
   6339 
   6340 John 
   6341 
   6342 From gsf@fruct.us  Wed Jan 23 15:33:07 2008
   6343 From: gsf@fruct.us (Gabriel Sean Farrell)
   6344 Date: Wed, 23 Jan 2008 15:33:07 -0500
   6345 Subject: [sup-talk] header cache
   6346 In-Reply-To: <1200990925-sup-1529@ausone.local>
   6347 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   6348 	<1200453820-sup-4777@south>
   6349 	<1200514969-sup-7541@clarabella.clarabella>
   6350 	<1200516410-sup-1963@south>
   6351 	<1200519319-sup-915@clarabella.clarabella>
   6352 	<1200557516-sup-8444@ausone.local>
   6353 	<1200570003-sup-1529@clarabella.clarabella>
   6354 	<1200581670-sup-9273@ausone.local> <1200969359-sup-2816@south>
   6355 	<1200990925-sup-1529@ausone.local>
   6356 Message-ID: <20080123203307.GA31494@manheim.library.drexel.edu>
   6357 
   6358 On Tue, Jan 22, 2008 at 09:40:05AM +0100, Nicolas Pouillard wrote:
   6359 > Excerpts from William Morgan's message of Tue Jan 22 03:36:48 +0100 2008:
   6360 > > Reformatted excerpts from nicolas.pouillard's message of 2008-01-17:
   6361 > > > That's because Sup needs to compute a hash from file names to message
   6362 > > > ids.
   6363 > > 
   6364 > > Like IMAP headers, this is a one-time cost upon startup and could easily
   6365 > > be cached. Maildir shouldn't be significantly slower than mbox except
   6366 > > for this.
   6367 > 
   6368 > Looking  at  the  code  'scan_mailbox' seems to be called quite often (but not
   6369 > more than every 30 seconds).
   6370 > 
   6371 > I'm  wondering  if  peeking  a  file  in  a very large directory is as fast as
   6372 > seeking to a particular offset in a large file?
   6373 
   6374 If you're really interested in speed comparisons between mbox and
   6375 maildir, http://www.courier-mta.org/mbox-vs-maildir/ is a good read.
   6376 
   6377 From wmorgan-sup@masanjin.net  Wed Jan 23 15:51:46 2008
   6378 From: wmorgan-sup@masanjin.net (William Morgan)
   6379 Date: Wed, 23 Jan 2008 12:51:46 -0800
   6380 Subject: [sup-talk] debugging hooks
   6381 In-Reply-To: <1201119592-sup-2472@tangerine.lanl.gov>
   6382 References: <1201119592-sup-2472@tangerine.lanl.gov>
   6383 Message-ID: <1201121439-sup-4455@south>
   6384 
   6385 Reformatted excerpts from John Bent's message of 2008-01-23:
   6386 > I seem to have a ruby bug in my before-add-message.rb hook.  When new
   6387 > messages are loaded, I see a very quickly displayed error message
   6388 > about the hook.  Is this same error written to a file anywhere because
   6389 > it flashes too quickly for me to read it?
   6390 
   6391 The messages should be reproduced in the log buffer. If you hit B you
   6392 can bring it up directly.
   6393 
   6394 -- 
   6395 William <wmorgan-sup at masanjin.net>
   6396 
   6397 From gsf@fruct.us  Wed Jan 23 16:13:18 2008
   6398 From: gsf@fruct.us (Gabriel Sean Farrell)
   6399 Date: Wed, 23 Jan 2008 16:13:18 -0500
   6400 Subject: [sup-talk] return-path
   6401 Message-ID: <20080123211318.GB31529@manheim.library.drexel.edu>
   6402 
   6403 I'm writing this message in mutt instead of sup because I send my email
   6404 via a postfix relay-host and mutt allows me to set my Return-Path equal
   6405 to my "From:" address with "set envelope_from=yes".  If I don't do this,
   6406 my email is often rejected from mailing lists.
   6407 
   6408 I believe other email clients default to this behavior (see
   6409 http://www.mail-archive.com/mutt-users at mutt.org/msg26743.html for the
   6410 post I'm basing my assumption on).  Could sup follow that, or at least
   6411 allow the option?
   6412 
   6413 I imagine the fix for this would go in edit-message-mode.rb, but my
   6414 ruby skills aren't quite there yet.
   6415 
   6416 gsf (a pythonista, mostly)
   6417 
   6418 From johnbent@lanl.gov  Wed Jan 23 16:25:54 2008
   6419 From: johnbent@lanl.gov (John Bent)
   6420 Date: Wed, 23 Jan 2008 14:25:54 -0700
   6421 Subject: [sup-talk] debugging hooks
   6422 In-Reply-To: <1201121439-sup-4455@south>
   6423 References: <1201119592-sup-2472@tangerine.lanl.gov>
   6424 	<1201121439-sup-4455@south>
   6425 Message-ID: <1201123436-sup-8771@tangerine.lanl.gov>
   6426 
   6427 Excerpts from William Morgan's message of Wed Jan 23 13:51:46 -0700 2008:
   6428 > Reformatted excerpts from John Bent's message of 2008-01-23:
   6429 > > I seem to have a ruby bug in my before-add-message.rb hook.  When new
   6430 > > messages are loaded, I see a very quickly displayed error message
   6431 > > about the hook.  Is this same error written to a file anywhere because
   6432 > > it flashes too quickly for me to read it?
   6433 > 
   6434 > The messages should be reproduced in the log buffer. If you hit B you
   6435 > can bring it up directly.
   6436 > 
   6437 That did the trick.  Thanks a lot.  And thanks again for sup.  I'm so
   6438 happy to finally say good-bye to pine; I feel like I've finally entered
   6439 the correct century in terms of my email technology.
   6440 
   6441 From wmorgan-sup@masanjin.net  Wed Jan 23 17:01:59 2008
   6442 From: wmorgan-sup@masanjin.net (William Morgan)
   6443 Date: Wed, 23 Jan 2008 14:01:59 -0800
   6444 Subject: [sup-talk] debugging hooks
   6445 In-Reply-To: <1201123436-sup-8771@tangerine.lanl.gov>
   6446 References: <1201119592-sup-2472@tangerine.lanl.gov>
   6447 	<1201121439-sup-4455@south>
   6448 	<1201123436-sup-8771@tangerine.lanl.gov>
   6449 Message-ID: <1201125657-sup-8715@south>
   6450 
   6451 Reformatted excerpts from John Bent's message of 2008-01-23:
   6452 > That did the trick.  Thanks a lot.  And thanks again for sup.  I'm so
   6453 > happy to finally say good-bye to pine; I feel like I've finally
   6454 > entered the correct century in terms of my email technology.
   6455 
   6456 Well I wouldn't go that far. You're still using a console program, after
   6457 all. :)
   6458 
   6459 -- 
   6460 William <wmorgan-sup at masanjin.net>
   6461 
   6462 From wmorgan-sup@masanjin.net  Wed Jan 23 17:12:07 2008
   6463 From: wmorgan-sup@masanjin.net (William Morgan)
   6464 Date: Wed, 23 Jan 2008 14:12:07 -0800
   6465 Subject: [sup-talk] return-path
   6466 In-Reply-To: <20080123211318.GB31529@manheim.library.drexel.edu>
   6467 References: <20080123211318.GB31529@manheim.library.drexel.edu>
   6468 Message-ID: <1201125726-sup-1297@south>
   6469 
   6470 Reformatted excerpts from Gabriel Sean Farrell's message of 2008-01-23:
   6471 > I'm writing this message in mutt instead of sup because I send my
   6472 > email via a postfix relay-host and mutt allows me to set my
   6473 > Return-Path equal to my "From:" address with "set envelope_from=yes".
   6474 > If I don't do this, my email is often rejected from mailing lists.
   6475 > 
   6476 > I believe other email clients default to this behavior (see
   6477 > http://www.mail-archive.com/mutt-users at mutt.org/msg26743.html for the
   6478 > post I'm basing my assumption on).  Could sup follow that, or at least
   6479 > allow the option?
   6480 
   6481 The Sup way to do this is to have the following line in your
   6482 ~/.sup/hooks/before-edit.rb:
   6483   header["Return-Path"] = header["From"]
   6484 
   6485 Unfortunately, you have to apply the following patch or Sup simply
   6486 discards that header. There's a better solution, which is to make Sup
   6487 not discard any headers set by the user when composing email, and I will
   6488 take it as a bugfix task to implement that for the next release.
   6489 
   6490 diff --git a/lib/sup/mbox.rb b/lib/sup/mbox.rb
   6491 index 0ce52fe..55dd44f 100644
   6492 --- a/lib/sup/mbox.rb
   6493 +++ b/lib/sup/mbox.rb
   6494 @@ -32,6 +32,7 @@ module MBox
   6495          /^(List-Post):\s+(.*?)\s*$/i,
   6496          /^(List-Subscribe):\s+(.*?)\s*$/i,
   6497          /^(List-Unsubscribe):\s+(.*?)\s*$/i,
   6498 +        /^(Return-Path):\s+(.*?)\s*$/i,
   6499          /^(Status):\s+(.*?)\s*$/i: header[last = $1] = $2
   6500        when /^(Message-Id):\s+(.*?)\s*$/i: header[mid_field = last = $1] = $2
   6501  
   6502 
   6503 
   6504 
   6505 -- 
   6506 William <wmorgan-sup at masanjin.net>
   6507 
   6508 From gsf@fruct.us  Wed Jan 23 17:47:12 2008
   6509 From: gsf@fruct.us (Gabriel Sean Farrell)
   6510 Date: Wed, 23 Jan 2008 17:47:12 -0500
   6511 Subject: [sup-talk] return-path
   6512 In-Reply-To: <1201125726-sup-1297@south>
   6513 References: <20080123211318.GB31529@manheim.library.drexel.edu>
   6514 	<1201125726-sup-1297@south>
   6515 Message-ID: <20080123224712.GB32356@manheim.library.drexel.edu>
   6516 
   6517 On Wed, Jan 23, 2008 at 02:12:07PM -0800, William Morgan wrote:
   6518 > Reformatted excerpts from Gabriel Sean Farrell's message of 2008-01-23:
   6519 > > I'm writing this message in mutt instead of sup because I send my
   6520 > > email via a postfix relay-host and mutt allows me to set my
   6521 > > Return-Path equal to my "From:" address with "set envelope_from=yes".
   6522 > > If I don't do this, my email is often rejected from mailing lists.
   6523 > > 
   6524 > > I believe other email clients default to this behavior (see
   6525 > > http://www.mail-archive.com/mutt-users at mutt.org/msg26743.html for the
   6526 > > post I'm basing my assumption on).  Could sup follow that, or at least
   6527 > > allow the option?
   6528 > 
   6529 > The Sup way to do this is to have the following line in your
   6530 > ~/.sup/hooks/before-edit.rb:
   6531 >   header["Return-Path"] = header["From"]
   6532 > 
   6533 > Unfortunately, you have to apply the following patch or Sup simply
   6534 > discards that header. There's a better solution, which is to make Sup
   6535 > not discard any headers set by the user when composing email, and I will
   6536 > take it as a bugfix task to implement that for the next release.
   6537 > 
   6538 > diff --git a/lib/sup/mbox.rb b/lib/sup/mbox.rb
   6539 > index 0ce52fe..55dd44f 100644
   6540 > --- a/lib/sup/mbox.rb
   6541 > +++ b/lib/sup/mbox.rb
   6542 > @@ -32,6 +32,7 @@ module MBox
   6543 >          /^(List-Post):\s+(.*?)\s*$/i,
   6544 >          /^(List-Subscribe):\s+(.*?)\s*$/i,
   6545 >          /^(List-Unsubscribe):\s+(.*?)\s*$/i,
   6546 > +        /^(Return-Path):\s+(.*?)\s*$/i,
   6547 >          /^(Status):\s+(.*?)\s*$/i: header[last = $1] = $2
   6548 >        when /^(Message-Id):\s+(.*?)\s*$/i: header[mid_field = last = $1] = $2
   6549 
   6550 I've added the line and applied the patch.  Now I see "Return-Path" in
   6551 the headers of my message before I send it, but when I receive it the
   6552 return-path is still the one I was trying to override.  Could the one I
   6553 set still be getting stripped out?
   6554 
   6555 From johnbent@lanl.gov  Wed Jan 23 18:12:37 2008
   6556 From: johnbent@lanl.gov (John Bent)
   6557 Date: Wed, 23 Jan 2008 16:12:37 -0700
   6558 Subject: [sup-talk] archived threads not returning to inbox
   6559 Message-ID: <1201129847-sup-6955@tangerine.lanl.gov>
   6560 
   6561 I'm running sup-0.4 since this morning and I've noticed that archived
   6562 threads that get new messages are not reappearing in my inbox.  I do
   6563 see the expected message: Loaded 1 new message, 1 to inbox. but the thread
   6564 doesn't reappear.  If I quit and restart sup, then the thread does correctly
   6565 reappear in the inbox.  I thought I was noticing this with other threads
   6566 so to test, I used my gmail account, sent a message to sup, received and 
   6567 archived it, and then replied to it again with my gmail account.
   6568 
   6569 From grant@antiflux.org  Wed Jan 23 19:07:12 2008
   6570 From: grant@antiflux.org (Grant Hollingworth)
   6571 Date: Wed, 23 Jan 2008 19:07:12 -0500
   6572 Subject: [sup-talk] archived threads not returning to inbox
   6573 In-Reply-To: <1201129847-sup-6955@tangerine.lanl.gov>
   6574 References: <1201129847-sup-6955@tangerine.lanl.gov>
   6575 Message-ID: <1201133186-sup-902@spooky.local>
   6576 
   6577 * John Bent [Wed Jan 23 18:12:37 -0500 2008]:
   6578 > I'm running sup-0.4 since this morning and I've noticed that archived
   6579 > threads that get new messages are not reappearing in my inbox.  I do
   6580 > see the expected message: Loaded 1 new message, 1 to inbox. but the thread
   6581 > doesn't reappear.  If I quit and restart sup, then the thread does correctly
   6582 > reappear in the inbox. 
   6583 
   6584 Sup needs some work still on keeping buffers up to date. Try hitting '@' to
   6585 refresh your inbox.
   6586 
   6587 
   6588 From sho.fukamachi@gmail.com  Thu Jan 24 03:11:48 2008
   6589 From: sho.fukamachi@gmail.com (Sho Fukamachi)
   6590 Date: Thu, 24 Jan 2008 19:11:48 +1100
   6591 Subject: [sup-talk] NoMethodError running sup-config
   6592 Message-ID: <B47C5822-EFB0-4680-9932-F8C2FAC7C78A@gmail.com>
   6593 
   6594 Hi all,
   6595 
   6596 Thought I'd try out sup but get a crash trying to configure:
   6597 
   6598 ------------------------
   6599 
   6600 [Thu Jan 24 18:42:10 +1100 2008] unlocking /Users/sho/.sup/lock...
   6601 /Library/Ruby/Gems/1.8/gems/sup-0.4/lib/sup/mbox/loader.rb:25:in  
   6602 `initialize': undefined method `path' for #<Redwood::MBox::SSHFile: 
   6603 0x17df7ac> (NoMethodError)
   6604 	from /Library/Ruby/Gems/1.8/gems/sup-0.4/lib/sup/mbox/ssh-loader.rb: 
   6605 29:in `new'
   6606 	from /Library/Ruby/Gems/1.8/gems/sup-0.4/lib/sup/mbox/ssh-loader.rb: 
   6607 29:in `initialize'
   6608 	from /Library/Ruby/Gems/1.8/gems/sup-0.4/bin/sup-add:103:in `new'
   6609 	from /Library/Ruby/Gems/1.8/gems/sup-0.4/bin/sup-add:103
   6610 	from /Library/Ruby/Gems/1.8/gems/sup-0.4/bin/sup-add:87:in `each'
   6611 	from /Library/Ruby/Gems/1.8/gems/sup-0.4/bin/sup-add:87
   6612 	from /usr/bin/sup-add:19:in `load'
   6613 	from /usr/bin/sup-add:19
   6614 Rats, that failed. You may have to do it manually.
   6615 Try again? (enter for "n"):
   6616 
   6617 ---------------------
   6618 
   6619 As you can probably see, it's MacOSX 10.5.1. gettext was manually  
   6620 installed.
   6621 
   6622 I was trying to add a new remote mbox, the path I gave was  
   6623 mydomain.com/var/spool/mail/my_mbox. I tried with and without the  
   6624 leading slash in the remote server path, crashed both times.
   6625 
   6626 I realise it's probably something dumb I'm doing but I did try a  
   6627 couple of times. Any clues?
   6628 
   6629 thanks!
   6630 
   6631 Sho
   6632 -------------- next part --------------
   6633 A non-text attachment was scrubbed...
   6634 Name: smime.p7s
   6635 Type: application/pkcs7-signature
   6636 Size: 2429 bytes
   6637 Desc: not available
   6638 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080124/490de6fc/attachment.bin 
   6639 
   6640 From daniel@wagner-home.com  Thu Jan 24 03:50:30 2008
   6641 From: daniel@wagner-home.com (Daniel Wagner)
   6642 Date: Thu, 24 Jan 2008 00:50:30 -0800
   6643 Subject: [sup-talk] indexed, but not
   6644 Message-ID: <1201164353-sup-1929@buckwheat>
   6645 
   6646 Hello hello!  Nice job on sup, I'm loving it so far.
   6647 
   6648 I've managed to get myself into a bit of a strange situation, it seems.
   6649 I've received a mail into a Maildir, and I can see the mail with, eg,
   6650 vim.  But, it doesn't appear in sup.
   6651 
   6652 Now, the odd thing is that it seems to be indexed.  If I use '\' to
   6653 search for "death", I get one thread returned, but none of the messages
   6654 in that thread contain the word "death"!
   6655 
   6656 I've tried sup-sync -c on that source, but no joy.  Any ideas?
   6657 ~d
   6658 
   6659 From johnbent@lanl.gov  Thu Jan 24 16:40:08 2008
   6660 From: johnbent@lanl.gov (John Bent)
   6661 Date: Thu, 24 Jan 2008 14:40:08 -0700
   6662 Subject: [sup-talk] missing run-mailcap
   6663 In-Reply-To: <1201041081-sup-6034@tangerine.lanl.gov>
   6664 References: <1201019996-sup-8960@tangerine.lanl.gov>
   6665 	<1201041081-sup-6034@tangerine.lanl.gov>
   6666 Message-ID: <1201210323-sup-6116@tangerine.lanl.gov>
   6667 
   6668 Excerpts from John Bent's message of Tue Jan 22 15:33:22 -0700 2008:
   6669 > Excerpts from John Bent's message of Tue Jan 22 09:40:05 -0700 2008:
   6670 > > I saw some earlier discussion in the list archives about a missing run-mailcap
   6671 > > script.  I had this same problem too on my mac (10.4.11 Power PC).  It's sort
   6672 > > of a kluge but I dealt with this by writing my own /usr/bin/run-mailcap which
   6673 > > just does a simple hash lookup of mime type to rename the file with an
   6674 > > appropriate extension and then uses the mac 'open' command.  
   6675 
   6676 When sup opens an attachment, it copies the attachment to 
   6677 /tmp/sup-attachment-ID and then calls run-mailcap.  But sup knows what name
   6678 the file was attached as.  Could sup save the attachment to /tmp/filename?
   6679 Or at least append the extension?  Although my preference would be to use
   6680 the fullname which is presumably what the file is named on the originating
   6681 machine.  Often I'll open an attachment first and if I like it, then I'll save
   6682 it using whichever viewer it's in (e.g. someone sends me an MS Word, I open it
   6683 in word, and then save it through word).  I then get a dialog about how to
   6684 save it which has as a starting point the current path which is 
   6685 /tmp/sup-attachment-ID which I'll always have to change.  But if it was the
   6686 original attached name, I'd probably often be happy and would prefer 
   6687 to keep that name.  
   6688 
   6689 By the way, sup works so well that I've now imported my old school emails
   6690 which I'd previously given up on.  I now have blazing fast search over my
   6691 last ten years of email!
   6692 
   6693 From wmorgan-sup@masanjin.net  Thu Jan 24 18:26:20 2008
   6694 From: wmorgan-sup@masanjin.net (William Morgan)
   6695 Date: Thu, 24 Jan 2008 15:26:20 -0800
   6696 Subject: [sup-talk] missing run-mailcap
   6697 In-Reply-To: <1201210323-sup-6116@tangerine.lanl.gov>
   6698 References: <1201019996-sup-8960@tangerine.lanl.gov>
   6699 	<1201041081-sup-6034@tangerine.lanl.gov>
   6700 	<1201210323-sup-6116@tangerine.lanl.gov>
   6701 Message-ID: <1201216741-sup-4105@south>
   6702 
   6703 Reformatted excerpts from John Bent's message of 2008-01-24:
   6704 > When sup opens an attachment, it copies the attachment to
   6705 > /tmp/sup-attachment-ID and then calls run-mailcap.  But sup knows what
   6706 > name the file was attached as.  Could sup save the attachment to
   6707 > /tmp/filename?  Or at least append the extension?
   6708 
   6709 In 0.4 you should see the extension being preserved. Let me know if
   6710 that's not the case.
   6711 
   6712 So you should be able to simply call "open" on that file, rather than
   6713 having to use your Perl script.
   6714 
   6715 > Although my preference would be to use the fullname which is
   6716 > presumably what the file is named on the originating machine. 
   6717 
   6718 This might be doable. I've been using the tempfile Ruby library to
   6719 handle these files, which does two things: it obfuscates the name to
   6720 avoid collisions, and it ensures the file is deleted once all references
   6721 to the variable are garbage-collected. It might not be hard to replace
   6722 this with something that only does the latter behavior. I might be able
   6723 to programmatically delete the files too, instead of waiting for garbage
   6724 collection.
   6725 
   6726 > By the way, sup works so well that I've now imported my old school
   6727 > emails which I'd previously given up on.  I now have blazing fast
   6728 > search over my last ten years of email!
   6729 
   6730 Excellent!
   6731 
   6732 -- 
   6733 William <wmorgan-sup at masanjin.net>
   6734 
   6735 From wmorgan-sup@masanjin.net  Thu Jan 24 18:46:14 2008
   6736 From: wmorgan-sup@masanjin.net (William Morgan)
   6737 Date: Thu, 24 Jan 2008 15:46:14 -0800
   6738 Subject: [sup-talk] indexed, but not
   6739 In-Reply-To: <1201164353-sup-1929@buckwheat>
   6740 References: <1201164353-sup-1929@buckwheat>
   6741 Message-ID: <1201218203-sup-3803@south>
   6742 
   6743 Reformatted excerpts from Daniel Wagner's message of 2008-01-24:
   6744 > I've managed to get myself into a bit of a strange situation, it
   6745 > seems.  I've received a mail into a Maildir, and I can see the mail
   6746 > with, eg, vim.  But, it doesn't appear in sup.
   6747 >
   6748 > Now, the odd thing is that it seems to be indexed.  If I use '\' to
   6749 > search for "death", I get one thread returned, but none of the
   6750 > messages in that thread contain the word "death"!
   6751 
   6752 Not entirely sure I understand the situation. Is is new mail that
   6753 doesn't appear in Sup, or any mail at all? By "appear in Sup" do you
   6754 mean appear in the inbox, or appear at all?
   6755 
   6756 When you search for "death", view the thread, expand all messages (hit
   6757 E), and search in that buffer (with /) for death, do you really not get
   6758 anything? A general \ search like that can hit things like email
   6759 addresses too.
   6760 
   6761 -- 
   6762 William <wmorgan-sup at masanjin.net>
   6763 
   6764 From johnbent@lanl.gov  Thu Jan 24 18:52:36 2008
   6765 From: johnbent@lanl.gov (John Bent)
   6766 Date: Thu, 24 Jan 2008 16:52:36 -0700
   6767 Subject: [sup-talk] missing run-mailcap
   6768 In-Reply-To: <1201216741-sup-4105@south>
   6769 References: <1201019996-sup-8960@tangerine.lanl.gov>
   6770 	<1201041081-sup-6034@tangerine.lanl.gov>
   6771 	<1201210323-sup-6116@tangerine.lanl.gov>
   6772 	<1201216741-sup-4105@south>
   6773 Message-ID: <1201218489-sup-3542@tangerine.lanl.gov>
   6774 
   6775 Excerpts from William Morgan's message of Thu Jan 24 16:26:20 -0700 2008:
   6776 > Reformatted excerpts from John Bent's message of 2008-01-24:
   6777 > > When sup opens an attachment, it copies the attachment to
   6778 > > /tmp/sup-attachment-ID and then calls run-mailcap.  But sup knows what
   6779 > > name the file was attached as.  Could sup save the attachment to
   6780 > > /tmp/filename?  Or at least append the extension?
   6781 > 
   6782 > In 0.4 you should see the extension being preserved. Let me know if
   6783 > that's not the case.
   6784 > 
   6785 > So you should be able to simply call "open" on that file, rather than
   6786 > having to use your Perl script.
   6787 > 
   6788 Yep, just like you say.  Although, I think I do still need to have something
   6789 in /usr/bin/run-mailcap that parses 
   6790 "--action=view application/vnd.ms-powerpoint:/tmp/foo.ppt," and then execs
   6791 "open /tmp/foo.ppt."  But that's much better than having to guess an extension
   6792 from the mime-type.
   6793 
   6794 John
   6795 
   6796 From wmorgan-sup@masanjin.net  Thu Jan 24 19:26:50 2008
   6797 From: wmorgan-sup@masanjin.net (William Morgan)
   6798 Date: Thu, 24 Jan 2008 16:26:50 -0800
   6799 Subject: [sup-talk] NoMethodError running sup-config
   6800 In-Reply-To: <B47C5822-EFB0-4680-9932-F8C2FAC7C78A@gmail.com>
   6801 References: <B47C5822-EFB0-4680-9932-F8C2FAC7C78A@gmail.com>
   6802 Message-ID: <1201220266-sup-191@south>
   6803 
   6804 Reformatted excerpts from Sho Fukamachi's message of 2008-01-24:
   6805 > I realise it's probably something dumb I'm doing but I did try a
   6806 > couple of times. Any clues?
   6807 
   6808 Nope, this is an Official Bug. Sorry! The following minor patch should
   6809 fix it. Git master and next have been updated with this.
   6810 
   6811 diff --git a/lib/sup/mbox/ssh-file.rb b/lib/sup/mbox/ssh-file.rb
   6812 index 25074be..d474636 100644
   6813 --- a/lib/sup/mbox/ssh-file.rb
   6814 +++ b/lib/sup/mbox/ssh-file.rb
   6815 @@ -122,6 +122,7 @@ class SSHFile
   6816    def seek loc; @offset = loc; end
   6817    def tell; @offset; end
   6818    def total; size; end
   6819 +  def path; @fn end
   6820  
   6821    def size
   6822      if @file_size.nil? || (Time.now - @last_size_check) > SIZE_CHECK_INTERVAL
   6823 
   6824 
   6825 
   6826 -- 
   6827 William <wmorgan-sup at masanjin.net>
   6828 
   6829 From wmorgan-sup@masanjin.net  Thu Jan 24 19:17:17 2008
   6830 From: wmorgan-sup@masanjin.net (William Morgan)
   6831 Date: Thu, 24 Jan 2008 16:17:17 -0800
   6832 Subject: [sup-talk] missing run-mailcap
   6833 In-Reply-To: <1201218489-sup-3542@tangerine.lanl.gov>
   6834 References: <1201019996-sup-8960@tangerine.lanl.gov>
   6835 	<1201041081-sup-6034@tangerine.lanl.gov>
   6836 	<1201210323-sup-6116@tangerine.lanl.gov>
   6837 	<1201216741-sup-4105@south>
   6838 	<1201218489-sup-3542@tangerine.lanl.gov>
   6839 Message-ID: <1201220092-sup-8263@south>
   6840 
   6841 Reformatted excerpts from John Bent's message of 2008-01-24:
   6842 > Yep, just like you say.  Although, I think I do still need to have
   6843 > something in /usr/bin/run-mailcap that parses "--action=view
   6844 > application/vnd.ms-powerpoint:/tmp/foo.ppt," and then execs "open
   6845 > /tmp/foo.ppt."  But that's much better than having to guess an
   6846 > extension from the mime-type.
   6847 
   6848 You don't even need to fake run-mailcap. You should just be able to have
   6849 a one-line ~/.sup/hooks/mime-view.rb that looks like:
   6850 
   6851   system "open #{filename}"
   6852 
   6853 If open is a standard OS X command, then I will add some code to
   6854 auto-detect it at some point.
   6855 
   6856 -- 
   6857 William <wmorgan-sup at masanjin.net>
   6858 
   6859 From grant@antiflux.org  Thu Jan 24 19:57:50 2008
   6860 From: grant@antiflux.org (Grant Hollingworth)
   6861 Date: Thu, 24 Jan 2008 19:57:50 -0500
   6862 Subject: [sup-talk] missing run-mailcap
   6863 In-Reply-To: <1201220092-sup-8263@south>
   6864 References: <1201019996-sup-8960@tangerine.lanl.gov>
   6865 	<1201041081-sup-6034@tangerine.lanl.gov>
   6866 	<1201210323-sup-6116@tangerine.lanl.gov>
   6867 	<1201216741-sup-4105@south>
   6868 	<1201218489-sup-3542@tangerine.lanl.gov>
   6869 	<1201220092-sup-8263@south>
   6870 Message-ID: <1201222453-sup-1190@spooky.local>
   6871 
   6872 * William Morgan [Thu Jan 24 19:17:17 -0500 2008]:
   6873 > If open is a standard OS X command, then I will add some code to
   6874 > auto-detect it at some point.
   6875 
   6876 It is. Unfortunately, you can tell it which application to use, but
   6877 not which MIME type.
   6878 
   6879 From wmorgan-sup@masanjin.net  Thu Jan 24 21:54:02 2008
   6880 From: wmorgan-sup@masanjin.net (William Morgan)
   6881 Date: Thu, 24 Jan 2008 18:54:02 -0800
   6882 Subject: [sup-talk] archived threads not returning to inbox
   6883 In-Reply-To: <1201129847-sup-6955@tangerine.lanl.gov>
   6884 References: <1201129847-sup-6955@tangerine.lanl.gov>
   6885 Message-ID: <1201229597-sup-9416@south>
   6886 
   6887 Reformatted excerpts from John Bent's message of 2008-01-23:
   6888 > I'm running sup-0.4 since this morning and I've noticed that archived
   6889 > threads that get new messages are not reappearing in my inbox.  I do
   6890 > see the expected message: Loaded 1 new message, 1 to inbox. but the
   6891 > thread doesn't reappear.  If I quit and restart sup, then the thread
   6892 > does correctly reappear in the inbox.
   6893 
   6894 I think I've fixed this in next, with commit
   6895 81794a14968410f70ee0563afcf3b1e7e90be101.
   6896 
   6897 Care to try?
   6898 
   6899 -- 
   6900 William <wmorgan-sup at masanjin.net>
   6901 
   6902 From wmorgan-sup@masanjin.net  Thu Jan 24 22:28:07 2008
   6903 From: wmorgan-sup@masanjin.net (William Morgan)
   6904 Date: Thu, 24 Jan 2008 19:28:07 -0800
   6905 Subject: [sup-talk] header cache
   6906 In-Reply-To: <1201079068-sup-438@ausone.inria.fr>
   6907 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   6908 	<1200453820-sup-4777@south>
   6909 	<1200514969-sup-7541@clarabella.clarabella>
   6910 	<1200516410-sup-1963@south>
   6911 	<1200519319-sup-915@clarabella.clarabella>
   6912 	<1200557516-sup-8444@ausone.local>
   6913 	<1200570003-sup-1529@clarabella.clarabella>
   6914 	<1200581670-sup-9273@ausone.local> <1200969359-sup-2816@south>
   6915 	<1200990925-sup-1529@ausone.local> <1201071069-sup-6394@south>
   6916 	<1201079068-sup-438@ausone.inria.fr>
   6917 Message-ID: <1201230428-sup-8760@south>
   6918 
   6919 [Sending to list. We accidentally fell off.]
   6920 
   6921 Reformatted excerpts from nicolas.pouillard's message of 2008-01-23:
   6922 > Excerpts from William Morgan's message of Wed Jan 23 08:04:27 +0100 2008:
   6923 > > Reformatted excerpts from nicolas.pouillard's message of 2008-01-22:
   6924 > > > Looking  at  the  code  'scan_mailbox' seems to be called quite
   6925 > > > often (but not more than every 30 seconds).
   6926 > > 
   6927 > > Oops, you're exactly right.
   6928 > > 
   6929 > > > I'm  wondering  if  peeking  a  file  in  a very large directory
   6930 > > > is as fast as seeking to a particular offset in a large file?
   6931 > > 
   6932 > > Actually, we could short-circuit this check trivially by comparing
   6933 > > the directories' mtimes. Then this really shouldn't be a slowdown.
   6934 > 
   6935 > You will still scan it at when receiving new mails...
   6936 
   6937 That's true. But some kind of scan is unavoidable. We need to know which
   6938 files are new, and one way or another that will involve pulling in the
   6939 whole list of files.
   6940 
   6941 I think we can do a couple easy things to speed up Maildir dramatically.
   6942 Skip the scan when the mtime is unchanged, maybe increase the delay,
   6943 stop repeating make_id calls for messages we've already processed...
   6944 basically the current implementation is a little naive and I'm not ready
   6945 to give up on Maildir quite yet.
   6946 
   6947 > What about having a custom mail box format for sup?
   6948 > 
   6949 > For  instance  I think the only drawback (in the context of using sup)
   6950 > of mbox is when you often backup you mails. Why not having a bunch of
   6951 > mbox using dates inbox-12-2008.mbox? Or a directory where file names
   6952 > are sup message ids?
   6953 
   6954 What about mbox makes it difficult to do backups?
   6955 
   6956 The amount of work for a custom format seems really high. (Look at all
   6957 the design considerations that went into Maildir!) And ultimately your
   6958 MTA has to be able to write that format, or there has to be a conversion
   6959 script, which has to be run every 30 seconds, and has to be fast, and
   6960 then we have the same set of problems we have now but in a different
   6961 place.
   6962 
   6963 -- 
   6964 William <wmorgan-sup at masanjin.net>
   6965 
   6966 From wmorgan-sup@masanjin.net  Thu Jan 24 23:03:58 2008
   6967 From: wmorgan-sup@masanjin.net (William Morgan)
   6968 Date: Thu, 24 Jan 2008 20:03:58 -0800
   6969 Subject: [sup-talk] return-path
   6970 In-Reply-To: <20080123224712.GB32356@manheim.library.drexel.edu>
   6971 References: <20080123211318.GB31529@manheim.library.drexel.edu>
   6972 	<1201125726-sup-1297@south>
   6973 	<20080123224712.GB32356@manheim.library.drexel.edu>
   6974 Message-ID: <1201233750-sup-2616@south>
   6975 
   6976 Reformatted excerpts from Gabriel Sean Farrell's message of 2008-01-23:
   6977 > I've added the line and applied the patch.  Now I see "Return-Path" in
   6978 > the headers of my message before I send it, but when I receive it the
   6979 > return-path is still the one I was trying to override.  Could the one
   6980 > I set still be getting stripped out?
   6981 
   6982 I don't think so... you can apply the patch below and see exactly what
   6983 Sup is sending sendmail. In my case, that header is intact. So it must
   6984 be getting overwritten somewhere else in the system.
   6985 
   6986 There's some crazy interaction between this header, the From: and
   6987 Sender: headers, and the -f option of sendmail. Maybe you should use a
   6988 -f with sendmail (in your ~/.sup/config.yaml file)? Did you have a
   6989 particular way of calling sendmail with Mutt?
   6990 
   6991 diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mod
   6992 index 6a7f273..0e50724 100644
   6993 --- a/lib/sup/modes/edit-message-mode.rb
   6994 +++ b/lib/sup/modes/edit-message-mode.rb
   6995 @@ -279,6 +279,7 @@ protected
   6996        date = Time.now
   6997        m = build_message date
   6998        IO.popen(acct.sendmail, "w") { |p| p.puts m }
   6999 +      File.open("sent-copy.txt", "w") { |f| f.puts m }
   7000        raise SendmailCommandFailed, "Couldn't execute #{acct.sendmail}" unless $
   7001        SentManager.write_sent_message(date, from_email) { |f| f.puts sanitize_bo
   7002        BufferManager.kill_buffer buffer
   7003 
   7004 
   7005 
   7006 -- 
   7007 William <wmorgan-sup at masanjin.net>
   7008 
   7009 From wmorgan-sup@masanjin.net  Thu Jan 24 23:10:50 2008
   7010 From: wmorgan-sup@masanjin.net (William Morgan)
   7011 Date: Thu, 24 Jan 2008 20:10:50 -0800
   7012 Subject: [sup-talk] gem dependency for sup 0.4
   7013 In-Reply-To: <1201118863-sup-4011@wrasse>
   7014 References: <1201118863-sup-4011@wrasse>
   7015 Message-ID: <1201234180-sup-4502@south>
   7016 
   7017 Reformatted excerpts from Richard Heycock's message of 2008-01-23:
   7018 > I upgraded to version 0.4 this morning using the gem and it didn't
   7019 > pull in the gettext gem. I guess the gem doesn't include gettext as a
   7020 > dependency.
   7021 
   7022 Weird. It's listed as a dependency in the Hoe spec, and the little test
   7023 that I just tried right now pulled it in. Have other 0.4 installers
   7024 had to install gettext manually?
   7025 
   7026 > On a slightly different note is there a bug tracker for sup?
   7027 
   7028 This mailing list, as it's represented in my Sup inbox. :)
   7029 I also have a copy of doc/TODO that I maintain on a local branch,
   7030 which I keep meaning to clean up and publicize.
   7031 
   7032 
   7033 -- 
   7034 William <wmorgan-sup at masanjin.net>
   7035 
   7036 From johnbent@lanl.gov  Thu Jan 24 23:28:38 2008
   7037 From: johnbent@lanl.gov (John Bent)
   7038 Date: Thu, 24 Jan 2008 21:28:38 -0700
   7039 Subject: [sup-talk] gem dependency for sup 0.4
   7040 In-Reply-To: <1201234180-sup-4502@south>
   7041 References: <1201118863-sup-4011@wrasse> <1201234180-sup-4502@south>
   7042 Message-ID: <1201235244-sup-5871@tangerine.lanl.gov>
   7043 
   7044 Excerpts from William Morgan's message of Thu Jan 24 21:10:50 -0700 2008:
   7045 > Reformatted excerpts from Richard Heycock's message of 2008-01-23:
   7046 > > I upgraded to version 0.4 this morning using the gem and it didn't
   7047 > > pull in the gettext gem. I guess the gem doesn't include gettext as a
   7048 > > dependency.
   7049 > 
   7050 > Weird. It's listed as a dependency in the Hoe spec, and the little test
   7051 > that I just tried right now pulled it in. Have other 0.4 installers
   7052 > had to install gettext manually?
   7053 > 
   7054 I had that problem too.  I think I just did gem install gettext and then
   7055 did the gem install sup-0.4 again.
   7056 
   7057 From johnbent@lanl.gov  Thu Jan 24 23:40:08 2008
   7058 From: johnbent@lanl.gov (John Bent)
   7059 Date: Thu, 24 Jan 2008 21:40:08 -0700
   7060 Subject: [sup-talk] missing run-mailcap
   7061 In-Reply-To: <1201222453-sup-1190@spooky.local>
   7062 References: <1201019996-sup-8960@tangerine.lanl.gov>
   7063 	<1201041081-sup-6034@tangerine.lanl.gov>
   7064 	<1201210323-sup-6116@tangerine.lanl.gov>
   7065 	<1201216741-sup-4105@south>
   7066 	<1201218489-sup-3542@tangerine.lanl.gov>
   7067 	<1201220092-sup-8263@south> <1201222453-sup-1190@spooky.local>
   7068 Message-ID: <1201235901-sup-7426@tangerine.lanl.gov>
   7069 
   7070 Excerpts from Grant Hollingworth's message of Thu Jan 24 17:57:50 -0700 2008:
   7071 > * William Morgan [Thu Jan 24 19:17:17 -0500 2008]:
   7072 > > If open is a standard OS X command, then I will add some code to
   7073 > > auto-detect it at some point.
   7074 > 
   7075 > It is. Unfortunately, you can tell it which application to use, but
   7076 > not which MIME type.
   7077 
   7078 True, but if it has the correct extension (which it does in 0.4), you 
   7079 don't need to tell it anything.  
   7080 
   7081 That's great that I don't need to fake run-mailcap since there's a hook.
   7082 
   7083 From wmorgan-sup@masanjin.net  Fri Jan 25 00:04:30 2008
   7084 From: wmorgan-sup@masanjin.net (William Morgan)
   7085 Date: Thu, 24 Jan 2008 21:04:30 -0800
   7086 Subject: [sup-talk] sup crash on tab completion
   7087 In-Reply-To: <20080123192521.GA30955@manheim.library.drexel.edu>
   7088 References: <ad5e29c50801182121k7299b14anf352653d648d4342@mail.gmail.com>
   7089 	<1200987490-sup-7392@south> <1200994656-sup-4998@tomsk>
   7090 	<1201072070-sup-2323@south>
   7091 	<20080123192521.GA30955@manheim.library.drexel.edu>
   7092 Message-ID: <1201237209-sup-6966@south>
   7093 
   7094 Reformatted excerpts from Gabriel Sean Farrell's message of 2008-01-23:
   7095 > Using Ferret's LetterAnalyzer on the "from" and "to" fields should do
   7096 > this for you (i.e., create the appropriate tokens).  I've stuck it in
   7097 > the code, but I haven't been able to make it work.  Something to do
   7098 > with the twice-over query parsing, I think.
   7099 
   7100 I don't think we even need to be so sophisticated. Check out commits
   7101 d09d4afbeb035c497f3682559ecb30ab42c009c6 and
   7102 360e105c0d08a5765b23c37b2026bff586b3d136 which I just merged into next.
   7103 
   7104 You should be able to search the from: field with email address LHSes
   7105 and first and last names.
   7106 
   7107 Of course you will need to run sup-sync --all to reindex the sources
   7108 you're interested in, if you want to apply this retroactively.
   7109 
   7110 
   7111 -- 
   7112 William <wmorgan-sup at masanjin.net>
   7113 
   7114 From wmorgan-sup@masanjin.net  Fri Jan 25 00:08:30 2008
   7115 From: wmorgan-sup@masanjin.net (William Morgan)
   7116 Date: Thu, 24 Jan 2008 21:08:30 -0800
   7117 Subject: [sup-talk] new in next: thread joining and better quotes
   7118 In-Reply-To: <1200533604-sup-2015@south>
   7119 References: <1200533604-sup-2015@south>
   7120 Message-ID: <1201237691-sup-3721@south>
   7121 
   7122 Reformatted excerpts from William Morgan's message of 2008-01-16:
   7123 > Also, you can now select multiple threads and press '#' to join them
   7124 > into one thread. Once you write this back to index, there's no good
   7125 > way to split them apart besides sup-syncing, so be careful.
   7126 
   7127 Hm, this doesn't seem to always work...
   7128 
   7129 -- 
   7130 William <wmorgan-sup at masanjin.net>
   7131 
   7132 From wmorgan-sup@masanjin.net  Fri Jan 25 00:14:01 2008
   7133 From: wmorgan-sup@masanjin.net (William Morgan)
   7134 Date: Thu, 24 Jan 2008 21:14:01 -0800
   7135 Subject: [sup-talk] [PATCH] modulo the file size in a maildir,
   7136 	so it's <= 7 digits.
   7137 In-Reply-To: <1201081580-sup-6798@tomsk>
   7138 References: <1200646334-sup-3256@archie> <1200970931-sup-8284@south>
   7139 	<1201034511-sup-3452@tomsk> <1201065536-sup-7142@south>
   7140 	<1201081580-sup-6798@tomsk>
   7141 Message-ID: <1201237734-sup-3305@south>
   7142 
   7143 Reformatted excerpts from Marcus Williams's message of 2008-01-23:
   7144 > If you store the id in the ferret index, is it quick enough just to
   7145 > use ferret to tell you if its there? That way an id could be a string
   7146 > and could be tracked by the source via ferret (a source would just
   7147 > have to guarantee its unique when combined with the source id).
   7148 
   7149 I don't think so. I haven't tested this empirically, and Ferret is
   7150 pretty darn fast, but it comes down to this: if we have to perform an
   7151 operation a number of times that scales linearly with the number of
   7152 messages in a mailstore (which unfortunately we do), that operation
   7153 shouldn't be something like "do a search on a search engine". In fact,
   7154 if the make_id call /is/ actually slower than a Ferret search, and
   7155 that's the bottleneck, we can rewrite that with RubyInline or something
   7156 and there's no way Ferret will be faster than that.
   7157 
   7158 > Off on a slight tangent - I cant get any maildir working with sup
   7159 > here. I added a maildir to my sources list and it gets scanned as
   7160 > expected but nothing gets into the index. I'm wondering whether this
   7161 > is as a result of the id function.
   7162 
   7163 Is this with Jeff's fix for the id?
   7164 
   7165 -- 
   7166 William <wmorgan-sup at masanjin.net>
   7167 
   7168 From johnbent@lanl.gov  Fri Jan 25 00:13:22 2008
   7169 From: johnbent@lanl.gov (John Bent)
   7170 Date: Thu, 24 Jan 2008 22:13:22 -0700
   7171 Subject: [sup-talk] archived threads not returning to inbox
   7172 In-Reply-To: <1201229597-sup-9416@south>
   7173 References: <1201129847-sup-6955@tangerine.lanl.gov>
   7174 	<1201229597-sup-9416@south>
   7175 Message-ID: <1201237649-sup-2371@tangerine.lanl.gov>
   7176 
   7177 Excerpts from William Morgan's message of Thu Jan 24 19:54:02 -0700 2008:
   7178 > Reformatted excerpts from John Bent's message of 2008-01-23:
   7179 > > I'm running sup-0.4 since this morning and I've noticed that archived
   7180 > > threads that get new messages are not reappearing in my inbox.  I do
   7181 > > see the expected message: Loaded 1 new message, 1 to inbox. but the
   7182 > > thread doesn't reappear.  If I quit and restart sup, then the thread
   7183 > > does correctly reappear in the inbox.
   7184 > 
   7185 > I think I've fixed this in next, with commit
   7186 > 81794a14968410f70ee0563afcf3b1e7e90be101.
   7187 > 
   7188 > Care to try?
   7189 > 
   7190 It works.  Thanks!
   7191 
   7192 From johnbent@lanl.gov  Fri Jan 25 00:18:02 2008
   7193 From: johnbent@lanl.gov (John Bent)
   7194 Date: Thu, 24 Jan 2008 22:18:02 -0700
   7195 Subject: [sup-talk] new in next: thread joining and better quotes
   7196 In-Reply-To: <1201237691-sup-3721@south>
   7197 References: <1200533604-sup-2015@south> <1201237691-sup-3721@south>
   7198 Message-ID: <1201238225-sup-5297@tangerine.lanl.gov>
   7199 
   7200 Excerpts from William Morgan's message of Thu Jan 24 22:08:30 -0700 2008:
   7201 > Reformatted excerpts from William Morgan's message of 2008-01-16:
   7202 > > Also, you can now select multiple threads and press '#' to join them
   7203 > > into one thread. Once you write this back to index, there's no good
   7204 > > way to split them apart besides sup-syncing, so be careful.
   7205 > 
   7206 > Hm, this doesn't seem to always work...
   7207 > 
   7208 I just tried and it worked.  This is a really nice feature.  I didn't
   7209 notice it before in the help menu and I've been wanting this feature.
   7210 
   7211 From wmorgan-sup@masanjin.net  Fri Jan 25 00:20:26 2008
   7212 From: wmorgan-sup@masanjin.net (William Morgan)
   7213 Date: Thu, 24 Jan 2008 21:20:26 -0800
   7214 Subject: [sup-talk] indexed, but not
   7215 In-Reply-To: <1201218203-sup-3803@south>
   7216 References: <1201164353-sup-1929@buckwheat> <1201218203-sup-3803@south>
   7217 Message-ID: <1201238392-sup-9049@south>
   7218 
   7219 Also, make sure you're running Sup 0.4. Your User-Agent header is
   7220 claiming 0.3.
   7221 
   7222 -- 
   7223 William <wmorgan-sup at masanjin.net>
   7224 
   7225 From wmorgan-sup@masanjin.net  Fri Jan 25 00:27:14 2008
   7226 From: wmorgan-sup@masanjin.net (William Morgan)
   7227 Date: Thu, 24 Jan 2008 21:27:14 -0800
   7228 Subject: [sup-talk] [PATCH] return sources in id-order,
   7229 	with non-archived sources first
   7230 In-Reply-To: <1200675726-sup-4860@spooky.local>
   7231 References: <1200675726-sup-4860@spooky.local>
   7232 Message-ID: <1201238649-sup-7598@south>
   7233 
   7234 Reformatted excerpts from Grant Hollingworth's message of 2008-01-18:
   7235 > To speed up the user's view of polling, deal with sources that affect
   7236 > the inbox before (for example) large mailing lists. It seemed tidier
   7237 > to implement this in Index rather than PollManager.
   7238 
   7239 Very nice. One minor comment below.
   7240 
   7241 > I changed "@sources.values" to "sources" in some other methods for
   7242 > clarity, which I think in this case outweighs lost efficiency.
   7243 
   7244 Sounds good. And efficiency is the least of our concerns!
   7245 
   7246 > +  def sources
   7247 > +    ## favour the inbox by listing non-archived sources first
   7248 > +    @sources.values.sort_by {|s| s.id }.partition {|s| !s.archived? }.flatten
   7249 > +  end
   7250 
   7251 Why bother sorting by id at all? Why not just something like:
   7252   @sources.values.sort_by { |s| s.archived? ? 0 : 1 }
   7253 
   7254 
   7255 -- 
   7256 William <wmorgan-sup at masanjin.net>
   7257 
   7258 From wmorgan-sup@masanjin.net  Fri Jan 25 00:35:53 2008
   7259 From: wmorgan-sup@masanjin.net (William Morgan)
   7260 Date: Thu, 24 Jan 2008 21:35:53 -0800
   7261 Subject: [sup-talk] [PATCH] Allow user to show all matching threads
   7262 In-Reply-To: <1200770173-sup-671@tomsk>
   7263 References: <1200770173-sup-671@tomsk>
   7264 Message-ID: <1201239283-sup-9420@south>
   7265 
   7266 Reformatted excerpts from Marcus Williams's message of 2008-01-19:
   7267 > This adds a double keypress action "!!" to load all threads in the
   7268 > current search/view. Obviously this can return a lot of threads, but
   7269 > coupled with the cancel search option it is now easy to stop.
   7270 
   7271 Merged into next!
   7272 
   7273 -- 
   7274 William <wmorgan-sup at masanjin.net>
   7275 
   7276 From rgh@roughage.com.au  Fri Jan 25 00:46:11 2008
   7277 From: rgh@roughage.com.au (Richard Heycock)
   7278 Date: Fri, 25 Jan 2008 16:46:11 +1100
   7279 Subject: [sup-talk] gem dependency for sup 0.4
   7280 In-Reply-To: <1201235244-sup-5871@tangerine.lanl.gov>
   7281 References: <1201118863-sup-4011@wrasse> <1201234180-sup-4502@south>
   7282 	<1201235244-sup-5871@tangerine.lanl.gov>
   7283 Message-ID: <1201239926-sup-3569@wrasse>
   7284 
   7285 Excerpts from John Bent's message of Fri Jan 25 15:28:38 +1100 2008:
   7286 > Excerpts from William Morgan's message of Thu Jan 24 21:10:50 -0700 2008:
   7287 > > Reformatted excerpts from Richard Heycock's message of 2008-01-23:
   7288 > > > I upgraded to version 0.4 this morning using the gem and it didn't
   7289 > > > pull in the gettext gem. I guess the gem doesn't include gettext as a
   7290 > > > dependency.
   7291 > > 
   7292 > > Weird. It's listed as a dependency in the Hoe spec, and the little test
   7293 > > that I just tried right now pulled it in. Have other 0.4 installers
   7294 > > had to install gettext manually?
   7295 > > 
   7296 > I had that problem too.  I think I just did gem install gettext and then
   7297 > did the gem install sup-0.4 again.
   7298 
   7299 Likewise. I installed gettext and everything was fine after that.
   7300 
   7301 rgh
   7302 
   7303 -- 
   7304 You're worried criminals will continue to penetrate into cyberspace, and
   7305 I'm worried complexity, poor design and mismanagement will be there to meet
   7306 them - Marcus Ranum
   7307 
   7308 From wmorgan-sup@masanjin.net  Fri Jan 25 00:59:43 2008
   7309 From: wmorgan-sup@masanjin.net (William Morgan)
   7310 Date: Thu, 24 Jan 2008 21:59:43 -0800
   7311 Subject: [sup-talk] 0.5 thoughts
   7312 Message-ID: <1201240480-sup-1977@south>
   7313 
   7314 Here are a couple things I'm interested in working on for an 0.5
   7315 release:
   7316 
   7317 - Maildir speedups
   7318 - IMAP connection sharing
   7319 - Mbox filehandle closing (currently every mbox gets its own filehandle
   7320   which is kept open for the duration of the program)
   7321 - Date conversion to the local timezone, for sorting and display
   7322 - Configurable colors. Everyone's favorite.
   7323 - Notes. Like draft emails without a recipient, but treated specially
   7324   by the UI. Never sent; just for local use.
   7325 - gpg-hook for auto-selecting sign/encrypt/both based on whatever you
   7326   want.
   7327 
   7328 Any critical issues for people that they'd like to see addressed?
   7329 
   7330 
   7331 -- 
   7332 William <wmorgan-sup at masanjin.net>
   7333 
   7334 From johnbent@lanl.gov  Fri Jan 25 01:22:54 2008
   7335 From: johnbent@lanl.gov (John Bent)
   7336 Date: Thu, 24 Jan 2008 23:22:54 -0700
   7337 Subject: [sup-talk] 0.5 thoughts
   7338 In-Reply-To: <1201240480-sup-1977@south>
   7339 References: <1201240480-sup-1977@south>
   7340 Message-ID: <1201241373-sup-5327@tangerine.lanl.gov>
   7341 
   7342 Excerpts from William Morgan's message of Thu Jan 24 22:59:43 -0700 2008:
   7343 > Here are a couple things I'm interested in working on for an 0.5
   7344 > release:
   7345 > 
   7346 > - Mbox filehandle closing (currently every mbox gets its own filehandle
   7347 >   which is kept open for the duration of the program)
   7348 Is this a good thing?  I'd rather set my open filehandle limit really high
   7349 and have them kept open.  Isn't it slower to constantly have to reopen them?
   7350 Well, I guess the unusual ones certainly don't need an open handle.
   7351 
   7352 > - Date conversion to the local timezone, for sorting and display
   7353 Yeah, there's something wrong with my timestamps.  Everything shows up as
   7354 PM.  The time is right but it always says PM in the display...
   7355 
   7356 > - Notes. Like draft emails without a recipient, but treated specially
   7357 >   by the UI. Never sent; just for local use.
   7358 > - gpg-hook for auto-selecting sign/encrypt/both based on whatever you
   7359 >   want.
   7360 > 
   7361 These would be nice.
   7362 
   7363 > Any critical issues for people that they'd like to see addressed?
   7364 > 
   7365 I don't know what your philosophical feelings are about this but it 
   7366 might be nice to combine IM into sup.  It'd be a bunch more protocols 
   7367 to incorporate and the model might be completely different though.
   7368 
   7369 Also, is there a way to go from one thread-view directly to another?  I always
   7370 have to 'x' to go back to the search-results-mode or the inbox-mode and   
   7371 then scroll to the message I want.  I thought 'n' and 'p' would do this
   7372 but I've never been able to get them to do anything for me.  Maybe I'm
   7373 just not understanding something?  In case it's not clear, I want the 
   7374 functionality of the 'Newer' and 'Older' links in gmail.
   7375 
   7376 Thanks again for all your hard work.  I'm very happy about sup; it's made me
   7377 much more productive and much better organized.  I really appreciate the
   7378 efforts of you and all the other contributors.
   7379 
   7380 From gsf@fruct.us  Fri Jan 25 02:50:12 2008
   7381 From: gsf@fruct.us (Gabriel Sean Farrell)
   7382 Date: Fri, 25 Jan 2008 02:50:12 -0500
   7383 Subject: [sup-talk] return-path
   7384 In-Reply-To: <1201233750-sup-2616@south>
   7385 References: <20080123211318.GB31529@manheim.library.drexel.edu>
   7386 	<1201125726-sup-1297@south>
   7387 	<20080123224712.GB32356@manheim.library.drexel.edu>
   7388 	<1201233750-sup-2616@south>
   7389 Message-ID: <1201246425-sup-9409@magnum>
   7390 
   7391 Excerpts from William Morgan's message of Thu Jan 24 23:03:58 -0500 2008:
   7392 > I don't think so... you can apply the patch below and see exactly what
   7393 > Sup is sending sendmail. In my case, that header is intact. So it must
   7394 > be getting overwritten somewhere else in the system.
   7395 > 
   7396 > There's some crazy interaction between this header, the From: and
   7397 > Sender: headers, and the -f option of sendmail. Maybe you should use a
   7398 > -f with sendmail (in your ~/.sup/config.yaml file)? Did you have a
   7399 > particular way of calling sendmail with Mutt?
   7400 
   7401 Right you are about the crazy interaction.  It's not clear to me how
   7402 Mutt is calling sendmail, but now I'm guessing all that the "set
   7403 envelope_from=yes" does in mutt is add the -f flag followed by one's
   7404 "from" email to the call to sendmail.  
   7405 
   7406 If I do that in my ~/.sup/config.yaml, the return-path is set
   7407 correctly (at least, it was in my tests.  How does this message
   7408 look?!).  In fact, I believe it's set correctly even if I don't set
   7409 the return-path in ~/.sup/hooks/edit-before.rb or patch lib/mbox.rb.
   7410 In other words, all that needs to be done to fix my problem is the
   7411 addition of -f <email> to the sendmail call.  Maybe it could be an
   7412 option in the initial account setup?
   7413 
   7414 Oh, and thanks for all the work you're doing on sup, William.  Really
   7415 great stuff.
   7416 
   7417 From nicolas.pouillard@gmail.com  Fri Jan 25 03:50:20 2008
   7418 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   7419 Date: Fri, 25 Jan 2008 09:50:20 +0100
   7420 Subject: [sup-talk] header cache
   7421 In-Reply-To: <1201230428-sup-8760@south>
   7422 References: <704d6aa20801150454j635ed24p63fd544579c6e148@mail.gmail.com>
   7423 	<1200453820-sup-4777@south>
   7424 	<1200514969-sup-7541@clarabella.clarabella>
   7425 	<1200516410-sup-1963@south>
   7426 	<1200519319-sup-915@clarabella.clarabella>
   7427 	<1200557516-sup-8444@ausone.local>
   7428 	<1200570003-sup-1529@clarabella.clarabella>
   7429 	<1200581670-sup-9273@ausone.local> <1200969359-sup-2816@south>
   7430 	<1200990925-sup-1529@ausone.local> <1201071069-sup-6394@south>
   7431 	<1201079068-sup-438@ausone.inria.fr> <1201230428-sup-8760@south>
   7432 Message-ID: <1201250434-sup-4567@ausone.local>
   7433 
   7434 Excerpts from William Morgan's message of Fri Jan 25 04:28:07 +0100 2008:
   7435 > [Sending to list. We accidentally fell off.]
   7436 > 
   7437 > Reformatted excerpts from nicolas.pouillard's message of 2008-01-23:
   7438 > > Excerpts from William Morgan's message of Wed Jan 23 08:04:27 +0100 2008:
   7439 > > > Reformatted excerpts from nicolas.pouillard's message of 2008-01-22:
   7440 > > > > Looking  at  the  code  'scan_mailbox' seems to be called quite
   7441 > > > > often (but not more than every 30 seconds).
   7442 > > > 
   7443 > > > Oops, you're exactly right.
   7444 > > > 
   7445 > > > > I'm  wondering  if  peeking  a  file  in  a very large directory
   7446 > > > > is as fast as seeking to a particular offset in a large file?
   7447 > > > 
   7448 > > > Actually, we could short-circuit this check trivially by comparing
   7449 > > > the directories' mtimes. Then this really shouldn't be a slowdown.
   7450 > > 
   7451 > > You will still scan it at when receiving new mails...
   7452 > 
   7453 > That's true. But some kind of scan is unavoidable. We need to know which
   7454 > files are new, and one way or another that will involve pulling in the
   7455 > whole list of files.
   7456 > 
   7457 > I think we can do a couple easy things to speed up Maildir dramatically.
   7458 > Skip the scan when the mtime is unchanged, maybe increase the delay,
   7459 > stop repeating make_id calls for messages we've already processed...
   7460 > basically the current implementation is a little naive and I'm not ready
   7461 > to give up on Maildir quite yet.
   7462 
   7463 What about having two directories? new and cur for instance :)
   7464 You always have to scan new and move them to cur when they are in the index.
   7465 
   7466 > > What about having a custom mail box format for sup?
   7467 > > 
   7468 > > For  instance  I think the only drawback (in the context of using sup)
   7469 > > of mbox is when you often backup you mails. Why not having a bunch of
   7470 > > mbox using dates inbox-12-2008.mbox? Or a directory where file names
   7471 > > are sup message ids?
   7472 > 
   7473 > What about mbox makes it difficult to do backups?
   7474 
   7475 Every  hour,  if  my  backup  drive is plugged in, my OS make a new tree of my
   7476 entire  disk  by  hard  linking  what's  haven't  change and by coping others.
   7477 However  this  behave particularly bad with files that just keep growing every
   7478 hour ~400MB at this day.
   7479 
   7480 That's  why  splitting  out  my  big  mail  box in small ones, let's say every
   7481 month, would better behave w.r.t. to backups.
   7482 
   7483 > The amount of work for a custom format seems really high. (Look at all
   7484 > the design considerations that went into Maildir!) And ultimately your
   7485 > MTA has to be able to write that format, or there has to be a conversion
   7486 > script, which has to be run every 30 seconds, and has to be fast, and
   7487 > then we have the same set of problems we have now but in a different
   7488 > place.
   7489 
   7490 Your  MTA  call a MDA like maildrop, and making a specific maildrop in ruby is
   7491 pretty easy.
   7492 
   7493 Best regards,
   7494 
   7495 -- 
   7496 Nicolas Pouillard aka Ertai
   7497 -------------- next part --------------
   7498 A non-text attachment was scrubbed...
   7499 Name: signature.asc
   7500 Type: application/pgp-signature
   7501 Size: 186 bytes
   7502 Desc: not available
   7503 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080125/cd24b771/attachment.bin 
   7504 
   7505 From sho.fukamachi@gmail.com  Fri Jan 25 05:35:30 2008
   7506 From: sho.fukamachi@gmail.com (Sho Fukamachi)
   7507 Date: Fri, 25 Jan 2008 21:35:30 +1100
   7508 Subject: [sup-talk] NoMethodError running sup-config
   7509 In-Reply-To: <1201220266-sup-191@south>
   7510 References: <B47C5822-EFB0-4680-9932-F8C2FAC7C78A@gmail.com>
   7511 	<1201220266-sup-191@south>
   7512 Message-ID: <DDD895BC-24BA-45F4-A895-2647E83D41DB@gmail.com>
   7513 
   7514 On 25/01/2008, at 11:26 AM, William Morgan wrote:
   7515 
   7516 > Nope, this is an Official Bug. Sorry! The following minor patch should
   7517 > fix it. Git master and next have been updated with this.
   7518 
   7519 Great, I cloned it and ran from there. The problem is fixed, but  
   7520 exposed another problem when it tried to do a sup-add, which also  
   7521 errored out. I was able, however, to do the sup-add manually without  
   7522 further issue. Weirdly, my friend also running leopard didn't have any  
   7523 issue at all. Maybe a gem I have installed? She was running stock, I  
   7524 have a billion gems installed for dev work.
   7525 
   7526 Anyway, thanks for your help! I really like sup .. it's a joy to use.
   7527 
   7528 One more thing: there seem to be pretty severe display errors when I  
   7529 display (and scroll through) japanese mail. I'm not really sure how to  
   7530 go about troubleshooting what's wrong. Shall I make a new thread here,  
   7531 or send you the mail I have in mind which exposes the problem directly?
   7532 
   7533 thanks!
   7534 
   7535 Sho
   7536 -------------- next part --------------
   7537 A non-text attachment was scrubbed...
   7538 Name: smime.p7s
   7539 Type: application/pkcs7-signature
   7540 Size: 2429 bytes
   7541 Desc: not available
   7542 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080125/9ce505ed/attachment.bin 
   7543 
   7544 From sho.fukamachi@gmail.com  Fri Jan 25 06:12:18 2008
   7545 From: sho.fukamachi@gmail.com (Sho Fukamachi)
   7546 Date: Fri, 25 Jan 2008 22:12:18 +1100
   7547 Subject: [sup-talk] 0.5 thoughts
   7548 In-Reply-To: <1201240480-sup-1977@south>
   7549 References: <1201240480-sup-1977@south>
   7550 Message-ID: <288A3057-1B27-4BDF-9B96-F860CA73C305@gmail.com>
   7551 
   7552 
   7553 On 25/01/2008, at 4:59 PM, William Morgan wrote:
   7554 
   7555 > Any critical issues for people that they'd like to see addressed?
   7556 
   7557 Hm, wouldn't call them critical but here are some of my thoughts:
   7558 
   7559 - detect locale of system, or offer a choice, for VIM spellcheck. It's  
   7560 currently hardcoded to en_us - detect from system somehow?
   7561 - detect when kill has failed if launched with an extant .sup/lock -  
   7562 offer to delete the lockfile? If sup crashes, it's currently  
   7563 impossible to reload without manually deleting the file. Maybe offer  
   7564 to do it after a couple of tries
   7565 - better unicode (in and out) support - search in buffer doesn't work  
   7566 at all, and scrolling through a mail with a lot of unicode causes  
   7567 severe graphical artifacts
   7568 - at least a cursory effort to not store login credentials in  
   7569 plaintext .. how to store them whilst retaining simplicity and  
   7570 platform independence is an interesting question. Not sure how far sup  
   7571 (or anyone really) wants to go down that particular rabbit hole
   7572 - attachments/downloads folder? again, I wonder how this fits in with  
   7573 sup's philosophy
   7574 - ability to send using something other than local sendmail? for  
   7575 remote mbox, we have a ssh session open and everything .. and dynamic  
   7576 IPs are often RBL'ed
   7577 - DB store? in particular, sqlite? especially for user config ...?  
   7578 with a view to multiuser access sans user directories & setup  
   7579 files.....?
   7580 - Launch cargo to high orbit for less than $100/ton and cook a 5-star  
   7581 gourmet bouillabaisse from garden scraps? ok ok ok i'll stop now ..!
   7582 
   7583 thanks : )
   7584 
   7585 Sho
   7586 -------------- next part --------------
   7587 A non-text attachment was scrubbed...
   7588 Name: smime.p7s
   7589 Type: application/pkcs7-signature
   7590 Size: 2429 bytes
   7591 Desc: not available
   7592 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080125/9abe7b64/attachment.bin 
   7593 
   7594 From nicolas.pouillard@gmail.com  Fri Jan 25 06:26:08 2008
   7595 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   7596 Date: Fri, 25 Jan 2008 12:26:08 +0100
   7597 Subject: [sup-talk] 0.5 thoughts
   7598 In-Reply-To: <288A3057-1B27-4BDF-9B96-F860CA73C305@gmail.com>
   7599 References: <1201240480-sup-1977@south>
   7600 	<288A3057-1B27-4BDF-9B96-F860CA73C305@gmail.com>
   7601 Message-ID: <1201260309-sup-8211@ausone.local>
   7602 
   7603 Excerpts from Sho Fukamachi's message of Fri Jan 25 12:12:18 +0100 2008:
   7604 > 
   7605 > On 25/01/2008, at 4:59 PM, William Morgan wrote:
   7606 > 
   7607 > > Any critical issues for people that they'd like to see addressed?
   7608 > 
   7609 > Hm, wouldn't call them critical but here are some of my thoughts:
   7610 > 
   7611 > - detect locale of system, or offer a choice, for VIM spellcheck. It's  
   7612 > currently hardcoded to en_us - detect from system somehow?
   7613 
   7614 +1
   7615 
   7616 > - detect when kill has failed if launched with an extant .sup/lock -  
   7617 > offer to delete the lockfile? If sup crashes, it's currently  
   7618 > impossible to reload without manually deleting the file. Maybe offer  
   7619 > to do it after a couple of tries
   7620 
   7621 +1
   7622 
   7623 > - better unicode (in and out) support - search in buffer doesn't work  
   7624 > at all, and scrolling through a mail with a lot of unicode causes  
   7625 > severe graphical artifacts
   7626 
   7627 +1
   7628 
   7629 Best regards,
   7630 
   7631 -- 
   7632 Nicolas Pouillard aka Ertai
   7633 -------------- next part --------------
   7634 A non-text attachment was scrubbed...
   7635 Name: signature.asc
   7636 Type: application/pgp-signature
   7637 Size: 186 bytes
   7638 Desc: not available
   7639 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080125/35ed436f/attachment.bin 
   7640 
   7641 From marko.myllymaki@iki.fi  Fri Jan 25 07:09:53 2008
   7642 From: marko.myllymaki@iki.fi (Marko Myllymäki)
   7643 Date: Fri, 25 Jan 2008 14:09:53 +0200
   7644 Subject: [sup-talk] char. encoding problems - garbled output
   7645 In-Reply-To: <1200763427-sup-2564@south>
   7646 References: <478F4F67.1040405@iki.fi> <1200763427-sup-2564@south>
   7647 Message-ID: <1201262947-sup-9132@sieni>
   7648 
   7649 Excerpts from William Morgan's message of Sat Jan 19 19:25:00 +0200 2008:
   7650 > Does the following patch help?
   7651 
   7652 Sorry, I'm really Sup-newbie and I don't know how to apply these patches yet :)
   7653 ... figuring it out later.
   7654 
   7655 I think the problems are mainly caused by the wide characters (whatever that
   7656 means, I guess multibyte codes). I'm using Sup as my main email-client now, 0.4
   7657 works quite nicely. When I have time I try to dig into these character things
   7658 and read more your devel notes.
   7659 
   7660 From vasudeva@linkswarm.com  Fri Jan 25 08:22:52 2008
   7661 From: vasudeva@linkswarm.com (vasudeva)
   7662 Date: Fri, 25 Jan 2008 08:22:52 -0500
   7663 Subject: [sup-talk] 0.5 thoughts
   7664 In-Reply-To: <1201240480-sup-1977@south>
   7665 References: <1201240480-sup-1977@south>
   7666 Message-ID: <1201267105-sup-1149@lenin>
   7667 
   7668 Excerpts from William Morgan's message of Fri Jan 25 00:59:43 -0500 2008:
   7669 > Here are a couple things I'm interested in working on for an 0.5
   7670 > release:
   7671 > 
   7672 > - Notes. Like draft emails without a recipient, but treated specially
   7673 >   by the UI. Never sent; just for local use.
   7674 
   7675 If we're interested in 'Getting Things Done', then a nice related
   7676 feature might be the ability to tell sup not to exit on a 'q' keypress
   7677 if there are buffers open marked TODO (or whatever). One of the things I
   7678 like about sup is the multi-window approach, because instead of making
   7679 me feel *bad* about having lots of half-finished work, it makes me feel
   7680 as though it's reasonable I might just have it going in the background.
   7681 I find this mis-truth appealing.
   7682 
   7683 Problem is, one 'q' hit (very easily done, ex-mutt user, etc) and I've
   7684 lost my TODO state.
   7685 
   7686 -- 
   7687 linkswarm.com :: Collaborative Insolence
   7688 vasudeva.linkswarm.com/gallery :: For The Faint of Heart
   7689 
   7690 
   7691 From johnbent@lanl.gov  Fri Jan 25 09:46:12 2008
   7692 From: johnbent@lanl.gov (John Bent)
   7693 Date: Fri, 25 Jan 2008 07:46:12 -0700
   7694 Subject: [sup-talk] 0.5 thoughts
   7695 In-Reply-To: <1201240480-sup-1977@south>
   7696 References: <1201240480-sup-1977@south>
   7697 Message-ID: <1201272308-sup-8434@tangerine.lanl.gov>
   7698 
   7699 Excerpts from William Morgan's message of Thu Jan 24 22:59:43 -0700 2008:
   7700 > Here are a couple things I'm interested in working on for an 0.5
   7701 > release:
   7702 > 
   7703 > Any critical issues for people that they'd like to see addressed?
   7704 > 
   7705 Not critical but in reading about ferret, I saw that it can search and 
   7706 index various mime-types such as pdf.  Allowing search into attachments
   7707 would be very cool.
   7708 
   7709 From grant@antiflux.org  Fri Jan 25 10:04:22 2008
   7710 From: grant@antiflux.org (Grant Hollingworth)
   7711 Date: Fri, 25 Jan 2008 10:04:22 -0500
   7712 Subject: [sup-talk] [PATCH] return sources in id-order,
   7713 	with non-archived sources first
   7714 In-Reply-To: <1201238649-sup-7598@south>
   7715 References: <1200675726-sup-4860@spooky.local> <1201238649-sup-7598@south>
   7716 Message-ID: <1201272768-sup-3795@spooky.local>
   7717 
   7718 * William Morgan [Fri Jan 25 00:27:14 -0500 2008]:
   7719 > > +  def sources
   7720 > > +    ## favour the inbox by listing non-archived sources first
   7721 > > +    @sources.values.sort_by {|s| s.id }.partition {|s| !s.archived? }.flatten
   7722 > > +  end
   7723 > 
   7724 > Why bother sorting by id at all? Why not just something like:
   7725 >   @sources.values.sort_by { |s| s.archived? ? 0 : 1 }
   7726 
   7727 I probably did that because it's likely that an inbox is the first source.
   7728 It's not really necessary. I think partition is clearer than sort_by in this
   7729 case.
   7730 
   7731 How about changing @sources to an array?
   7732 
   7733 From wmorgan-sup@masanjin.net  Fri Jan 25 11:33:30 2008
   7734 From: wmorgan-sup@masanjin.net (William Morgan)
   7735 Date: Fri, 25 Jan 2008 08:33:30 -0800
   7736 Subject: [sup-talk] gem dependency for sup 0.4
   7737 In-Reply-To: <1201239926-sup-3569@wrasse>
   7738 References: <1201118863-sup-4011@wrasse> <1201234180-sup-4502@south>
   7739 	<1201235244-sup-5871@tangerine.lanl.gov>
   7740 	<1201239926-sup-3569@wrasse>
   7741 Message-ID: <1201278788-sup-3409@south>
   7742 
   7743 Reformatted excerpts from Richard Heycock's message of 2008-01-24:
   7744 > Likewise. I installed gettext and everything was fine after that.
   7745 
   7746 When you guys to a "gem dependency sup", do you see gettext listed?
   7747 
   7748 -- 
   7749 William <wmorgan-sup at masanjin.net>
   7750 
   7751 From wmorgan-sup@masanjin.net  Fri Jan 25 11:52:20 2008
   7752 From: wmorgan-sup@masanjin.net (William Morgan)
   7753 Date: Fri, 25 Jan 2008 08:52:20 -0800
   7754 Subject: [sup-talk] 0.5 thoughts
   7755 In-Reply-To: <1201241373-sup-5327@tangerine.lanl.gov>
   7756 References: <1201240480-sup-1977@south>
   7757 	<1201241373-sup-5327@tangerine.lanl.gov>
   7758 Message-ID: <1201279056-sup-4012@south>
   7759 
   7760 Reformatted excerpts from John Bent's message of 2008-01-24:
   7761 > Excerpts from William Morgan's message of Thu Jan 24 22:59:43 -0700 2008:
   7762 > > - Mbox filehandle closing (currently every mbox gets its own
   7763 > > filehandle which is kept open for the duration of the program)
   7764 >
   7765 > Is this a good thing?  I'd rather set my open filehandle limit really
   7766 > high and have them kept open.  Isn't it slower to constantly have to
   7767 > reopen them?  Well, I guess the unusual ones certainly don't need an
   7768 > open handle.
   7769 
   7770 It will introduce a very minor slowdown, but I don't think it will
   7771 really be that noticeable. And the current approach basically prevents
   7772 people from having large numbers of mbox sources, which is a little
   7773 contrary to the Sup philosophy of "put every email you've ever read in
   7774 one program."
   7775 
   7776 > > - Date conversion to the local timezone, for sorting and display
   7777 > Yeah, there's something wrong with my timestamps.  Everything shows up
   7778 > as PM.  The time is right but it always says PM in the display...
   7779 
   7780 That's weird. Is this in thread-index-mode? What about when you expand
   7781 the header ('h') in thread-view-mode? Does the time appear correctly?
   7782 
   7783 > I don't know what your philosophical feelings are about this but it
   7784 > might be nice to combine IM into sup.  It'd be a bunch more protocols
   7785 > to incorporate and the model might be completely different though.
   7786 
   7787 Iiiinteresting. Making Sup an IM client proper is almost certainly
   7788 a world of misery. Getting the current textfield stuff working was a
   7789 goddamn nightmare, and it's still very wonky. It does seem a little
   7790 weird, philosophically speaking, but I wouldn't throw such code away if
   7791 it were dumped on my lap. :)
   7792 
   7793 That said, what WOULD be easy is to treat IM logs as a message source,
   7794 and put conversations in the index, gmail style.
   7795 
   7796 > Also, is there a way to go from one thread-view directly to another?
   7797 > I always have to 'x' to go back to the search-results-mode or the
   7798 > inbox-mode and then scroll to the message I want.
   7799 
   7800 Try the comma-commands. ",n", etc.
   7801 
   7802 > I thought 'n' and 'p' would do this but I've never been able to get
   7803 > them to do anything for me.
   7804 
   7805 These jump between individual open messages in a thread.
   7806 
   7807 > Thanks again for all your hard work.  I'm very happy about sup; it's
   7808 > made me much more productive and much better organized.  I really
   7809 > appreciate the efforts of you and all the other contributors.
   7810 
   7811 Glad to hear it. Sup is mostly to scratch my own itch.
   7812 
   7813 
   7814 -- 
   7815 William <wmorgan-sup at masanjin.net>
   7816 
   7817 From daniel@wagner-home.com  Fri Jan 25 13:16:33 2008
   7818 From: daniel@wagner-home.com (Daniel Wagner)
   7819 Date: Fri, 25 Jan 2008 10:16:33 -0800
   7820 Subject: [sup-talk] indexed, but not
   7821 In-Reply-To: <1201238392-sup-9049@south>
   7822 References: <1201164353-sup-1929@buckwheat> <1201218203-sup-3803@south>
   7823 	<1201238392-sup-9049@south>
   7824 Message-ID: <1201284935-sup-5329@buckwheat>
   7825 
   7826 Excerpts from William Morgan's message of Thu Jan 24 21:20:26 -0800 2008:
   7827 > Also, make sure you're running Sup 0.4. Your User-Agent header is
   7828 > claiming 0.3.
   7829 
   7830 Okay, it appears in 0.4.  Weird one, thanks for the help.
   7831 ~d
   7832 
   7833 From johnbent@lanl.gov  Fri Jan 25 13:57:44 2008
   7834 From: johnbent@lanl.gov (John Bent)
   7835 Date: Fri, 25 Jan 2008 11:57:44 -0700
   7836 Subject: [sup-talk] gem dependency for sup 0.4
   7837 In-Reply-To: <1201278788-sup-3409@south>
   7838 References: <1201118863-sup-4011@wrasse> <1201234180-sup-4502@south>
   7839 	<1201235244-sup-5871@tangerine.lanl.gov>
   7840 	<1201239926-sup-3569@wrasse> <1201278788-sup-3409@south>
   7841 Message-ID: <1201287424-sup-9358@tangerine.lanl.gov>
   7842 
   7843 Excerpts from William Morgan's message of Fri Jan 25 09:33:30 -0700 2008:
   7844 > Reformatted excerpts from Richard Heycock's message of 2008-01-24:
   7845 > > Likewise. I installed gettext and everything was fine after that.
   7846 > 
   7847 > When you guys to a "gem dependency sup", do you see gettext listed?
   7848 > 
   7849 tangerine:~>gem dependency sup | egrep 'sup|gettext'
   7850 Gem sup-0.3
   7851 Gem sup-0.4
   7852   gettext (>= 0)
   7853 Gem sup-999
   7854   gettext (> 0.0.0)
   7855 
   7856 So, yes for 0.4 and 999, and no for 0.3.
   7857 
   7858 From wmorgan-sup@masanjin.net  Fri Jan 25 14:17:09 2008
   7859 From: wmorgan-sup@masanjin.net (William Morgan)
   7860 Date: Fri, 25 Jan 2008 11:17:09 -0800
   7861 Subject: [sup-talk] gem dependency for sup 0.4
   7862 In-Reply-To: <1201287424-sup-9358@tangerine.lanl.gov>
   7863 References: <1201118863-sup-4011@wrasse> <1201234180-sup-4502@south>
   7864 	<1201235244-sup-5871@tangerine.lanl.gov>
   7865 	<1201239926-sup-3569@wrasse> <1201278788-sup-3409@south>
   7866 	<1201287424-sup-9358@tangerine.lanl.gov>
   7867 Message-ID: <1201288599-sup-6491@south>
   7868 
   7869 Reformatted excerpts from John Bent's message of 2008-01-25:
   7870 > So, yes for 0.4 and 999, and no for 0.3.
   7871 
   7872 So it's in the gemspec, but not pulled in by gem install? Most
   7873 illogical.
   7874 
   7875 -- 
   7876 William <wmorgan-sup at masanjin.net>
   7877 
   7878 From nicolas.pouillard@gmail.com  Fri Jan 25 15:37:20 2008
   7879 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   7880 Date: Fri, 25 Jan 2008 21:37:20 +0100
   7881 Subject: [sup-talk] 0.5 thoughts
   7882 In-Reply-To: <1201279056-sup-4012@south>
   7883 References: <1201240480-sup-1977@south>
   7884 	<1201241373-sup-5327@tangerine.lanl.gov>
   7885 	<1201279056-sup-4012@south>
   7886 Message-ID: <1201293322-sup-3362@ausone.local>
   7887 
   7888 Excerpts from William Morgan's message of Fri Jan 25 17:52:20 +0100 2008:
   7889 > Reformatted excerpts from John Bent's message of 2008-01-24:
   7890 > > Excerpts from William Morgan's message of Thu Jan 24 22:59:43 -0700 2008:
   7891 > > > - Mbox filehandle closing (currently every mbox gets its own
   7892 > > > filehandle which is kept open for the duration of the program)
   7893 > >
   7894 > > Is this a good thing?  I'd rather set my open filehandle limit really
   7895 > > high and have them kept open.  Isn't it slower to constantly have to
   7896 > > reopen them?  Well, I guess the unusual ones certainly don't need an
   7897 > > open handle.
   7898 > 
   7899 > It will introduce a very minor slowdown, but I don't think it will
   7900 > really be that noticeable. And the current approach basically prevents
   7901 > people from having large numbers of mbox sources, which is a little
   7902 > contrary to the Sup philosophy of "put every email you've ever read in
   7903 > one program."
   7904 
   7905 I  don't get link between having a lot of mails and a lot of mbox sources, for
   7906 instance  I  have  only  one  big  mbox,  and  don't see the need for multiple
   7907 sources (apart these backup considerations).
   7908 
   7909 -- 
   7910 Nicolas Pouillard aka Ertai
   7911 -------------- next part --------------
   7912 A non-text attachment was scrubbed...
   7913 Name: signature.asc
   7914 Type: application/pgp-signature
   7915 Size: 186 bytes
   7916 Desc: not available
   7917 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080125/cd384fcb/attachment.bin 
   7918 
   7919 From johnbent@lanl.gov  Fri Jan 25 17:31:06 2008
   7920 From: johnbent@lanl.gov (John Bent)
   7921 Date: Fri, 25 Jan 2008 15:31:06 -0700
   7922 Subject: [sup-talk] 0.5 thoughts
   7923 In-Reply-To: <1201279056-sup-4012@south>
   7924 References: <1201240480-sup-1977@south>
   7925 	<1201241373-sup-5327@tangerine.lanl.gov>
   7926 	<1201279056-sup-4012@south>
   7927 Message-ID: <1201300095-sup-4454@tangerine.lanl.gov>
   7928 
   7929 Excerpts from William Morgan's message of Fri Jan 25 09:52:20 -0700 2008:
   7930 > Reformatted excerpts from John Bent's message of 2008-01-24:
   7931 > > Excerpts from William Morgan's message of Thu Jan 24 22:59:43 -0700 2008:
   7932 >
   7933 > > > - Date conversion to the local timezone, for sorting and display
   7934 > > Yeah, there's something wrong with my timestamps.  Everything shows up
   7935 > > as PM.  The time is right but it always says PM in the display...
   7936 > 
   7937 > That's weird. Is this in thread-index-mode? What about when you expand
   7938 > the header ('h') in thread-view-mode? Does the time appear correctly?
   7939 > 
   7940 Still incorrect with the expanded header.  I checked the mbox file to
   7941 see if fetchmail was maybe screwing it up but it looks right in there.
   7942 
   7943 > Iiiinteresting. Making Sup an IM client proper is almost certainly
   7944 > a world of misery. Getting the current textfield stuff working was a
   7945 > goddamn nightmare, and it's still very wonky. It does seem a little
   7946 > weird, philosophically speaking, but I wouldn't throw such code away if
   7947 > it were dumped on my lap. :)
   7948 > 
   7949 > That said, what WOULD be easy is to treat IM logs as a message source,
   7950 > and put conversations in the index, gmail style.
   7951 > 
   7952 That'd probably actually be what I most want.  I have a separate IM client
   7953 and I treat IM conversations and email slightly differently.  But ultimately
   7954 they are still conversations and it be great to integrate them into sup so
   7955 I could search through them too.
   7956 
   7957 > > Also, is there a way to go from one thread-view directly to another?
   7958 > > I always have to 'x' to go back to the search-results-mode or the
   7959 > > inbox-mode and then scroll to the message I want.
   7960 > 
   7961 > Try the comma-commands. ",n", etc.
   7962 > 
   7963 Ok, ",n" is great.  Thanks.  A ",p" would be nice too....
   7964 
   7965 From johnbent@lanl.gov  Fri Jan 25 19:35:17 2008
   7966 From: johnbent@lanl.gov (John Bent)
   7967 Date: Fri, 25 Jan 2008 17:35:17 -0700
   7968 Subject: [sup-talk] missing run-mailcap
   7969 In-Reply-To: <1201235901-sup-7426@tangerine.lanl.gov>
   7970 References: <1201019996-sup-8960@tangerine.lanl.gov>
   7971 	<1201041081-sup-6034@tangerine.lanl.gov>
   7972 	<1201210323-sup-6116@tangerine.lanl.gov>
   7973 	<1201216741-sup-4105@south>
   7974 	<1201218489-sup-3542@tangerine.lanl.gov>
   7975 	<1201220092-sup-8263@south> <1201222453-sup-1190@spooky.local>
   7976 	<1201235901-sup-7426@tangerine.lanl.gov>
   7977 Message-ID: <1201307667-sup-2659@tangerine.lanl.gov>
   7978 
   7979 Excerpts from John Bent's message of Thu Jan 24 21:40:08 -0700 2008:
   7980 > Excerpts from Grant Hollingworth's message of Thu Jan 24 17:57:50 -0700 2008:
   7981 > > * William Morgan [Thu Jan 24 19:17:17 -0500 2008]:
   7982 > > > If open is a standard OS X command, then I will add some code to
   7983 > > > auto-detect it at some point.
   7984 > > 
   7985 > > It is. Unfortunately, you can tell it which application to use, but
   7986 > > not which MIME type.
   7987 > 
   7988 > True, but if it has the correct extension (which it does in 0.4), you 
   7989 > don't need to tell it anything.  
   7990 > 
   7991 > That's great that I don't need to fake run-mailcap since there's a hook.
   7992 >
   7993 The hook works (system "open \'#{filename}\'"), but sup thinks it is failing.
   7994 I get a message saying view failed, displaying as text.  Maybe it should
   7995 be (! system "open \'#{filename}\'") ?  Also, I added the \' because I noticed
   7996 before that sometimes filename has spaces in it and then open won't work.
   7997 
   7998 John
   7999 
   8000 From johnbent@lanl.gov  Fri Jan 25 19:37:07 2008
   8001 From: johnbent@lanl.gov (John Bent)
   8002 Date: Fri, 25 Jan 2008 17:37:07 -0700
   8003 Subject: [sup-talk] 0.5 thoughts
   8004 In-Reply-To: <1201267105-sup-1149@lenin>
   8005 References: <1201240480-sup-1977@south> <1201267105-sup-1149@lenin>
   8006 Message-ID: <1201307782-sup-1056@tangerine.lanl.gov>
   8007 
   8008 Excerpts from vasudeva's message of Fri Jan 25 06:22:52 -0700 2008:
   8009 > Excerpts from William Morgan's message of Fri Jan 25 00:59:43 -0500 2008:
   8010 > If we're interested in 'Getting Things Done', then a nice related
   8011 > feature might be the ability to tell sup not to exit on a 'q' keypress
   8012 > if there are buffers open marked TODO (or whatever). One of the things I
   8013 > like about sup is the multi-window approach, because instead of making
   8014 > me feel *bad* about having lots of half-finished work, it makes me feel
   8015 > as though it's reasonable I might just have it going in the background.
   8016 > I find this mis-truth appealing.
   8017 > 
   8018 What is this TODO buffer you're talking about please?  Sounds useful!
   8019 
   8020 From vasudeva@linkswarm.com  Fri Jan 25 20:00:13 2008
   8021 From: vasudeva@linkswarm.com (vasudeva)
   8022 Date: Fri, 25 Jan 2008 20:00:13 -0500
   8023 Subject: [sup-talk] 0.5 thoughts
   8024 In-Reply-To: <1201307782-sup-1056@tangerine.lanl.gov>
   8025 References: <1201240480-sup-1977@south> <1201267105-sup-1149@lenin>
   8026 	<1201307782-sup-1056@tangerine.lanl.gov>
   8027 Message-ID: <1201308435-sup-8242@lenin>
   8028 
   8029 Excerpts from John Bent's message of Fri Jan 25 19:37:07 -0500 2008:
   8030 > Excerpts from vasudeva's message of Fri Jan 25 06:22:52 -0700 2008:
   8031 > > Excerpts from William Morgan's message of Fri Jan 25 00:59:43 -0500 2008:
   8032 > > If we're interested in 'Getting Things Done', then a nice related
   8033 > > feature might be the ability to tell sup not to exit on a 'q' keypress
   8034 > > if there are buffers open marked TODO (or whatever). One of the things I
   8035 > > like about sup is the multi-window approach, because instead of making
   8036 > > me feel *bad* about having lots of half-finished work, it makes me feel
   8037 > > as though it's reasonable I might just have it going in the background.
   8038 > > I find this mis-truth appealing.
   8039 > > 
   8040 > What is this TODO buffer you're talking about please?  Sounds useful!
   8041 
   8042 Sort of random association I made. There's a neat type-A smartypants
   8043 thing called 'Getting Things Done' which seems to be a methodology
   8044 for...  getting things done. More here...
   8045 
   8046 http://en.wikipedia.org/wiki/Getting_Things_Done
   8047 
   8048 The bit William brought up about adding 'note' objects piqued my
   8049 interest and seemed kind of GTD-ish.  Personally, I tend to use my inbox
   8050 as my TODO list, so the ability to "stick" windows -- to set sup buffers
   8051 non-volatile -- would be something I'd use a lot. As a long-time mutt
   8052 user, a certain background portion of my brain, as I navigate sup, is
   8053 devoted entirely to NOT hitting the 'q' key, which is basically muscle
   8054 memory at this point.
   8055 
   8056 -- 
   8057 linkswarm.com :: Collaborative Insolence
   8058 vasudeva.linkswarm.com/gallery :: For The Faint of Heart
   8059 
   8060 
   8061 From daniel@wagner-home.com  Sat Jan 26 00:03:33 2008
   8062 From: daniel@wagner-home.com (Daniel Wagner)
   8063 Date: Fri, 25 Jan 2008 21:03:33 -0800
   8064 Subject: [sup-talk] 0.5 thoughts
   8065 In-Reply-To: <288A3057-1B27-4BDF-9B96-F860CA73C305@gmail.com>
   8066 References: <1201240480-sup-1977@south>
   8067 	<288A3057-1B27-4BDF-9B96-F860CA73C305@gmail.com>
   8068 Message-ID: <1201323295-sup-3282@buckwheat>
   8069 
   8070 Excerpts from Sho Fukamachi's message of Fri Jan 25 03:12:18 -0800 2008:
   8071 > - detect locale of system, or offer a choice, for VIM spellcheck. It's  
   8072 > currently hardcoded to en_us - detect from system somehow?
   8073 
   8074 That doesn't sound right to me.  Have you had a look in your
   8075 config.yaml?  More info on the Wiki page:
   8076 http://sup.rubyforge.org/wiki/wiki.pl?VimIntegration
   8077 I actually *like* that Sup doesn't assume too much about my editor.
   8078 
   8079 > - at least a cursory effort to not store login credentials in  
   8080 > plaintext .. how to store them whilst retaining simplicity and  
   8081 > platform independence is an interesting question. Not sure how far sup  
   8082 > (or anyone really) wants to go down that particular rabbit hole
   8083 
   8084 I don't like this idea.  I think it was Gaim (now Pidgin) that first
   8085 opened my eyes to the possibility that plaintext passwords might not be
   8086 so bad.  The Pidgin page seems to be down just now, so I can't say for
   8087 certain that this is the essay I originally read, but
   8088 http://developer.pidgin.im/wiki/PlainTextPasswords?format=txt
   8089 sounds like a promising result from Google.
   8090 
   8091 > - ability to send using something other than local sendmail? for  
   8092 > remote mbox, we have a ssh session open and everything .. and dynamic  
   8093 > IPs are often RBL'ed
   8094 
   8095 My config.yaml has an option for this, have a look there.
   8096 
   8097 Have fun!
   8098 ~d
   8099 
   8100 From daniel@wagner-home.com  Sat Jan 26 00:05:17 2008
   8101 From: daniel@wagner-home.com (Daniel Wagner)
   8102 Date: Fri, 25 Jan 2008 21:05:17 -0800
   8103 Subject: [sup-talk] 0.5 thoughts
   8104 In-Reply-To: <1201240480-sup-1977@south>
   8105 References: <1201240480-sup-1977@south>
   8106 Message-ID: <1201323831-sup-9018@buckwheat>
   8107 
   8108 This is sort of a big-ish feature, but are there any plans for LDAP
   8109 support?  (I'm expecting "patches welcome" to go here. =)
   8110 
   8111 ~d
   8112 
   8113 From daniel@wagner-home.com  Sat Jan 26 00:12:28 2008
   8114 From: daniel@wagner-home.com (Daniel Wagner)
   8115 Date: Fri, 25 Jan 2008 21:12:28 -0800
   8116 Subject: [sup-talk] 0.5 thoughts
   8117 In-Reply-To: <1201323295-sup-3282@buckwheat>
   8118 References: <1201240480-sup-1977@south>
   8119 	<288A3057-1B27-4BDF-9B96-F860CA73C305@gmail.com>
   8120 	<1201323295-sup-3282@buckwheat>
   8121 Message-ID: <1201324251-sup-2682@buckwheat>
   8122 
   8123 Excerpts from Daniel Wagner's message of Fri Jan 25 21:03:33 -0800 2008:
   8124 > > - at least a cursory effort to not store login credentials in  
   8125 > > plaintext .. how to store them whilst retaining simplicity and  
   8126 > > platform independence is an interesting question. Not sure how far sup  
   8127 > > (or anyone really) wants to go down that particular rabbit hole
   8128 > 
   8129 > I don't like this idea.  I think it was Gaim (now Pidgin) that first
   8130 > opened my eyes to the possibility that plaintext passwords might not be
   8131 > so bad.  The Pidgin page seems to be down just now, so I can't say for
   8132 > certain that this is the essay I originally read, but
   8133 > http://developer.pidgin.im/wiki/PlainTextPasswords?format=txt
   8134 > sounds like a promising result from Google.
   8135 
   8136 Wait, now that I stopped to think about it, I may have to take this
   8137 back.  I don't actually know what credentials you mean, so the argument
   8138 may not even apply.
   8139 
   8140 ~d
   8141 
   8142 From daniel@wagner-home.com  Sat Jan 26 00:48:49 2008
   8143 From: daniel@wagner-home.com (Daniel Wagner)
   8144 Date: Fri, 25 Jan 2008 21:48:49 -0800
   8145 Subject: [sup-talk] crash on attachments with ~
   8146 Message-ID: <1201326444-sup-243@buckwheat>
   8147 
   8148 If I type in a filename that starts with ~ at the attachment prompt, sup
   8149 crashes.  Exception log included.
   8150 -------------- next part --------------
   8151 An embedded and charset-unspecified text was scrubbed...
   8152 Name: sup-exception-log.txt
   8153 Url: http://rubyforge.org/pipermail/sup-talk/attachments/20080125/c61c09e3/attachment.txt 
   8154 
   8155 From chrisw@rice.edu  Sat Jan 26 00:32:09 2008
   8156 From: chrisw@rice.edu (Christopher Warrington)
   8157 Date: Fri, 25 Jan 2008 23:32:09 -0600
   8158 Subject: [sup-talk] [PATCH] fixed crasher when refining search and updated
   8159 	keybinding
   8160 Message-ID: <1201325529-812-1-git-send-email-chrisw@rice.edu>
   8161 
   8162 Refine search no longer crashes. Also, the keybinding has been updated
   8163 to reflect the new global search keybinding. | seems to be a shifted \
   8164 on most standard 104-key keyboards.
   8165 ---
   8166  lib/sup/modes/search-results-mode.rb |    6 +++---
   8167  1 files changed, 3 insertions(+), 3 deletions(-)
   8168 
   8169 diff --git a/lib/sup/modes/search-results-mode.rb b/lib/sup/modes/search-results-mode.rb
   8170 index f64a227..6fdc58a 100644
   8171 --- a/lib/sup/modes/search-results-mode.rb
   8172 +++ b/lib/sup/modes/search-results-mode.rb
   8173 @@ -9,13 +9,13 @@ class SearchResultsMode < ThreadIndexMode
   8174    end
   8175  
   8176    register_keymap do |k|
   8177 -    k.add :refine_search, "Refine search", '.'
   8178 +    k.add :refine_search, "Refine search", '|'
   8179    end
   8180  
   8181    def refine_search
   8182 -    query = BufferManager.ask :search, "query: ", (@qobj.to_s + " ")
   8183 +    query = BufferManager.ask :search, "refine query: ", (@qobj.to_s + " ")
   8184      return unless query && query !~ /^\s*$/
   8185 -    SearchResultsMode.spawn_from_query query, @qopts
   8186 +    SearchResultsMode.spawn_from_query query
   8187    end
   8188  
   8189    ## a proper is_relevant? method requires some way of asking ferret
   8190 -- 
   8191 1.5.3.8
   8192 
   8193 
   8194 From chrisw@rice.edu  Fri Jan 25 23:19:25 2008
   8195 From: chrisw@rice.edu (Christopher Warrington)
   8196 Date: Fri, 25 Jan 2008 22:19:25 -0600
   8197 Subject: [sup-talk] Persistent "Source Changed"
   8198 Message-ID: <1201321071-sup-2268@chris-tablet>
   8199 
   8200 I am getting a persistent "Source Changed" notification on my IMAP 
   8201 INBOX. No amount of sup-syncing corrects this.
   8202 
   8203 I am using the latest git next (as of this composition).
   8204 
   8205 I don't quite know where to start figuring out what the issue it. Any 
   8206 help would be appreciated.
   8207 
   8208 -- 
   8209 Christopher Warrington <chrisw at rice.edu>
   8210 
   8211 
   8212 From chrisw@rice.edu  Fri Jan 25 22:56:33 2008
   8213 From: chrisw@rice.edu (Christopher Warrington)
   8214 Date: Fri, 25 Jan 2008 21:56:33 -0600
   8215 Subject: [sup-talk] 0.5 thoughts
   8216 In-Reply-To: <1201240480-sup-1977@south>
   8217 References: <1201240480-sup-1977@south>
   8218 Message-ID: <1147465793.20080125215633@rice.edu>
   8219 
   8220 
   8221 William Morgan @ 2008-1-24 11:59:43 PM
   8222 "[sup-talk] 0.5 thoughts" <mid:1201240480-sup-1977 at south>
   8223 
   8224 > - IMAP connection sharing
   8225 +1, shared connections, but still multiple connections (one for
   8226 polling, one for downloading new messages, one for downloading the
   8227 currently selected thread, &c.)
   8228 
   8229 -- 
   8230 Christopher Warrington <chrisw at rice.edu>
   8231 
   8232 
   8233 "Crash programs fail because they are based on theory that, with nine
   8234 women pregnant, you can get a baby in a month."
   8235 -Werner von Braun
   8236 -------------- next part --------------
   8237 A non-text attachment was scrubbed...
   8238 Name: not available
   8239 Type: application/pgp-signature
   8240 Size: 183 bytes
   8241 Desc: not available
   8242 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080125/df0b9917/attachment.bin 
   8243 
   8244 From manish@gslab.com  Sat Jan 26 03:50:34 2008
   8245 From: manish@gslab.com (Manish Sapariya)
   8246 Date: Sat, 26 Jan 2008 14:20:34 +0530
   8247 Subject: [sup-talk] Is sup slow on cygwin
   8248 Message-ID: <479AF45A.6060007@gslab.com>
   8249 
   8250 Hi,
   8251 I am running sup on cygwin and using the mbox file
   8252 created by Thunderbird 2.0 on windows. I started
   8253 sup-sync and in almost 2 hours it just indexed 4
   8254 messages.
   8255 
   8256 The folder that I am indexing has 270 messages and
   8257 size is around 17MB.
   8258 
   8259 Is sup indexing expected to take this much time?
   8260 
   8261 when I am running sup-sync or even sup, the CPU spins
   8262 100% all the time. In sup-sync output all I see is
   8263 output like..
   8264 ===
   8265 ## 3 (4.83%) read; 0:01:23 elapsed; 0:27:24 remaining
   8266 ## 5 (4.84%) read; 0:02:31 elapsed; 0:49:35 remaining
   8267 ===
   8268 What does first number denote?
   8269 And the remaining time goes very high if I keep running
   8270 when I kept it running for almost 2 hours, it said
   8271 remaining time is 61:12:43?
   8272 
   8273 Any ideas?
   8274 
   8275 Thanks and Regards,
   8276 Manish
   8277 
   8278 
   8279 From chrisw@rice.edu  Sat Jan 26 14:42:36 2008
   8280 From: chrisw@rice.edu (Christopher Warrington)
   8281 Date: Sat, 26 Jan 2008 13:42:36 -0600
   8282 Subject: [sup-talk] Is sup slow on cygwin
   8283 In-Reply-To: <479AF45A.6060007@gslab.com>
   8284 References: <479AF45A.6060007@gslab.com>
   8285 Message-ID: <1201376227-sup-7884@chris-tablet>
   8286 
   8287 Excerpts from Manish Sapariya's message of Sat Jan 26 02:50:34 -0600 2008:
   8288 > I am running sup on cygwin and using the mbox file
   8289 > created by Thunderbird 2.0 on windows. I started
   8290 > sup-sync and in almost 2 hours it just indexed 4
   8291 > messages.
   8292 > 
   8293 > The folder that I am indexing has 270 messages and
   8294 > size is around 17MB.
   8295 > 
   8296 > Is sup indexing expected to take this much time?
   8297 
   8298 No. I was able to re-index my entire archive in under four hours. My 
   8299 index is 19800 messages large (or so) and a mix of mbox and IMAP. I have 
   8300 about 450 MB in mbox sources.
   8301 
   8302 > when I am running sup-sync or even sup, the CPU spins
   8303 > 100% all the time.
   8304 
   8305 I don't see this at all. Right now, sup's ruby process is idle.
   8306 
   8307 > In sup-sync output all I see is
   8308 > output like..
   8309 > ===
   8310 > ## 3 (4.83%) read; 0:01:23 elapsed; 0:27:24 remaining
   8311 > ## 5 (4.84%) read; 0:02:31 elapsed; 0:49:35 remaining
   8312 > ===
   8313 > What does first number denote?
   8314 
   8315 The number of messages processed.
   8316 
   8317 > Any ideas?
   8318 
   8319 What version of sup? What version of ruby? What version of Windows? 
   8320 Which ferret gem is installed?
   8321 
   8322 -- 
   8323 Christopher Warrington <chrisw at rice.edu>
   8324 
   8325 
   8326 From brabuhr@gmail.com  Sat Jan 26 22:35:44 2008
   8327 From: brabuhr@gmail.com (brabuhr)
   8328 Date: Sat, 26 Jan 2008 22:35:44 -0500
   8329 Subject: [sup-talk] [PATCH] expand file paths and rescue enoent exceptions
   8330 	when adding attachments
   8331 In-Reply-To: <21aa9f0801261918j2890aee2yeb52484a95b786c3@mail.gmail.com>
   8332 References: <21aa9f0801261918j2890aee2yeb52484a95b786c3@mail.gmail.com>
   8333 Message-ID: <21aa9f0801261935i12a36782o85030b24078e7dd7@mail.gmail.com>
   8334 
   8335 On 1/26/08, Daniel Wagner <daniel at wagner-home.com> wrote:
   8336 > If I type in a filename that starts with ~ at the attachment prompt, sup
   8337 > crashes.
   8338 
   8339 ---
   8340  lib/sup/modes/edit-message-mode.rb |    4 ++++
   8341  lib/sup/util.rb                    |    3 ++-
   8342  2 files changed, 6 insertions(+), 1 deletions(-)
   8343 
   8344 diff --git a/lib/sup/modes/edit-message-mode.rb
   8345 b/lib/sup/modes/edit-message-mode.rb
   8346 index 6a7f273..9412235 100644
   8347 --- a/lib/sup/modes/edit-message-mode.rb
   8348 +++ b/lib/sup/modes/edit-message-mode.rb
   8349 @@ -151,6 +151,10 @@ EOS
   8350     @attachments << RMail::Message.make_file_attachment(fn)
   8351     @attachment_names << fn
   8352     update
   8353 +  rescue Errno::ENOENT => e
   8354 +    Redwood::log "Cannot add attachment: #{e.message}"
   8355 +    Redwood::log e.backtrace.join("\n")
   8356 +    Redwood::BufferManager.flash "Could not add attachment: #{e.message}"
   8357   end
   8358 
   8359   def delete_attachment
   8360 diff --git a/lib/sup/util.rb b/lib/sup/util.rb
   8361 index ceaf0b8..51339d6 100644
   8362 --- a/lib/sup/util.rb
   8363 +++ b/lib/sup/util.rb
   8364 @@ -57,8 +57,9 @@ module RMail
   8365   class Message
   8366     def self.make_file_attachment fn
   8367       bfn = File.basename fn
   8368 +      fp = File.expand_path fn
   8369       t = MIME::Types.type_for(bfn).first || MIME::Types.type_for
   8370 ("exe").first
   8371 -      make_attachment IO.read(fn), t.content_type, t.encoding, bfn.to_s
   8372 +      make_attachment IO.read(fp), t.content_type, t.encoding, bfn.to_s
   8373     end
   8374 
   8375     def charset
   8376 --
   8377 1.5.2.5
   8378 -------------- next part --------------
   8379 An HTML attachment was scrubbed...
   8380 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20080126/533da985/attachment.html 
   8381 
   8382 From manish@gslab.com  Sat Jan 26 23:14:44 2008
   8383 From: manish@gslab.com (Manish Sapariya)
   8384 Date: Sun, 27 Jan 2008 09:44:44 +0530
   8385 Subject: [sup-talk] Is sup slow on cygwin
   8386 In-Reply-To: <1201376227-sup-7884@chris-tablet>
   8387 References: <479AF45A.6060007@gslab.com> <1201376227-sup-7884@chris-tablet>
   8388 Message-ID: <479C0534.30602@gslab.com>
   8389 
   8390 
   8391 Christopher Warrington wrote:
   8392 >
   8393 >> What does first number denote?
   8394 >>     
   8395 >
   8396 > The number of messages processed.
   8397 >   
   8398 Even I thought so initially, but in my case count went above 270 (no. of 
   8399 mails
   8400 thunderbird showed in the inbox), and the percentage shown was about 5%,
   8401 and the process was still going on.
   8402 >> Any ideas?
   8403 >>     
   8404 >
   8405 > What version of sup? What version of ruby? What version of Windows? 
   8406 > Which ferret gem is installed
   8407  - ferret (0.11.6)
   8408 - sup (0.4)
   8409 - ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-cygwin]
   8410 - CYGWIN_NT-5.1 manish 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin
   8411 - Thunderbird version 2.0.0.9 (20071031)
   8412 - Windowx XP - 5.1 SP2
   8413 
   8414 Regards,
   8415 Manish
   8416 
   8417 
   8418 From patroclo7@gmail.com  Sun Jan 27 11:16:52 2008
   8419 From: patroclo7@gmail.com (Giorgio Lando)
   8420 Date: Sun, 27 Jan 2008 17:16:52 +0100
   8421 Subject: [sup-talk] 0.5 thoughts
   8422 In-Reply-To: <1201240480-sup-1977@south>
   8423 References: <1201240480-sup-1977@south>
   8424 Message-ID: <1201450529-sup-4111@clarabella.clarabella>
   8425 
   8426 A thing which I would need (but that I guess it is not easy, at least
   8427 from the complexity it has in mutt) is support fro S/MIME encryption,
   8428 or at least encryption verification.
   8429 
   8430 -- 
   8431 Giorgio Lando <patroclo7 at gmail dot com>
   8432 
   8433 From johnbent@lanl.gov  Sun Jan 27 12:01:50 2008
   8434 From: johnbent@lanl.gov (John Bent)
   8435 Date: Sun, 27 Jan 2008 10:01:50 -0700
   8436 Subject: [sup-talk] [PATCH] fixed crasher when refining search and
   8437 	updated	keybinding
   8438 In-Reply-To: <1201325529-812-1-git-send-email-chrisw@rice.edu>
   8439 References: <1201325529-812-1-git-send-email-chrisw@rice.edu>
   8440 Message-ID: <1201453197-sup-1113@tangerine.lanl.gov>
   8441 
   8442 Excerpts from Christopher Warrington's message of Fri Jan 25 22:32:09 -0700 2008:
   8443 > Refine search no longer crashes. Also, the keybinding has been updated
   8444 > to reflect the new global search keybinding. | seems to be a shifted \
   8445 > on most standard 104-key keyboards.
   8446 >
   8447 Refine search is very nice.  Something else which might be nice would be
   8448 a persistent search history which could be scrolled through with the up
   8449 and down arrow keys.  That feature would then include refine search.
   8450 
   8451 From marcus-sup@bar-coded.net  Sun Jan 27 15:03:54 2008
   8452 From: marcus-sup@bar-coded.net (Marcus Williams)
   8453 Date: Sun, 27 Jan 2008 20:03:54 +0000
   8454 Subject: [sup-talk] return-path
   8455 In-Reply-To: <1201246425-sup-9409@magnum>
   8456 References: <20080123211318.GB31529@manheim.library.drexel.edu>
   8457 	<1201125726-sup-1297@south>
   8458 	<20080123224712.GB32356@manheim.library.drexel.edu>
   8459 	<1201233750-sup-2616@south> <1201246425-sup-9409@magnum>
   8460 Message-ID: <1201464123-sup-2970@tomsk>
   8461 
   8462 On 25.1.2008, Gabriel Sean Farrell wrote:
   8463 > In other words, all that needs to be done to fix my problem is the
   8464 > addition of -f <email> to the sendmail call.  Maybe it could be an
   8465 > option in the initial account setup?
   8466 
   8467 Even better if this string could written with the to send email as a
   8468 variable so you could write something like
   8469 
   8470 "sendmail -f #{m.from}"
   8471 
   8472 ... or somehting like that.
   8473 
   8474 Marcus
   8475 
   8476 From marcus-sup@bar-coded.net  Sun Jan 27 15:07:31 2008
   8477 From: marcus-sup@bar-coded.net (Marcus Williams)
   8478 Date: Sun, 27 Jan 2008 20:07:31 +0000
   8479 Subject: [sup-talk] [PATCH] modulo the file size in a maildir,
   8480 	so it's <= 7 digits.
   8481 In-Reply-To: <1201237734-sup-3305@south>
   8482 References: <1200646334-sup-3256@archie> <1200970931-sup-8284@south>
   8483 	<1201034511-sup-3452@tomsk> <1201065536-sup-7142@south>
   8484 	<1201081580-sup-6798@tomsk> <1201237734-sup-3305@south>
   8485 Message-ID: <1201464256-sup-4136@tomsk>
   8486 
   8487 On 25.1.2008, William Morgan wrote:
   8488 > I don't think so. I haven't tested this empirically, and Ferret is
   8489 > pretty darn fast, but it comes down to this: if we have to perform an
   8490 > operation a number of times that scales linearly with the number of
   8491 > messages in a mailstore (which unfortunately we do), that operation
   8492 > shouldn't be something like "do a search on a search engine". 
   8493 
   8494 Yeah I was forgetting that things like imap have to regenerate them
   8495 for the whole source. Would be nice if that could be solved somehow,
   8496 that way making an id would be a one time thing.
   8497 
   8498 > > Off on a slight tangent - I cant get any maildir working with sup
   8499 > > here. I added a maildir to my sources list and it gets scanned as
   8500 > > expected but nothing gets into the index. I'm wondering whether this
   8501 > > is as a result of the id function.
   8502 > 
   8503 > Is this with Jeff's fix for the id?
   8504 
   8505 Dont know, will follow up with a new thread when I get back to testing
   8506 it again.
   8507 
   8508 Marcus
   8509 
   8510 From marcus-sup@bar-coded.net  Sun Jan 27 15:29:00 2008
   8511 From: marcus-sup@bar-coded.net (Marcus Williams)
   8512 Date: Sun, 27 Jan 2008 20:29:00 +0000
   8513 Subject: [sup-talk] 0.5 thoughts
   8514 In-Reply-To: <1201240480-sup-1977@south>
   8515 References: <1201240480-sup-1977@south>
   8516 Message-ID: <1201464716-sup-9988@tomsk>
   8517 
   8518 On 25.1.2008, William Morgan wrote:
   8519 > - Configurable colors. Everyone's favorite.
   8520 
   8521 Preferably through a hook that gets some information about what is
   8522 going to be coloured. For instance I'd like to colour my labels
   8523 differently (not the email snippet, just the label itself) so the hook
   8524 would have to be told that it should return a colour for a label, but
   8525 also what label that is. Same thing applies for
   8526 recipients/senders/snippets/threads I guess - you need some sort of
   8527 context with the "type" you're colouring.
   8528 
   8529 > - Notes. Like draft emails without a recipient, but treated specially
   8530 >   by the UI. Never sent; just for local use.
   8531 
   8532 This would be nice if they extend the message class so you get
   8533 everything that comes with being an email for free like attachments
   8534 etc. 
   8535 
   8536 Marcus
   8537 
   8538 From nicolas.pouillard@gmail.com  Tue Jan 29 03:40:17 2008
   8539 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   8540 Date: Tue, 29 Jan 2008 09:40:17 +0100
   8541 Subject: [sup-talk] [BUG] When marking a spam, the mail don't disappear
   8542 Message-ID: <1201596013-sup-3324@port-ext5.ensta.fr>
   8543 
   8544 Hi,
   8545 
   8546 I've  hit  a bug when marking a spam in thread-view-mode (using ",s") and then
   8547 going  to  inbox  (using  "x"), the spam seems still there, but in fact it was
   8548 already  deleted,  just  not  remove from the list (hitting "$@" is my current
   8549 workaroud).
   8550 
   8551 TIA,
   8552 
   8553 -- 
   8554 Nicolas Pouillard aka Ertai
   8555 -------------- next part --------------
   8556 A non-text attachment was scrubbed...
   8557 Name: signature.asc
   8558 Type: application/pgp-signature
   8559 Size: 186 bytes
   8560 Desc: not available
   8561 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080129/aab21d51/attachment.bin 
   8562 
   8563 From daniel@wagner-home.com  Tue Jan 29 14:33:48 2008
   8564 From: daniel@wagner-home.com (Daniel Wagner)
   8565 Date: Tue, 29 Jan 2008 11:33:48 -0800
   8566 Subject: [sup-talk] text/html => w3m?
   8567 Message-ID: <1201635034-sup-9713@buckwheat>
   8568 
   8569 Hello, how does sup know to use w3m for text/html attachments?  I had a
   8570 quick grep -R through the code for w3m, and it suggested that this could
   8571 be achieved with a user hook, but I have a completely empty
   8572 ~/.sup/hooks.  I also thought it might be from some mime-style magic,
   8573 but
   8574 
   8575 ~% xdg-mime query default "text/html"
   8576 firefox.desktop
   8577 
   8578 I'd really like for firefox to be the program used in fact, but I can't
   8579 see where to change this.
   8580 
   8581 ~d
   8582 
   8583 P.S.  This is strongly related to another desire, to be sent in a new
   8584 thread.
   8585 
   8586 From daniel@wagner-home.com  Tue Jan 29 14:47:22 2008
   8587 From: daniel@wagner-home.com (Daniel Wagner)
   8588 Date: Tue, 29 Jan 2008 11:47:22 -0800
   8589 Subject: [sup-talk] Enter on links
   8590 Message-ID: <1201636010-sup-8816@buckwheat>
   8591 
   8592 Hello!
   8593 
   8594 One thing I find myself doing all the time is highlighting a web address
   8595 and pasting it into Firefox.  For long URLs (a sad but common truth),
   8596 it's even more annoying... hit 'D' to open it up in vim, navigate to the
   8597 link, Jx a few times, then *finally* copy and paste.  Is there a better
   8598 way to do this?  Since I couldn't find any feature like this in the
   8599 help, I'm going to assume the answer is no.
   8600 
   8601 So, here's my real question: how hard would it be for me to allow Enter
   8602 to try to open a (potentially-multiline) link?  I am aware that there
   8603 are some subtleties about detecting addresses' beginning/ending points
   8604 here; what I'm really interested in is whether it is easy within sup's
   8605 architecture.
   8606 
   8607 Thanks!
   8608 ~d
   8609 
   8610 From johnbent@lanl.gov  Tue Jan 29 14:59:01 2008
   8611 From: johnbent@lanl.gov (John Bent)
   8612 Date: Tue, 29 Jan 2008 12:59:01 -0700
   8613 Subject: [sup-talk] text/html => w3m?
   8614 In-Reply-To: <1201635034-sup-9713@buckwheat>
   8615 References: <1201635034-sup-9713@buckwheat>
   8616 Message-ID: <1201636435-sup-5110@tangerine.lanl.gov>
   8617 
   8618 Excerpts from Daniel Wagner's message of Tue Jan 29 12:33:48 -0700 2008:
   8619 > Hello, how does sup know to use w3m for text/html attachments?  I had a
   8620 > quick grep -R through the code for w3m, and it suggested that this could
   8621 > be achieved with a user hook, but I have a completely empty
   8622 > ~/.sup/hooks.  I also thought it might be from some mime-style magic,
   8623 > but
   8624 > 
   8625 > ~% xdg-mime query default "text/html"
   8626 > firefox.desktop
   8627 > 
   8628 > I'd really like for firefox to be the program used in fact, but I can't
   8629 > see where to change this.
   8630 > 
   8631 You can use a hook 'mime-decode.rb' to cause text/html emails to be 
   8632 correctly rendered within sup.  For attachments, sup uses hook 'mime-view.rb'.
   8633 Since, your hook dir is empty (by the way, it is possible to set the home
   8634 dir for sup to something besides $HOME/.sup, so you might want to confirm
   8635 you're running from where you think you are), I believe sup uses 
   8636 /usr/bin/run-mailcap if there is no 'mime-view.rb'.
   8637 
   8638 Hope this helps but I'm still learning sup too so this might all be wrong...
   8639 
   8640 By the way, I'd like that other request you had also about being able to
   8641 open links within email bodies.
   8642 
   8643 John
   8644 
   8645 From daniel@wagner-home.com  Tue Jan 29 16:45:22 2008
   8646 From: daniel@wagner-home.com (Daniel Wagner)
   8647 Date: Tue, 29 Jan 2008 13:45:22 -0800
   8648 Subject: [sup-talk] text/html => w3m?
   8649 In-Reply-To: <1201636435-sup-5110@tangerine.lanl.gov>
   8650 References: <1201635034-sup-9713@buckwheat>
   8651 	<1201636435-sup-5110@tangerine.lanl.gov>
   8652 Message-ID: <1201642667-sup-6998@buckwheat>
   8653 
   8654 Excerpts from John Bent's message of Tue Jan 29 11:59:01 -0800 2008:
   8655 > you're running from where you think you are), I believe sup uses 
   8656 > /usr/bin/run-mailcap if there is no 'mime-view.rb'.
   8657 
   8658 Oh, hey, run-mailcap is really quite nice.  Thanks for the tip!  I stuck
   8659 this in my ~/.mailcap, and I'm happy-scrappy now.
   8660 
   8661 text/html; /usr/bin/firefox '%s'; edit=gvim '%s'; \
   8662 test=test "$DISPLAY" != ""; description="Web Page"; nametemplate=%s.html
   8663 text/html; /usr/bin/firefox '%s'; edit=gvim '%s'; \
   8664 test=test "$DISPLAY" != ""; description="Web Page"; nametemplate=%s.htm
   8665 text/html; /usr/bin/w3m -T text/html '%s'; needsterminal; \
   8666 edit=vim '%s'; description="Web Page"; nametemplate=%s.html
   8667 text/html; /usr/bin/w3m -T text/html '%s'; needsterminal; \
   8668 edit=vim '%s'; description="Web Page"; nametemplate=%s.htm
   8669 
   8670 Sadly, this will not work for opening links, as run-mailcap only
   8671 recognizes files, and not URIs.
   8672 
   8673 ~d
   8674 
   8675 From brabuhr@gmail.com  Tue Jan 29 22:23:31 2008
   8676 From: brabuhr@gmail.com (brabuhr)
   8677 Date: Tue, 29 Jan 2008 22:23:31 -0500
   8678 Subject: [sup-talk] [PATCH] first pass at a simple interface to extract URIs
   8679 	from a message
   8680 Message-ID: <21aa9f0801291923w2df946dbga7832a7345c09a95@mail.gmail.com>
   8681 
   8682 On Jan 29, 2008 2:47 PM, Daniel Wagner <daniel at wagner-home.com> wrote:
   8683 > One thing I find myself doing all the time is highlighting a web address
   8684 > and pasting it into Firefox.
   8685 
   8686 This adds a new key binding to the thread-view mode (L) to assist with
   8687 loading URIs from the body of the message.  This first pass will pull
   8688 the URIs from the message text and loop through them while asking if
   8689 that URI should be loaded.  Currently, there is no code to actually
   8690 perform the load.
   8691 ---
   8692  lib/sup/modes/thread-view-mode.rb |   30 ++++++++++++++++++++++++++++++
   8693  1 files changed, 30 insertions(+), 0 deletions(-)
   8694 
   8695 diff --git a/lib/sup/modes/thread-view-mode.rb
   8696 b/lib/sup/modes/thread-view-mode.rb
   8697 index 961fc5d..5fae8fa 100644
   8698 --- a/lib/sup/modes/thread-view-mode.rb
   8699 +++ b/lib/sup/modes/thread-view-mode.rb
   8700 @@ -1,4 +1,5 @@
   8701  require 'open3'
   8702 +require 'uri'
   8703  module Redwood
   8704 
   8705  class ThreadViewMode < LineCursorMode
   8706 @@ -48,6 +49,7 @@ EOS
   8707      k.add :subscribe_to_list, "Subscribe to/unsubscribe from mailing list", "("
   8708      k.add :unsubscribe_from_list, "Subscribe to/unsubscribe from
   8709 mailing list", ")"
   8710      k.add :pipe_message, "Pipe message or attachment to a shell command", '|'
   8711 +    k.add :follow_link, "Follow a web link", "L"
   8712 
   8713      k.add_multi "(a)rchive/(d)elete/mark as (s)pam/mark as
   8714 u(N)read:", '.' do |kk|
   8715        kk.add :archive_and_kill, "Archive this thread and kill buffer", 'a'
   8716 @@ -456,6 +458,34 @@ EOS
   8717      end
   8718    end
   8719 
   8720 +  def follow_link
   8721 +    chunk = @chunk_lines[curpos]
   8722 +
   8723 +    return unless chunk.is_a?(Chunk::Text)
   8724 +
   8725 +    uris = URI.extract(chunk.lines.join("\n")).uniq.sort
   8726 +
   8727 +    if uris.size > 0
   8728 +      Redwood::log uris.join("\n")
   8729 +      Redwood::BufferManager.flash "#{uris.size} URIs found."
   8730 +      sleep 1
   8731 +
   8732 +      uris.each do |uri|
   8733 +        case Redwood::BufferManager.ask_yes_or_no "Load URI: #{uri} (y/n)"
   8734 +        when true
   8735 +          Redwood::BufferManager.flash "<add launch the url code here
   8736 please :-)>"
   8737 +          break
   8738 +        when false
   8739 +          next
   8740 +        else
   8741 +          break
   8742 +        end
   8743 +      end
   8744 +    else
   8745 +      Redwood::BufferManager.flash "No URIs found."
   8746 +    end
   8747 +  end
   8748 +
   8749  private
   8750 
   8751    def initial_state_for m
   8752 -- 
   8753 1.5.2.5
   8754 
   8755 From wmorgan-sup@masanjin.net  Tue Jan 29 22:52:00 2008
   8756 From: wmorgan-sup@masanjin.net (William Morgan)
   8757 Date: Tue, 29 Jan 2008 19:52:00 -0800
   8758 Subject: [sup-talk] text/html => w3m?
   8759 In-Reply-To: <1201636435-sup-5110@tangerine.lanl.gov>
   8760 References: <1201635034-sup-9713@buckwheat>
   8761 	<1201636435-sup-5110@tangerine.lanl.gov>
   8762 Message-ID: <1201665031-sup-1818@south>
   8763 
   8764 Reformatted excerpts from John Bent's message of 2008-01-29:
   8765 > Hope this helps but I'm still learning sup too so this might all be
   8766 > wrong...
   8767 
   8768 Pretty much right. Sup uses run-mailcap by default, which is where w3m
   8769 is being picked up on your system. So you can change your mailcap, or
   8770 you can override the hook. Depends on whether you want this change to be
   8771 system-wide or specific to Sup.
   8772 
   8773 -- 
   8774 William <wmorgan-sup at masanjin.net>
   8775 
   8776 From wmorgan-sup@masanjin.net  Tue Jan 29 22:58:15 2008
   8777 From: wmorgan-sup@masanjin.net (William Morgan)
   8778 Date: Tue, 29 Jan 2008 19:58:15 -0800
   8779 Subject: [sup-talk] Enter on links
   8780 In-Reply-To: <1201636010-sup-8816@buckwheat>
   8781 References: <1201636010-sup-8816@buckwheat>
   8782 Message-ID: <1201665171-sup-7233@south>
   8783 
   8784 Reformatted excerpts from Daniel Wagner's message of 2008-01-29:
   8785 > One thing I find myself doing all the time is highlighting a web
   8786 > address and pasting it into Firefox.  For long URLs (a sad but common
   8787 > truth), it's even more annoying... hit 'D' to open it up in vim,
   8788 > navigate to the link, Jx a few times, then *finally* copy and paste.
   8789 > Is there a better way to do this?
   8790 
   8791 On my system this is actually handled by the terminal (I'm using
   8792 gnome-terminal) directly. You can click on any link and it launches the
   8793 default web browser.
   8794 
   8795 > So, here's my real question: how hard would it be for me to allow
   8796 > Enter to try to open a (potentially-multiline) link?  I am aware that
   8797 > there are some subtleties about detecting addresses' beginning/ending
   8798 > points here; what I'm really interested in is whether it is easy
   8799 > within sup's architecture.
   8800 
   8801 Fairly easy, with some caveats. Sup is fundamentally line-based, at
   8802 least at this point. A URL-detecting regex could pick out individual
   8803 URLs from the message, pack them into their own kind of Chunk (see
   8804 message-chunks.rb) the same way that quoted regions and attachments are
   8805 handled, and the rest would follow more or less trivially.
   8806 
   8807 That might make the email look a little weird, as any URLs would sit on
   8808 their own line. But Sup has never shied away from reformatting emails
   8809 for display. :)
   8810 
   8811 -- 
   8812 William <wmorgan-sup at masanjin.net>
   8813 
   8814 From its.jeff.balogh@gmail.com  Wed Jan 30 03:21:18 2008
   8815 From: its.jeff.balogh@gmail.com (Jeff Balogh)
   8816 Date: Wed, 30 Jan 2008 03:21:18 -0500
   8817 Subject: [sup-talk] [PATCH] don't try to open the next thread if there isn't
   8818 	one available
   8819 Message-ID: <1201681010-sup-3463@archie>
   8820 
   8821 When you're on the last thread of a ThreadSet and press ',<key>',
   8822 nothing happens, but you can't '.<key>' since @dying == true.  This
   8823 patch changes :next to :kill if there is no next thread.
   8824 ---
   8825 I usually traverse my inbox with ',a', so it annoys me when sup gets stuck on
   8826 the last thread.  This patch implements what I expect to happen: the thread is
   8827 killed and the previous buffer pops up.
   8828 
   8829  lib/sup/modes/thread-index-mode.rb |    4 ++++
   8830  lib/sup/modes/thread-view-mode.rb  |    2 ++
   8831  2 files changed, 6 insertions(+), 0 deletions(-)
   8832 
   8833 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
   8834 index 7686098..d6c1b21 100644
   8835 --- a/lib/sup/modes/thread-index-mode.rb
   8836 +++ b/lib/sup/modes/thread-index-mode.rb
   8837 @@ -121,6 +121,10 @@ EOS
   8838  
   8839      select t, b
   8840    end
   8841 +
   8842 +  def has_thread_after thread
   8843 +      @lines[thread] < @threads.length - 1
   8844 +  end
   8845    
   8846    def handle_single_message_labeled_update sender, m
   8847      ## no need to do anything different here; we don't differentiate 
   8848 diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
   8849 index 961fc5d..e79e410 100644
   8850 --- a/lib/sup/modes/thread-view-mode.rb
   8851 +++ b/lib/sup/modes/thread-view-mode.rb
   8852 @@ -416,6 +416,8 @@ EOS
   8853      return if @dying
   8854      @dying = true
   8855  
   8856 +    op = :kill unless @index_mode.has_thread_after(@thread)
   8857 +
   8858      case op
   8859      when :next
   8860        @index_mode.launch_next_thread_after(@thread) do
   8861 -- 
   8862 1.5.3.7
   8863 
   8864 
   8865 From nicolas.pouillard@gmail.com  Wed Jan 30 04:21:28 2008
   8866 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   8867 Date: Wed, 30 Jan 2008 10:21:28 +0100
   8868 Subject: [sup-talk] Enter on links
   8869 In-Reply-To: <1201636010-sup-8816@buckwheat>
   8870 References: <1201636010-sup-8816@buckwheat>
   8871 Message-ID: <1201684735-sup-6012@ausone.inria.fr>
   8872 
   8873 Excerpts from Daniel Wagner's message of Tue Jan 29 20:47:22 +0100 2008:
   8874 > Hello!
   8875 > 
   8876 > One thing I find myself doing all the time is highlighting a web address
   8877 > and pasting it into Firefox.  For long URLs (a sad but common truth),
   8878 > it's even more annoying... hit 'D' to open it up in vim, navigate to the
   8879 > link, Jx a few times, then *finally* copy and paste.  Is there a better
   8880 > way to do this?  Since I couldn't find any feature like this in the
   8881 > help, I'm going to assume the answer is no.
   8882 
   8883 Concerning  multiline  links,  I've hacked sup to don't wrap at 80 columns but
   8884 at  160. This fixes the problem at least when the mail has not been wrapped by
   8885 the sender.
   8886 
   8887 -- 
   8888 Nicolas Pouillard aka Ertai
   8889 -------------- next part --------------
   8890 A non-text attachment was scrubbed...
   8891 Name: signature.asc
   8892 Type: application/pgp-signature
   8893 Size: 186 bytes
   8894 Desc: not available
   8895 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080130/5a26c0cd/attachment.bin 
   8896 
   8897 From manish@gslab.com  Wed Jan 30 08:14:00 2008
   8898 From: manish@gslab.com (Manish Sapariya)
   8899 Date: Wed, 30 Jan 2008 18:44:00 +0530
   8900 Subject: [sup-talk] exception when pressing page down (Space) when sup was
   8901 	loading
   8902 Message-ID: <47A07818.2040608@gslab.com>
   8903 
   8904 I ran into following exception when I start sup and immediately press Space
   8905 multiple times.
   8906 Regards,
   8907 Manish
   8908 
   8909 
   8910 [manish at alioth ~]$ sup
   8911 [Wed Jan 30 18:40:29 +0530 2008] using character set encoding "UTF-8"
   8912 [Wed Jan 30 18:40:29 +0530 2008] locking /home/manish/.sup/lock...
   8913 [Wed Jan 30 18:40:29 +0530 2008] crypto: detected gpg binary in /usr/bin/gpg
   8914 [Wed Jan 30 18:40:29 +0530 2008] loading index...
   8915 [Wed Jan 30 18:40:29 +0530 2008] loaded index of 8107 messages
   8916 [Wed Jan 30 18:40:29 +0530 2008] starting curses
   8917 [Wed Jan 30 18:40:36 +0530 2008] stopped cursing
   8918 [Wed Jan 30 18:40:36 +0530 2008] oh crap, an exception
   8919 [Wed Jan 30 18:40:36 +0530 2008] unlocking /home/manish/.sup/lock...
   8920 ----------------------------------------------------------------
   8921 I'm very sorry. It seems that an error occurred in Sup. Please
   8922 accept my sincere apologies. If you don't mind, please send the
   8923 contents of sup-exception-log.txt and a brief report of the
   8924 circumstances to sup-talk at rubyforge dot orgs so that I might
   8925 address this problem. Thank you!
   8926 
   8927 Sincerely,
   8928 William
   8929 ----------------------------------------------------------------
   8930 --- EOFError from thread: load threads for thread-index-mode
   8931 End-of-File Error occured at <except.c>:93 in xraise
   8932 Error occured in compound_io.c:137 - cmpdi_read_i
   8933         Tried to read past end of file. File length is <1000> and tried 
   8934 to read to <3252949>
   8935 
   8936 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/index.rb:224:in `default'
   8937 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/index.rb:224:in `[]'
   8938 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/index.rb:224:in 
   8939 `each_id_by_date'
   8940 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/index.rb:224:in `each'
   8941 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/index.rb:224:in 
   8942 `each_id_by_date'
   8943 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/thread.rb:326:in 
   8944 `load_n_threads'
   8945 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:462:in 
   8946 `__unprotected_load_n_threads'
   8947 (eval):12:in `load_n_threads'
   8948 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:451:in 
   8949 `load_n_threads_background'
   8950 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup.rb:60:in `reporting_thread'
   8951 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `initialize'
   8952 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `new'
   8953 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `reporting_thread'
   8954 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:450:in 
   8955 `load_n_threads_background'
   8956 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:501:in 
   8957 `__unprotected_load_threads'
   8958 (eval):12:in `load_threads'
   8959 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:64:in 
   8960 `initialize'
   8961 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/line-cursor-mode.rb:177:in 
   8962 `call'
   8963 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/line-cursor-mode.rb:177:in 
   8964 `call_load_more_callbacks'
   8965 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/line-cursor-mode.rb:177:in 
   8966 `each'
   8967 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/line-cursor-mode.rb:177:in 
   8968 `call_load_more_callbacks'
   8969 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/line-cursor-mode.rb:80:in 
   8970 `cursor_down'
   8971 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/mode.rb:49:in `send'
   8972 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/mode.rb:49:in `handle_input'
   8973 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/buffer.rb:231:in `handle_input'
   8974 /usr/lib/ruby/gems/1.8/gems/sup-0.4/bin/sup:218
   8975 /usr/bin/sup:16:in `load'
   8976 /usr/bin/sup:16
   8977 --- SystemExit from thread: main
   8978 End-of-File Error occured at <except.c>:93 in xraise
   8979 Error occured in compound_io.c:137 - cmpdi_read_i
   8980         Tried to read past end of file. File length is <1000> and tried 
   8981 to read to <3252949>
   8982 
   8983 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup.rb:64:in `pass'
   8984 /usr/lib/ruby/1.8/monitor.rb:231:in `mon_exit'
   8985 /usr/lib/ruby/1.8/monitor.rb:244:in `synchronize'
   8986 /usr/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:580:in `size'
   8987 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/index.rb:212:in `size'
   8988 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/util.rb:497:in `send'
   8989 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/util.rb:497:in `method_missing'
   8990 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/inbox-mode.rb:52:in 
   8991 `status'
   8992 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/buffer.rb:727:in 
   8993 `get_status_and_title'
   8994 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/buffer.rb:263:in `draw_screen'
   8995 /usr/lib/ruby/gems/1.8/gems/sup-0.4/bin/sup:283
   8996 /usr/bin/sup:16:in `load'
   8997 /usr/bin/sup:16
   8998 [manish at alioth ~]$
   8999 
   9000 From manish@gslab.com  Wed Jan 30 08:39:12 2008
   9001 From: manish@gslab.com (Manish Sapariya)
   9002 Date: Wed, 30 Jan 2008 19:09:12 +0530
   9003 Subject: [sup-talk] Exception when refining query
   9004 Message-ID: <47A07E00.9080702@gslab.com>
   9005 
   9006 Use case:
   9007 search all mails using F expression is to:mail at a.com.
   9008 Press . to refine the query and I added "OR cc:mail at a.com"
   9009 and it crashed
   9010 
   9011 Regards,
   9012 Manish
   9013 
   9014 [manish at alioth ~]$ sup
   9015 [Wed Jan 30 18:44:59 +0530 2008] using character set encoding "UTF-8"
   9016 [Wed Jan 30 18:44:59 +0530 2008] locking /home/manish/.sup/lock...
   9017 [Wed Jan 30 18:44:59 +0530 2008] crypto: detected gpg binary in /usr/bin/gpg
   9018 [Wed Jan 30 18:44:59 +0530 2008] loading index...
   9019 [Wed Jan 30 18:44:59 +0530 2008] loaded index of 8098 messages
   9020 [Wed Jan 30 18:44:59 +0530 2008] starting curses
   9021 [Wed Jan 30 19:06:44 +0530 2008] stopped cursing
   9022 [Wed Jan 30 19:06:44 +0530 2008] oh crap, an exception
   9023 [Wed Jan 30 19:06:44 +0530 2008] unlocking /home/manish/.sup/lock...
   9024 ----------------------------------------------------------------
   9025 I'm very sorry. It seems that an error occurred in Sup. Please
   9026 accept my sincere apologies. If you don't mind, please send the
   9027 contents of sup-exception-log.txt and a brief report of the
   9028 circumstances to sup-talk at rubyforge dot orgs so that I might
   9029 address this problem. Thank you!
   9030 
   9031 Sincerely,
   9032 William
   9033 ----------------------------------------------------------------
   9034 --- ArgumentError from thread: main
   9035 wrong number of arguments (2 for 1)
   9036 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/search-results-mode.rb:18:in 
   9037 `spawn_from_query'
   9038 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/search-results-mode.rb:18:in 
   9039 `refine_search'
   9040 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/mode.rb:49:in `send'
   9041 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/mode.rb:49:in `handle_input'
   9042 /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/buffer.rb:231:in `handle_input'
   9043 /usr/lib/ruby/gems/1.8/gems/sup-0.4/bin/sup:218
   9044 /usr/bin/sup:16:in `load'
   9045 /usr/bin/sup:16
   9046 [manish at alioth ~]$
   9047 
   9048 From manish@gslab.com  Wed Jan 30 08:45:21 2008
   9049 From: manish@gslab.com (Manish Sapariya)
   9050 Date: Wed, 30 Jan 2008 19:15:21 +0530
   9051 Subject: [sup-talk] what would be the best way to archive certain messages
   9052 Message-ID: <47A07F71.3010208@gslab.com>
   9053 
   9054 Hi,
   9055 I dont want all the list messages in my inbox. How can I do it using hooks?
   9056 Is there any message specific interface or property which I can manipulate
   9057 in before-add-message hook?
   9058 
   9059 Thanks and Regards,
   9060 Manish
   9061 
   9062 From johnbent@lanl.gov  Wed Jan 30 10:43:33 2008
   9063 From: johnbent@lanl.gov (John Bent)
   9064 Date: Wed, 30 Jan 2008 08:43:33 -0700
   9065 Subject: [sup-talk] [PATCH] don't try to open the next thread if
   9066 	there	isn't one available
   9067 In-Reply-To: <1201681010-sup-3463@archie>
   9068 References: <1201681010-sup-3463@archie>
   9069 Message-ID: <1201707688-sup-6637@tangerine.lanl.gov>
   9070 
   9071 Excerpts from its.jeff.balogh's message of Wed Jan 30 01:21:18 -0700 2008:
   9072 > When you're on the last thread of a ThreadSet and press ',<key>',
   9073 > nothing happens, but you can't '.<key>' since @dying == true.  This
   9074 > patch changes :next to :kill if there is no next thread.
   9075 > ---
   9076 > I usually traverse my inbox with ',a', so it annoys me when sup gets stuck on
   9077 > the last thread.  This patch implements what I expect to happen: the thread is
   9078 > killed and the previous buffer pops up.
   9079 > 
   9080 Perhaps I should just change my habits but I like to traverse my inbox in
   9081 chronological order (i.e. bottom up instead of top down).  If anyone could 
   9082 make a patch that does ,a or ,n but moves it up instead of down, I'd very
   9083 much appreciate it.
   9084 
   9085 By the way, I finally figured out what n and p are for in thread-view mode.
   9086 They are really very nice.  The auto-topping and auto-margin positioning are
   9087 very slick.
   9088 
   9089 John
   9090 
   9091 From johnbent@lanl.gov  Wed Jan 30 11:09:04 2008
   9092 From: johnbent@lanl.gov (John Bent)
   9093 Date: Wed, 30 Jan 2008 09:09:04 -0700
   9094 Subject: [sup-talk] what would be the best way to archive certain
   9095 	messages
   9096 In-Reply-To: <47A07F71.3010208@gslab.com>
   9097 References: <47A07F71.3010208@gslab.com>
   9098 Message-ID: <1201709055-sup-5205@tangerine.lanl.gov>
   9099 
   9100 Excerpts from Manish Sapariya's message of Wed Jan 30 06:45:21 -0700 2008:
   9101 > Hi,
   9102 > I dont want all the list messages in my inbox. How can I do it using hooks?
   9103 > Is there any message specific interface or property which I can manipulate
   9104 > in before-add-message hook?
   9105 > 
   9106 Hey Manish,
   9107 
   9108 Currently the before-add-message hook can only apply labels but cannot be used
   9109 to archive messages.  To automatically archive messages, they must be in a
   9110 different source.  I achieved this by using fetchmail to pull my mail and
   9111 procmail to filter some messages to different mboxes.  I then used 'sup-add
   9112 --archive' for those new mboxes.  
   9113 
   9114 John
   9115 
   9116 From marcus-sup@bar-coded.net  Wed Jan 30 11:26:36 2008
   9117 From: marcus-sup@bar-coded.net (Marcus Williams)
   9118 Date: Wed, 30 Jan 2008 16:26:36 +0000
   9119 Subject: [sup-talk] what would be the best way to archive certain
   9120 	messages
   9121 In-Reply-To: <1201709055-sup-5205@tangerine.lanl.gov>
   9122 References: <47A07F71.3010208@gslab.com>
   9123 	<1201709055-sup-5205@tangerine.lanl.gov>
   9124 Message-ID: <1201710383-sup-6775@tomsk>
   9125 
   9126 On 30.1.2008, John Bent wrote:
   9127 > Currently the before-add-message hook can only apply labels but cannot be used
   9128 > to archive messages.
   9129 
   9130 message.remove_label :inbox
   9131 
   9132 ... works for me :)
   9133 
   9134 Marcus
   9135 
   9136 From wmorgan-sup@masanjin.net  Wed Jan 30 12:14:42 2008
   9137 From: wmorgan-sup@masanjin.net (William Morgan)
   9138 Date: Wed, 30 Jan 2008 09:14:42 -0800
   9139 Subject: [sup-talk] NoMethodError running sup-config
   9140 In-Reply-To: <DDD895BC-24BA-45F4-A895-2647E83D41DB@gmail.com>
   9141 References: <B47C5822-EFB0-4680-9932-F8C2FAC7C78A@gmail.com>
   9142 	<1201220266-sup-191@south>
   9143 	<DDD895BC-24BA-45F4-A895-2647E83D41DB@gmail.com>
   9144 Message-ID: <1201713052-sup-6822@south>
   9145 
   9146 Reformatted excerpts from Sho Fukamachi's message of 2008-01-25:
   9147 > Great, I cloned it and ran from there. The problem is fixed, but
   9148 > exposed another problem when it tried to do a sup-add, which also
   9149 > errored out. I was able, however, to do the sup-add manually without
   9150 > further issue.
   9151 
   9152 If you have the backtrace, I'd be happy to take a look.
   9153 
   9154 > Anyway, thanks for your help! I really like sup .. it's a joy to use.
   9155 
   9156 Glad to hear it!
   9157 
   9158 > One more thing: there seem to be pretty severe display errors when I
   9159 > display (and scroll through) japanese mail. I'm not really sure how to
   9160 > go about troubleshooting what's wrong. Shall I make a new thread here,
   9161 > or send you the mail I have in mind which exposes the problem
   9162 > directly?
   9163 
   9164 The problem is that the Ruby ncurses library doesn't have wide character
   9165 support. So non-ASCII characters should appear, if the locale is
   9166 detected correctly, but ncurses will be completely confused every time
   9167 it prints a wide character because it expects the character to have
   9168 taken multiple columns whereas the terminal interpreted it as only one.
   9169 
   9170 At least, that's my limited understanding of the issue.
   9171 
   9172 There was some preliminary work at recompiling the ruby ncurses library
   9173 to enable wide characters here:
   9174 
   9175 http://rubyforge.org/pipermail/sup-talk/2007-October/000297.html
   9176 
   9177 -- 
   9178 William <wmorgan-sup at masanjin.net>
   9179 
   9180 From wmorgan-sup@masanjin.net  Wed Jan 30 12:24:12 2008
   9181 From: wmorgan-sup@masanjin.net (William Morgan)
   9182 Date: Wed, 30 Jan 2008 09:24:12 -0800
   9183 Subject: [sup-talk] char. encoding problems - garbled output
   9184 In-Reply-To: <1201262947-sup-9132@sieni>
   9185 References: <478F4F67.1040405@iki.fi> <1200763427-sup-2564@south>
   9186 	<1201262947-sup-9132@sieni>
   9187 Message-ID: <1201713747-sup-9771@south>
   9188 
   9189 Reformatted excerpts from Marko Myllym?ki's message of 2008-01-25:
   9190 > Sorry, I'm really Sup-newbie and I don't know how to apply these
   9191 > patches yet :) ... figuring it out later.
   9192 
   9193 That change went out in the 0.4 release, so hopefully 0.4 will work for
   9194 you.
   9195 
   9196 -- 
   9197 William <wmorgan-sup at masanjin.net>
   9198 
   9199 From wmorgan-sup@masanjin.net  Wed Jan 30 12:29:30 2008
   9200 From: wmorgan-sup@masanjin.net (William Morgan)
   9201 Date: Wed, 30 Jan 2008 09:29:30 -0800
   9202 Subject: [sup-talk] missing run-mailcap
   9203 In-Reply-To: <1201307667-sup-2659@tangerine.lanl.gov>
   9204 References: <1201019996-sup-8960@tangerine.lanl.gov>
   9205 	<1201041081-sup-6034@tangerine.lanl.gov>
   9206 	<1201210323-sup-6116@tangerine.lanl.gov>
   9207 	<1201216741-sup-4105@south>
   9208 	<1201218489-sup-3542@tangerine.lanl.gov>
   9209 	<1201220092-sup-8263@south> <1201222453-sup-1190@spooky.local>
   9210 	<1201235901-sup-7426@tangerine.lanl.gov>
   9211 	<1201307667-sup-2659@tangerine.lanl.gov>
   9212 Message-ID: <1201714011-sup-6178@south>
   9213 
   9214 Reformatted excerpts from John Bent's message of 2008-01-25:
   9215 > The hook works (system "open \'#{filename}\'"), but sup thinks it is
   9216 > failing.  I get a message saying view failed, displaying as text.
   9217 > Maybe it should be (! system "open \'#{filename}\'") ?
   9218 
   9219 Weird. Kernel#system returns true if the command succeeded and false
   9220 otherwise, so it should work as is.
   9221 
   9222 You could try:
   9223   system "open '#{filename}'"
   9224   $?.success?
   9225 
   9226 But there's no reason that should work and the original shouldn't. You
   9227 don't have a debugging print statement or anything like that as the
   9228 final line of the hook, do you?
   9229 
   9230 > Also, I added the \' because I noticed before that sometimes filename
   9231 > has spaces in it and then open won't work.
   9232 
   9233 Good point. Backslashes optional though. :)
   9234 
   9235 -- 
   9236 William <wmorgan-sup at masanjin.net>
   9237 
   9238 From wmorgan-sup@masanjin.net  Wed Jan 30 12:38:05 2008
   9239 From: wmorgan-sup@masanjin.net (William Morgan)
   9240 Date: Wed, 30 Jan 2008 09:38:05 -0800
   9241 Subject: [sup-talk] Persistent "Source Changed"
   9242 In-Reply-To: <1201321071-sup-2268@chris-tablet>
   9243 References: <1201321071-sup-2268@chris-tablet>
   9244 Message-ID: <1201714217-sup-7409@south>
   9245 
   9246 Reformatted excerpts from Christopher Warrington's message of 2008-01-25:
   9247 > I am getting a persistent "Source Changed" notification on my IMAP 
   9248 > INBOX. No amount of sup-syncing corrects this.
   9249 
   9250 Hm. Just to confirm, are you using sup-sync --changed? And this is an
   9251 IMAP folder that worked before? Is it an Exchange folder, by any chance?
   9252 
   9253 > I don't quite know where to start figuring out what the issue it. Any
   9254 > help would be appreciated.
   9255 
   9256 If you want to play around in the code a bit, you can try and figure out
   9257 where in imap.rb the OutOfSyncSourceError is being thrown. That should
   9258 make it easy to figure out why Sup thinks it's out of sync.
   9259 
   9260 -- 
   9261 William <wmorgan-sup at masanjin.net>
   9262 
   9263 From johnbent@lanl.gov  Wed Jan 30 12:54:22 2008
   9264 From: johnbent@lanl.gov (John Bent)
   9265 Date: Wed, 30 Jan 2008 10:54:22 -0700
   9266 Subject: [sup-talk] missing run-mailcap
   9267 In-Reply-To: <1201714011-sup-6178@south>
   9268 References: <1201019996-sup-8960@tangerine.lanl.gov>
   9269 	<1201041081-sup-6034@tangerine.lanl.gov>
   9270 	<1201210323-sup-6116@tangerine.lanl.gov>
   9271 	<1201216741-sup-4105@south>
   9272 	<1201218489-sup-3542@tangerine.lanl.gov>
   9273 	<1201220092-sup-8263@south> <1201222453-sup-1190@spooky.local>
   9274 	<1201235901-sup-7426@tangerine.lanl.gov>
   9275 	<1201307667-sup-2659@tangerine.lanl.gov>
   9276 	<1201714011-sup-6178@south>
   9277 Message-ID: <1201715536-sup-6254@tangerine.lanl.gov>
   9278 
   9279 Excerpts from William Morgan's message of Wed Jan 30 10:29:30 -0700 2008:
   9280 > Reformatted excerpts from John Bent's message of 2008-01-25:
   9281 > > The hook works (system "open \'#{filename}\'"), but sup thinks it is
   9282 > > failing.  I get a message saying view failed, displaying as text.
   9283 > > Maybe it should be (! system "open \'#{filename}\'") ?
   9284 > 
   9285 > Weird. Kernel#system returns true if the command succeeded and false
   9286 > otherwise, so it should work as is.
   9287 > 
   9288 > You could try:
   9289 >   system "open '#{filename}'"
   9290 >   $?.success?
   9291 > 
   9292 same problem.  the attachment is successfully opened but sup thinks it
   9293 failed and sup displays it as text.
   9294 
   9295 > But there's no reason that should work and the original shouldn't. You
   9296 > don't have a debugging print statement or anything like that as the
   9297 > final line of the hook, do you?
   9298 > 
   9299 nope, just the exact two lines you supplied above.
   9300 
   9301 I wonder if the problem is that system isn't correctly understanding
   9302 the return value from open?  
   9303 
   9304 tangerine:~>open K.png
   9305 tangerine:~>echo $?
   9306 0
   9307 
   9308 hmmm, I would think 0 is the expected success value?  How could I reverse
   9309 true and false?  I'm curious to try that but 
   9310 ! $?.success? 
   9311 $?.success?true:false 
   9312 don't work, they error out and sup defaults to run-mailcap.
   9313 
   9314 John
   9315 
   9316 From johnbent@lanl.gov  Wed Jan 30 13:05:20 2008
   9317 From: johnbent@lanl.gov (John Bent)
   9318 Date: Wed, 30 Jan 2008 11:05:20 -0700
   9319 Subject: [sup-talk] can't remove draft label
   9320 Message-ID: <1201716067-sup-3586@tangerine.lanl.gov>
   9321 
   9322 I had two messages that weren't drafts that kept showing up with
   9323 draft labels on them.  I removed everything from the .sup/drafts
   9324 folder - no change.  I did 'sup-tweak-labels --remove draft' on my
   9325 mbox, it said:
   9326 
   9327 Scanned 13 / 13 messages and changed 13.
   9328 
   9329 At which point, I restarted sup and found that one of the two falsely
   9330 labeled drafts was removed.  But there's still one.  I retried the
   9331 sup-tweak-labels but to no avail.  draft is not a user supplied label
   9332 so just editing the message labels doesn't work.  The thread that is
   9333 marked as a draft does not have a draft anywhere in it (i.e. I skip to
   9334 each message and hit 'e' but it always says, "this isn't a draft").
   9335 
   9336 Any ideas?  Thanks!
   9337 
   9338 From wmorgan-sup@masanjin.net  Wed Jan 30 13:26:03 2008
   9339 From: wmorgan-sup@masanjin.net (William Morgan)
   9340 Date: Wed, 30 Jan 2008 10:26:03 -0800
   9341 Subject: [sup-talk] missing run-mailcap
   9342 In-Reply-To: <1201715536-sup-6254@tangerine.lanl.gov>
   9343 References: <1201019996-sup-8960@tangerine.lanl.gov>
   9344 	<1201041081-sup-6034@tangerine.lanl.gov>
   9345 	<1201210323-sup-6116@tangerine.lanl.gov>
   9346 	<1201216741-sup-4105@south>
   9347 	<1201218489-sup-3542@tangerine.lanl.gov>
   9348 	<1201220092-sup-8263@south> <1201222453-sup-1190@spooky.local>
   9349 	<1201235901-sup-7426@tangerine.lanl.gov>
   9350 	<1201307667-sup-2659@tangerine.lanl.gov>
   9351 	<1201714011-sup-6178@south>
   9352 	<1201715536-sup-6254@tangerine.lanl.gov>
   9353 Message-ID: <1201717294-sup-1892@south>
   9354 
   9355 Reformatted excerpts from John Bent's message of 2008-01-30:
   9356 > I wonder if the problem is that system isn't correctly understanding
   9357 > the return value from open?  
   9358 
   9359 Try with irb:
   9360 
   9361   $ irb
   9362   irb(main):001:0> system "ls"
   9363   [...]
   9364   => true
   9365   irb(main):002:0> system "asdfasdfa"
   9366   => false
   9367 
   9368 What happens with open?
   9369 
   9370 > hmmm, I would think 0 is the expected success value?  How could I reverse
   9371 > true and false?  I'm curious to try that but 
   9372 > ! $?.success? 
   9373 
   9374 This one should work.
   9375 
   9376 As a sanity check:
   9377   system "open '#{filename}'"
   9378   true
   9379 
   9380 Should always count as a success. Is that true?
   9381 
   9382 -- 
   9383 William <wmorgan-sup at masanjin.net>
   9384 
   9385 From johnbent@lanl.gov  Wed Jan 30 13:35:22 2008
   9386 From: johnbent@lanl.gov (John Bent)
   9387 Date: Wed, 30 Jan 2008 11:35:22 -0700
   9388 Subject: [sup-talk] missing run-mailcap
   9389 In-Reply-To: <1201717294-sup-1892@south>
   9390 References: <1201019996-sup-8960@tangerine.lanl.gov>
   9391 	<1201041081-sup-6034@tangerine.lanl.gov>
   9392 	<1201210323-sup-6116@tangerine.lanl.gov>
   9393 	<1201216741-sup-4105@south>
   9394 	<1201218489-sup-3542@tangerine.lanl.gov>
   9395 	<1201220092-sup-8263@south> <1201222453-sup-1190@spooky.local>
   9396 	<1201235901-sup-7426@tangerine.lanl.gov>
   9397 	<1201307667-sup-2659@tangerine.lanl.gov>
   9398 	<1201714011-sup-6178@south>
   9399 	<1201715536-sup-6254@tangerine.lanl.gov>
   9400 	<1201717294-sup-1892@south>
   9401 Message-ID: <1201718069-sup-9900@tangerine.lanl.gov>
   9402 
   9403 Excerpts from William Morgan's message of Wed Jan 30 11:26:03 -0700 2008:
   9404 > Reformatted excerpts from John Bent's message of 2008-01-30:
   9405 > > I wonder if the problem is that system isn't correctly understanding
   9406 > > the return value from open?  
   9407 > 
   9408 > Try with irb:
   9409 > 
   9410 >   $ irb
   9411 >   irb(main):001:0> system "ls"
   9412 >   [...]
   9413 >   => true
   9414 >   irb(main):002:0> system "asdfasdfa"
   9415 >   => false
   9416 > 
   9417 > What happens with open?
   9418 > 
   9419 => true
   9420 
   9421 > > hmmm, I would think 0 is the expected success value?  How could I reverse
   9422 > > true and false?  I'm curious to try that but 
   9423 > > ! $?.success? 
   9424 > 
   9425 > This one should work.
   9426 > 
   9427 > As a sanity check:
   9428 >   system "open '#{filename}'"
   9429 >   true
   9430 > 
   9431 > Should always count as a success. Is that true?
   9432 > 
   9433 same problem.  It opens successfully, but sup thinks it doesn't and
   9434 displays it as text.  All I see in the log buffer is:
   9435  hook: read 'mime-view' from /Users/johnbent/.sup/hooks/mime-view.rb
   9436 
   9437 Ah.  But
   9438 system "open '#{filename}'"
   9439 false
   9440 
   9441 works perfectly!  (not sure that's expected but I'm happy!)
   9442 
   9443 Thanks,
   9444 
   9445 John
   9446 
   9447 From chrisw@rice.edu  Wed Jan 30 13:38:54 2008
   9448 From: chrisw@rice.edu (Christopher Warrington)
   9449 Date: Wed, 30 Jan 2008 12:38:54 -0600
   9450 Subject: [sup-talk] Persistent "Source Changed"
   9451 In-Reply-To: <1201714217-sup-7409@south>
   9452 References: <1201321071-sup-2268@chris-tablet> <1201714217-sup-7409@south>
   9453 Message-ID: <1201717946-sup-1579@chris-tablet>
   9454 
   9455 Excerpts from William Morgan's message of Wed Jan 30 11:38:05 -0600 2008:
   9456 >> I am getting a persistent "Source Changed" notification on my IMAP 
   9457 >> INBOX. No amount of sup-syncing corrects this.
   9458 > Hm. Just to confirm, are you using sup-sync --changed? And this is an
   9459 > IMAP folder that worked before? Is it an Exchange folder, by any chance?
   9460 
   9461 Yup, sup-sync --changed imaps://server.tld/Path/to/Folder
   9462 
   9463 I'm pretty sure that it is a Cyrus server:
   9464 http://cyrusimap.web.cmu.edu/
   9465 
   9466 >> I don't quite know where to start figuring out what the issue it. Any
   9467 >> help would be appreciated.
   9468 > If you want to play around in the code a bit, you can try and figure out
   9469 > where in imap.rb the OutOfSyncSourceError is being thrown. That should
   9470 > make it easy to figure out why Sup thinks it's out of sync.
   9471 
   9472 It has stopped, but the next time it happens (it has stopped are
   9473 restarted twice now) I'll take a look.
   9474 
   9475 Thanks for the pointer.
   9476 
   9477 -- 
   9478 Christopher Warrington <chrisw at rice.edu>
   9479 
   9480 From its.jeff.balogh@gmail.com  Wed Jan 30 18:05:40 2008
   9481 From: its.jeff.balogh@gmail.com (Jeff Balogh)
   9482 Date: Wed, 30 Jan 2008 18:05:40 -0500
   9483 Subject: [sup-talk] [PATCH] don't try to open the next thread if there
   9484 	isn't one available
   9485 In-Reply-To: <1201681010-sup-3463@archie>
   9486 References: <1201681010-sup-3463@archie>
   9487 Message-ID: <1201732604-sup-4815@archie>
   9488 
   9489 Jeff Balogh wrote:
   9490 > When you're on the last thread of a ThreadSet and press ',<key>',
   9491 > nothing happens, but you can't '.<key>' since @dying == true.  This
   9492 > patch changes :next to :kill if there is no next thread.
   9493 > ---
   9494 > I usually traverse my inbox with ',a', so it annoys me when sup gets stuck on
   9495 > the last thread.  This patch implements what I expect to happen: the thread is
   9496 > killed and the previous buffer pops up.
   9497 
   9498 Ok, this patch causes a no block given exception with ',n' on the last thread.
   9499 As you might expect, no block is given with the do nothing command.
   9500 
   9501 Here's where it's happening:
   9502   def dispatch op
   9503     return if @dying
   9504     @dying = true
   9505 
   9506     op = :kill unless @index_mode.has_thread_after(@thread)
   9507 
   9508     case op
   9509     when :next
   9510       @index_mode.launch_next_thread_after(@thread) do
   9511         @thread.save Index if block_given? && yield
   9512         BufferManager.kill_buffer_safely buffer
   9513       end
   9514     when :kill
   9515       @thread.save Index if yield
   9516       BufferManager.kill_buffer_safely buffer
   9517     else
   9518       raise ArgumentError, "unknown thread dispatch operation #{op.inspect}"
   9519     end
   9520   end
   9521 
   9522 The :next case guards against this exception with 'if block_given? && yield'.  If
   9523 I put that in the :kill case, those two lines will be exact duplicates of the
   9524 lines above.
   9525 
   9526 Is there a clean way to handle this?  I'm learning Ruby as I go along, so please
   9527 forgive me if the answer is obvious.
   9528 
   9529 From vasudeva@linkswarm.com  Wed Jan 30 19:29:17 2008
   9530 From: vasudeva@linkswarm.com (vasudeva)
   9531 Date: Wed, 30 Jan 2008 19:29:17 -0500
   9532 Subject: [sup-talk] Enter on links
   9533 In-Reply-To: <1201684735-sup-6012@ausone.inria.fr>
   9534 References: <1201636010-sup-8816@buckwheat>
   9535 	<1201684735-sup-6012@ausone.inria.fr>
   9536 Message-ID: <1201739282-sup-912@lenin>
   9537 
   9538 Excerpts from Nicolas Pouillard's message of Wed Jan 30 04:21:28 -0500 2008:
   9539 > Concerning  multiline  links,  I've hacked sup to don't wrap at 80 columns but
   9540 > at  160. This fixes the problem at least when the mail has not been wrapped by
   9541 > the sender.
   9542 
   9543 Care to share? I'd like to see this so I can figure out a way to make
   9544 sup wrap where I want to.
   9545 
   9546 
   9547 -- 
   9548 linkswarm.com :: Collaborative Insolence
   9549 vasudeva.linkswarm.com/gallery :: For The Faint of Heart
   9550 
   9551 
   9552 From chrisw@rice.edu  Wed Jan 30 23:09:51 2008
   9553 From: chrisw@rice.edu (Christopher Warrington)
   9554 Date: Wed, 30 Jan 2008 22:09:51 -0600
   9555 Subject: [sup-talk] Exception when refining query
   9556 In-Reply-To: <47A07E00.9080702@gslab.com>
   9557 References: <47A07E00.9080702@gslab.com>
   9558 Message-ID: <1201752455-sup-9917@chris-tablet>
   9559 
   9560 Excerpts from Manish Sapariya's message of Wed Jan 30 07:39:12 -0600 2008:
   9561 > Use case:
   9562 > search all mails using F expression is to:mail at a.com.
   9563 > Press . to refine the query and I added "OR cc:mail at a.com"
   9564 > and it crashed
   9565 
   9566 I submitted a patch for this a while ago. See:
   9567 http://rubyforge.org/pipermail/sup-talk/2008-January/001046.html
   9568 
   9569 -- 
   9570 Christopher Warrington <chrisw at rice.edu>
   9571 
   9572 
   9573 From chrisw@rice.edu  Wed Jan 30 23:36:09 2008
   9574 From: chrisw@rice.edu (Christopher Warrington)
   9575 Date: Wed, 30 Jan 2008 22:36:09 -0600
   9576 Subject: [sup-talk] can't remove draft label
   9577 In-Reply-To: <1201716067-sup-3586@tangerine.lanl.gov>
   9578 References: <1201716067-sup-3586@tangerine.lanl.gov>
   9579 Message-ID: <1201754138-sup-7276@chris-tablet>
   9580 
   9581 Excerpts from John Bent's message of Wed Jan 30 12:05:20 -0600 2008:
   9582 > I had two messages that weren't drafts that kept showing up with
   9583 > draft labels on them.  I removed everything from the .sup/drafts
   9584 > folder - no change.  I did 'sup-tweak-labels --remove draft' on my
   9585 > mbox, it said:
   9586 > 
   9587 > Scanned 13 / 13 messages and changed 13.
   9588 > 
   9589 > At which point, I restarted sup and found that one of the two falsely
   9590 > labeled drafts was removed.  But there's still one.  I retried the
   9591 > sup-tweak-labels but to no avail.  draft is not a user supplied label
   9592 > so just editing the message labels doesn't work.  The thread that is
   9593 > marked as a draft does not have a draft anywhere in it (i.e. I skip to
   9594 > each message and hit 'e' but it always says, "this isn't a draft").
   9595 > 
   9596 > Any ideas?  Thanks!
   9597 
   9598 Try
   9599 
   9600 sup-sync --changed sup://drafts
   9601 
   9602 -- 
   9603 Christopher Warrington <chrisw at rice.edu>
   9604 
   9605 
   9606 From johnbent@lanl.gov  Thu Jan 31 01:08:09 2008
   9607 From: johnbent@lanl.gov (John Bent)
   9608 Date: Wed, 30 Jan 2008 23:08:09 -0700
   9609 Subject: [sup-talk] can't remove draft label
   9610 In-Reply-To: <1201754138-sup-7276@chris-tablet>
   9611 References: <1201716067-sup-3586@tangerine.lanl.gov>
   9612 	<1201754138-sup-7276@chris-tablet>
   9613 Message-ID: <1201759596-sup-4274@tangerine.lanl.gov>
   9614 
   9615 Excerpts from Christopher Warrington's message of Wed Jan 30 21:36:09 -0700 2008:
   9616 > Excerpts from John Bent's message of Wed Jan 30 12:05:20 -0600 2008:
   9617 > > I had two messages that weren't drafts that kept showing up with
   9618 > > draft labels on them.  I removed everything from the .sup/drafts
   9619 > > folder - no change.  I did 'sup-tweak-labels --remove draft' on my
   9620 > > mbox, it said:
   9621 > > 
   9622 > > Scanned 13 / 13 messages and changed 13.
   9623 > > 
   9624 > > At which point, I restarted sup and found that one of the two falsely
   9625 > > labeled drafts was removed.  But there's still one.  I retried the
   9626 > > sup-tweak-labels but to no avail.  draft is not a user supplied label
   9627 > > so just editing the message labels doesn't work.  The thread that is
   9628 > > marked as a draft does not have a draft anywhere in it (i.e. I skip to
   9629 > > each message and hit 'e' but it always says, "this isn't a draft").
   9630 > > 
   9631 > > Any ideas?  Thanks!
   9632 > 
   9633 > Try
   9634 > 
   9635 > sup-sync --changed sup://drafts
   9636 > 
   9637 Thanks so much for the suggestion.  :)
   9638 I thought it worked because I saw this message:
   9639 
   9640 Deleting missing messages from the index...
   9641 Deleted 1 / 1 messages
   9642 
   9643 But that was just the message I'd previously deleted from the drafts dir.
   9644 The false draft is still there... 
   9645 
   9646 From manish@gslab.com  Thu Jan 31 01:24:37 2008
   9647 From: manish@gslab.com (Manish Sapariya)
   9648 Date: Thu, 31 Jan 2008 11:54:37 +0530
   9649 Subject: [sup-talk] OR query does not yield any result
   9650 Message-ID: <47A169A5.30801@gslab.com>
   9651 
   9652 Hi,
   9653 when I press F and give query as "manish OR nobodypqr" it does not yield
   9654 any result. However I do get results when I query the index using 
   9655 devel./console.sh.
   9656 
   9657 Is this know issue or am I missing something?
   9658 
   9659 Thanks and Regards,
   9660 Manish
   9661 
   9662 From nicolas.pouillard@gmail.com  Thu Jan 31 06:58:13 2008
   9663 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   9664 Date: Thu, 31 Jan 2008 12:58:13 +0100
   9665 Subject: [sup-talk] Enter on links
   9666 In-Reply-To: <1201739282-sup-912@lenin>
   9667 References: <1201636010-sup-8816@buckwheat>
   9668 	<1201684735-sup-6012@ausone.inria.fr> <1201739282-sup-912@lenin>
   9669 Message-ID: <1201780634-sup-8788@ausone.inria.fr>
   9670 
   9671 Excerpts from vasudeva's message of Thu Jan 31 01:29:17 +0100 2008:
   9672 > Excerpts from Nicolas Pouillard's message of Wed Jan 30 04:21:28 -0500 2008:
   9673 > > Concerning  multiline  links,  I've hacked sup to don't wrap at 80 columns but
   9674 > > at  160. This fixes the problem at least when the mail has not been wrapped by
   9675 > > the sender.
   9676 > 
   9677 > Care to share? I'd like to see this so I can figure out a way to make
   9678 > sup wrap where I want to.
   9679 
   9680 That's not really clean and produce a warning the first time.
   9681 
   9682 I've added this line to one of my hooks (after-poll.rb)
   9683 Redwood::Chunk::Text.const_set :WRAP_LEN, 160 unless Redwood::Chunk::Text::WRAP_LEN == 160
   9684 
   9685 -- 
   9686 Nicolas Pouillard aka Ertai
   9687 -------------- next part --------------
   9688 A non-text attachment was scrubbed...
   9689 Name: signature.asc
   9690 Type: application/pgp-signature
   9691 Size: 232 bytes
   9692 Desc: not available
   9693 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080131/911bc2df/attachment.bin 
   9694 
   9695 From patroclo7@gmail.com  Thu Jan 31 08:24:28 2008
   9696 From: patroclo7@gmail.com (Giorgio Lando)
   9697 Date: Thu, 31 Jan 2008 14:24:28 +0100
   9698 Subject: [sup-talk] 0.5 thoughts
   9699 In-Reply-To: <1201260309-sup-8211@ausone.local>
   9700 References: <1201240480-sup-1977@south>
   9701 	<288A3057-1B27-4BDF-9B96-F860CA73C305@gmail.com>
   9702 	<1201260309-sup-8211@ausone.local>
   9703 Message-ID: <1201785683-sup-4356@clarabella.clarabella>
   9704 
   9705 I would like to add a further feature request: sup could accept an email
   9706 address as a command line argument, going directly to prompt for a
   9707 subject or a CC and then passing to the editor. This would be nice for
   9708 interaction with browsers, when clicking on a certain address open a
   9709 program designated to treat the mailto protocol. 
   9710 
   9711 -- 
   9712 Giorgio Lando <patroclo7 at gmail dot com>
   9713 
   9714 From itaylor@uark.edu  Thu Jan 31 13:27:01 2008
   9715 From: itaylor@uark.edu (Ian Taylor)
   9716 Date: Thu, 31 Jan 2008 13:27:01 -0500
   9717 Subject: [sup-talk] [PATCH] spelling error
   9718 Message-ID: <1201803937-sup-5871@red>
   9719 
   9720 
   9721 -- 
   9722 Ian Taylor
   9723 -------------- next part --------------
   9724 A non-text attachment was scrubbed...
   9725 Name: 0001-sepuku-seppuku.patch
   9726 Type: application/octet-stream
   9727 Size: 957 bytes
   9728 Desc: not available
   9729 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080131/b924304f/attachment.obj 
   9730