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-04.txt (198058B) - raw

      1 From marcus-sup@bar-coded.net  Tue Apr  1 06:07:06 2008
      2 From: marcus-sup@bar-coded.net (Marcus Williams)
      3 Date: Tue, 01 Apr 2008 11:07:06 +0100
      4 Subject: [sup-talk] [PATCH] Fix for icon title in gnome terminal
      5 	(possibly others)
      6 In-Reply-To: <1206547886-sup-1106@south>
      7 References: <1204711708-sup-3638@tomsk> <1206547886-sup-1106@south>
      8 Message-ID: <1207044311-sup-3103@tomsk>
      9 
     10 On 26.3.2008, William Morgan wrote:
     11 > Reformatted excerpts from Marcus Williams's message of 2008-03-05:
     12 > > The escape code used for terminal titles works mostly but it doesnt
     13 > > set the icon title as well [1], which is useful when minimised. This
     14 > > patch makes the escape code set both window and icon title so the task
     15 > > bar updates correctly in the gnome terminal (and probably others).
     16 > 
     17 > Reworked slightly (to avoid duplicating the conditional) and applied.
     18 
     19 I couldnt figure out what you meant when you said this but I just
     20 checked the diff that went in and that explained it... My patch
     21 removes the old escape code line and replaces it with a single line,
     22 but your patch prints both escape codes. You only need the one in my
     23 patch as that does both icon and window titles, so you should be able
     24 to have the single line:
     25 
     26 print "\033]0;#{title}\07" if title && @in_x
     27 
     28 ... the fifth char '0' in the escape code means window AND icon (1
     29 would be icon, 2 would be window). Not sure if you misread the patch
     30 or if I duffed up :)
     31 
     32 Marcus
     33 
     34 From wmorgan-sup@masanjin.net  Tue Apr  1 11:03:02 2008
     35 From: wmorgan-sup@masanjin.net (William Morgan)
     36 Date: Tue, 01 Apr 2008 08:03:02 -0700
     37 Subject: [sup-talk] [PATCH] Fix for icon title in gnome terminal
     38 	(possibly others)
     39 In-Reply-To: <1207044311-sup-3103@tomsk>
     40 References: <1204711708-sup-3638@tomsk> <1206547886-sup-1106@south>
     41 	<1207044311-sup-3103@tomsk>
     42 Message-ID: <1207062157-sup-5700@south>
     43 
     44 Reformatted excerpts from Marcus Williams's message of 2008-04-01:
     45 > Not sure if you misread the patch or if I duffed up :)
     46 
     47 I misread the patch. Sorry about that! Should be fixed now.
     48 
     49 -- 
     50 William <wmorgan-sup at masanjin.net>
     51 
     52 From wmorgan-sup@masanjin.net  Tue Apr  1 11:04:55 2008
     53 From: wmorgan-sup@masanjin.net (William Morgan)
     54 Date: Tue, 01 Apr 2008 08:04:55 -0700
     55 Subject: [sup-talk] sup crashes on startup
     56 In-Reply-To: <f93a6bcc0803281513s429f3a3bw485c63e5d9cce818@mail.gmail.com>
     57 References: <f93a6bcc0803281513s429f3a3bw485c63e5d9cce818@mail.gmail.com>
     58 Message-ID: <1207062263-sup-7899@south>
     59 
     60 Reformatted excerpts from Martin DeMello's message of 2008-03-28:
     61 > --- ArgumentError from thread: main
     62 > no name for account
     63 
     64 What does your ~/.sup/config.yaml look like? This is complaining about
     65 that. (Not the most obvious error, I'll admit.)
     66 
     67 -- 
     68 William <wmorgan-sup at masanjin.net>
     69 
     70 From wmorgan-sup@masanjin.net  Tue Apr  1 11:35:23 2008
     71 From: wmorgan-sup@masanjin.net (William Morgan)
     72 Date: Tue, 01 Apr 2008 08:35:23 -0700
     73 Subject: [sup-talk] crash while sup is sitting idle
     74 In-Reply-To: <20080329030356.GA8459@gurski.org>
     75 References: <20080329030356.GA8459@gurski.org>
     76 Message-ID: <1207064087-sup-7567@south>
     77 
     78 Reformatted excerpts from Michael Gurski's message of 2008-03-28:
     79 > After a 28+ hour sup-sync -a -o, on git head, sup sitting idle crashed
     80 > with the following error:
     81 > 
     82 > --- Ferret::StateError from thread: load threads for thread-index-mode
     83 > State Error occured at <except.c>:93 in xraise
     84 > Error occured in index.c:4150 - sr_get_lazy_doc
     85 >         Document 69 has already been deleted
     86 
     87 Scary Ferret error. Any weird circumstances, like running out of disk
     88 space? Does this happen consistently?
     89 
     90 -- 
     91 William <wmorgan-sup at masanjin.net>
     92 
     93 From sup-talk@gurski.org  Tue Apr  1 12:52:53 2008
     94 From: sup-talk@gurski.org (Michael Gurski)
     95 Date: Tue, 01 Apr 2008 12:52:53 -0400
     96 Subject: [sup-talk] crash while sup is sitting idle
     97 In-Reply-To: <1207064087-sup-7567@south>
     98 References: <20080329030356.GA8459@gurski.org> <1207064087-sup-7567@south>
     99 Message-ID: <1207068663-sup-6170@ln>
    100 
    101 Excerpts from William Morgan's message of Tue Apr 01 11:35:23 -0400 2008:
    102 > Reformatted excerpts from Michael Gurski's message of 2008-03-28:
    103 > > After a 28+ hour sup-sync -a -o, on git head, sup sitting idle crashed
    104 > > with the following error:
    105 > > 
    106 > > --- Ferret::StateError from thread: load threads for thread-index-mode
    107 > > State Error occured at <except.c>:93 in xraise
    108 > > Error occured in index.c:4150 - sr_get_lazy_doc
    109 > >         Document 69 has already been deleted
    110 > 
    111 > Scary Ferret error. Any weird circumstances, like running out of disk
    112 > space? Does this happen consistently?
    113 
    114 13G free on that partition, quite a bit of memory free as well, both
    115 real and swap.  I can more or less get it to happen consistently if I
    116 try to load 4+ pages of unread messages at a time.  It might be more
    117 needed now, as it's been several days since I've tried it.
    118 
    119 -- 
    120 Michael A. Gurski (opt. [first].)[last]@pobox.com  http://www.pobox.com/~[last]
    121 1024R/39B5BADD PGP: 34 93 A9 94 B1 59 48 B7  17 57 1E 4E 62 56 45 70
    122 1024D/1166213E GPG: 628F 37A4 62AF 1475 45DB  AD81 ADC9 E606 1166 213E
    123 4096R/C0B4F04B GPG: 5B3E 75D7 43CF CF34 4042  7788 1DCE B5EE C0B4 F04B
    124 Views expressed by the host do not reflect the staff, management or sponsors.
    125 
    126 
    127 From wmorgan-sup@masanjin.net  Tue Apr  1 13:13:23 2008
    128 From: wmorgan-sup@masanjin.net (William Morgan)
    129 Date: Tue, 01 Apr 2008 10:13:23 -0700
    130 Subject: [sup-talk] crash while sup is sitting idle
    131 In-Reply-To: <1207068663-sup-6170@ln>
    132 References: <20080329030356.GA8459@gurski.org> <1207064087-sup-7567@south>
    133 	<1207068663-sup-6170@ln>
    134 Message-ID: <1207069973-sup-4350@south>
    135 
    136 Reformatted excerpts from Michael Gurski's message of 2008-04-01:
    137 > 13G free on that partition, quite a bit of memory free as well, both
    138 > real and swap.  I can more or less get it to happen consistently if I
    139 > try to load 4+ pages of unread messages at a time.  It might be more
    140 > needed now, as it's been several days since I've tried it.
    141 
    142 And which git branch, master or next?
    143 
    144 -- 
    145 William <wmorgan-sup at masanjin.net>
    146 
    147 From sup-talk@gurski.org  Tue Apr  1 15:50:40 2008
    148 From: sup-talk@gurski.org (Michael Gurski)
    149 Date: Tue, 01 Apr 2008 15:50:40 -0400
    150 Subject: [sup-talk] crash while sup is sitting idle
    151 In-Reply-To: <1207069973-sup-4350@south>
    152 References: <20080329030356.GA8459@gurski.org> <1207064087-sup-7567@south>
    153 	<1207068663-sup-6170@ln> <1207069973-sup-4350@south>
    154 Message-ID: <1207079350-sup-4391@ln>
    155 
    156 Excerpts from William Morgan's message of Tue Apr 01 13:13:23 -0400 2008:
    157 > Reformatted excerpts from Michael Gurski's message of 2008-04-01:
    158 > > 13G free on that partition, quite a bit of memory free as well, both
    159 > > real and swap.  I can more or less get it to happen consistently if I
    160 > > try to load 4+ pages of unread messages at a time.  It might be more
    161 > > needed now, as it's been several days since I've tried it.
    162 > 
    163 > And which git branch, master or next?
    164 
    165 master
    166 
    167 -- 
    168 Michael A. Gurski (opt. [first].)[last]@pobox.com  http://www.pobox.com/~[last]
    169 1024R/39B5BADD PGP: 34 93 A9 94 B1 59 48 B7  17 57 1E 4E 62 56 45 70
    170 1024D/1166213E GPG: 628F 37A4 62AF 1475 45DB  AD81 ADC9 E606 1166 213E
    171 4096R/C0B4F04B GPG: 5B3E 75D7 43CF CF34 4042  7788 1DCE B5EE C0B4 F04B
    172 Views expressed by the host do not reflect the staff, management or sponsors.
    173 
    174 
    175 From chrisw@rice.edu  Tue Apr  1 16:03:08 2008
    176 From: chrisw@rice.edu (Christopher Warrington)
    177 Date: Tue, 1 Apr 2008 15:03:08 -0500
    178 Subject: [sup-talk] crash while sup is sitting idle
    179 In-Reply-To: <1207064087-sup-7567@south>
    180 References: <20080329030356.GA8459@gurski.org> <1207064087-sup-7567@south>
    181 Message-ID: <1904135646.20080401150308@rice.edu>
    182 
    183 
    184 William Morgan @ 2008-4-01 10:35:23 AM
    185 "[sup-talk] crash while sup is sitting idle" <mid:1207064087-sup-7567 at south>
    186 
    187 >> --- Ferret::StateError from thread: load threads for thread-index-mode
    188 >> State Error occured at <except.c>:93 in xraise
    189 >> Error occured in index.c:4150 - sr_get_lazy_doc
    190 >>         Document 69 has already been deleted
    191 > Scary Ferret error. Any weird circumstances, like running out of
    192 > disk space? Does this happen consistently?
    193 
    194 I've had this too. A Index.index.optimize seems to fix it.
    195 
    196 -- 
    197 Christopher Warrington <chrisw at rice.edu>
    198 
    199 
    200 Minds are like parachutes: they only function when open.
    201 -------------- next part --------------
    202 A non-text attachment was scrubbed...
    203 Name: not available
    204 Type: application/pgp-signature
    205 Size: 191 bytes
    206 Desc: not available
    207 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080401/1028bd6a/attachment.bin 
    208 
    209 From grant@antiflux.org  Tue Apr  1 16:48:47 2008
    210 From: grant@antiflux.org (Grant Hollingworth)
    211 Date: Tue, 01 Apr 2008 16:48:47 -0400
    212 Subject: [sup-talk] [PATCH] reload label list on focus
    213 Message-ID: <1207082674-sup-4879@spooky.local>
    214 
    215 This ensures the unread count for each label is correct.
    216 
    217 I often read my list mail from the label list. When I close the thread index
    218 and go back to the label list the unread message count is wrong. This bugs me.
    219 
    220 I'm sure a less brutal way of doing this is possible with the UpdateManager
    221 but that seems complicated and therefore prone to errors.
    222 
    223 ---
    224  lib/sup/modes/label-list-mode.rb |    4 ++++
    225  1 files changed, 4 insertions(+), 0 deletions(-)
    226 
    227 diff --git a/lib/sup/modes/label-list-mode.rb b/lib/sup/modes/label-list-mode.rb
    228 index 514e9c4..662bb44 100644
    229 --- a/lib/sup/modes/label-list-mode.rb
    230 +++ b/lib/sup/modes/label-list-mode.rb
    231 @@ -41,6 +41,10 @@ protected
    232      buffer.mark_dirty if buffer
    233    end
    234  
    235 +  def focus
    236 +    reload # make sure counts are up-to-date
    237 +  end
    238 +
    239    def regen_text
    240      @text = []
    241      labels = LabelManager.listable_labels
    242 -- 
    243 1.5.4.4
    244 
    245 From grant@antiflux.org  Tue Apr  1 17:49:36 2008
    246 From: grant@antiflux.org (Grant Hollingworth)
    247 Date: Tue, 01 Apr 2008 17:49:36 -0400
    248 Subject: [sup-talk] [PATCH] reload label list on focus
    249 In-Reply-To: <1207082674-sup-4879@spooky.local>
    250 References: <1207082674-sup-4879@spooky.local>
    251 Message-ID: <1207086451-sup-7738@spooky.local>
    252 
    253 This ensures the unread count for each label is correct.
    254 
    255 I often read my list mail from the label list. When I close the thread index
    256 and go back to the label list the unread message count is wrong. This bugs me.
    257 
    258 I'm sure a less brutal way of doing this is possible with the UpdateManager
    259 but that seems complicated and therefore prone to errors.
    260 ---
    261 
    262 Oops... last patch had focus under protected.
    263 
    264  lib/sup/modes/label-list-mode.rb |    5 +++++
    265  1 files changed, 5 insertions(+), 0 deletions(-)
    266 
    267 diff --git a/lib/sup/modes/label-list-mode.rb b/lib/sup/modes/label-list-mode.rb
    268 index 514e9c4..132b654 100644
    269 --- a/lib/sup/modes/label-list-mode.rb
    270 +++ b/lib/sup/modes/label-list-mode.rb
    271 @@ -29,6 +29,11 @@ class LabelListMode < LineCursorMode
    272        BufferManager.flash "No labels messages with unread messages."
    273      end
    274    end
    275 +
    276 +  def focus
    277 +    reload # make sure unread message counts are up-to-date
    278 +  end
    279 +
    280  protected
    281  
    282    def toggle_show_unread_only
    283 -- 
    284 1.5.4.4
    285 
    286 From wmorgan-sup@masanjin.net  Wed Apr  2 16:51:18 2008
    287 From: wmorgan-sup@masanjin.net (William Morgan)
    288 Date: Wed, 02 Apr 2008 13:51:18 -0700
    289 Subject: [sup-talk] [PATCH] First draft of attachment processing for
    290 	more gmail style searches
    291 In-Reply-To: <1206306720-sup-2563@tomsk>
    292 References: <1203972458-sup-5906@tomsk> <1204220051-sup-129@south>
    293 	<1204232994-sup-628@tomsk> <1204479552-sup-4100@south>
    294 	<1204711082-sup-3541@tomsk> <1205013484-sup-7653@south>
    295 	<1206306720-sup-2563@tomsk>
    296 Message-ID: <1207169448-sup-4407@south>
    297 
    298 Reformatted excerpts from Marcus Williams's message of 2008-03-23:
    299 > Mmmmm - I'm on the lookout for a decent issue tracker :) Any more
    300 > info?
    301 
    302 Finally released! May or may not be something you're interested in, but
    303 it's what I wanted for Sup.
    304 
    305 http://ditz.rubyforge.org/
    306 
    307 -- 
    308 William <wmorgan-sup at masanjin.net>
    309 
    310 From vasudeva@linkswarm.com  Wed Apr  2 17:16:37 2008
    311 From: vasudeva@linkswarm.com (vasudeva)
    312 Date: Wed, 02 Apr 2008 17:16:37 -0400
    313 Subject: [sup-talk] [PATCH] First draft of attachment processing for
    314 	more gmail style searches
    315 In-Reply-To: <1207169448-sup-4407@south>
    316 References: <1203972458-sup-5906@tomsk> <1204220051-sup-129@south>
    317 	<1204232994-sup-628@tomsk> <1204479552-sup-4100@south>
    318 	<1204711082-sup-3541@tomsk> <1205013484-sup-7653@south>
    319 	<1206306720-sup-2563@tomsk> <1207169448-sup-4407@south>
    320 Message-ID: <1207170934-sup-8909@lenin>
    321 
    322 Excerpts from William Morgan's message of Wed Apr 02 16:51:18 -0400 2008:
    323 > 
    324 > Finally released! May or may not be something you're interested in, but
    325 > it's what I wanted for Sup.
    326 > 
    327 > http://ditz.rubyforge.org/
    328 
    329 Nice. I love the clean minimal UI on this.
    330 
    331 
    332 
    333 
    334 -- 
    335 linkswarm.com :: Collaborative Insolence
    336 vasudeva.linkswarm.com/gallery :: For The Faint of Heart
    337 
    338 
    339 From wmorgan-sup@masanjin.net  Wed Apr  2 17:17:38 2008
    340 From: wmorgan-sup@masanjin.net (William Morgan)
    341 Date: Wed, 02 Apr 2008 14:17:38 -0700
    342 Subject: [sup-talk] [ANN] ditz 0.1 Released
    343 Message-ID: <1207171051-sup-272@south>
    344 
    345 Why not spam you guys too? The plan is to start using this to track Sup
    346 bugs & feature requests a little more systematically than has been done
    347 so far.
    348 
    349 ditz version 0.1 has been released!
    350 
    351 * <http://ditz.rubyforge.org>
    352 
    353 Ditz is a simple, light-weight distributed issue tracker designed to work with
    354 distributed version control systems like darcs and git. Ditz maintains an issue
    355 database file on disk, written in a line-based and human-editable format. This
    356 file is kept under version control, alongside project code.  Changes in issue
    357 state is handled by version control like code change: included as part of a
    358 commit, merged with changes from other developers, conflict-resolved in the
    359 standard manner, etc.
    360 
    361 Ditz provides a simple, console-based interface for creating and updating the
    362 issue database file, and some rudimentary HTML generation capabilities for
    363 producing world-readable status pages. It offers no central public method of
    364 bug submission.
    365 
    366 Synopsis:
    367 
    368 # set up project. creates the bugs.yaml file.
    369 1. ditz init
    370 2. ditz add-release
    371 
    372 # add an issue
    373 3. ditz add
    374 
    375 # where am i?
    376 4. ditz status
    377 5. ditz todo
    378 
    379 # do work
    380 6. write code
    381 7. ditz close <issue-id>
    382 8. commit
    383 9. goto 3
    384 
    385 # finished!
    386 10. ditz release <release-name>
    387 
    388 Changes:
    389 
    390 ## 0.1 / 2008-04-02
    391 * Initial release!
    392 
    393 * <http://ditz.rubyforge.org>
    394 
    395 
    396 -- 
    397 William <wmorgan-sup at masanjin.net>
    398 
    399 From wmorgan-sup@masanjin.net  Wed Apr  2 21:12:40 2008
    400 From: wmorgan-sup@masanjin.net (William Morgan)
    401 Date: Wed, 02 Apr 2008 18:12:40 -0700
    402 Subject: [sup-talk] ISO 8859-15 at the header
    403 In-Reply-To: <20080327044901.GA12106@weisshuhn.de>
    404 References: <20080327044901.GA12106@weisshuhn.de>
    405 Message-ID: <1207185125-sup-9342@south>
    406 
    407 Reformatted excerpts from Carsten Sch?lzki's message of 2008-03-26:
    408 > But there is a little problem with the header-encoding. Seems, that
    409 > sup doesn't de- or encode ISO 8859-15 correct.
    410 > 
    411 > There are no problems with the body or with ISO 8859-1 in the
    412 > header.
    413 
    414 It should work, if you have your LANG and stuff all set up correctly.
    415 What console character set encoding does Sup detect? (Typically the
    416 first message of the log buffer.)
    417 
    418 -- 
    419 William <wmorgan-sup at masanjin.net>
    420 
    421 From wmorgan-sup@masanjin.net  Wed Apr  2 21:43:26 2008
    422 From: wmorgan-sup@masanjin.net (William Morgan)
    423 Date: Wed, 02 Apr 2008 18:43:26 -0700
    424 Subject: [sup-talk] crash while sup is sitting idle
    425 In-Reply-To: <1904135646.20080401150308@rice.edu>
    426 References: <20080329030356.GA8459@gurski.org> <1207064087-sup-7567@south>
    427 	<1904135646.20080401150308@rice.edu>
    428 Message-ID: <1207186936-sup-7182@south>
    429 
    430 Reformatted excerpts from Christopher Warrington's message of 2008-04-01:
    431 > I've had this too. A Index.index.optimize seems to fix it.
    432 
    433 Hm. I think I need to wrap a mutex around all Ferret access.
    434 
    435 -- 
    436 William <wmorgan-sup at masanjin.net>
    437 
    438 From wmorgan-sup@masanjin.net  Wed Apr  2 21:49:43 2008
    439 From: wmorgan-sup@masanjin.net (William Morgan)
    440 Date: Wed, 02 Apr 2008 18:49:43 -0700
    441 Subject: [sup-talk] default domain name
    442 In-Reply-To: <1206040874-sup-2650@tangerine.lanl.gov>
    443 References: <1206040874-sup-2650@tangerine.lanl.gov>
    444 Message-ID: <1207187033-sup-9070@south>
    445 
    446 Reformatted excerpts from John Bent's message of 2008-03-20:
    447 > My apologies if this is not a sup question.  But I feel like this used to
    448 > work in pine ... My putmail config has server = server1.lanl.gov which 
    449 > works for sending mail.  However, if I just send to an address without
    450 > a domain attached (e.g. to johnbent instead of to johnbent at lanl.gov), then 
    451 > I get a bounce from server1.lanl.gov saying "there is no 
    452 > johnbent at server1.lanl.gov."  Is there some way to config sup (or the rest of
    453 > my email infrastructure) to teach it a particular default email address?
    454 
    455 You can certainly add an entry to contacts.txt (either manually, or by
    456 highlighting the desired email address in Sup and hitting "i") with
    457 "johnbent" as an alias name for the full email address. Then Sup will do
    458 the expansion for you when you compose a message.
    459 
    460 To have this happen strictly at the level of the email address, I think
    461 it would be a SMTP server configuration issue. That's the point at which
    462 the email addresses get interpreted, at least for the purposes of
    463 finding a recipient. But I ain't an MTA expert.
    464 
    465 -- 
    466 William <wmorgan-sup at masanjin.net>
    467 
    468 From wmorgan-sup@masanjin.net  Wed Apr  2 22:03:13 2008
    469 From: wmorgan-sup@masanjin.net (William Morgan)
    470 Date: Wed, 02 Apr 2008 19:03:13 -0700
    471 Subject: [sup-talk] Crash
    472 In-Reply-To: <1206735524-sup-1255@cabinet>
    473 References: <1206735524-sup-1255@cabinet>
    474 Message-ID: <1207187962-sup-842@south>
    475 
    476 Reformatted excerpts from Marc Hartstein's message of 2008-03-28:
    477 > undefined method `to_nice_s' for nil:NilClass
    478 > /usr/lib/ruby/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:613:in `text_for_thread_at'
    479 
    480 I'm mostly confident this has been fixed in git. So you can try running
    481 it from there, or wait for the next release... 
    482 
    483 -- 
    484 William <wmorgan-sup at masanjin.net>
    485 
    486 From cjs@weisshuhn.de  Thu Apr  3 10:07:11 2008
    487 From: cjs@weisshuhn.de (Carsten =?iso-8859-1?Q?Sch=F6lzki?=)
    488 Date: Thu, 3 Apr 2008 16:07:11 +0200
    489 Subject: [sup-talk] ISO 8859-15 at the header
    490 In-Reply-To: <1207185125-sup-9342@south>
    491 References: <20080327044901.GA12106@weisshuhn.de> <1207185125-sup-9342@south>
    492 Message-ID: <20080403140711.GA482@weisshuhn.de>
    493 
    494 William Morgan <wmorgan-sup at masanjin.net> [03.04.2008 03:12]:
    495 > Reformatted excerpts from Carsten Sch?lzki's message of 2008-03-26:
    496 > > But there is a little problem with the header-encoding. Seems, that
    497 > > sup doesn't de- or encode ISO 8859-15 correct.
    498 > > 
    499 > > There are no problems with the body or with ISO 8859-1 in the
    500 > > header.
    501 > 
    502 > It should work, if you have your LANG and stuff all set up correctly.
    503 > What console character set encoding does Sup detect? (Typically the
    504 > first message of the log buffer.)
    505 
    506 The detecting seems right to me. The log says:
    507 using character set encoding "ISO8859-15"
    508 
    509 From nicolas.pouillard@gmail.com  Thu Apr  3 10:16:19 2008
    510 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
    511 Date: Thu,  3 Apr 2008 16:16:19 +0200
    512 Subject: [sup-talk] [PATCH] Write sup-{exception-log,
    513 	unable-to-decode}.txt in ~/.sup
    514 Message-ID: <12072321792626-git-send-email-nicolas.pouillard@gmail.com>
    515 
    516 More precisely new destinations are:
    517   - ~/.sup/exception-log.txt
    518   - ~/.sup/unable-to-decode.txt
    519 This patch avoid some kind of pollution.
    520 ---
    521  bin/sup            |    4 ++--
    522  lib/sup/message.rb |    2 +-
    523  2 files changed, 3 insertions(+), 3 deletions(-)
    524 
    525 diff --git a/bin/sup b/bin/sup
    526 index 0d34215..a7623de 100644
    527 --- a/bin/sup
    528 +++ b/bin/sup
    529 @@ -327,7 +327,7 @@ ensure
    530  end
    531  
    532  unless $exceptions.empty?
    533 -  File.open("sup-exception-log.txt", "w") do |f|
    534 +  File.open(File.join(BASE_DIR, "exception-log.txt"), "w") do |f|
    535      $exceptions.each do |e, name|
    536        f.puts "--- #{e.class.name} from thread: #{name}"
    537        f.puts e.message, e.backtrace
    538 @@ -337,7 +337,7 @@ unless $exceptions.empty?
    539  ----------------------------------------------------------------
    540  I'm very sorry. It seems that an error occurred in Sup. Please
    541  accept my sincere apologies. If you don't mind, please send the
    542 -contents of sup-exception-log.txt and a brief report of the
    543 +contents of ~/.sup/exception-log.txt and a brief report of the
    544  circumstances to sup-talk at rubyforge dot orgs so that I might
    545  address this problem. Thank you!
    546  
    547 diff --git a/lib/sup/message.rb b/lib/sup/message.rb
    548 index 6a2a9c4..249b6c6 100644
    549 --- a/lib/sup/message.rb
    550 +++ b/lib/sup/message.rb
    551 @@ -423,7 +423,7 @@ private
    552        Iconv.iconv($encoding + "//IGNORE", charset, body + " ").join[0 .. -2]
    553      rescue Errno::EINVAL, Iconv::InvalidEncoding, Iconv::IllegalSequence, MessageFormatError => e
    554        Redwood::log "warning: error (#{e.class.name}) decoding message body from #{charset}: #{e.message}"
    555 -      File.open("sup-unable-to-decode.txt", "w") { |f| f.write body }
    556 +      File.open(File.join(BASE_DIR,"unable-to-decode.txt"), "w") { |f| f.write body }
    557        body
    558      end
    559    end
    560 -- 
    561 1.5.3.1.109.gacd69
    562 
    563 
    564 From grant@antiflux.org  Thu Apr  3 12:35:54 2008
    565 From: grant@antiflux.org (Grant Hollingworth)
    566 Date: Thu, 03 Apr 2008 12:35:54 -0400
    567 Subject: [sup-talk] [PATCH] fixed off-by-one error in imap.rb and
    568 	maildir.rb
    569 In-Reply-To: <1206547432-sup-4074@south>
    570 References: <1204528063-sup-7345@chris-tablet>
    571 	<1204531233-2092-1-git-send-email-chrisw@rice.edu>
    572 	<1206547432-sup-4074@south>
    573 Message-ID: <1207240457-sup-91@spooky.local>
    574 
    575 * William Morgan [Wed Mar 26 12:04:10 -0400 2008]:
    576 > Precisely so. Applied. Thanks!
    577 
    578 This breaks Source#done?, so every poll the last message of each source gets reloaded. The state gets fixed from the index but it's still ugly.
    579 
    580 From grant@antiflux.org  Thu Apr  3 12:40:36 2008
    581 From: grant@antiflux.org (Grant Hollingworth)
    582 Date: Thu, 03 Apr 2008 12:40:36 -0400
    583 Subject: [sup-talk] offlineimap
    584 Message-ID: <1207240781-sup-5354@spooky.local>
    585 
    586 I switched from IMAP to maildir via offlineimap. So much faster!
    587 
    588 How are people using offlineimap? Is it always running, or by cron, or in a
    589 before-poll?
    590 
    591 From rgh@roughage.com.au  Thu Apr  3 16:59:56 2008
    592 From: rgh@roughage.com.au (Richard Heycock)
    593 Date: Fri, 04 Apr 2008 07:59:56 +1100
    594 Subject: [sup-talk] offlineimap
    595 In-Reply-To: <1207240781-sup-5354@spooky.local>
    596 References: <1207240781-sup-5354@spooky.local>
    597 Message-ID: <1207256259-sup-8918@wrasse>
    598 
    599 Excerpts from Grant Hollingworth's message of Fri Apr 04 03:40:36 +1100 2008:
    600 > I switched from IMAP to maildir via offlineimap. So much faster!
    601 > 
    602 > How are people using offlineimap? Is it always running, or by cron, or in a
    603 > before-poll?
    604 
    605 I run mine from cron.
    606 
    607 Having said that offlineimap causes me a great deal of pain; when it works it
    608 works well but when it doesn't (which is fairly often) it's a pain. Oh and it
    609 won't tell you what the problem is :-( Unfortunately there doesn't really
    610 seem to be much else about
    611 
    612 Just my two cents.
    613 
    614 rgh.
    615 
    616 -- 
    617 +61 (0) 410 646 369
    618 rgh at neoss.com.au
    619 
    620 You're worried criminals will continue to penetrate into cyberspace, and
    621 I'm worried complexity, poor design and mismanagement will be there to meet
    622 them - Marcus Ranum
    623 
    624 !DSPAM:47f5454c18821144792784!
    625 
    626 
    627 
    628 From marcus-sup@bar-coded.net  Fri Apr  4 04:26:10 2008
    629 From: marcus-sup@bar-coded.net (Marcus Williams)
    630 Date: Fri, 04 Apr 2008 09:26:10 +0100
    631 Subject: [sup-talk] offlineimap
    632 In-Reply-To: <1207240781-sup-5354@spooky.local>
    633 References: <1207240781-sup-5354@spooky.local>
    634 Message-ID: <1207297403-sup-6394@tomsk>
    635 
    636 On 3.4.2008, Grant Hollingworth wrote:
    637 > How are people using offlineimap? Is it always running, or by cron, or in a
    638 > before-poll?
    639 
    640 I tend to ssh into wherever I run sup and run screen. I've set screen
    641 up to start sup and kick off offlineimap. Works like a charm. That way
    642 you can poke offlineimap if you want to poll for some reason.
    643 
    644 Works well from cron as well on my work machine.
    645 
    646 Marcus
    647 
    648 From cameronm@webpipe.net  Fri Apr  4 02:56:28 2008
    649 From: cameronm@webpipe.net (Cameron Matheson)
    650 Date: Fri, 04 Apr 2008 00:56:28 -0600
    651 Subject: [sup-talk] offlineimap
    652 In-Reply-To: <1207256259-sup-8918@wrasse>
    653 References: <1207240781-sup-5354@spooky.local> <1207256259-sup-8918@wrasse>
    654 Message-ID: <1207292109-sup-707@bernard>
    655 
    656 Excerpts from Richard Heycock's message of Thu Apr 03 14:59:56 -0600 2008:
    657 > Having said that offlineimap causes me a great deal of pain; when it works it
    658 > works well but when it doesn't (which is fairly often) it's a pain. Oh and it
    659 > won't tell you what the problem is :-( Unfortunately there doesn't really
    660 > seem to be much else about
    661 
    662 I haven't tried offlineimap yet.  I'm using getmail right now, which has
    663 gone really smooth.  What advantages does offlineimap provide for the
    664 sup crowd (there shouldn't be any changes to the maildir to push back to
    665 the imap account, right?)
    666 
    667 Cam
    668 
    669 -- 
    670 Webpipe.net
    671 
    672 From nicolas.pouillard@gmail.com  Fri Apr  4 08:14:06 2008
    673 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
    674 Date: Fri, 04 Apr 2008 14:14:06 +0200
    675 Subject: [sup-talk] About newlines
    676 Message-ID: <1207309393-sup-2829@ausone.inria.fr>
    677 
    678 I'm  hitting  a  bug  concerning forwarding, all newlines get trimmed off. I'm
    679 trying  to fix the bug, but I don't understand if arrays of lines are supposed
    680 to be ended by newlines or not.
    681 
    682 -- 
    683 Nicolas Pouillard aka Ertai
    684 -------------- next part --------------
    685 A non-text attachment was scrubbed...
    686 Name: signature.asc
    687 Type: application/pgp-signature
    688 Size: 194 bytes
    689 Desc: not available
    690 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080404/acbb1193/attachment.bin 
    691 
    692 From kendall@clarkparsia.com  Fri Apr  4 09:13:44 2008
    693 From: kendall@clarkparsia.com (kendall at clarkparsia.com)
    694 Date: Fri, 4 Apr 2008 09:13:44 -0400 (EDT)
    695 Subject: [sup-talk] About newlines
    696 Message-ID: <47375.192.168.1.71.1207314824.webmail@192.168.1.71>
    697 
    698 On Friday, April 4, 2008 8:14am, Nicolas Pouillard <nicolas.pouillard at gmail.com> said:
    699 
    700 > _______________________________________________
    701 > sup-talk mailing list
    702 > sup-talk at rubyforge.org
    703 > http://rubyforge.org/mailman/listinfo/sup-talk
    704 > I'm  hitting  a  bug  concerning forwarding, all newlines get trimmed off. I'm
    705 > trying  to fix the bug, but I don't understand if arrays of lines are supposed
    706 > to be ended by newlines or not.
    707 
    708 This is also a problem for me, though I haven't tried to fix it. :>
    709 
    710 Cheers,
    711 Kendall
    712 
    713 
    714 From grant@antiflux.org  Fri Apr  4 09:47:37 2008
    715 From: grant@antiflux.org (Grant Hollingworth)
    716 Date: Fri, 04 Apr 2008 09:47:37 -0400
    717 Subject: [sup-talk] offlineimap
    718 In-Reply-To: <1207256259-sup-8918@wrasse>
    719 References: <1207240781-sup-5354@spooky.local> <1207256259-sup-8918@wrasse>
    720 Message-ID: <1207316616-sup-9713@spooky.local>
    721 
    722 * Richard Heycock [Thu Apr 03 16:59:56 -0400 2008]:
    723 
    724 > Having said that offlineimap causes me a great deal of pain; when it
    725 > works it works well but when it doesn't (which is fairly often) it's a
    726 > pain. Oh and it won't tell you what the problem is :-( Unfortunately
    727 > there doesn't really seem to be much else about
    728 
    729 Yeah, I don't think I've seen any error messages... just backtraces.
    730 
    731 The only big problem I've had is with a memory error when copying large
    732 messages. The problem is known [1] and fixed [2] in Python, but the current
    733 stable version (2.5.2) doesn't include the fix.
    734 
    735 I made the two one-line changes myself and now offlineimap is happy:
    736 http://svn.python.org/view/python/branches/release25-maint/Lib/imaplib.py?rev=61007&r1=51333&r2=61007
    737 http://svn.python.org/view/python/branches/release25-maint/Lib/socket.py?rev=61009&r1=54544&r2=61009
    738 
    739 [1] http://software.complete.org/software/issues/show/20
    740 [2] http://bugs.python.org/issue1389051
    741 
    742 From grant@antiflux.org  Fri Apr  4 09:48:21 2008
    743 From: grant@antiflux.org (Grant Hollingworth)
    744 Date: Fri, 04 Apr 2008 09:48:21 -0400
    745 Subject: [sup-talk] offlineimap
    746 In-Reply-To: <1207292109-sup-707@bernard>
    747 References: <1207240781-sup-5354@spooky.local> <1207256259-sup-8918@wrasse>
    748 	<1207292109-sup-707@bernard>
    749 Message-ID: <1207316862-sup-7752@spooky.local>
    750 
    751 * Cameron Matheson [Fri Apr 04 02:56:28 -0400 2008]:
    752 
    753 > I haven't tried offlineimap yet.  I'm using getmail right now, which has
    754 > gone really smooth.  What advantages does offlineimap provide for the
    755 > sup crowd (there shouldn't be any changes to the maildir to push back to
    756 > the imap account, right?)
    757 
    758 No changes yet. I'd like to get sup at least marking messages as read in
    759 maildir sources.
    760 
    761 From damokles@ubuntu.com  Fri Apr  4 05:52:56 2008
    762 From: damokles@ubuntu.com (Caspar Clemens Mierau)
    763 Date: Fri, 4 Apr 2008 11:52:56 +0200
    764 Subject: [sup-talk] NoMethodError from thread
    765 Message-ID: <20080404095256.GA14684@lilith.spinnenwerk.de>
    766 
    767 sup 0.4 (on debian etch, installed as gem) crashed with the following
    768 stack
    769 
    770 
    771 --- NoMethodError from thread: poll after loading inbox
    772 undefined method `find_all' for nil:NilClass
    773 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:191:in `fetch'
    774 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:135:in `unsynchronized_scan_mailbox'
    775 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:105:in `unsynchronized_raw_header'
    776 (eval):3:in `raw_header'
    777 /usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
    778 (eval):3:in `raw_header'
    779 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:93:in `load_header'
    780 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:534:in `send'
    781 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:534:in `__pass'
    782 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:523:in `method_missing'
    783 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/message.rb:62:in `initialize'
    784 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:151:in `new'
    785 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:151:in `add_messages_from'
    786 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:167:in `each'
    787 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:155:in `upto'
    788 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:155:in `each'
    789 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:534:in `send'
    790 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:534:in `__pass'
    791 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:523:in `method_missing'
    792 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:141:in `add_messages_from'
    793 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:98:in `do_poll'
    794 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:86:in `each'
    795 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:86:in `do_poll'
    796 /usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
    797 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:85:in `do_poll'
    798 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:497:in `send'
    799 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:497:in `method_missing'
    800 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/poll-mode.rb:17:in `poll'
    801 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:53:in `poll'
    802 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:497:in `send'
    803 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:497:in `method_missing'
    804 /var/lib/gems/1.8/gems/sup-0.4/bin/sup:199
    805 /var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:60:in `reporting_thread'
    806 /var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `initialize'
    807 /var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `new'
    808 /var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `reporting_thread'
    809 /var/lib/gems/1.8/gems/sup-0.4/bin/sup:199
    810 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:492:in `call'
    811 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:492:in `__unprotected_load_threads'
    812 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:452:in `call'
    813 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:452:in `load_n_threads_background'
    814 /var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:60:in `reporting_thread'
    815 /var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `initialize'
    816 /var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `new'
    817 /var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `reporting_thread'
    818 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:450:in `load_n_threads_background'
    819 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:501:in `__unprotected_load_threads'
    820 (eval):12:in `load_threads'
    821 /var/lib/gems/1.8/gems/sup-0.4/bin/sup:199
    822 /var/lib/gems/1.8/bin/sup:18:in `load'
    823 /var/lib/gems/1.8/bin/sup:18
    824 --- SystemExit from thread: main
    825 undefined method `find_all' for nil:NilClass
    826 /var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:64:in `select'
    827 /var/lib/gems/1.8/gems/sup-0.4/lib/sup/buffer.rb:31:in `nonblocking_getch'
    828 /var/lib/gems/1.8/gems/sup-0.4/bin/sup:212
    829 /var/lib/gems/1.8/bin/sup:18:in `load'
    830 /var/lib/gems/1.8/bin/sup:18
    831 
    832 -------------- next part --------------
    833 A non-text attachment was scrubbed...
    834 Name: not available
    835 Type: application/pgp-signature
    836 Size: 189 bytes
    837 Desc: Digital signature
    838 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080404/a9853500/attachment.bin 
    839 
    840 From nicolas.pouillard@gmail.com  Fri Apr  4 12:00:56 2008
    841 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
    842 Date: Fri,  4 Apr 2008 18:00:56 +0200
    843 Subject: [sup-talk] [PATCH] Use read instead of readlines.join.
    844 Message-ID: <1207324856-7408-1-git-send-email-nicolas.pouillard@gmail.com>
    845 
    846 ---
    847  lib/sup/draft.rb                   |    2 +-
    848  lib/sup/hook.rb                    |    2 +-
    849  lib/sup/maildir.rb                 |    2 +-
    850  lib/sup/modes/file-browser-mode.rb |    2 +-
    851  4 files changed, 4 insertions(+), 4 deletions(-)
    852 
    853 diff --git a/lib/sup/draft.rb b/lib/sup/draft.rb
    854 index 81c0044..21de151 100644
    855 --- a/lib/sup/draft.rb
    856 +++ b/lib/sup/draft.rb
    857 @@ -106,7 +106,7 @@ class DraftLoader < Source
    858    end
    859  
    860    def raw_message offset
    861 -    IO.readlines(fn_for_offset(offset)).join
    862 +    IO.read(fn_for_offset(offset))
    863    end
    864  
    865    def start_offset; 0; end
    866 diff --git a/lib/sup/hook.rb b/lib/sup/hook.rb
    867 index 74ecfab..9494919 100644
    868 --- a/lib/sup/hook.rb
    869 +++ b/lib/sup/hook.rb
    870 @@ -120,7 +120,7 @@ private
    871      unless @hooks.member? name
    872        @hooks[name] =
    873          begin
    874 -          returning IO.readlines(fn_for(name)).join do
    875 +          returning IO.read(fn_for(name)) do
    876              log "read '#{name}' from #{fn_for(name)}"
    877            end
    878          rescue SystemCallError => e
    879 diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb
    880 index 584e657..620e8e2 100644
    881 --- a/lib/sup/maildir.rb
    882 +++ b/lib/sup/maildir.rb
    883 @@ -72,7 +72,7 @@ class Maildir < Source
    884  
    885    def raw_message id
    886      scan_mailbox
    887 -    with_file_for(id) { |f| f.readlines.join }
    888 +    with_file_for(id) { |f| f.read }
    889    end
    890  
    891    def scan_mailbox opts={}
    892 diff --git a/lib/sup/modes/file-browser-mode.rb b/lib/sup/modes/file-browser-mode.rb
    893 index b49f3f4..b92468d 100644
    894 --- a/lib/sup/modes/file-browser-mode.rb
    895 +++ b/lib/sup/modes/file-browser-mode.rb
    896 @@ -47,7 +47,7 @@ protected
    897      return unless f && f.file?
    898  
    899      begin
    900 -      BufferManager.spawn f.to_s, TextMode.new(f.readlines.join)
    901 +      BufferManager.spawn f.to_s, TextMode.new(f.read)
    902      rescue SystemCallError => e
    903        BufferManager.flash e.message
    904      end
    905 -- 
    906 1.5.5.rc3
    907 
    908 
    909 From nicolas.pouillard@gmail.com  Fri Apr  4 12:01:45 2008
    910 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
    911 Date: Fri,  4 Apr 2008 18:01:45 +0200
    912 Subject: [sup-talk] [PATCH] Fix a bug when forwarding and using crypto.
    913 Message-ID: <1207324905-7455-1-git-send-email-nicolas.pouillard@gmail.com>
    914 
    915 ---
    916  lib/sup/modes/edit-message-mode.rb |    2 +-
    917  1 files changed, 1 insertions(+), 1 deletions(-)
    918 
    919 diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mode.rb
    920 index 3aad623..dd96002 100644
    921 --- a/lib/sup/modes/edit-message-mode.rb
    922 +++ b/lib/sup/modes/edit-message-mode.rb
    923 @@ -324,7 +324,7 @@ protected
    924      ## do whatever crypto transformation is necessary
    925      if @crypto_selector && @crypto_selector.val != :none
    926        from_email = PersonManager.person_for(@header["From"]).email
    927 -      to_email = (@header["To"] + @header["Cc"] + @header["Bcc"]).map { |p| PersonManager.person_for(p).email }
    928 +      to_email = [@header["To"], @header["Cc"], @header["Bcc"]].flatten.compact.map { |p| PersonManager.person_for(p).email }
    929  
    930        m = CryptoManager.send @crypto_selector.val, from_email, to_email, m
    931      end
    932 -- 
    933 1.5.5.rc3
    934 
    935 
    936 From wmorgan-sup@masanjin.net  Fri Apr  4 12:08:02 2008
    937 From: wmorgan-sup@masanjin.net (William Morgan)
    938 Date: Fri, 04 Apr 2008 09:08:02 -0700
    939 Subject: [sup-talk] About newlines
    940 In-Reply-To: <1207309393-sup-2829@ausone.inria.fr>
    941 References: <1207309393-sup-2829@ausone.inria.fr>
    942 Message-ID: <1207325216-sup-1624@south>
    943 
    944 Reformatted excerpts from nicolas.pouillard's message of 2008-04-04:
    945 > I'm  hitting  a  bug  concerning forwarding, all newlines get trimmed
    946 > off. I'm trying  to fix the bug, but I don't understand if arrays of
    947 > lines are supposed to be ended by newlines or not.
    948 
    949 I don't see this behavior, either in the forward mode buffer or in the
    950 resulting message.
    951 
    952 Newlines shouldn't exist in arrays of lines.
    953 ForwardMode#forward_body_lines is the relevant method. Let me know what
    954 you discover.
    955 
    956 -- 
    957 William <wmorgan-sup at masanjin.net>
    958 
    959 From nicolas.pouillard@gmail.com  Fri Apr  4 12:09:13 2008
    960 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
    961 Date: Fri,  4 Apr 2008 18:09:13 +0200
    962 Subject: [sup-talk] [PATCH] Fix a bug about forwarding that trimmed out
    963 	newlines.
    964 Message-ID: <1207325353-7638-1-git-send-email-nicolas.pouillard@gmail.com>
    965 
    966 This seems to happen when one don't touch the forwarded
    967 email. Indeed most of the sup's code tend to assume that
    968 messages body are reprensented using an array of string
    969 *without* a trailing \n, except some parts of the code.
    970 
    971 This patch enforce that. It could become even more strict
    972 by raising an error instead of logging in join_lines.
    973 ---
    974  lib/sup/modes/edit-message-mode.rb |   11 +++++------
    975  lib/sup/util.rb                    |    6 ++++++
    976  2 files changed, 11 insertions(+), 6 deletions(-)
    977 
    978 diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mode.rb
    979 index dd96002..c3634af 100644
    980 --- a/lib/sup/modes/edit-message-mode.rb
    981 +++ b/lib/sup/modes/edit-message-mode.rb
    982 @@ -216,7 +216,7 @@ protected
    983    def parse_file fn
    984      File.open(fn) do |f|
    985        header = MBox::read_header f
    986 -      body = f.readlines
    987 +      body = f.readlines.map { |l| l.chomp }
    988  
    989        header.delete_if { |k, v| NON_EDITABLE_HEADERS.member? k }
    990        header.each { |k, v| header[k] = parse_header k, v }
    991 @@ -307,9 +307,8 @@ protected
    992    def build_message date
    993      m = RMail::Message.new
    994      m.header["Content-Type"] = "text/plain; charset=#{$encoding}"
    995 -    m.body = @body.join
    996 -    m.body = m.body
    997 -    m.body += sig_lines.join("\n") unless $config[:edit_signature]
    998 +    m.body = @body.join_lines
    999 +    m.body += sig_lines.join_lines unless $config[:edit_signature]
   1000  
   1001      ## there are attachments, so wrap body in an attachment of its own
   1002      unless @attachments.empty?
   1003 @@ -367,7 +366,7 @@ EOS
   1004      end
   1005  
   1006      f.puts
   1007 -    f.puts sanitize_body(@body.join)
   1008 +    f.puts sanitize_body(@body.join_lines)
   1009      f.puts sig_lines if full unless $config[:edit_signature]
   1010    end  
   1011  
   1012 @@ -412,7 +411,7 @@ private
   1013    end
   1014  
   1015    def top_posting?
   1016 -    @body.join =~ /(\S+)\s*Excerpts from.*\n(>.*\n)+\s*\Z/
   1017 +    @body.join_lines =~ /(\S+)\s*Excerpts from.*\n(>.*\n)+\s*\Z/
   1018    end
   1019  
   1020    def sig_lines
   1021 diff --git a/lib/sup/util.rb b/lib/sup/util.rb
   1022 index 99e73b4..544859c 100644
   1023 --- a/lib/sup/util.rb
   1024 +++ b/lib/sup/util.rb
   1025 @@ -390,6 +390,12 @@ module Enumerable
   1026  end
   1027  
   1028  class Array
   1029 +
   1030 +  def join_lines
   1031 +    Redwood::log "Some newlines are there..." if any? { |l| l =~ /\n/ }
   1032 +    map { |l| l.chomp }.join("\n")
   1033 +  end
   1034 +
   1035    def flatten_one_level
   1036      inject([]) { |a, e| a + e }
   1037    end
   1038 -- 
   1039 1.5.5.rc3
   1040 
   1041 
   1042 From nicolas.pouillard@gmail.com  Fri Apr  4 12:10:11 2008
   1043 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   1044 Date: Fri, 04 Apr 2008 18:10:11 +0200
   1045 Subject: [sup-talk] About newlines
   1046 In-Reply-To: <1207325216-sup-1624@south>
   1047 References: <1207309393-sup-2829@ausone.inria.fr> <1207325216-sup-1624@south>
   1048 Message-ID: <1207325378-sup-1676@ausone.inria.fr>
   1049 
   1050 Excerpts from William Morgan's message of Fri Apr 04 18:08:02 +0200 2008:> Reformatted excerpts from nicolas.pouillard's message of 2008-04-04:> > I'm  hitting  a  bug  concerning forwarding, all newlines get trimmed> > off. I'm trying  to fix the bug, but I don't understand if arrays of> > lines are supposed to be ended by newlines or not.> > I don't see this behavior, either in the forward mode buffer or in the> resulting message.> > Newlines shouldn't exist in arrays of lines.> ForwardMode#forward_body_lines is the relevant method. Let me know what> you discover.I hope that my bunch of patches will makes this clear.-- Nicolas Pouillard aka Ertai
   1051 -------------- next part --------------
   1052 A non-text attachment was scrubbed...
   1053 Name: signature.asc
   1054 Type: application/pgp-signature
   1055 Size: 194 bytes
   1056 Desc: not available
   1057 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080404/ca47ba3b/attachment.bin 
   1058 
   1059 From marc.hartstein@alum.vassar.edu  Fri Apr  4 12:16:09 2008
   1060 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   1061 Date: Fri, 04 Apr 2008 12:16:09 -0400
   1062 Subject: [sup-talk] About newlines
   1063 In-Reply-To: <1207309393-sup-2829@ausone.inria.fr>
   1064 References: <1207309393-sup-2829@ausone.inria.fr>
   1065 Message-ID: <1207325501-sup-8401@cabinet>
   1066 
   1067 Excerpts from Nicolas Pouillard's message of Fri Apr 04 08:14:06 -0400 2008:
   1068 > I'm  hitting  a  bug  concerning forwarding, all newlines get trimmed off. I'm
   1069 > trying  to fix the bug, but I don't understand if arrays of lines are supposed
   1070 > to be ended by newlines or not.
   1071 
   1072 After a bit of chat in #sup on freenode, I have a workaround and some
   1073 comments.
   1074 
   1075 Workaround (tested): make sure you instruct your editor to save the
   1076 temporary file even when you are making no changes.  This will force sup
   1077 to capture the contents of the file, which will include the newlines.
   1078 
   1079 New bug: the same bug exists when replying if you don't edit your
   1080 message before sending (why would you ever do that?)
   1081 
   1082 The problem seems to be that when the body of forward/reply messages is
   1083 built, it is built without a newline terminator at the end of every
   1084 line.  This is infrequently noticed because those newlines get added to
   1085 the temporary file for editing.
   1086 -------------- next part --------------
   1087 A non-text attachment was scrubbed...
   1088 Name: signature.asc
   1089 Type: application/pgp-signature
   1090 Size: 189 bytes
   1091 Desc: not available
   1092 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080404/0ecde927/attachment.bin 
   1093 
   1094 From kendall@clarkparsia.com  Fri Apr  4 12:16:40 2008
   1095 From: kendall@clarkparsia.com (kendall at clarkparsia.com)
   1096 Date: Fri, 4 Apr 2008 12:16:40 -0400 (EDT)
   1097 Subject: [sup-talk] [PATCH] Fix a bug about forwarding that trimmed out
   1098 	newlines.
   1099 Message-ID: <59971.192.168.1.71.1207325800.webmail@192.168.1.71>
   1100 
   1101 On Friday, April 4, 2008 12:09pm, Nicolas Pouillard <nicolas.pouillard at gmail.com> said:
   1102 
   1103 > This seems to happen when one don't touch the forwarded
   1104 > email. Indeed most of the sup's code tend to assume that
   1105 > messages body are reprensented using an array of string
   1106 > *without* a trailing \n, except some parts of the code.
   1107 
   1108 I confirm this. It happens to me when I forward messages without editing them. It does not happen to messages that I edit (in any way).
   1109 
   1110 Cheers,
   1111 Kendall
   1112 
   1113 
   1114 From kendall@clarkparsia.com  Fri Apr  4 12:17:55 2008
   1115 From: kendall@clarkparsia.com (kendall at clarkparsia.com)
   1116 Date: Fri, 4 Apr 2008 12:17:55 -0400 (EDT)
   1117 Subject: [sup-talk] About newlines
   1118 Message-ID: <40985.192.168.1.71.1207325875.webmail@192.168.1.71>
   1119 
   1120 This is precisely what my correspondents see when I forward messages w/out editing them from sup -- and they yell at me, which isn't fun. :>
   1121 
   1122 Cheers,
   1123 Kendall
   1124 
   1125 PS--Sorry for the top post, but it seemed reasonable here (and I'm not using sup today!).
   1126 
   1127 On Friday, April 4, 2008 12:10pm, Nicolas Pouillard <nicolas.pouillard at gmail.com> said:
   1128 
   1129 > _______________________________________________
   1130 > sup-talk mailing list
   1131 > sup-talk at rubyforge.org
   1132 > http://rubyforge.org/mailman/listinfo/sup-talk
   1133 > Excerpts from William Morgan's message of Fri Apr 04 18:08:02 +0200 2008:>
   1134 > Reformatted excerpts from nicolas.pouillard's message of 2008-04-04:> > I'm 
   1135 > hitting  a  bug  concerning forwarding, all newlines get trimmed> > off. I'm
   1136 > trying  to fix the bug, but I don't understand if arrays of> > lines are supposed
   1137 > to be ended by newlines or not.> > I don't see this behavior, either in the
   1138 > forward mode buffer or in the> resulting message.> > Newlines shouldn't exist in
   1139 > arrays of lines.> ForwardMode#forward_body_lines is the relevant method. Let me
   1140 > know what> you discover.I hope that my bunch of patches will makes this clear.--
   1141 > Nicolas Pouillard aka Ertai
   1142 
   1143 
   1144 
   1145 From wmorgan-sup@masanjin.net  Fri Apr  4 13:44:53 2008
   1146 From: wmorgan-sup@masanjin.net (William Morgan)
   1147 Date: Fri, 04 Apr 2008 10:44:53 -0700
   1148 Subject: [sup-talk] [PATCH] Fix a bug when forwarding and using crypto.
   1149 In-Reply-To: <1207324905-7455-1-git-send-email-nicolas.pouillard@gmail.com>
   1150 References: <1207324905-7455-1-git-send-email-nicolas.pouillard@gmail.com>
   1151 Message-ID: <1207331044-sup-3269@south>
   1152 
   1153 Reformatted excerpts from nicolas.pouillard's message of 2008-04-04:
   1154 > -      to_email = (@header["To"] + @header["Cc"] + @header["Bcc"]).map { |p| PersonManager.person_for(p).email }
   1155 > +      to_email = [@header["To"], @header["Cc"], @header["Bcc"]].flatten.compact.map { |p| PersonManager.person_for(p).email }
   1156 
   1157 What was the bug?
   1158 
   1159 -- 
   1160 William <wmorgan-sup at masanjin.net>
   1161 
   1162 From wmorgan-sup@masanjin.net  Fri Apr  4 13:47:31 2008
   1163 From: wmorgan-sup@masanjin.net (William Morgan)
   1164 Date: Fri, 04 Apr 2008 10:47:31 -0700
   1165 Subject: [sup-talk] [PATCH] Fix a bug about forwarding that trimmed out
   1166 	newlines.
   1167 In-Reply-To: <1207325353-7638-1-git-send-email-nicolas.pouillard@gmail.com>
   1168 References: <1207325353-7638-1-git-send-email-nicolas.pouillard@gmail.com>
   1169 Message-ID: <1207331132-sup-5937@south>
   1170 
   1171 Reformatted excerpts from nicolas.pouillard's message of 2008-04-04:
   1172 > This seems to happen when one don't touch the forwarded email. Indeed
   1173 > most of the sup's code tend to assume that messages body are
   1174 > reprensented using an array of string *without* a trailing \n, except
   1175 > some parts of the code.
   1176 
   1177 I see. I think this patch is the right approach.
   1178 
   1179 > This patch enforce that. It could become even more strict by raising
   1180 > an error instead of logging in join_lines.
   1181 
   1182 Does that log message ever get triggered for you? I'd prefer to have an
   1183 exception thrown, but only if it will never happen. :)
   1184 
   1185 -- 
   1186 William <wmorgan-sup at masanjin.net>
   1187 
   1188 From wmorgan-sup@masanjin.net  Fri Apr  4 13:48:01 2008
   1189 From: wmorgan-sup@masanjin.net (William Morgan)
   1190 Date: Fri, 04 Apr 2008 10:48:01 -0700
   1191 Subject: [sup-talk] [PATCH] fixed off-by-one error in imap.rb and
   1192 	maildir.rb
   1193 In-Reply-To: <1207240457-sup-91@spooky.local>
   1194 References: <1204528063-sup-7345@chris-tablet>
   1195 	<1204531233-2092-1-git-send-email-chrisw@rice.edu>
   1196 	<1206547432-sup-4074@south> <1207240457-sup-91@spooky.local>
   1197 Message-ID: <1207331259-sup-2952@south>
   1198 
   1199 Reformatted excerpts from Grant Hollingworth's message of 2008-04-03:
   1200 > This breaks Source#done?, so every poll the last message of each
   1201 > source gets reloaded. The state gets fixed from the index but it's
   1202 > still ugly.
   1203 
   1204 Gah. I will take a look.
   1205 
   1206 -- 
   1207 William <wmorgan-sup at masanjin.net>
   1208 
   1209 From marc.hartstein@alum.vassar.edu  Fri Apr  4 15:51:47 2008
   1210 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   1211 Date: Fri,  4 Apr 2008 15:51:47 -0400
   1212 Subject: [sup-talk] [PATCH] Add tab-completion to multi add labels (;l)
   1213 Message-ID: <1207338707-2047-1-git-send-email-marc.hartstein@alum.vassar.edu>
   1214 
   1215 ---
   1216  lib/sup/modes/thread-index-mode.rb |    5 ++---
   1217  1 files changed, 2 insertions(+), 3 deletions(-)
   1218 
   1219 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
   1220 index e24d7e0..0f9d12d 100644
   1221 --- a/lib/sup/modes/thread-index-mode.rb
   1222 +++ b/lib/sup/modes/thread-index-mode.rb
   1223 @@ -440,9 +440,8 @@ EOS
   1224    end
   1225  
   1226    def multi_edit_labels threads
   1227 -    answer = BufferManager.ask :add_labels, "add labels: "
   1228 -    return unless answer
   1229 -    user_labels = answer.split(/\s+/).map { |l| l.intern }
   1230 +    user_labels = BufferManager.ask_for_labels :add_labels, "Add labels: ", [], @hidden_labels
   1231 +    return unless user_labels
   1232      
   1233      hl = user_labels.select { |l| @hidden_labels.member? l }
   1234      if hl.empty?
   1235 -- 
   1236 1.5.3.7
   1237 
   1238 
   1239 From marc.hartstein@alum.vassar.edu  Fri Apr  4 17:43:44 2008
   1240 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   1241 Date: Fri, 04 Apr 2008 17:43:44 -0400
   1242 Subject: [sup-talk] Workaround for sup-config crash in 0.4 on some platforms
   1243 Message-ID: <1207345193-sup-7377@cabinet>
   1244 
   1245 Some users have been having trouble where sup-config crashes on a stock
   1246 0.4 install.  While updating to git is supposed to correct this problem,
   1247 many people won't want to go to that effort just to see if sup even
   1248 works.  For them, this workaround:
   1249 
   1250 1. Create and edit ~/.sup/config.yaml to contain the following:
   1251 
   1252 -------------------- SNIP HERE --------------------
   1253 ---
   1254 :accounts:
   1255   :default:
   1256     :name: foo
   1257     :email: foo at bar
   1258 -------------------- SNIP HERE --------------------
   1259 
   1260 2. Run sup-config as normal.
   1261 
   1262 ( This has been crossposted to
   1263 http://sup.rubyforge.org/wiki/wiki.pl?WorkAroundSupConfigCrash )
   1264 
   1265 Hope this helps somebody.
   1266 -------------- next part --------------
   1267 A non-text attachment was scrubbed...
   1268 Name: signature.asc
   1269 Type: application/pgp-signature
   1270 Size: 189 bytes
   1271 Desc: not available
   1272 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080404/0ca096c2/attachment.bin 
   1273 
   1274 From its.jeff.balogh@gmail.com  Sat Apr  5 01:48:14 2008
   1275 From: its.jeff.balogh@gmail.com (Jeff Balogh)
   1276 Date: Sat, 05 Apr 2008 01:48:14 -0400
   1277 Subject: [sup-talk] Setting reply to -- hook or config?
   1278 Message-ID: <1207373363-sup-374@archie>
   1279 
   1280 I'm terrible at remembering to reply to all, and today I realized that sup can
   1281 help!
   1282 
   1283 I started off making a reply-to hook that takes the array of types sup is
   1284 planning to offer in the Reply To field.  I thought the hook would do some fancy
   1285 logic and return the right type.  Then I realized I could just list the order of
   1286 my reply-to preferences, and pick the first element of the intersection.
   1287 
   1288   ([:list, :all] & types)[0]
   1289 
   1290 The return value is only used if it's in the types array, so no worries about
   1291 nil.
   1292 
   1293 A hook seems like overkill for this one-liner, so maybe it would be more
   1294 appropriate for config.yaml?  It makes sense as something in config, but I
   1295 hesitate because it would be the first code object (well, the first that _looks_
   1296 like code), and because less config variables is good.
   1297 
   1298 -- jeff
   1299 
   1300 From nicolas.pouillard@gmail.com  Sat Apr  5 05:26:19 2008
   1301 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   1302 Date: Sat, 05 Apr 2008 11:26:19 +0200
   1303 Subject: [sup-talk] [PATCH] Fix a bug about forwarding that trimmed out
   1304 	newlines.
   1305 In-Reply-To: <1207331132-sup-5937@south>
   1306 References: <1207325353-7638-1-git-send-email-nicolas.pouillard@gmail.com>
   1307 	<1207331132-sup-5937@south>
   1308 Message-ID: <1207387471-sup-7303@ausone.local>
   1309 
   1310 Excerpts from William Morgan's message of Fri Apr 04 19:47:31 +0200 2008:
   1311 > Reformatted excerpts from nicolas.pouillard's message of 2008-04-04:
   1312 > > This seems to happen when one don't touch the forwarded email. Indeed
   1313 > > most of the sup's code tend to assume that messages body are
   1314 > > reprensented using an array of string *without* a trailing \n, except
   1315 > > some parts of the code.
   1316 > 
   1317 > I see. I think this patch is the right approach.
   1318 > 
   1319 > > This patch enforce that. It could become even more strict by raising
   1320 > > an error instead of logging in join_lines.
   1321 > 
   1322 > Does that log message ever get triggered for you? I'd prefer to have an
   1323 > exception thrown, but only if it will never happen. :)
   1324 
   1325 I  will  change  it  to  an  exception for some time, and if it's good, I will
   1326 submit a patch. For now I think this patch is the safe way.
   1327 
   1328 -- 
   1329 Nicolas Pouillard aka Ertai
   1330 -------------- next part --------------
   1331 A non-text attachment was scrubbed...
   1332 Name: signature.asc
   1333 Type: application/pgp-signature
   1334 Size: 286 bytes
   1335 Desc: not available
   1336 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080405/6d0c0693/attachment.bin 
   1337 
   1338 From nicolas.pouillard@gmail.com  Sat Apr  5 06:39:29 2008
   1339 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   1340 Date: Sat, 05 Apr 2008 12:39:29 +0200
   1341 Subject: [sup-talk] [PATCH] Fix a bug when forwarding and using crypto.
   1342 In-Reply-To: <1207331044-sup-3269@south>
   1343 References: <1207324905-7455-1-git-send-email-nicolas.pouillard@gmail.com>
   1344 	<1207331044-sup-3269@south>
   1345 Message-ID: <1207391796-sup-2972@ausone.local>
   1346 
   1347 Excerpts from William Morgan's message of Fri Apr 04 19:44:53 +0200 2008:
   1348 > Reformatted excerpts from nicolas.pouillard's message of 2008-04-04:
   1349 > > -      to_email = (@header["To"] + @header["Cc"] + @header["Bcc"]).map { |p| PersonManager.person_for(p).email }
   1350 > > +      to_email = [@header["To"], @header["Cc"], @header["Bcc"]].flatten.compact.map { |p| PersonManager.person_for(p).email }
   1351 > 
   1352 > What was the bug?
   1353 
   1354 When  some  of  these @header[...] are not present I get a nil and then get an
   1355 error when using '+' on them.
   1356 
   1357 -- 
   1358 Nicolas Pouillard aka Ertai
   1359 -------------- next part --------------
   1360 A non-text attachment was scrubbed...
   1361 Name: signature.asc
   1362 Type: application/pgp-signature
   1363 Size: 194 bytes
   1364 Desc: not available
   1365 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080405/863f13ca/attachment.bin 
   1366 
   1367 From wmorgan-sup@masanjin.net  Sat Apr  5 19:35:13 2008
   1368 From: wmorgan-sup@masanjin.net (William Morgan)
   1369 Date: Sat, 05 Apr 2008 16:35:13 -0700
   1370 Subject: [sup-talk] ISO 8859-15 at the header
   1371 In-Reply-To: <20080403140711.GA482@weisshuhn.de>
   1372 References: <20080327044901.GA12106@weisshuhn.de> <1207185125-sup-9342@south>
   1373 	<20080403140711.GA482@weisshuhn.de>
   1374 Message-ID: <1207438404-sup-888@south>
   1375 
   1376 Reformatted excerpts from Carsten Sch?lzki's message of 2008-04-03:
   1377 > William Morgan <wmorgan-sup at masanjin.net> [03.04.2008 03:12]:
   1378 > > It should work, if you have your LANG and stuff all set up
   1379 > > correctly.  What console character set encoding does Sup detect?
   1380 > > (Typically the first message of the log buffer.)
   1381 > 
   1382 > The detecting seems right to me. The log says: using character set
   1383 > encoding "ISO8859-15"
   1384 
   1385 This means that as far as Sup can tell, it can emit iso8859-15 directly
   1386 to the terminal and not have to worry about transcoding anything. Does
   1387 that seem correct?
   1388 
   1389 If so, then this may bring us to the very scary world of "why isn't
   1390 ncurses does the right thing on my particular
   1391 platform/terminal/encoding setup".
   1392 
   1393 -- 
   1394 William <wmorgan-sup at masanjin.net>
   1395 
   1396 From wmorgan-sup@masanjin.net  Sat Apr  5 20:04:34 2008
   1397 From: wmorgan-sup@masanjin.net (William Morgan)
   1398 Date: Sat, 05 Apr 2008 17:04:34 -0700
   1399 Subject: [sup-talk] Wiki updates, more people on #sup
   1400 In-Reply-To: <18635-64358@sneakemail.com>
   1401 References: <18635-64358@sneakemail.com>
   1402 Message-ID: <1207440240-sup-2556@south>
   1403 
   1404 Reformatted excerpts from Guarded Identity's message of 2008-03-28:
   1405 > One thing to note about these configurations are that I'm relying on
   1406 > other tools to solve problems rather than asking William to "improve"
   1407 > Sup.
   1408 
   1409 That's what makes you a good user. :)
   1410 
   1411 > However, regarding [2], I guess I wish that contact tab-complete could
   1412 > be customizable (say to hook into ldbdq).
   1413 
   1414 I've just added an extra-contact-addresses hook. Try parsing some lbdbq
   1415 output in that.
   1416 
   1417 -- 
   1418 William <wmorgan-sup at masanjin.net>
   1419 
   1420 From wmorgan-sup@masanjin.net  Sat Apr  5 20:06:28 2008
   1421 From: wmorgan-sup@masanjin.net (William Morgan)
   1422 Date: Sat, 05 Apr 2008 17:06:28 -0700
   1423 Subject: [sup-talk] Workaround for sup-config crash in 0.4 on some
   1424 	platforms
   1425 In-Reply-To: <1207345193-sup-7377@cabinet>
   1426 References: <1207345193-sup-7377@cabinet>
   1427 Message-ID: <1207440368-sup-9724@south>
   1428 
   1429 Reformatted excerpts from Marc Hartstein's message of 2008-04-04:
   1430 > While updating to git is supposed to correct this problem, many people
   1431 > won't want to go to that effort just to see if sup even works.
   1432 
   1433 Guess that means it's time to release an 0.5!
   1434 
   1435 -- 
   1436 William <wmorgan-sup at masanjin.net>
   1437 
   1438 From patroclo7@gmail.com  Sun Apr  6 07:06:55 2008
   1439 From: patroclo7@gmail.com (Giorgio Lando)
   1440 Date: Sun, 06 Apr 2008 13:06:55 +0200
   1441 Subject: [sup-talk] [PATCH] Write sup-{exception-log,
   1442 	unable-to-decode}.txt in ~/.sup
   1443 In-Reply-To: <12072321792626-git-send-email-nicolas.pouillard@gmail.com>
   1444 References: <12072321792626-git-send-email-nicolas.pouillard@gmail.com>
   1445 Message-ID: <1207479958-sup-5202@clarabella>
   1446 
   1447 Excerpts from Nicolas Pouillard's message of Thu Apr 03 16:16:19 +0200 2008:
   1448 > More precisely new destinations are:
   1449 >   - ~/.sup/exception-log.txt
   1450 >   - ~/.sup/unable-to-decode.txt
   1451 > This patch avoid some kind of pollution.
   1452 
   1453 I really enjoy this patch, my home folder is now cleaner! Thanks 
   1454 
   1455 -- 
   1456 Giorgio Lando <patroclo7 at gmail dot com>
   1457 
   1458 From grant@antiflux.org  Mon Apr  7 13:19:20 2008
   1459 From: grant@antiflux.org (Grant Hollingworth)
   1460 Date: Mon, 07 Apr 2008 13:19:20 -0400
   1461 Subject: [sup-talk] Wiki updates, more people on #sup
   1462 In-Reply-To: <1207440240-sup-2556@south>
   1463 References: <18635-64358@sneakemail.com> <1207440240-sup-2556@south>
   1464 Message-ID: <1207588490-sup-9579@spooky.local>
   1465 
   1466 * William Morgan [2008-04-05 20:04 -0400]:
   1467 > I've just added an extra-contact-addresses hook. Try parsing some lbdbq
   1468 > output in that.
   1469 
   1470 I made an extra-contact-addresses hook for OS X. Sup's contact completion
   1471 structure means the script has to load all contacts, but it's still pretty
   1472 quick.
   1473 
   1474 The code uses RubyCocoa and the AddressBook framework, so it works even when
   1475 the Address Book application is not running.
   1476 -------------- next part --------------
   1477 A non-text attachment was scrubbed...
   1478 Name: extra-contact-addresses.rb
   1479 Type: application/octet-stream
   1480 Size: 1640 bytes
   1481 Desc: not available
   1482 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080407/7e19ee82/attachment-0001.obj 
   1483 
   1484 From wmorgan-sup@masanjin.net  Mon Apr  7 14:00:18 2008
   1485 From: wmorgan-sup@masanjin.net (William Morgan)
   1486 Date: Mon, 07 Apr 2008 11:00:18 -0700
   1487 Subject: [sup-talk] Wiki updates, more people on #sup
   1488 In-Reply-To: <1207588490-sup-9579@spooky.local>
   1489 References: <18635-64358@sneakemail.com> <1207440240-sup-2556@south>
   1490 	<1207588490-sup-9579@spooky.local>
   1491 Message-ID: <1207591166-sup-6613@south>
   1492 
   1493 Reformatted excerpts from Grant Hollingworth's message of 2008-04-07:
   1494 > I made an extra-contact-addresses hook for OS X. Sup's contact
   1495 > completion structure means the script has to load all contacts, but
   1496 > it's still pretty quick.
   1497 
   1498 It would be possible to hook more directly into the completion code if
   1499 you can provide prefix matches, and not terribly harder. 
   1500 
   1501 -- 
   1502 William <wmorgan-sup at masanjin.net>
   1503 
   1504 From rgh@roughage.com.au  Wed Apr  9 06:07:36 2008
   1505 From: rgh@roughage.com.au (Richard Heycock)
   1506 Date: Wed, 09 Apr 2008 20:07:36 +1000
   1507 Subject: [sup-talk] Spam hooks.
   1508 Message-ID: <1207735298-sup-7690@wrasse>
   1509 
   1510 I usr dspam as my anti-spam filter and I have it set up so that if
   1511 I forward a spam message to spam at domain it retrains the spam filter.
   1512 
   1513 Is it possible to add a hook so that when I press 'S' to mark the
   1514 message as spam that it then forward the email to the appropriate
   1515 address.
   1516 
   1517 rgh
   1518 
   1519 -- 
   1520 +61 (0) 410 646 369
   1521 rgh at neoss.com.au
   1522 
   1523 You're worried criminals will continue to penetrate into cyberspace, and
   1524 I'm worried complexity, poor design and mismanagement will be there to meet
   1525 them - Marcus Ranum
   1526 
   1527 !DSPAM:47fc9568198723040813034!
   1528 
   1529 
   1530 
   1531 From itaylor@uark.edu  Wed Apr  9 06:19:22 2008
   1532 From: itaylor@uark.edu (Ian Taylor)
   1533 Date: Wed, 09 Apr 2008 06:19:22 -0400
   1534 Subject: [sup-talk] Spam hooks.
   1535 In-Reply-To: <1207735298-sup-7690@wrasse>
   1536 References: <1207735298-sup-7690@wrasse>
   1537 Message-ID: <1207736247-sup-6263@red>
   1538 
   1539 Excerpts from Richard Heycock's message of Wed Apr 09 06:07:36 -0400 2008:
   1540 > I usr dspam as my anti-spam filter and I have it set up so that if
   1541 > I forward a spam message to spam at domain it retrains the spam filter.
   1542 > 
   1543 > Is it possible to add a hook so that when I press 'S' to mark the
   1544 > message as spam that it then forward the email to the appropriate
   1545 > address.
   1546 > 
   1547 > rgh
   1548 > 
   1549 > -- 
   1550 > +61 (0) 410 646 369
   1551 > rgh at neoss.com.au
   1552 > 
   1553 > You're worried criminals will continue to penetrate into cyberspace, and
   1554 > I'm worried complexity, poor design and mismanagement will be there to meet
   1555 > them - Marcus Ranum
   1556 > 
   1557 > !DSPAM:47fc9568198723040813034!
   1558 > 
   1559 
   1560 Is there any way you could document your spam filtering setup on the
   1561 wiki?
   1562 
   1563 http://sup.rubyforge.org/wiki/wiki.pl
   1564 
   1565 -- 
   1566 Ian Taylor
   1567 
   1568 From marcus-sup@bar-coded.net  Wed Apr  9 16:00:38 2008
   1569 From: marcus-sup@bar-coded.net (Marcus Williams)
   1570 Date: Wed, 09 Apr 2008 21:00:38 +0100
   1571 Subject: [sup-talk] Spam hooks.
   1572 In-Reply-To: <1207735298-sup-7690@wrasse>
   1573 References: <1207735298-sup-7690@wrasse>
   1574 Message-ID: <1207771005-sup-8074@tomsk>
   1575 
   1576 On 9.4.2008, Richard Heycock wrote:
   1577 > Is it possible to add a hook so that when I press 'S' to mark the
   1578 > message as spam that it then forward the email to the appropriate
   1579 > address.
   1580 
   1581 Note that 'S' is actually marking a thread as a spam _not_ a message
   1582 as a spam so any hook would be working on (potentially) a set of
   1583 messages.
   1584 
   1585 In my local edits I have a hook that allows for this, but its not
   1586 going to forward anything for you - it leaves it up to you to do what
   1587 you want with the thread. It wouldnt be that hard to iterate over the
   1588 thread and forward all messages to an address in ruby though.
   1589 
   1590 I can clean it up and post it if its any help.
   1591 
   1592 Marcus
   1593 
   1594 From rgh@roughage.com.au  Wed Apr  9 17:08:46 2008
   1595 From: rgh@roughage.com.au (Richard Heycock)
   1596 Date: Thu, 10 Apr 2008 07:08:46 +1000
   1597 Subject: [sup-talk] Spam hooks.
   1598 In-Reply-To: <1207771005-sup-8074@tomsk>
   1599 References: <1207735298-sup-7690@wrasse> <1207771005-sup-8074@tomsk>
   1600 Message-ID: <1207775231-sup-6370@wrasse>
   1601 
   1602 Excerpts from Marcus Williams's message of Thu Apr 10 06:00:38 +1000 2008:
   1603 > On 9.4.2008, Richard Heycock wrote:
   1604 > > Is it possible to add a hook so that when I press 'S' to mark the
   1605 > > message as spam that it then forward the email to the appropriate
   1606 > > address.
   1607 > 
   1608 > Note that 'S' is actually marking a thread as a spam _not_ a message
   1609 > as a spam so any hook would be working on (potentially) a set of
   1610 > messages.
   1611 
   1612 Yeah, ok.
   1613 
   1614 > In my local edits I have a hook that allows for this, but its not
   1615 > going to forward anything for you - it leaves it up to you to do what
   1616 > you want with the thread. It wouldnt be that hard to iterate over the
   1617 > thread and forward all messages to an address in ruby though.
   1618 > 
   1619 > I can clean it up and post it if its any help.
   1620 
   1621 That would be great. I just need the basic idea and I should be able
   1622 to take it form there.
   1623 
   1624 rgh
   1625 
   1626 > Marcus
   1627 
   1628 -- 
   1629 +61 (0) 410 646 369
   1630 rgh at neoss.com.au
   1631 
   1632 You're worried criminals will continue to penetrate into cyberspace, and
   1633 I'm worried complexity, poor design and mismanagement will be there to meet
   1634 them - Marcus Ranum
   1635 
   1636 !DSPAM:47fd305e198721115333888!
   1637 
   1638 
   1639 
   1640 From wmorgan-sup@masanjin.net  Thu Apr 10 00:05:55 2008
   1641 From: wmorgan-sup@masanjin.net (William Morgan)
   1642 Date: Wed, 09 Apr 2008 21:05:55 -0700
   1643 Subject: [sup-talk] Spam hooks.
   1644 In-Reply-To: <1207771005-sup-8074@tomsk>
   1645 References: <1207735298-sup-7690@wrasse> <1207771005-sup-8074@tomsk>
   1646 Message-ID: <1207800329-sup-6044@south>
   1647 
   1648 Reformatted excerpts from Marcus Williams's message of 2008-04-09:
   1649 > In my local edits I have a hook that allows for this, but its not
   1650 > going to forward anything for you - it leaves it up to you to do what
   1651 > you want with the thread. It wouldnt be that hard to iterate over the
   1652 > thread and forward all messages to an address in ruby though.
   1653 
   1654 I'd be happy to merge in such a hook if you want to send a patch.
   1655 
   1656 -- 
   1657 William <wmorgan-sup at masanjin.net>
   1658 
   1659 From marcus-sup@bar-coded.net  Thu Apr 10 06:31:55 2008
   1660 From: marcus-sup@bar-coded.net (Marcus Williams)
   1661 Date: Thu, 10 Apr 2008 11:31:55 +0100
   1662 Subject: [sup-talk] [PATCH] Simple hook that runs when thread is marked as
   1663 	spam
   1664 Message-ID: <1207823457-sup-5040@tomsk>
   1665 
   1666 This hook adds the ability to configure further actions that take place
   1667 when a user marks a thread as spam in sup.
   1668 
   1669 mark-as-spam
   1670 ------------
   1671 File: $HOME/.sup/hooks/mark-as-spam.rb
   1672 This hook is run when a thread is marked as spam
   1673 Variables:
   1674   thread: The message thread being marked as spam.
   1675 ---
   1676  lib/sup/modes/thread-index-mode.rb |    7 +++++++
   1677  1 files changed, 7 insertions(+), 0 deletions(-)
   1678 
   1679 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
   1680 index 7a0b815..50dabaa 100644
   1681 --- a/lib/sup/modes/thread-index-mode.rb
   1682 +++ b/lib/sup/modes/thread-index-mode.rb
   1683 @@ -13,6 +13,12 @@ Generates the per-thread size widget for each thread.
   1684  Variables:
   1685    thread: The message thread to be formatted.
   1686  EOS
   1687 +  
   1688 +  HookManager.register "mark-as-spam", <<EOS
   1689 +This hook is run when a thread is marked as spam
   1690 +Variables:
   1691 +  thread: The message thread being marked as spam.
   1692 +EOS
   1693  
   1694    register_keymap do |k|
   1695      k.add :load_threads, "Load #{LOAD_MORE_THREAD_NUM} more threads", 'M'
   1696 @@ -333,6 +339,7 @@ EOS
   1697    def toggle_spam
   1698      t = cursor_thread or return
   1699      multi_toggle_spam [t]
   1700 +    HookManager.run("mark-as-spam", :thread => t) 
   1701    end
   1702  
   1703    ## both spam and deleted have the curious characteristic that you
   1704 -- 
   1705 1.5.3.7
   1706 
   1707 
   1708 
   1709 From marcus-sup@bar-coded.net  Thu Apr 10 06:37:36 2008
   1710 From: marcus-sup@bar-coded.net (Marcus Williams)
   1711 Date: Thu, 10 Apr 2008 11:37:36 +0100
   1712 Subject: [sup-talk] Spam hooks.
   1713 In-Reply-To: <1207775231-sup-6370@wrasse>
   1714 References: <1207735298-sup-7690@wrasse> <1207771005-sup-8074@tomsk>
   1715 	<1207775231-sup-6370@wrasse>
   1716 Message-ID: <1207823540-sup-3480@tomsk>
   1717 
   1718 On 9.4.2008, Richard Heycock wrote:
   1719 > That would be great. I just need the basic idea and I should be able
   1720 > to take it form there.
   1721 
   1722 ... patch is winging its way to sup-talk as I write this. Its against
   1723 next but it should patch cleanly against master. Some quick pointers
   1724 for the mark-as-spam.rb:
   1725 
   1726 # ---- $HOME/.sup/hooks/mark-as-spam.rb ------
   1727 
   1728 # simple actions on spam - use in hook and receive lots of logging
   1729 # when you hit 'S' :) 
   1730 
   1731 #
   1732 # Sup marks a thread as spam, not a single message so this hook
   1733 # gets a thread passed to it.
   1734 
   1735 log "Thread subject is #{thread.subj}"
   1736 log "Thread authors are #{thread.authors.join ', '}"
   1737 
   1738 # latest message
   1739 
   1740 log "Latest message in thread is #{thread.latest_message.subj}"
   1741 
   1742 # all messages
   1743 
   1744 thread.each { |m, *d| log "Look a message #{m.id}" if m }
   1745 
   1746 # When you have a message object, you can do something with a complete
   1747 # message using the raw_* methods (untested..)
   1748 
   1749 #      File.open(filename, "w") do |f|
   1750 #        m.each_raw_message_line { |l| f.print l }
   1751 #      end
   1752 #
   1753 #      ... now process the file somehow
   1754 
   1755 # EOF -- $HOME/.sup/hooks/mark-as-spam.rb ------
   1756 
   1757 HTH
   1758 
   1759 Marcus
   1760 
   1761 From marcus-sup@bar-coded.net  Thu Apr 10 07:04:32 2008
   1762 From: marcus-sup@bar-coded.net (Marcus Williams)
   1763 Date: Thu, 10 Apr 2008 12:04:32 +0100
   1764 Subject: [sup-talk] Spam hooks.
   1765 In-Reply-To: <1207823540-sup-3480@tomsk>
   1766 References: <1207735298-sup-7690@wrasse> <1207771005-sup-8074@tomsk>
   1767 	<1207775231-sup-6370@wrasse> <1207823540-sup-3480@tomsk>
   1768 Message-ID: <1207825216-sup-4659@tomsk>
   1769 
   1770 On 10.4.2008, I wrote:
   1771 > On 9.4.2008, Richard Heycock wrote:
   1772 > > That would be great. I just need the basic idea and I should be able
   1773 > > to take it form there.
   1774 > 
   1775 > ... patch is winging its way to sup-talk as I write this. Its against
   1776 > next but it should patch cleanly against master. Some quick pointers
   1777 > for the mark-as-spam.rb:
   1778 
   1779 Note that perhaps I should also add that this hook gets run on "toggle"
   1780 of the spam flag. So you probably want to check which way its been
   1781 toggled by looking for the :spam flag in the labels set if you want to
   1782 be extra careful. I think you can probably just use the thread
   1783 object's labels to do this.
   1784 
   1785 Marcus
   1786 
   1787 From rgh@roughage.com.au  Thu Apr 10 09:05:15 2008
   1788 From: rgh@roughage.com.au (Richard Heycock)
   1789 Date: Thu, 10 Apr 2008 23:05:15 +1000
   1790 Subject: [sup-talk] Spam hooks.
   1791 In-Reply-To: <1207800329-sup-6044@south>
   1792 References: <1207735298-sup-7690@wrasse> <1207771005-sup-8074@tomsk>
   1793 	<1207800329-sup-6044@south>
   1794 Message-ID: <1207832683-sup-5657@wrasse>
   1795 
   1796 Excerpts from William Morgan's message of Thu Apr 10 14:05:55 +1000 2008:
   1797 > Reformatted excerpts from Marcus Williams's message of 2008-04-09:
   1798 > > In my local edits I have a hook that allows for this, but its not
   1799 > > going to forward anything for you - it leaves it up to you to do what
   1800 > > you want with the thread. It wouldnt be that hard to iterate over the
   1801 > > thread and forward all messages to an address in ruby though.
   1802 > 
   1803 > I'd be happy to merge in such a hook if you want to send a patch.
   1804 
   1805 Sounds good. I'll give it a go over the weekend.
   1806 
   1807 rgh
   1808 
   1809 -- 
   1810 +61 (0) 410 646 369
   1811 rgh at neoss.com.au
   1812 
   1813 You're worried criminals will continue to penetrate into cyberspace, and
   1814 I'm worried complexity, poor design and mismanagement will be there to meet
   1815 them - Marcus Ranum
   1816 
   1817 !DSPAM:47fe108b198728455610660!
   1818 
   1819 
   1820 
   1821 From rgh@roughage.com.au  Thu Apr 10 09:09:04 2008
   1822 From: rgh@roughage.com.au (Richard Heycock)
   1823 Date: Thu, 10 Apr 2008 23:09:04 +1000
   1824 Subject: [sup-talk] Spam hooks.
   1825 In-Reply-To: <1207825216-sup-4659@tomsk>
   1826 References: <1207735298-sup-7690@wrasse> <1207771005-sup-8074@tomsk>
   1827 	<1207775231-sup-6370@wrasse> <1207823540-sup-3480@tomsk>
   1828 	<1207825216-sup-4659@tomsk>
   1829 Message-ID: <1207832718-sup-7937@wrasse>
   1830 
   1831 Excerpts from Marcus Williams's message of Thu Apr 10 21:04:32 +1000 2008:
   1832 > On 10.4.2008, I wrote:
   1833 > > On 9.4.2008, Richard Heycock wrote:
   1834 > > > That would be great. I just need the basic idea and I should be able
   1835 > > > to take it form there.
   1836 > > 
   1837 > > ... patch is winging its way to sup-talk as I write this. Its against
   1838 > > next but it should patch cleanly against master. Some quick pointers
   1839 > > for the mark-as-spam.rb:
   1840 
   1841 I had a quick look and it doesn't seem too onerous.
   1842 
   1843 > Note that perhaps I should also add that this hook gets run on "toggle"
   1844 > of the spam flag. So you probably want to check which way its been
   1845 > toggled by looking for the :spam flag in the labels set if you want to
   1846 > be extra careful. I think you can probably just use the thread
   1847 > object's labels to do this.
   1848 
   1849 Ok.
   1850 
   1851 dspam allows you to also retrain on false positives as well so it would
   1852 be worth detecting which way the spam toggle was and either send a
   1853 message to spam if it's spam and ham if it's not.
   1854 
   1855 rgh
   1856 
   1857 > Marcus
   1858 
   1859 -- 
   1860 +61 (0) 410 646 369
   1861 rgh at neoss.com.au
   1862 
   1863 You're worried criminals will continue to penetrate into cyberspace, and
   1864 I'm worried complexity, poor design and mismanagement will be there to meet
   1865 them - Marcus Ranum
   1866 
   1867 !DSPAM:47fe1170198729375562959!
   1868 
   1869 
   1870 
   1871 From marc.hartstein@alum.vassar.edu  Thu Apr 10 11:39:36 2008
   1872 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   1873 Date: Thu, 10 Apr 2008 11:39:36 -0400
   1874 Subject: [sup-talk] Workaround for sup-config crash in 0.4 on some
   1875 	platforms
   1876 In-Reply-To: <1207440368-sup-9724@south>
   1877 References: <1207345193-sup-7377@cabinet> <1207440368-sup-9724@south>
   1878 Message-ID: <1207841677-sup-2645@cabinet>
   1879 
   1880 Excerpts from William Morgan's message of Sat Apr 05 20:06:28 -0400 2008:
   1881 > Reformatted excerpts from Marc Hartstein's message of 2008-04-04:
   1882 > > While updating to git is supposed to correct this problem, many people
   1883 > > won't want to go to that effort just to see if sup even works.
   1884 > 
   1885 > Guess that means it's time to release an 0.5!
   1886 
   1887 Good idea.
   1888 
   1889 I've just confirmed that this problem is fixed in 'master' on my Gentoo
   1890 system.
   1891 -------------- next part --------------
   1892 A non-text attachment was scrubbed...
   1893 Name: signature.asc
   1894 Type: application/pgp-signature
   1895 Size: 235 bytes
   1896 Desc: not available
   1897 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080410/d9cf310f/attachment.bin 
   1898 
   1899 From chrisw@rice.edu  Thu Apr 10 16:41:35 2008
   1900 From: chrisw@rice.edu (Christopher Warrington)
   1901 Date: Thu, 10 Apr 2008 15:41:35 -0500
   1902 Subject: [sup-talk] Removing label from thread on message arrival
   1903 Message-ID: <1207859954-sup-8798@chris-tablet>
   1904 
   1905 I'd like to automatically remove a certain label from threads when a
   1906 new message for that thread arrives.
   1907 
   1908 What I am trying to do is label threads that I need a reply with the
   1909 label "nr". Then, when a reply comes in, remove the "nr" label
   1910 automatically. That way, I don't have to do this manually and my "nr"
   1911 listing is up-to-date.
   1912 
   1913 I don't see any way to do this with a current hook, but I though that
   1914 I would ask before hacking sup.
   1915 
   1916 -- 
   1917 Christopher Warrington <chrisw at rice.edu>
   1918 
   1919 From wmorgan-sup@masanjin.net  Thu Apr 10 17:09:56 2008
   1920 From: wmorgan-sup@masanjin.net (William Morgan)
   1921 Date: Thu, 10 Apr 2008 14:09:56 -0700
   1922 Subject: [sup-talk] Removing label from thread on message arrival
   1923 In-Reply-To: <1207859954-sup-8798@chris-tablet>
   1924 References: <1207859954-sup-8798@chris-tablet>
   1925 Message-ID: <1207861332-sup-505@south>
   1926 
   1927 Reformatted excerpts from Christopher Warrington's message of 2008-04-10:
   1928 > I don't see any way to do this with a current hook, but I though that
   1929 > I would ask before hacking sup.
   1930 
   1931 Yeah, I think this would require an "after-message-threaded" (or
   1932 something) hook that would pass in both a message and its thread.
   1933 
   1934 -- 
   1935 William <wmorgan-sup at masanjin.net>
   1936 
   1937 From fedzor@gmail.com  Mon Apr 14 10:20:53 2008
   1938 From: fedzor@gmail.com (fedzor)
   1939 Date: Mon, 14 Apr 2008 10:20:53 -0400
   1940 Subject: [sup-talk]  Searching message content
   1941 Message-ID: <D4E80BB2-A7ED-4707-9110-BF84488B0E3F@gmail.com>
   1942 
   1943 Is there a way (already) that I can search the body of my messages?  
   1944 Is this not feasible/practical/permitted-according-to-the-religious- 
   1945 doctrine-of-MUAs ?
   1946 
   1947 I'd be glad to write something to get it to work, if need be.
   1948 
   1949 -------------------------------------------------------|
   1950 ~ Ari
   1951 seydar: it's like a crazy love triangle of Kernel commands and C code
   1952 
   1953 
   1954 
   1955 From johnbent@lanl.gov  Mon Apr 14 10:45:47 2008
   1956 From: johnbent@lanl.gov (John Bent)
   1957 Date: Mon, 14 Apr 2008 08:45:47 -0600
   1958 Subject: [sup-talk] Searching message content
   1959 In-Reply-To: <D4E80BB2-A7ED-4707-9110-BF84488B0E3F@gmail.com>
   1960 References: <D4E80BB2-A7ED-4707-9110-BF84488B0E3F@gmail.com>
   1961 Message-ID: <1208183994-sup-8800@tangerine.lanl.gov>
   1962 
   1963 Excerpts from fedzor's message of Mon Apr 14 08:20:53 -0600 2008:
   1964 > Is there a way (already) that I can search the body of my messages?  
   1965 > Is this not feasible/practical/permitted-according-to-the-religious- 
   1966 > doctrine-of-MUAs ?
   1967 > 
   1968 You can search the body of messages just by doing an unlabeled search.
   1969 Just hit \ and then type your search phrase and it will search the body
   1970 of messages.  Not sure whether it will also search subjects.  But you
   1971 can explicitly search them by doing subject:whatever search.
   1972 
   1973 I don't know the full list of search categories (probably a quick code read
   1974 would find it), but here are several:
   1975 
   1976 subject:
   1977 to:
   1978 from:
   1979 is: (e.g. is:unread)
   1980 on: (e.g. on:today)
   1981 
   1982 Also, doing multiples (e.g. is:unread label:sent) does the logical AND.  Not
   1983 sure how to do OR though.
   1984 
   1985 You can enclose search phrases in quotes and, like I said before, not 
   1986 specifying a category (and not doing a colon) searches message bodies.
   1987 
   1988 John 
   1989 
   1990 From nicolas.pouillard@gmail.com  Mon Apr 14 10:46:57 2008
   1991 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   1992 Date: Mon, 14 Apr 2008 16:46:57 +0200
   1993 Subject: [sup-talk] Searching message content
   1994 In-Reply-To: <D4E80BB2-A7ED-4707-9110-BF84488B0E3F@gmail.com>
   1995 References: <D4E80BB2-A7ED-4707-9110-BF84488B0E3F@gmail.com>
   1996 Message-ID: <1208184311-sup-4423@ausone.inria.fr>
   1997 
   1998 Excerpts from thefed's message of Mon Apr 14 16:20:53 +0200 2008:
   1999 > Is there a way (already) that I can search the body of my messages?  
   2000 > Is this not feasible/practical/permitted-according-to-the-religious- 
   2001 > doctrine-of-MUAs ?
   2002 
   2003 The  point  about  sup  is  too be able to practically have a working fulltext
   2004 search.
   2005 
   2006 > I'd be glad to write something to get it to work, if need be.
   2007 
   2008 Just  press  '\'  and  then your query (if you have an old version of Sup it's
   2009 '/' that is now dedicated to the in-buffer search).
   2010 
   2011 Regards,
   2012 
   2013 -- 
   2014 Nicolas Pouillard aka Ertai
   2015 -------------- next part --------------
   2016 A non-text attachment was scrubbed...
   2017 Name: signature.asc
   2018 Type: application/pgp-signature
   2019 Size: 194 bytes
   2020 Desc: not available
   2021 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080414/3e92e99f/attachment.bin 
   2022 
   2023 From chris@hinterland.nu  Tue Apr 15 02:15:05 2008
   2024 From: chris@hinterland.nu (Christopher Marsh)
   2025 Date: Tue, 15 Apr 2008 07:15:05 +0100
   2026 Subject: [sup-talk] Configuration problems with sup
   2027 Message-ID: <C6F2B8EE-C88D-441B-95BA-4C5574A95907@hinterland.nu>
   2028 
   2029 Hi. I'm having trouble getting sup working. I'm on Mac OS X 10.5.2,  
   2030 using the git repo. The binaries and libraries link up fine.
   2031 
   2032 sup-add throws this error:
   2033 
   2034 |---> sup-add mbox:/Volumes/Mail/mail01.mbox --unusual -- 
   2035 archive 
   2036                                                                                ~
   2037 [Tue Apr 15 06:59:58 +0100 2008] using character set encoding "UTF-8"
   2038 [Tue Apr 15 07:00:01 +0100 2008] crypto: detected gpg binary in /opt/ 
   2039 local/bin/gpg
   2040 [Tue Apr 15 07:00:01 +0100 2008] locking /Users/bear/.sup/lock...
   2041 Adding mbox:/Volumes/Mail/mail01.mbox...
   2042 [Tue Apr 15 07:00:02 +0100 2008] saving index and sources...
   2043 /opt/local/lib/ruby/site_ruby/1.8/sup.rb:76:in `initialize': can't  
   2044 convert File::Stat into Integer (TypeError)
   2045 	from /opt/local/lib/ruby/site_ruby/1.8/sup.rb:76:in `open'
   2046 	from /opt/local/lib/ruby/site_ruby/1.8/sup.rb:76:in `save_yaml_obj'
   2047 	from /opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:519:in  
   2048 `save_sources'
   2049 	from /opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:115:in `save'
   2050 	from /Users/bear/Sys/all/sup-add:120
   2051 
   2052 Same whatever mbox I use.
   2053 
   2054 Then sup is also broken:
   2055 --- RuntimeError from thread: load threads for thread-index-mode
   2056 invalid source 2
   2057 /opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:325:in `build_message'
   2058 /opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:228:in `each_id_by_date'
   2059 /opt/local/lib/ruby/site_ruby/1.8/sup/thread.rb:330:in `call'
   2060 /opt/local/lib/ruby/site_ruby/1.8/sup/thread.rb:330:in `load_n_threads'
   2061 /opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:228:in `each_id_by_date'
   2062 /opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:228:in `each'
   2063 /opt/local/lib/ruby/site_ruby/1.8/sup/index.rb:228:in `each_id_by_date'
   2064 /opt/local/lib/ruby/site_ruby/1.8/sup/thread.rb:326:in `load_n_threads'
   2065 /opt/local/lib/ruby/site_ruby/1.8/sup/modes/thread-index-mode.rb: 
   2066 493:in `__unprotected_load_n_threads'
   2067 (eval):12:in `load_n_threads'
   2068 /opt/local/lib/ruby/site_ruby/1.8/sup/modes/thread-index-mode.rb: 
   2069 477:in `load_n_threads_background'
   2070 /opt/local/lib/ruby/site_ruby/1.8/sup.rb:60:in `reporting_thread'
   2071 /opt/local/lib/ruby/site_ruby/1.8/sup.rb:58:in `initialize'
   2072 /opt/local/lib/ruby/site_ruby/1.8/sup.rb:58:in `new'
   2073 /opt/local/lib/ruby/site_ruby/1.8/sup.rb:58:in `reporting_thread'
   2074 /opt/local/lib/ruby/site_ruby/1.8/sup/modes/thread-index-mode.rb: 
   2075 476:in `load_n_threads_background'
   2076 /opt/local/lib/ruby/site_ruby/1.8/sup/modes/thread-index-mode.rb: 
   2077 546:in `__unprotected_load_threads'
   2078 (eval):12:in `load_threads'
   2079 /Users/bear/Sys/all/sup:200
   2080 
   2081 I presume the one is a consequence of the other, but I don't know how  
   2082 to fix it. Can you help?
   2083 
   2084 Chris
   2085 
   2086 From chris@hinterland.nu  Tue Apr 15 02:18:26 2008
   2087 From: chris@hinterland.nu (Christopher Marsh)
   2088 Date: Tue, 15 Apr 2008 07:18:26 +0100
   2089 Subject: [sup-talk] Configuration problems with sup [2]
   2090 Message-ID: <0E731DC9-3C5D-4A1C-909A-2949977D0F71@hinterland.nu>
   2091 
   2092 Incidentally, the 974 messages sup was showing were the consequence of  
   2093 a previous attempt to get it working. The mailbox referred to in the  
   2094 error log has ~20,000 messages in it. I considered deleting the index,  
   2095 but couldn't find it.
   2096 
   2097 Chris
   2098 
   2099 From marc.hartstein@alum.vassar.edu  Tue Apr 15 11:03:58 2008
   2100 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   2101 Date: Tue, 15 Apr 2008 11:03:58 -0400
   2102 Subject: [sup-talk] Configuration problems with sup
   2103 In-Reply-To: <C6F2B8EE-C88D-441B-95BA-4C5574A95907@hinterland.nu>
   2104 References: <C6F2B8EE-C88D-441B-95BA-4C5574A95907@hinterland.nu>
   2105 Message-ID: <1208271683-sup-8416@cabinet>
   2106 
   2107 Excerpts from Christopher Marsh's message of Tue Apr 15 02:15:05 -0400 2008:
   2108 > 
   2109 > |---> sup-add mbox:/Volumes/Mail/mail01.mbox --unusual -- 
   2110 > archive 
   2111 
   2112 I've found that I have to use URIs of the form <type>://<path>
   2113 
   2114 Try sup-add --unusual --archive mbox:///Volumes/Mail/mail01.mbox
   2115 
   2116 (Note that help says options should come first; I don't know if it
   2117 actually cares.)
   2118 
   2119 If that doesn't work, hopefully someone more knowledgeable will come
   2120 along soon.
   2121 -------------- next part --------------
   2122 A non-text attachment was scrubbed...
   2123 Name: signature.asc
   2124 Type: application/pgp-signature
   2125 Size: 235 bytes
   2126 Desc: not available
   2127 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080415/450b6d9b/attachment.bin 
   2128 
   2129 From wmorgan-sup@masanjin.net  Tue Apr 15 12:23:37 2008
   2130 From: wmorgan-sup@masanjin.net (William Morgan)
   2131 Date: Tue, 15 Apr 2008 09:23:37 -0700
   2132 Subject: [sup-talk] Configuration problems with sup
   2133 In-Reply-To: <C6F2B8EE-C88D-441B-95BA-4C5574A95907@hinterland.nu>
   2134 References: <C6F2B8EE-C88D-441B-95BA-4C5574A95907@hinterland.nu>
   2135 Message-ID: <1208275597-sup-4934@south>
   2136 
   2137 Reformatted excerpts from Christopher Marsh's message of 2008-04-14:
   2138 > /opt/local/lib/ruby/site_ruby/1.8/sup.rb:76:in `initialize': can't convert File::Stat into Integer (TypeError)
   2139 
   2140 Interesting. You've uncovered a legitimate bug in Sup, but it's a bug
   2141 that remains hidden until you have just the right combination of wrong
   2142 things.
   2143 
   2144 You have a couple easy workarounds available to you. If you "mv
   2145 ~/.sup/sources.yaml.bak ~/.sup/sources.yaml", that should fix it. You
   2146 could also delete the entire ~/.sup directory, if you feel like starting
   2147 afresh.
   2148 
   2149 I've also fixed the bug in git master.
   2150 
   2151 -- 
   2152 William <wmorgan-sup at masanjin.net>
   2153 
   2154 From wmorgan-sup@masanjin.net  Tue Apr 15 12:26:43 2008
   2155 From: wmorgan-sup@masanjin.net (William Morgan)
   2156 Date: Tue, 15 Apr 2008 09:26:43 -0700
   2157 Subject: [sup-talk] Configuration problems with sup [2]
   2158 In-Reply-To: <0E731DC9-3C5D-4A1C-909A-2949977D0F71@hinterland.nu>
   2159 References: <0E731DC9-3C5D-4A1C-909A-2949977D0F71@hinterland.nu>
   2160 Message-ID: <1208276624-sup-9670@south>
   2161 
   2162 Reformatted excerpts from Christopher Marsh's message of 2008-04-14:
   2163 > Incidentally, the 974 messages sup was showing were the consequence of  
   2164 > a previous attempt to get it working. The mailbox referred to in the  
   2165 > error log has ~20,000 messages in it. I considered deleting the index,  
   2166 > but couldn't find it.
   2167 
   2168 It's in ~/.sup/ferret. If you have no labels you want to keep, you can
   2169 delete that directory and sup-sync --all --all-sources to rebuild it.
   2170 Once your sources.yaml problem is fixed, of course. :)
   2171 
   2172 -- 
   2173 William <wmorgan-sup at masanjin.net>
   2174 
   2175 From miles@byu.net  Tue Apr 15 18:30:37 2008
   2176 From: miles@byu.net (Miles Pomeroy)
   2177 Date: Tue, 15 Apr 2008 15:30:37 -0700
   2178 Subject: [sup-talk] Gmail IMAP with sup
   2179 Message-ID: <6038aa2a0804151530uae50bbbxc6b8eed49906fcf8@mail.gmail.com>
   2180 
   2181 Setup:
   2182 I'm a new user of sup trying use it will my gmail account. I set it up
   2183 using imaps://imap.gmail.com:993/INBOX. Sup went through and indexed
   2184 the 2000 some odd emails in my inbox and then present them to me just
   2185 fine, great.
   2186 
   2187 The problem:
   2188 1. When new mail come in sup downloads it but it is not marked new. At
   2189 least not in anyway that I can distinguish from other messages.
   2190 2. When I look at those messages and then go back to gmail through the
   2191 browser, those messages are not marked as being read.
   2192 
   2193 The question:
   2194 Does anyone else use gmail imap with sup? If so did you set it up
   2195 differently than I? Am I doing something wrong? Is there any tutorial
   2196 for setting up gmail imap specifically for sup?
   2197 
   2198 Thanks,
   2199 Miles.
   2200 
   2201 From its.jeff.balogh@gmail.com  Tue Apr 15 21:46:45 2008
   2202 From: its.jeff.balogh@gmail.com (Jeff Balogh)
   2203 Date: Tue, 15 Apr 2008 21:46:45 -0400
   2204 Subject: [sup-talk] Gmail IMAP with sup
   2205 In-Reply-To: <6038aa2a0804151530uae50bbbxc6b8eed49906fcf8@mail.gmail.com>
   2206 References: <6038aa2a0804151530uae50bbbxc6b8eed49906fcf8@mail.gmail.com>
   2207 Message-ID: <1208309556-sup-3399@archie>
   2208 
   2209 Miles Pomeroy wrote:
   2210 > Setup:
   2211 > I'm a new user of sup trying use it will my gmail account. I set it up
   2212 > using imaps://imap.gmail.com:993/INBOX. Sup went through and indexed
   2213 > the 2000 some odd emails in my inbox and then present them to me just
   2214 > fine, great.
   2215 > 
   2216 > The problem:
   2217 > 1. When new mail come in sup downloads it but it is not marked new. At
   2218 > least not in anyway that I can distinguish from other messages.
   2219 
   2220 I don't know the cause of that.
   2221 
   2222 > 2. When I look at those messages and then go back to gmail through the
   2223 > browser, those messages are not marked as being read.
   2224 
   2225 This is part of the sup philosophy.  It treats mail sources as dumb stores, and
   2226 doesn't try to change them.
   2227 
   2228 > The question:
   2229 > Does anyone else use gmail imap with sup? If so did you set it up
   2230 > differently than I? Am I doing something wrong? Is there any tutorial
   2231 > for setting up gmail imap specifically for sup?
   2232 
   2233 I used to run sup on gmail imap, using the '[Gmail]/All Mail' folder (which you
   2234 need to url encode as '%5BGmail%5D/All%20Mail').
   2235 
   2236 I got tired of the imap slowness though, and switched to using offlineimap, so I
   2237 haven't had sup talking to gmail in a while.
   2238 
   2239 -- jeff
   2240 
   2241 From wmorgan-sup@masanjin.net  Wed Apr 16 11:16:57 2008
   2242 From: wmorgan-sup@masanjin.net (William Morgan)
   2243 Date: Wed, 16 Apr 2008 08:16:57 -0700
   2244 Subject: [sup-talk] Gmail IMAP with sup
   2245 In-Reply-To: <6038aa2a0804151530uae50bbbxc6b8eed49906fcf8@mail.gmail.com>
   2246 References: <6038aa2a0804151530uae50bbbxc6b8eed49906fcf8@mail.gmail.com>
   2247 Message-ID: <1208358880-sup-751@south>
   2248 
   2249 Reformatted excerpts from Miles Pomeroy's message of 2008-04-15:
   2250 > 1. When new mail come in sup downloads it but it is not marked new. At
   2251 > least not in anyway that I can distinguish from other messages.
   2252 
   2253 Are these messages already read in Gmail? Sup tries its best to preserve
   2254 the status of messages that it imports. If not, then that sounds like a
   2255 legitimate bug.
   2256 
   2257 > Does anyone else use gmail imap with sup? If so did you set it up
   2258 > differently than I? Am I doing something wrong? Is there any tutorial
   2259 > for setting up gmail imap specifically for sup?
   2260 
   2261 There's no tutorial, at least not yet. What Jeff said is best practice
   2262 at this point---most everyone has switched to offlineimap as an
   2263 intermediate layer because Gmail (and possibly the Ruby IMAP libraries)
   2264 isn't fast enough for loading large threads.
   2265 
   2266 -- 
   2267 William <wmorgan-sup at masanjin.net>
   2268 
   2269 From kendall@clarkparsia.com  Wed Apr 16 11:30:20 2008
   2270 From: kendall@clarkparsia.com (Kendall Grant Clark)
   2271 Date: Wed, 16 Apr 2008 11:30:20 -0400
   2272 Subject: [sup-talk] Gmail IMAP with sup
   2273 In-Reply-To: <1208358880-sup-751@south>
   2274 References: <6038aa2a0804151530uae50bbbxc6b8eed49906fcf8@mail.gmail.com>
   2275 	<1208358880-sup-751@south>
   2276 Message-ID: <1208359720-sup-5655@k-desktop.int.clarkparsia.com>
   2277 
   2278 Excerpts from William Morgan's message of Wed Apr 16 11:16:57 -0400 2008:
   2279 
   2280 > There's no tutorial, at least not yet. What Jeff said is best practice
   2281 > at this point---most everyone has switched to offlineimap as an
   2282 > intermediate layer
   2283 
   2284 Is there a known-good description of how to switch to offlineimap? I
   2285 couldn't find anything on the wiki and I don't need to switch until or
   2286 unless it's not experimental. I'd rather endure some thread slowness
   2287 than lose mail, etc.
   2288 
   2289 -- 
   2290 Cheers,
   2291 Kendall
   2292 
   2293 From marc.hartstein@alum.vassar.edu  Wed Apr 16 13:15:09 2008
   2294 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   2295 Date: Wed, 16 Apr 2008 13:15:09 -0400
   2296 Subject: [sup-talk] Gmail IMAP with sup
   2297 In-Reply-To: <1208358880-sup-751@south>
   2298 References: <6038aa2a0804151530uae50bbbxc6b8eed49906fcf8@mail.gmail.com>
   2299 	<1208358880-sup-751@south>
   2300 Message-ID: <1208366079-sup-486@cabinet>
   2301 
   2302 Excerpts from William Morgan's message of Wed Apr 16 11:16:57 -0400 2008:
   2303 > 
   2304 > There's no tutorial, at least not yet. What Jeff said is best practice
   2305 > at this point---most everyone has switched to offlineimap as an
   2306 > intermediate layer because Gmail (and possibly the Ruby IMAP libraries)
   2307 > isn't fast enough for loading large threads.
   2308 
   2309 Just curious, why do people prefer offlineimap to fetchmail (using
   2310 either IMAP or POP protocols)?  Given that sup doesn't write back to the
   2311 store, so you're not getting the IMAP advantage of sending read status
   2312 back to the server...
   2313 -------------- next part --------------
   2314 A non-text attachment was scrubbed...
   2315 Name: signature.asc
   2316 Type: application/pgp-signature
   2317 Size: 189 bytes
   2318 Desc: not available
   2319 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080416/742bc4f5/attachment.bin 
   2320 
   2321 From gcw5217@rice.edu  Wed Apr 16 15:02:10 2008
   2322 From: gcw5217@rice.edu (Chris Warrington)
   2323 Date: Wed, 16 Apr 2008 14:02:10 -0500 (CDT)
   2324 Subject: [sup-talk] Gmail IMAP with sup
   2325 In-Reply-To: <1208366079-sup-486@cabinet>
   2326 References: <6038aa2a0804151530uae50bbbxc6b8eed49906fcf8@mail.gmail.com>
   2327 	<1208358880-sup-751@south> <1208366079-sup-486@cabinet>
   2328 Message-ID: <Pine.GSO.4.58.0804161400430.53@short-eared.owlnet.rice.edu>
   2329 
   2330 
   2331 On Wed, 16 Apr 2008, Marc Hartstein wrote:
   2332 > Just curious, why do people prefer offlineimap to fetchmail (using
   2333 > either IMAP or POP protocols)?  Given that sup doesn't write back to the
   2334 > store, so you're not getting the IMAP advantage of sending read status
   2335 > back to the server...
   2336 
   2337 * Easier to setup
   2338 * Easier to na\:\ively backup
   2339 * I can sync changes back easily if I modify with a different local client
   2340 
   2341 -- 
   2342 Christopher Warrington <chrisw at rice.edu>
   2343 (away from his normal computer)
   2344 
   2345 
   2346 
   2347 From marc.hartstein@alum.vassar.edu  Thu Apr 17 16:43:29 2008
   2348 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   2349 Date: Thu, 17 Apr 2008 16:43:29 -0400
   2350 Subject: [sup-talk] [PATCH] Add 'A' archive and mark read command to
   2351 	inbox-mode.
   2352 Message-ID: <1208465009-5957-1-git-send-email-marc.hartstein@alum.vassar.edu>
   2353 
   2354 For some email, the only meaningful content is in the subject line.  It is thus
   2355 useful to be able to dispatch this email with a single command after glancing
   2356 at it.
   2357 
   2358 As 'N' moves the cursor, and 'a' doesn't clear the "unread" flag, it is
   2359 currently necessary to press "Nka" to do this on a single thread.
   2360 
   2361 The 'A' command does this simple task with a single, easy-to-remember,
   2362 keystroke, but makes it harder to hit accidentally than 'a'.  A multi_ mode is
   2363 supplied.
   2364 ---
   2365  lib/sup/modes/inbox-mode.rb |   18 ++++++++++++++++++
   2366  1 files changed, 18 insertions(+), 0 deletions(-)
   2367 
   2368 diff --git a/lib/sup/modes/inbox-mode.rb b/lib/sup/modes/inbox-mode.rb
   2369 index a2de13f..c623f4a 100644
   2370 --- a/lib/sup/modes/inbox-mode.rb
   2371 +++ b/lib/sup/modes/inbox-mode.rb
   2372 @@ -6,6 +6,7 @@ class InboxMode < ThreadIndexMode
   2373    register_keymap do |k|
   2374      ## overwrite toggle_archived with archive
   2375      k.add :archive, "Archive thread (remove from inbox)", 'a'
   2376 +    k.add :read_and_archive, "Archive thread (remove from inbox) and mark read", 'A'
   2377    end
   2378  
   2379    def initialize
   2380 @@ -38,6 +39,23 @@ class InboxMode < ThreadIndexMode
   2381      regen_text
   2382    end
   2383  
   2384 +  def read_and_archive
   2385 +    return unless cursor_thread
   2386 +    cursor_thread.remove_label :unread
   2387 +    cursor_thread.remove_label :inbox
   2388 +    hide_thread cursor_thread
   2389 +    regen_text
   2390 +  end
   2391 +
   2392 +  def multi_read_and_archive threads
   2393 +    threads.each do |t|
   2394 +      t.remove_label :unread
   2395 +      t.remove_label :inbox
   2396 +      hide_thread t
   2397 +    end
   2398 +    regen_text
   2399 +  end
   2400 +
   2401    def handle_unarchived_update sender, m
   2402      add_or_unhide m
   2403    end
   2404 -- 
   2405 1.5.3.7
   2406 
   2407 
   2408 From marc.hartstein@alum.vassar.edu  Thu Apr 17 16:58:29 2008
   2409 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   2410 Date: Thu, 17 Apr 2008 16:58:29 -0400
   2411 Subject: [sup-talk] [PATCH] polling is now done per source
   2412 In-Reply-To: <1206786725-5456-1-git-send-email-chrisw@rice.edu>
   2413 References: <1206784680-sup-3052@chris-tablet>
   2414 	<1206786725-5456-1-git-send-email-chrisw@rice.edu>
   2415 Message-ID: <1208465750-sup-5733@cabinet>
   2416 
   2417 Excerpts from 's message of Sat Mar 29 06:32:05 -0400 2008:
   2418 > Each source has a poll_interval property. This property is used to
   2419 > determine whether the source should be polled. The user can still for a
   2420 > poll of all sources.
   2421 
   2422 Thanks for the patch.  Seems to work great.  Only one problem.
   2423 
   2424 When this patch is applied and then sup is run against an old
   2425 sources.yaml (which doesn't provide the poll_interval property), sup
   2426 will crash on startup.
   2427 
   2428 (Unfortunately, running git master, say to test a patch in development,
   2429 will clobber sources.yaml and remove this property, so I keep hitting
   2430 this problem.)
   2431 -------------- next part --------------
   2432 A non-text attachment was scrubbed...
   2433 Name: signature.asc
   2434 Type: application/pgp-signature
   2435 Size: 189 bytes
   2436 Desc: not available
   2437 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080417/6519cca4/attachment.bin 
   2438 
   2439 From chrisw@rice.edu  Thu Apr 17 18:24:35 2008
   2440 From: chrisw@rice.edu (Christopher Warrington)
   2441 Date: Thu, 17 Apr 2008 17:24:35 -0500
   2442 Subject: [sup-talk] [PATCH] polling is now done per source
   2443 In-Reply-To: <1208465750-sup-5733@cabinet>
   2444 References: <1206784680-sup-3052@chris-tablet>
   2445 	<1206786725-5456-1-git-send-email-chrisw@rice.edu>
   2446 	<1208465750-sup-5733@cabinet>
   2447 Message-ID: <1208470560-sup-9902@chris-tablet>
   2448 
   2449 Excerpts from Marc Hartstein's message of Thu Apr 17 15:58:29 -0500 2008:
   2450 >> Each source has a poll_interval property. This property is used to
   2451 >> determine whether the source should be polled. The user can still
   2452 >> for a poll of all sources.
   2453 
   2454 > Thanks for the patch.  Seems to work great.  Only one problem.
   2455 
   2456 Well, there is another. The before-poll hook doesn't get the correct
   2457 arguments and before-acct-poll is run twice. I've fixed this locally
   2458 and will post a patch to the patch (or a unified path) once I figure
   2459 out how to do that in git.
   2460  
   2461 > When this patch is applied and then sup is run against an old
   2462 > sources.yaml (which doesn't provide the poll_interval property), sup
   2463 > will crash on startup.
   2464 
   2465 Hmmm... I don't know enough about the yaml infrastructure to fix
   2466 this. Does anyone else know if there is a way to specify a default
   2467 value when one if not found in the yaml file. This would allow for
   2468 graceful upgrading and (in theory) keep the sources.yaml file backward
   2469 compatible.
   2470 
   2471 -- 
   2472 Christopher Warrington <chrisw at rice.edu>
   2473 
   2474 From wmorgan-sup@masanjin.net  Sun Apr 20 18:26:23 2008
   2475 From: wmorgan-sup@masanjin.net (William Morgan)
   2476 Date: Sun, 20 Apr 2008 15:26:23 -0700
   2477 Subject: [sup-talk] Workaround for sup-config crash in 0.4 on some
   2478 	platforms
   2479 In-Reply-To: <1207841677-sup-2645@cabinet>
   2480 References: <1207345193-sup-7377@cabinet> <1207440368-sup-9724@south>
   2481 	<1207841677-sup-2645@cabinet>
   2482 Message-ID: <1208730259-sup-396@south>
   2483 
   2484 Reformatted excerpts from Marc Hartstein's message of 2008-04-10:
   2485 > Excerpts from William Morgan's message of Sat Apr 05 20:06:28 -0400 2008:
   2486 > > Guess that means it's time to release an 0.5!
   2487 > 
   2488 > Good idea.
   2489 
   2490 I've merged pretty much everything that's been sitting in next into
   2491 master, in preparation for 0.5. Expect it soon.
   2492 
   2493 I've also just published a "bugs" branch for tracking issues and
   2494 versions with ditz.
   2495 
   2496 -- 
   2497 William <wmorgan-sup at masanjin.net>
   2498 
   2499 From nicolas.pouillard@gmail.com  Mon Apr 21 04:01:45 2008
   2500 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   2501 Date: Mon, 21 Apr 2008 10:01:45 +0200
   2502 Subject: [sup-talk] [PATCH] Write sup-{exception-log,
   2503 	unable-to-decode}.txt in ~/.sup
   2504 In-Reply-To: <12072321792626-git-send-email-nicolas.pouillard@gmail.com>
   2505 References: <12072321792626-git-send-email-nicolas.pouillard@gmail.com>
   2506 Message-ID: <1208764889-sup-5055@ausone.inria.fr>
   2507 
   2508 What about applying this patch?
   2509 
   2510 Excerpts from Nicolas Pouillard's message of Thu Apr 03 16:16:19 +0200 2008:
   2511 > More precisely new destinations are:
   2512 >   - ~/.sup/exception-log.txt
   2513 >   - ~/.sup/unable-to-decode.txt
   2514 > This patch avoid some kind of pollution.
   2515 > ---
   2516 >  bin/sup            |    4 ++--
   2517 >  lib/sup/message.rb |    2 +-
   2518 >  2 files changed, 3 insertions(+), 3 deletions(-)
   2519 > 
   2520 > diff --git a/bin/sup b/bin/sup
   2521 > index 0d34215..a7623de 100644
   2522 > --- a/bin/sup
   2523 > +++ b/bin/sup
   2524 > @@ -327,7 +327,7 @@ ensure
   2525 >  end
   2526 >  
   2527 >  unless $exceptions.empty?
   2528 > -  File.open("sup-exception-log.txt", "w") do |f|
   2529 > +  File.open(File.join(BASE_DIR, "exception-log.txt"), "w") do |f|
   2530 >      $exceptions.each do |e, name|
   2531 >        f.puts "--- #{e.class.name} from thread: #{name}"
   2532 >        f.puts e.message, e.backtrace
   2533 > @@ -337,7 +337,7 @@ unless $exceptions.empty?
   2534 >  ----------------------------------------------------------------
   2535 >  I'm very sorry. It seems that an error occurred in Sup. Please
   2536 >  accept my sincere apologies. If you don't mind, please send the
   2537 > -contents of sup-exception-log.txt and a brief report of the
   2538 > +contents of ~/.sup/exception-log.txt and a brief report of the
   2539 >  circumstances to sup-talk at rubyforge dot orgs so that I might
   2540 >  address this problem. Thank you!
   2541 >  
   2542 > diff --git a/lib/sup/message.rb b/lib/sup/message.rb
   2543 > index 6a2a9c4..249b6c6 100644
   2544 > --- a/lib/sup/message.rb
   2545 > +++ b/lib/sup/message.rb
   2546 > @@ -423,7 +423,7 @@ private
   2547 >        Iconv.iconv($encoding + "//IGNORE", charset, body + " ").join[0 .. -2]
   2548 >      rescue Errno::EINVAL, Iconv::InvalidEncoding, Iconv::IllegalSequence, MessageFormatError => e
   2549 >        Redwood::log "warning: error (#{e.class.name}) decoding message body from #{charset}: #{e.message}"
   2550 > -      File.open("sup-unable-to-decode.txt", "w") { |f| f.write body }
   2551 > +      File.open(File.join(BASE_DIR,"unable-to-decode.txt"), "w") { |f| f.write body }
   2552 >        body
   2553 >      end
   2554 >    end
   2555 
   2556 -- 
   2557 Nicolas Pouillard aka Ertai
   2558 -------------- next part --------------
   2559 A non-text attachment was scrubbed...
   2560 Name: signature.asc
   2561 Type: application/pgp-signature
   2562 Size: 194 bytes
   2563 Desc: not available
   2564 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080421/e75f4850/attachment.bin 
   2565 
   2566 From nicolas.pouillard@gmail.com  Mon Apr 21 04:02:46 2008
   2567 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   2568 Date: Mon, 21 Apr 2008 10:02:46 +0200
   2569 Subject: [sup-talk] [PATCH] Fix a bug about forwarding that trimmed out
   2570 	newlines.
   2571 In-Reply-To: <1207325353-7638-1-git-send-email-nicolas.pouillard@gmail.com>
   2572 References: <1207325353-7638-1-git-send-email-nicolas.pouillard@gmail.com>
   2573 Message-ID: <1208764937-sup-2539@ausone.inria.fr>
   2574 
   2575 What about this patch?
   2576 
   2577 Excerpts from Nicolas Pouillard's message of Fri Apr 04 18:09:13 +0200 2008:
   2578 > This seems to happen when one don't touch the forwarded
   2579 > email. Indeed most of the sup's code tend to assume that
   2580 > messages body are reprensented using an array of string
   2581 > *without* a trailing \n, except some parts of the code.
   2582 > 
   2583 > This patch enforce that. It could become even more strict
   2584 > by raising an error instead of logging in join_lines.
   2585 > ---
   2586 >  lib/sup/modes/edit-message-mode.rb |   11 +++++------
   2587 >  lib/sup/util.rb                    |    6 ++++++
   2588 >  2 files changed, 11 insertions(+), 6 deletions(-)
   2589 > 
   2590 > diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mode.rb
   2591 > index dd96002..c3634af 100644
   2592 > --- a/lib/sup/modes/edit-message-mode.rb
   2593 > +++ b/lib/sup/modes/edit-message-mode.rb
   2594 > @@ -216,7 +216,7 @@ protected
   2595 >    def parse_file fn
   2596 >      File.open(fn) do |f|
   2597 >        header = MBox::read_header f
   2598 > -      body = f.readlines
   2599 > +      body = f.readlines.map { |l| l.chomp }
   2600 >  
   2601 >        header.delete_if { |k, v| NON_EDITABLE_HEADERS.member? k }
   2602 >        header.each { |k, v| header[k] = parse_header k, v }
   2603 > @@ -307,9 +307,8 @@ protected
   2604 >    def build_message date
   2605 >      m = RMail::Message.new
   2606 >      m.header["Content-Type"] = "text/plain; charset=#{$encoding}"
   2607 > -    m.body = @body.join
   2608 > -    m.body = m.body
   2609 > -    m.body += sig_lines.join("\n") unless $config[:edit_signature]
   2610 > +    m.body = @body.join_lines
   2611 > +    m.body += sig_lines.join_lines unless $config[:edit_signature]
   2612 >  
   2613 >      ## there are attachments, so wrap body in an attachment of its own
   2614 >      unless @attachments.empty?
   2615 > @@ -367,7 +366,7 @@ EOS
   2616 >      end
   2617 >  
   2618 >      f.puts
   2619 > -    f.puts sanitize_body(@body.join)
   2620 > +    f.puts sanitize_body(@body.join_lines)
   2621 >      f.puts sig_lines if full unless $config[:edit_signature]
   2622 >    end  
   2623 >  
   2624 > @@ -412,7 +411,7 @@ private
   2625 >    end
   2626 >  
   2627 >    def top_posting?
   2628 > -    @body.join =~ /(\S+)\s*Excerpts from.*\n(>.*\n)+\s*\Z/
   2629 > +    @body.join_lines =~ /(\S+)\s*Excerpts from.*\n(>.*\n)+\s*\Z/
   2630 >    end
   2631 >  
   2632 >    def sig_lines
   2633 > diff --git a/lib/sup/util.rb b/lib/sup/util.rb
   2634 > index 99e73b4..544859c 100644
   2635 > --- a/lib/sup/util.rb
   2636 > +++ b/lib/sup/util.rb
   2637 > @@ -390,6 +390,12 @@ module Enumerable
   2638 >  end
   2639 >  
   2640 >  class Array
   2641 > +
   2642 > +  def join_lines
   2643 > +    Redwood::log "Some newlines are there..." if any? { |l| l =~ /\n/ }
   2644 > +    map { |l| l.chomp }.join("\n")
   2645 > +  end
   2646 > +
   2647 >    def flatten_one_level
   2648 >      inject([]) { |a, e| a + e }
   2649 >    end
   2650 
   2651 -- 
   2652 Nicolas Pouillard aka Ertai
   2653 -------------- next part --------------
   2654 A non-text attachment was scrubbed...
   2655 Name: signature.asc
   2656 Type: application/pgp-signature
   2657 Size: 194 bytes
   2658 Desc: not available
   2659 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080421/85e19dca/attachment-0001.bin 
   2660 
   2661 From nicolas.pouillard@gmail.com  Mon Apr 21 04:02:59 2008
   2662 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   2663 Date: Mon, 21 Apr 2008 10:02:59 +0200
   2664 Subject: [sup-talk] [PATCH] Use read instead of readlines.join.
   2665 In-Reply-To: <1207324856-7408-1-git-send-email-nicolas.pouillard@gmail.com>
   2666 References: <1207324856-7408-1-git-send-email-nicolas.pouillard@gmail.com>
   2667 Message-ID: <1208764973-sup-7179@ausone.inria.fr>
   2668 
   2669 What about this patch?
   2670 
   2671 Excerpts from Nicolas Pouillard's message of Fri Apr 04 18:00:56 +0200 2008:
   2672 > ---
   2673 >  lib/sup/draft.rb                   |    2 +-
   2674 >  lib/sup/hook.rb                    |    2 +-
   2675 >  lib/sup/maildir.rb                 |    2 +-
   2676 >  lib/sup/modes/file-browser-mode.rb |    2 +-
   2677 >  4 files changed, 4 insertions(+), 4 deletions(-)
   2678 > 
   2679 > diff --git a/lib/sup/draft.rb b/lib/sup/draft.rb
   2680 > index 81c0044..21de151 100644
   2681 > --- a/lib/sup/draft.rb
   2682 > +++ b/lib/sup/draft.rb
   2683 > @@ -106,7 +106,7 @@ class DraftLoader < Source
   2684 >    end
   2685 >  
   2686 >    def raw_message offset
   2687 > -    IO.readlines(fn_for_offset(offset)).join
   2688 > +    IO.read(fn_for_offset(offset))
   2689 >    end
   2690 >  
   2691 >    def start_offset; 0; end
   2692 > diff --git a/lib/sup/hook.rb b/lib/sup/hook.rb
   2693 > index 74ecfab..9494919 100644
   2694 > --- a/lib/sup/hook.rb
   2695 > +++ b/lib/sup/hook.rb
   2696 > @@ -120,7 +120,7 @@ private
   2697 >      unless @hooks.member? name
   2698 >        @hooks[name] =
   2699 >          begin
   2700 > -          returning IO.readlines(fn_for(name)).join do
   2701 > +          returning IO.read(fn_for(name)) do
   2702 >              log "read '#{name}' from #{fn_for(name)}"
   2703 >            end
   2704 >          rescue SystemCallError => e
   2705 > diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb
   2706 > index 584e657..620e8e2 100644
   2707 > --- a/lib/sup/maildir.rb
   2708 > +++ b/lib/sup/maildir.rb
   2709 > @@ -72,7 +72,7 @@ class Maildir < Source
   2710 >  
   2711 >    def raw_message id
   2712 >      scan_mailbox
   2713 > -    with_file_for(id) { |f| f.readlines.join }
   2714 > +    with_file_for(id) { |f| f.read }
   2715 >    end
   2716 >  
   2717 >    def scan_mailbox opts={}
   2718 > diff --git a/lib/sup/modes/file-browser-mode.rb b/lib/sup/modes/file-browser-mode.rb
   2719 > index b49f3f4..b92468d 100644
   2720 > --- a/lib/sup/modes/file-browser-mode.rb
   2721 > +++ b/lib/sup/modes/file-browser-mode.rb
   2722 > @@ -47,7 +47,7 @@ protected
   2723 >      return unless f && f.file?
   2724 >  
   2725 >      begin
   2726 > -      BufferManager.spawn f.to_s, TextMode.new(f.readlines.join)
   2727 > +      BufferManager.spawn f.to_s, TextMode.new(f.read)
   2728 >      rescue SystemCallError => e
   2729 >        BufferManager.flash e.message
   2730 >      end
   2731 
   2732 -- 
   2733 Nicolas Pouillard aka Ertai
   2734 -------------- next part --------------
   2735 A non-text attachment was scrubbed...
   2736 Name: signature.asc
   2737 Type: application/pgp-signature
   2738 Size: 194 bytes
   2739 Desc: not available
   2740 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080421/86548146/attachment.bin 
   2741 
   2742 From israel.herraiz@gmail.com  Mon Apr 21 16:37:23 2008
   2743 From: israel.herraiz@gmail.com (Israel Herraiz)
   2744 Date: Mon, 21 Apr 2008 22:37:23 +0200
   2745 Subject: [sup-talk] System encoding versus messages encoding
   2746 Message-ID: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com>
   2747 
   2748 Hi there,
   2749 
   2750 I have been using Sup for a couple of days, and I have found some
   2751 problems with the encoding of messages written in ISO-8859-1(5).
   2752 
   2753 The encoding in my system is en_US.UTF-8, but most of the email that I
   2754 receive is in Spanish, and usually encoded with ISO-8859-1 (and
   2755 sometimes with ISO-8859-15).
   2756 
   2757 When I start Sup, it detects my UTF-8 and tries to decode the messages
   2758 with that encoding, that results in hardly readable messages  (most of
   2759 the sentences where wide characters appear are truncated).
   2760 
   2761 If I start it with "LANG=en_US.ISO-8859-1 sup" it now detects the new
   2762 encoding, and the messages are more readable, but I can not see the
   2763 right characters because my terminal enconding is UTF-8 (but at least
   2764 the sentences are not truncated).
   2765 
   2766 With Mutt (and other email clients), I still use UTF-8 as my system
   2767 encoding, and I see ISO-8859-1 messages correctly. The encoding of the
   2768 messages is of course included in the headers.
   2769 
   2770 As far as I know (considering what I have read in the documentation
   2771 and in the archives of this mailing list), Sup determines the encoding
   2772 using the environment variables and tries to decode all the messages
   2773 using that encoding. For people working in different languages and
   2774 environments (like me, I write in English and Spanish, some people
   2775 send me messages in UTF-8, some other in ISO-88159-1), having an
   2776 overall encoding for all the messages is not a good solution.
   2777 
   2778 Would it possible to decode each message according to its headers?
   2779 
   2780 Please correct me if I am wrong in any of my assumptions on how Sup
   2781 encodes/decodes messages.
   2782 
   2783 By the way, I am using the Git version of Sup (as of today :-).
   2784 
   2785 Cheers,
   2786 Israel
   2787 
   2788 From shot@hot.pl  Tue Apr 22 07:39:59 2008
   2789 From: shot@hot.pl (Shot (Piotr Szotkowski))
   2790 Date: Tue, 22 Apr 2008 13:39:59 +0200
   2791 Subject: [sup-talk] System encoding versus messages encoding
   2792 In-Reply-To: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com>
   2793 References: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com>
   2794 Message-ID: <20080422113959.GA20034@durance.shot.pl>
   2795 
   2796 Israel Herraiz:
   2797 
   2798 > As far as I know (considering what I have read in the documentation
   2799 > and in the archives of this mailing list), Sup determines the encoding
   2800 > using the environment variables and tries to decode all the messages
   2801 > using that encoding. For people working in different languages and
   2802 > environments (like me, I write in English and Spanish, some people
   2803 > send me messages in UTF-8, some other in ISO-88159-1), having an
   2804 > overall encoding for all the messages is not a good solution.
   2805 
   2806 I agree wholeheartedly ? I tried to use Sup a couple of weeks ago, but
   2807 this issue made it unusable for me (I planned to hack on this some day,
   2808 but my work and uni obligations do not leave any free time lately). :(
   2809 
   2810 To make matters worse, the relevant RFC actually requires emails to
   2811 be encoded in the ?tightest? encoding possible ? when I?m writing an
   2812 email in Polish without any non-US-ASCII letters, it should be sent
   2813 as US-ASCII; if I include Polish diacritical characters, it should be
   2814 encoded as ISO-8859-2, but if I add some characters outside of it (say,
   2815 ellipsis) it should be sent in UTF-8.
   2816 
   2817 As a result, I regularly receilve emails in US-ASCII, ISO-8859-2 and
   2818 UTF-8 ? but also in ISO-8859-1, ISO-8859-15, as well as some cyryllic
   2819 encodings. I remember Mutt going through some growing pains to
   2820 accomodate this, but has it all sorted out now (there is an issue
   2821 of recoding the email one replies to to the encoding expected by the
   2822 editor, for example).
   2823 
   2824 I?ll be more than happy to test any work done in this regard and I offer
   2825 any knowledge that could be useful; unfortunately, I can?t promise any
   2826 hacking time (I just got accepted for this year?s Summer of Code to hack
   2827 on CiviCRM internationalisation ? maybe Sup could apply to be a project
   2828 in next year?s SoC edition?).
   2829 
   2830 -- Shot
   2831 -- 
   2832 I grew up in Europe, where the history comes from.   -- Eddie Izzard
   2833 -------------- next part --------------
   2834 A non-text attachment was scrubbed...
   2835 Name: not available
   2836 Type: application/pgp-signature
   2837 Size: 191 bytes
   2838 Desc: not available
   2839 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080422/9e7cc1bf/attachment.bin 
   2840 
   2841 From wmorgan-sup@masanjin.net  Tue Apr 22 13:08:13 2008
   2842 From: wmorgan-sup@masanjin.net (William Morgan)
   2843 Date: Tue, 22 Apr 2008 10:08:13 -0700
   2844 Subject: [sup-talk] [ANN] Sup 0.5 Released
   2845 Message-ID: <1208884075-sup-1123@south>
   2846 
   2847 Sup version 0.5 has been released!
   2848 
   2849 * <http://sup.rubyforge.org>
   2850 
   2851 Sup is a console-based email client for people with a lot of email.
   2852 It supports tagging, very fast full-text search, automatic contact-
   2853 list management, and more. If you're the type of person who treats
   2854 email as an extension of your long-term memory, Sup is for you.
   2855 
   2856 Sup makes it easy to:
   2857 - Handle massive amounts of email.
   2858 
   2859 - Mix email from different sources: mbox files (even across different
   2860   machines), Maildir directories, IMAP folders, POP accounts, and
   2861   GMail accounts.
   2862 
   2863 - Instantaneously search over your entire email collection. Search
   2864   over body text, or use a query language to combine search
   2865   predicates in any way.
   2866 
   2867 - Handle multiple accounts. Replying to email sent to a particular
   2868   account will use the correct SMTP server, signature, and from
   2869   address.
   2870 
   2871 - Add custom code to handle certain types of messages or to handle
   2872   certain types of text within messages.
   2873 
   2874 - Organize email with user-defined labels, automatically track
   2875   recent contacts, and much more!
   2876 
   2877 The goal of Sup is to become the email client of choice for nerds
   2878 everywhere.
   2879 
   2880 Changes:
   2881 
   2882 ## 0.5 / 2008-04-22
   2883 * new hooks: extra-contact-addresses, startup
   2884 * '!!' now loads all threads in current search
   2885 * general state saving speedup
   2886 * threads with unsent draft messages are now shown in red
   2887 * --compose spawns a compose-message buffer on startup
   2888 * Many bugfixes and UI improvements
   2889 
   2890 * <http://sup.rubyforge.org>
   2891 
   2892 -- 
   2893 William <wmorgan-sup at masanjin.net>
   2894 
   2895 From david@axiombox.com  Tue Apr 22 14:27:25 2008
   2896 From: david@axiombox.com (David Moreno)
   2897 Date: Tue, 22 Apr 2008 14:27:25 -0400
   2898 Subject: [sup-talk] [ANN] Sup 0.5 Released
   2899 In-Reply-To: <1208884075-sup-1123@south>
   2900 References: <1208884075-sup-1123@south>
   2901 Message-ID: <1208888023-sup-2851@petunia>
   2902 
   2903 Excerpts from William Morgan's message of Tue Apr 22 13:08:13 -0400 2008:
   2904 > Sup version 0.5 has been released!
   2905 
   2906 Geez, nice. Apparently as the time of writing, the gem is still 404 on
   2907 RubyForge.
   2908 
   2909 -- 
   2910 David Moreno
   2911  http://damog.net/
   2912  http://axiombox.com/
   2913 
   2914 From kendall@clarkparsia.com  Tue Apr 22 14:36:13 2008
   2915 From: kendall@clarkparsia.com (Kendall Grant Clark)
   2916 Date: Tue, 22 Apr 2008 14:36:13 -0400
   2917 Subject: [sup-talk] [ANN] Sup 0.5 Released
   2918 In-Reply-To: <1208888023-sup-2851@petunia>
   2919 References: <1208884075-sup-1123@south> <1208888023-sup-2851@petunia>
   2920 Message-ID: <1208889354-sup-4687@k-desktop.int.clarkparsia.com>
   2921 
   2922 Excerpts from David Moreno's message of Tue Apr 22 14:27:25 -0400 2008:
   2923 > Excerpts from William Morgan's message of Tue Apr 22 13:08:13 -0400 2008:
   2924 > > Sup version 0.5 has been released!
   2925 > 
   2926 > Geez, nice. Apparently as the time of writing, the gem is still 404 on
   2927 > RubyForge.
   2928 
   2929 Worked for me about 45 minutes ago; 0.5 seems quite nice. 
   2930 
   2931 -- 
   2932 Cheers,
   2933 Kendall
   2934 
   2935 From wmorgan-sup@masanjin.net  Tue Apr 22 14:37:44 2008
   2936 From: wmorgan-sup@masanjin.net (William Morgan)
   2937 Date: Tue, 22 Apr 2008 11:37:44 -0700
   2938 Subject: [sup-talk] [ANN] Sup 0.5 Released
   2939 In-Reply-To: <1208888023-sup-2851@petunia>
   2940 References: <1208884075-sup-1123@south> <1208888023-sup-2851@petunia>
   2941 Message-ID: <1208889336-sup-3574@south>
   2942 
   2943 Reformatted excerpts from David Moreno's message of 2008-04-22:
   2944 > Excerpts from William Morgan's message of Tue Apr 22 13:08:13 -0400 2008:
   2945 > > Sup version 0.5 has been released!
   2946 > 
   2947 > Geez, nice. Apparently as the time of writing, the gem is still 404 on
   2948 > RubyForge.
   2949 
   2950 It's not 404 if you download it directly:
   2951 http://rubyforge.org/frs/download.php/35925/sup-0.5.gem
   2952 
   2953 But yes, it typically takes a few hours for RubyForge to propagate to
   2954 the RubyGems index, so I typically try to wait before sending the
   2955 announcements, but I typically forget. (Typical!)
   2956 
   2957 -- 
   2958 William <wmorgan-sup at masanjin.net>
   2959 
   2960 From david@axiombox.com  Tue Apr 22 14:55:01 2008
   2961 From: david@axiombox.com (David Moreno)
   2962 Date: Tue, 22 Apr 2008 14:55:01 -0400
   2963 Subject: [sup-talk] [ANN] Sup 0.5 Released
   2964 In-Reply-To: <1208889336-sup-3574@south>
   2965 References: <1208884075-sup-1123@south> <1208888023-sup-2851@petunia>
   2966 	<1208889336-sup-3574@south>
   2967 Message-ID: <1208890451-sup-2414@petunia>
   2968 
   2969 Excerpts from William Morgan's message of Tue Apr 22 14:37:44 -0400 2008:
   2970 > It's not 404 if you download it directly:
   2971 > http://rubyforge.org/frs/download.php/35925/sup-0.5.gem
   2972 
   2973 Got it now with `gem update`. Thanks for your effort!
   2974 
   2975 -- 
   2976 David Moreno
   2977  http://damog.net/
   2978  http://axiombox.com/
   2979 
   2980 From rgh@roughage.com.au  Tue Apr 22 18:48:12 2008
   2981 From: rgh@roughage.com.au (Richard Heycock)
   2982 Date: Wed, 23 Apr 2008 08:48:12 +1000
   2983 Subject: [sup-talk] [ANN] Sup 0.5 Released
   2984 In-Reply-To: <1208884075-sup-1123@south>
   2985 References: <1208884075-sup-1123@south>
   2986 Message-ID: <1208904419-sup-9606@wrasse>
   2987 
   2988 Excerpts from William Morgan's message of Wed Apr 23 03:08:13 +1000 2008:
   2989 > Sup version 0.5 has been released!
   2990 
   2991 What a treat for a cold, wet Wednesday morning! Thanks guys.
   2992 
   2993 rgh
   2994 
   2995 > * <http://sup.rubyforge.org>
   2996 > 
   2997 > Sup is a console-based email client for people with a lot of email.
   2998 > It supports tagging, very fast full-text search, automatic contact-
   2999 > list management, and more. If you're the type of person who treats
   3000 > email as an extension of your long-term memory, Sup is for you.
   3001 > 
   3002 > Sup makes it easy to:
   3003 > - Handle massive amounts of email.
   3004 > 
   3005 > - Mix email from different sources: mbox files (even across different
   3006 >   machines), Maildir directories, IMAP folders, POP accounts, and
   3007 >   GMail accounts.
   3008 > 
   3009 > - Instantaneously search over your entire email collection. Search
   3010 >   over body text, or use a query language to combine search
   3011 >   predicates in any way.
   3012 > 
   3013 > - Handle multiple accounts. Replying to email sent to a particular
   3014 >   account will use the correct SMTP server, signature, and from
   3015 >   address.
   3016 > 
   3017 > - Add custom code to handle certain types of messages or to handle
   3018 >   certain types of text within messages.
   3019 > 
   3020 > - Organize email with user-defined labels, automatically track
   3021 >   recent contacts, and much more!
   3022 > 
   3023 > The goal of Sup is to become the email client of choice for nerds
   3024 > everywhere.
   3025 > 
   3026 > Changes:
   3027 > 
   3028 > ## 0.5 / 2008-04-22
   3029 > * new hooks: extra-contact-addresses, startup
   3030 > * '!!' now loads all threads in current search
   3031 > * general state saving speedup
   3032 > * threads with unsent draft messages are now shown in red
   3033 > * --compose spawns a compose-message buffer on startup
   3034 > * Many bugfixes and UI improvements
   3035 > 
   3036 > * <http://sup.rubyforge.org>
   3037 > 
   3038 
   3039 -- 
   3040 +61 (0) 410 646 369
   3041 rgh at neoss.com.au
   3042 
   3043 You're worried criminals will continue to penetrate into cyberspace, and
   3044 I'm worried complexity, poor design and mismanagement will be there to meet
   3045 them - Marcus Ranum
   3046 
   3047 From wmorgan-sup@masanjin.net  Tue Apr 22 19:18:00 2008
   3048 From: wmorgan-sup@masanjin.net (William Morgan)
   3049 Date: Tue, 22 Apr 2008 16:18:00 -0700
   3050 Subject: [sup-talk] System encoding versus messages encoding
   3051 In-Reply-To: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com>
   3052 References: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com>
   3053 Message-ID: <1208905597-sup-4977@south>
   3054 
   3055 Reformatted excerpts from Israel Herraiz's message of 2008-04-21:
   3056 > As far as I know (considering what I have read in the documentation
   3057 > and in the archives of this mailing list), Sup determines the encoding
   3058 > using the environment variables and tries to decode all the messages
   3059 > using that encoding.
   3060 
   3061 This is not correct. Sup DOES determin the message's (or MIME
   3062 component's) charset, and transcodes it to your terminal charset using
   3063 the iconv library before display. (After decoding quoted-printable,
   3064 etc.)
   3065 
   3066 The problem is actually that the Ruby ncurses gem is not wide-character
   3067 aware, so dumping UTF8 to the terminal doesn't actually work. Well, it
   3068 actually does seem to work for some characters, but not most of them.
   3069 
   3070 The solution has been known for quite some time, but it ain't pretty:
   3071 http://rubyforge.org/pipermail/sup-talk/2007-October/000297.html
   3072 
   3073 The good news is that I've just made it slightly simpler, at least if
   3074 you're running from git. I've published an "ncursesw" branch that
   3075 contains a hacked ncurses-0.9.1 and a dirty script to install it into
   3076 your ../lib/ directory. If you use that AND you run from git next,
   3077 you'll see wide characters. It works!
   3078 
   3079 So, just a "few" "simple" commands:
   3080 $ git branch --track ncursesw origin/ncursesw
   3081 $ git checkout ncursesw
   3082 $ cd ncurses-0.9.1/
   3083 $ ./run-this-for-sup.sh 
   3084 $ cd ..
   3085 $ git checkout next
   3086 $ ruby -Ilib bin/sup
   3087 
   3088 ... and you should see wide characters, assuming your terminal is
   3089 capable. If make dies, you probably need to install some kind of
   3090 ncursesw development library. On my Debian system it's
   3091 a package called libncursesw5-dev.
   3092 
   3093 A gold star to anyone who makes a nice wiki page out of this.
   3094 
   3095 -- 
   3096 William <wmorgan-sup at masanjin.net>
   3097 
   3098 From israel.herraiz@gmail.com  Tue Apr 22 20:09:41 2008
   3099 From: israel.herraiz@gmail.com (Israel Herraiz)
   3100 Date: Wed, 23 Apr 2008 02:09:41 +0200
   3101 Subject: [sup-talk] System encoding versus messages encoding
   3102 In-Reply-To: <1208905597-sup-4977@south>
   3103 References: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com>
   3104 	<1208905597-sup-4977@south>
   3105 Message-ID: <1208908666-sup-5839@elly>
   3106 
   3107 Excerpts from William Morgan's message of Wed Apr 23 01:18:00 +0200 2008:
   3108 > The good news is that I've just made it slightly simpler, at least if
   3109 > you're running from git. I've published an "ncursesw" branch that
   3110 > contains a hacked ncurses-0.9.1 and a dirty script to install it into
   3111 > your ../lib/ directory. If you use that AND you run from git next,
   3112 > you'll see wide characters. It works!
   3113 
   3114 Great. I have obtained the new changes from the git repository, and
   3115 applied the recipe that you give, and yes, it works! Thanks!
   3116 
   3117 I am noting only another odd thing: when I press enter to from the
   3118 inbox-mode to the thread-mode, some characters of the inbox view
   3119 "persists" in the screen. I will file the bug if you consider that it
   3120 is necessary. 
   3121 
   3122 > A gold star to anyone who makes a nice wiki page out of this.
   3123 
   3124 I guess that is my turn :-). I will add a page about UTF-8 with a
   3125 summary of this message and the message that you link.
   3126 
   3127 Thanks again for your help.
   3128 
   3129 Cheers,
   3130 Israel
   3131 
   3132 From israel.herraiz@gmail.com  Tue Apr 22 21:08:00 2008
   3133 From: israel.herraiz@gmail.com (Israel Herraiz)
   3134 Date: Wed, 23 Apr 2008 03:08:00 +0200
   3135 Subject: [sup-talk] System encoding versus messages encoding
   3136 In-Reply-To: <1208905597-sup-4977@south>
   3137 References: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com>
   3138 	<1208905597-sup-4977@south>
   3139 Message-ID: <1208912590-sup-562@elly>
   3140 
   3141 Excerpts from William Morgan's message of Wed Apr 23 01:18:00 +0200 2008:
   3142 > A gold star to anyone who makes a nice wiki page out of this.
   3143 
   3144 I have added a summary of the content of the two messages (the parent
   3145 message of this one, and the one you link with patches for the
   3146 gem). It is available at:
   3147 
   3148 http://sup.rubyforge.org/wiki/wiki.pl?UTF8
   3149 
   3150 I have added a link to this page in the main page of the wiki.
   3151 
   3152 Please note that I have tested only the method included in your
   3153 previous message (using the git sources). I have not tested the other
   3154 method (using the gem). I would appreaciate if someone can go to the
   3155 wiki page, follow the recipe and check that is correct (or change
   3156 whatever might be wrong).
   3157 
   3158 Cheers,
   3159 Israel
   3160 
   3161 From wmorgan-sup@masanjin.net  Tue Apr 22 21:43:04 2008
   3162 From: wmorgan-sup@masanjin.net (William Morgan)
   3163 Date: Tue, 22 Apr 2008 18:43:04 -0700
   3164 Subject: [sup-talk] [PATCH] Use read instead of readlines.join.
   3165 In-Reply-To: <1208764973-sup-7179@ausone.inria.fr>
   3166 References: <1207324856-7408-1-git-send-email-nicolas.pouillard@gmail.com>
   3167 	<1208764973-sup-7179@ausone.inria.fr>
   3168 Message-ID: <1208914969-sup-7176@south>
   3169 
   3170 Reformatted excerpts from nicolas.pouillard's message of 2008-04-21:
   3171 > What about this patch?
   3172 
   3173 Applied directly to master, and sorry for the delay.
   3174 
   3175 -- 
   3176 William <wmorgan-sup at masanjin.net>
   3177 
   3178 From wmorgan-sup@masanjin.net  Tue Apr 22 21:43:17 2008
   3179 From: wmorgan-sup@masanjin.net (William Morgan)
   3180 Date: Tue, 22 Apr 2008 18:43:17 -0700
   3181 Subject: [sup-talk] [PATCH] Write sup-{exception-log,
   3182 	unable-to-decode}.txt in ~/.sup
   3183 In-Reply-To: <1208764889-sup-5055@ausone.inria.fr>
   3184 References: <12072321792626-git-send-email-nicolas.pouillard@gmail.com>
   3185 	<1208764889-sup-5055@ausone.inria.fr>
   3186 Message-ID: <1208914991-sup-8445@south>
   3187 
   3188 Reformatted excerpts from nicolas.pouillard's message of 2008-04-21:
   3189 > What about applying this patch?
   3190 
   3191 Applied directly to master, and sorry for the delay.
   3192 
   3193 -- 
   3194 William <wmorgan-sup at masanjin.net>
   3195 
   3196 From wmorgan-sup@masanjin.net  Tue Apr 22 21:44:26 2008
   3197 From: wmorgan-sup@masanjin.net (William Morgan)
   3198 Date: Tue, 22 Apr 2008 18:44:26 -0700
   3199 Subject: [sup-talk] [PATCH] Fix a bug about forwarding that trimmed out
   3200 	newlines.
   3201 In-Reply-To: <1208764937-sup-2539@ausone.inria.fr>
   3202 References: <1207325353-7638-1-git-send-email-nicolas.pouillard@gmail.com>
   3203 	<1208764937-sup-2539@ausone.inria.fr>
   3204 Message-ID: <1208915002-sup-1755@south>
   3205 
   3206 Reformatted excerpts from nicolas.pouillard's message of 2008-04-21:
   3207 > What about this patch?
   3208 
   3209 I merged a more minor version of the fix into next.
   3210 
   3211 -- 
   3212 William <wmorgan-sup at masanjin.net>
   3213 
   3214 From wmorgan-sup@masanjin.net  Tue Apr 22 21:53:18 2008
   3215 From: wmorgan-sup@masanjin.net (William Morgan)
   3216 Date: Tue, 22 Apr 2008 18:53:18 -0700
   3217 Subject: [sup-talk] System encoding versus messages encoding
   3218 In-Reply-To: <1208912590-sup-562@elly>
   3219 References: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com>
   3220 	<1208905597-sup-4977@south> <1208912590-sup-562@elly>
   3221 Message-ID: <1208915530-sup-2047@south>
   3222 
   3223 Reformatted excerpts from Israel Herraiz's message of 2008-04-22:
   3224 > http://sup.rubyforge.org/wiki/wiki.pl?UTF8
   3225 
   3226 Thanks! Very thorough.
   3227 
   3228 > Please note that I have tested only the method included in your
   3229 > previous message (using the git sources). I have not tested the other
   3230 > method (using the gem). I would appreaciate if someone can go to the
   3231 > wiki page, follow the recipe and check that is correct (or change
   3232 > whatever might be wrong).
   3233 
   3234 I gave it a little tweak.
   3235 
   3236 -- 
   3237 William <wmorgan-sup at masanjin.net>
   3238 
   3239 From wmorgan-sup@masanjin.net  Tue Apr 22 22:03:07 2008
   3240 From: wmorgan-sup@masanjin.net (William Morgan)
   3241 Date: Tue, 22 Apr 2008 19:03:07 -0700
   3242 Subject: [sup-talk] System encoding versus messages encoding
   3243 In-Reply-To: <1208908666-sup-5839@elly>
   3244 References: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com>
   3245 	<1208905597-sup-4977@south> <1208908666-sup-5839@elly>
   3246 Message-ID: <1208916152-sup-4053@south>
   3247 
   3248 Reformatted excerpts from Israel Herraiz's message of 2008-04-22:
   3249 > I am noting only another odd thing: when I press enter to from the
   3250 > inbox-mode to the thread-mode, some characters of the inbox view
   3251 > "persists" in the screen.
   3252 
   3253 Yeah, I see this too. Looks like a string length issue, actually.
   3254 I'll look into it---probably an easy fix.
   3255 
   3256 -- 
   3257 William <wmorgan-sup at masanjin.net>
   3258 
   3259 From nicolas.pouillard@gmail.com  Wed Apr 23 04:59:24 2008
   3260 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   3261 Date: Wed, 23 Apr 2008 10:59:24 +0200
   3262 Subject: [sup-talk] [PATCH] Fix a bug about forwarding that trimmed out
   3263 	newlines.
   3264 In-Reply-To: <1208915002-sup-1755@south>
   3265 References: <1207325353-7638-1-git-send-email-nicolas.pouillard@gmail.com>
   3266 	<1208764937-sup-2539@ausone.inria.fr> <1208915002-sup-1755@south>
   3267 Message-ID: <1208941031-sup-1885@port-ext16.ensta.fr>
   3268 
   3269 Excerpts from William Morgan's message of Wed Apr 23 03:44:26 +0200 2008:
   3270 > Reformatted excerpts from nicolas.pouillard's message of 2008-04-21:
   3271 > > What about this patch?
   3272 > 
   3273 > I merged a more minor version of the fix into next.
   3274 
   3275 Great!
   3276 
   3277 However this hunk is useless:
   3278 
   3279 ====================================================================================
   3280 --- a/lib/sup/modes/edit-message-mode.rb
   3281 +++ b/lib/sup/modes/edit-message-mode.rb
   3282 @@ -122,7 +122,7 @@ EOS
   3283      @file = Tempfile.new "sup.#{self.class.name.gsub(/.*::/, '').camel_to_hyphy}"
   3284      @file.puts format_headers(@header - NON_EDITABLE_HEADERS).first
   3285      @file.puts
   3286 -    @file.puts @body
   3287 +    @file.puts @body.join("\n")
   3288      @file.close
   3289  
   3290      editor = $config[:editor] || ENV['EDITOR'] || "/usr/bin/vi"
   3291 ====================================================================================
   3292 
   3293 Since  puts of an array have the same semantics, but cheaper. However it worth
   3294 a comment to make it crystal clear.
   3295 
   3296 -- 
   3297 Nicolas Pouillard aka Ertai
   3298 -------------- next part --------------
   3299 A non-text attachment was scrubbed...
   3300 Name: signature.asc
   3301 Type: application/pgp-signature
   3302 Size: 194 bytes
   3303 Desc: not available
   3304 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080423/d3ac93fb/attachment.bin 
   3305 
   3306 From nicolas.pouillard@gmail.com  Wed Apr 23 04:59:46 2008
   3307 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   3308 Date: Wed, 23 Apr 2008 10:59:46 +0200
   3309 Subject: [sup-talk] [PATCH] Write sup-{exception-log,
   3310 	unable-to-decode}.txt in ~/.sup
   3311 In-Reply-To: <1208914991-sup-8445@south>
   3312 References: <12072321792626-git-send-email-nicolas.pouillard@gmail.com>
   3313 	<1208764889-sup-5055@ausone.inria.fr> <1208914991-sup-8445@south>
   3314 Message-ID: <1208941173-sup-943@port-ext16.ensta.fr>
   3315 
   3316 Excerpts from William Morgan's message of Wed Apr 23 03:43:17 +0200 2008:
   3317 > Reformatted excerpts from nicolas.pouillard's message of 2008-04-21:
   3318 > > What about applying this patch?
   3319 > 
   3320 > Applied directly to master, and sorry for the delay.
   3321 
   3322 No problem.
   3323 
   3324 -- 
   3325 Nicolas Pouillard aka Ertai
   3326 -------------- next part --------------
   3327 A non-text attachment was scrubbed...
   3328 Name: signature.asc
   3329 Type: application/pgp-signature
   3330 Size: 194 bytes
   3331 Desc: not available
   3332 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080423/3e0a19cf/attachment.bin 
   3333 
   3334 From nicolas.pouillard@gmail.com  Wed Apr 23 05:04:48 2008
   3335 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   3336 Date: Wed, 23 Apr 2008 11:04:48 +0200
   3337 Subject: [sup-talk] [PATCH] Fix a bug when forwarding and using crypto.
   3338 In-Reply-To: <1207324905-7455-1-git-send-email-nicolas.pouillard@gmail.com>
   3339 References: <1207324905-7455-1-git-send-email-nicolas.pouillard@gmail.com>
   3340 Message-ID: <1208941472-sup-2742@port-ext16.ensta.fr>
   3341 
   3342 What about this patch?
   3343 
   3344 Excerpts from Nicolas Pouillard's message of Fri Apr 04 18:01:45 +0200 2008:
   3345 > ---
   3346 >  lib/sup/modes/edit-message-mode.rb |    2 +-
   3347 >  1 files changed, 1 insertions(+), 1 deletions(-)
   3348 > 
   3349 > diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mode.rb
   3350 > index 3aad623..dd96002 100644
   3351 > --- a/lib/sup/modes/edit-message-mode.rb
   3352 > +++ b/lib/sup/modes/edit-message-mode.rb
   3353 > @@ -324,7 +324,7 @@ protected
   3354 >      ## do whatever crypto transformation is necessary
   3355 >      if @crypto_selector && @crypto_selector.val != :none
   3356 >        from_email = PersonManager.person_for(@header["From"]).email
   3357 > -      to_email = (@header["To"] + @header["Cc"] + @header["Bcc"]).map { |p| PersonManager.person_for(p).email }
   3358 > +      to_email = [@header["To"], @header["Cc"], @header["Bcc"]].flatten.compact.map { |p| PersonManager.person_for(p).email }
   3359 >  
   3360 >        m = CryptoManager.send @crypto_selector.val, from_email, to_email, m
   3361 >      end
   3362 
   3363 -- 
   3364 Nicolas Pouillard aka Ertai
   3365 -------------- next part --------------
   3366 A non-text attachment was scrubbed...
   3367 Name: signature.asc
   3368 Type: application/pgp-signature
   3369 Size: 194 bytes
   3370 Desc: not available
   3371 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080423/01052d0f/attachment.bin 
   3372 
   3373 From christopher.witham@gmail.com  Wed Apr 23 08:26:49 2008
   3374 From: christopher.witham@gmail.com (Chris)
   3375 Date: Wed, 23 Apr 2008 08:26:49 -0400
   3376 Subject: [sup-talk] sup crashes on loading my index
   3377 Message-ID: <20080423122649.GF22263@kyanos.dyndns.org>
   3378 
   3379 Hello all!  First let me say how excited I am about sup -- I've been a
   3380 mutt user for years, but since learning a bit about gmail I have been
   3381 interested in the different paradigm of email management.  I wrote a
   3382 couple of scripts to emulate the 'star' feature in mutt (available if
   3383 anyone wants them), but it doesn't change how the basis of interaction
   3384 is still on folders.
   3385 
   3386 I can't really test sup just yet, though, because it crashes on or very
   3387 shortly after loading.  With 0.4, it crashed immediately after loading
   3388 the indexes, with 0.5 it seems to have a few seconds of thread view
   3389 before it does.  I tried clearing the database by removing
   3390 ~/.sup/ferret, but the problem came back.  
   3391 
   3392 I've pasted the console output below, and attached the exception log (it
   3393 looks like they contain much the same information).  How can I determine
   3394 what message is causing the problem?
   3395 
   3396 
   3397 [Wed Apr 23 07:56:32 -0400 2008] using character set encoding "UTF-8"
   3398 [Wed Apr 23 07:56:33 -0400 2008] locking /home/garou/.sup/lock...
   3399 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/crypto.rb:18: warning:
   3400 Insecure world writable dir /usr
   3401 /local/sbin in PATH, mode 040777
   3402 [Wed Apr 23 07:56:34 -0400 2008] crypto: detected gpg binary in
   3403 /usr/bin/gpg
   3404 [Wed Apr 23 07:56:34 -0400 2008] loading index...
   3405 [Wed Apr 23 07:56:34 -0400 2008] loaded index of 10296 messages
   3406 [Wed Apr 23 07:56:34 -0400 2008] starting curses
   3407 
   3408 
   3409 
   3410 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/index.rb:237:in
   3411 `sync_message': just added message "" but couldn't find it in a search
   3412 (RuntimeError)
   3413 from
   3414 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
   3415 from
   3416 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in
   3417 `method_missing'
   3418 from /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:160:in
   3419 `add_messages_from'
   3420 from
   3421 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:115:in `each'
   3422 from
   3423 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:112:in `upto'
   3424 from
   3425 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:112:in `each'
   3426 from
   3427 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `send'
   3428 from
   3429 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `__pass'
   3430 ...
   3431 29 levels...
   3432 from
   3433 (eval):12:in `load_threads'
   3434 from
   3435 /usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
   3436 from
   3437 /usr/bin/sup:19:in `load'
   3438 from /usr/bin/sup:19
   3439 [Wed Apr 23 07:59:43 -0400 2008] stopped cursing
   3440 [Wed Apr 23 07:59:43 -0400 2008] oh crap, an exception
   3441 [Wed Apr 23 07:59:43 -0400 2008] unlocking /home/garou/.sup/lock...
   3442 ----------------------------------------------------------------
   3443 I'm very sorry. It seems that an error occurred in Sup. Please
   3444 accept my sincere apologies. If you don't mind, please send the
   3445 contents of sup-exception-log.txt and a brief report of the
   3446 circumstances to sup-talk at rubyforge dot orgs so that I might
   3447 address this problem. Thank you!
   3448 
   3449 Sincerely,
   3450 William
   3451 ----------------------------------------------------------------
   3452 --- RuntimeError from thread: poll after loading inbox
   3453 just added message "" but couldn't find it in a search
   3454 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/index.rb:237:in
   3455 `sync_message'
   3456 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
   3457 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in
   3458 `method_missing'
   3459 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:160:in
   3460 `add_messages_from'
   3461 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:115:in `each'
   3462 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:112:in `upto'
   3463 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:112:in `each'
   3464 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `send'
   3465 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `__pass'
   3466 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:523:in
   3467 `method_missing'
   3468 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:141:in
   3469 `add_messages_from'
   3470 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:98:in `do_poll'
   3471 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:86:in `each'
   3472 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:86:in `do_poll'
   3473 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:85:in `synchronize'
   3474 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:85:in `do_poll'
   3475 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
   3476 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in
   3477 `method_missing'
   3478 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/poll-mode.rb:17:in
   3479 `poll'
   3480 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:53:in `poll'
   3481 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
   3482 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in
   3483 `method_missing'
   3484 /usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
   3485 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:60:in `reporting_thread'
   3486 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `initialize'
   3487 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `new'
   3488 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `reporting_thread'
   3489 /usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
   3490 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:536:in
   3491 `call'
   3492 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:536:in
   3493 `__unprotected_load_threads'
   3494 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:478:in
   3495 `call'
   3496 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:478:in
   3497 `load_n_threads_background'
   3498 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:60:in `reporting_thread'
   3499 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `initialize'
   3500 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `new'
   3501 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `reporting_thread'
   3502 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:476:in
   3503 `load_n_threads_background'
   3504 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:546:in
   3505 `__unprotected_load_threads'
   3506 (eval):12:in `load_threads'
   3507 /usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
   3508 /usr/bin/sup:19:in `load'
   3509 /usr/bin/sup:19
   3510 --- SystemExit from thread: main
   3511 just added message "" but couldn't find it in a search
   3512 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:64:in `select'
   3513 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/buffer.rb:31:in
   3514 `nonblocking_getch'
   3515 /usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:227
   3516 /usr/bin/sup:19:in `load'
   3517 /usr/bin/sup:19
   3518 
   3519 
   3520 -- 
   3521 Chris Witham <christopher.witham at gmail.com>
   3522 Computer Engineer and Geek
   3523 Fan of video games, anime, and the outdoors
   3524 
   3525 All those who believe in telekinesis, raise my hand.
   3526                        - Kurt Vonnegut
   3527 -------------- next part --------------
   3528 --- RuntimeError from thread: poll after loading inbox
   3529 just added message "" but couldn't find it in a search
   3530 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/index.rb:237:in `sync_message'
   3531 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
   3532 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `method_missing'
   3533 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:160:in `add_messages_from'
   3534 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:115:in `each'
   3535 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:112:in `upto'
   3536 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:112:in `each'
   3537 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `send'
   3538 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `__pass'
   3539 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:523:in `method_missing'
   3540 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:141:in `add_messages_from'
   3541 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:98:in `do_poll'
   3542 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:86:in `each'
   3543 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:86:in `do_poll'
   3544 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:85:in `synchronize'
   3545 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:85:in `do_poll'
   3546 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
   3547 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `method_missing'
   3548 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/poll-mode.rb:17:in `poll'
   3549 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:53:in `poll'
   3550 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
   3551 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `method_missing'
   3552 /usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
   3553 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:60:in `reporting_thread'
   3554 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `initialize'
   3555 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `new'
   3556 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `reporting_thread'
   3557 /usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
   3558 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:536:in `call'
   3559 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:536:in `__unprotected_load_threads'
   3560 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:478:in `call'
   3561 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:478:in `load_n_threads_background'
   3562 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:60:in `reporting_thread'
   3563 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `initialize'
   3564 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `new'
   3565 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `reporting_thread'
   3566 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:476:in `load_n_threads_background'
   3567 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:546:in `__unprotected_load_threads'
   3568 (eval):12:in `load_threads'
   3569 /usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
   3570 /usr/bin/sup:19:in `load'
   3571 /usr/bin/sup:19
   3572 --- SystemExit from thread: main
   3573 just added message "" but couldn't find it in a search
   3574 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:64:in `select'
   3575 /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/buffer.rb:31:in `nonblocking_getch'
   3576 /usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:227
   3577 /usr/bin/sup:19:in `load'
   3578 /usr/bin/sup:19
   3579 
   3580 From marc.hartstein@alum.vassar.edu  Wed Apr 23 17:02:50 2008
   3581 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   3582 Date: Wed, 23 Apr 2008 17:02:50 -0400
   3583 Subject: [sup-talk] [PATCH] Config control over how From address is
   3584 	generated when replying.
   3585 Message-ID: <1208984570-24674-1-git-send-email-marc.hartstein@alum.vassar.edu>
   3586 
   3587 Two new boolean options are now recognized in .sup/config.yaml
   3588 
   3589 :reply_from_recipient: Check headers for the real email address the message
   3590                        ultimately arrived at, and use it if it's one of
   3591                        your accounts (or an alternate/regexp for such).
   3592 
   3593 :reply_from_tocc:      Check To and CC for an address which matches one of
   3594                        your accounts and use the first such found.
   3595 
   3596 Both options default to true if missing, preserving the traditional sup
   3597 behavior.
   3598 
   3599 Setting ...recipient to false and ...tocc to true will emulate mutt's behavior
   3600 with reverse_name=true
   3601 
   3602 Setting both to false will always reply from your default account.
   3603 ---
   3604  lib/sup/modes/reply-mode.rb |    6 ++++--
   3605  1 files changed, 4 insertions(+), 2 deletions(-)
   3606 
   3607 diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb
   3608 index e7b2929..82ce912 100644
   3609 --- a/lib/sup/modes/reply-mode.rb
   3610 +++ b/lib/sup/modes/reply-mode.rb
   3611 @@ -29,10 +29,12 @@ EOS
   3612  
   3613      ## first, determine the address at which we received this email. this will
   3614      ## become our From: address in the reply.
   3615 +    check_recipient = $config[:reply_from_recipient].nil? || $config[:reply_from_recipient]
   3616 +    check_tocc = $config[:reply_from_tocc].nil? || $config[:reply_from_tocc]
   3617      from =
   3618 -      if @m.recipient_email && AccountManager.is_account_email?(@m.recipient_email)
   3619 +      if check_recipient && @m.recipient_email && AccountManager.is_account_email?(@m.recipient_email)
   3620          PersonManager.person_for(@m.recipient_email)
   3621 -      elsif(b = (@m.to + @m.cc).find { |p| AccountManager.is_account? p })
   3622 +      elsif check_tocc && (b = (@m.to + @m.cc).find { |p| AccountManager.is_account? p })
   3623          b
   3624        else
   3625          AccountManager.default_account
   3626 -- 
   3627 1.5.3.7
   3628 
   3629 
   3630 From israel.herraiz@gmail.com  Wed Apr 23 17:23:58 2008
   3631 From: israel.herraiz@gmail.com (Israel Herraiz)
   3632 Date: Wed, 23 Apr 2008 23:23:58 +0200
   3633 Subject: [sup-talk] [PATCH] Add list-id as a new property of messages
   3634 Message-ID: <1208985725-sup-6028@elly>
   3635 
   3636 Hi there,
   3637 
   3638 I propose to add a "list_id" property to messages, just like
   3639 list_subscribe, list_unsubscribe and list_address.
   3640 
   3641 I am using list_address.email to automatically generate labels for
   3642 messages that are coming from mailing lists (that field uses the value
   3643 of the List-Post header of the raw message). It seems that some
   3644 mailing lists are not including that header though. In those lists
   3645 where I do not see List-Post, I have found that List-Id is still
   3646 present. Therefore I propose to add that header to the message class
   3647 for filtering purposes.
   3648 
   3649 The change is minimal, and as far as I have found out, it does not
   3650 affect any other part of Sup (like for instance the index of
   3651 messages). I am attaching the patch below.
   3652 
   3653 Cheers,
   3654 Israel
   3655 
   3656 ---
   3657  lib/sup/mbox.rb    |    1 +
   3658  lib/sup/message.rb |    8 +++++++-
   3659  2 files changed, 8 insertions(+), 1 deletions(-)
   3660 
   3661 diff --git a/lib/sup/mbox.rb b/lib/sup/mbox.rb
   3662 index f267b3b..35d0283 100644
   3663 --- a/lib/sup/mbox.rb
   3664 +++ b/lib/sup/mbox.rb
   3665 @@ -32,6 +32,7 @@ module MBox
   3666          /^(List-Post):\s*(.*?)\s*$/i,
   3667          /^(List-Subscribe):\s*(.*?)\s*$/i,
   3668          /^(List-Unsubscribe):\s*(.*?)\s*$/i,
   3669 +        /^(List-Id):\s*(.*?)\s*$/i,
   3670          /^(Status):\s*(.*?)\s*$/i: header[last = $1] = $2
   3671        when /^(Message-Id):\s*(.*?)\s*$/i: header[mid_field = last = $1] = $2
   3672  
   3673 diff --git a/lib/sup/message.rb b/lib/sup/message.rb
   3674 index 249b6c6..3952236 100644
   3675 --- a/lib/sup/message.rb
   3676 +++ b/lib/sup/message.rb
   3677 @@ -38,7 +38,7 @@ class Message
   3678  
   3679    attr_reader :id, :date, :from, :subj, :refs, :replytos, :to, :source,
   3680                :cc, :bcc, :labels, :list_address, :recipient_email, :replyto,
   3681 -              :source_info, :list_subscribe, :list_unsubscribe
   3682 +              :source_info, :list_subscribe, :list_unsubscribe, :list_id
   3683  
   3684    bool_reader :dirty, :source_marked_read, :snippet_contains_encrypted_content
   3685  
   3686 @@ -128,6 +128,12 @@ class Message
   3687      @source_marked_read = header["status"] == "RO"
   3688      @list_subscribe = header["list-subscribe"]
   3689      @list_unsubscribe = header["list-unsubscribe"]
   3690 +    @list_id = 
   3691 +      if header["list-id"]
   3692 +        @list_id = PersonManager.person_for header["list-id"]
   3693 +      else
   3694 +        nil
   3695 +      end
   3696    end
   3697    private :parse_header
   3698  
   3699 -- 
   3700 1.5.5
   3701 
   3702 
   3703 From marc.hartstein@alum.vassar.edu  Wed Apr 23 20:43:12 2008
   3704 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   3705 Date: Wed, 23 Apr 2008 20:43:12 -0400
   3706 Subject: [sup-talk] [PATCH] Vi-style scroll keys
   3707 Message-ID: <1208997793-14546-1-git-send-email-marc.hartstein@alum.vassar.edu>
   3708 
   3709 Adds ^f/^b ^d/^u ^e/^y keybindings to scroll-mode.
   3710 ---
   3711  lib/sup/modes/scroll-mode.rb |   12 ++++++++----
   3712  1 files changed, 8 insertions(+), 4 deletions(-)
   3713 
   3714 diff --git a/lib/sup/modes/scroll-mode.rb b/lib/sup/modes/scroll-mode.rb
   3715 index 922bf92..2d70fef 100644
   3716 --- a/lib/sup/modes/scroll-mode.rb
   3717 +++ b/lib/sup/modes/scroll-mode.rb
   3718 @@ -15,12 +15,14 @@ class ScrollMode < Mode
   3719    COL_JUMP = 2
   3720  
   3721    register_keymap do |k|
   3722 -    k.add :line_down, "Down one line", :down, 'j', 'J'
   3723 -    k.add :line_up, "Up one line", :up, 'k', 'K'
   3724 +    k.add :line_down, "Down one line", :down, 'j', 'J', "\C-e"
   3725 +    k.add :line_up, "Up one line", :up, 'k', 'K', "\C-y"
   3726      k.add :col_left, "Left one column", :left, 'h'
   3727      k.add :col_right, "Right one column", :right, 'l'
   3728 -    k.add :page_down, "Down one page", :page_down, ' '
   3729 -    k.add :page_up, "Up one page", :page_up, 'p', :backspace
   3730 +    k.add :page_down, "Down one page", :page_down, ' ', "\C-f"
   3731 +    k.add :page_up, "Up one page", :page_up, 'p', :backspace, "\C-b"
   3732 +    k.add :half_page_down, "Down one half page", "\C-d"
   3733 +    k.add :half_page_up, "Up one half page", "\C-u"
   3734      k.add :jump_to_start, "Jump to top", :home, '^', '1'
   3735      k.add :jump_to_end, "Jump to bottom", :end, '$', '0'
   3736      k.add :jump_to_left, "Jump to the left", '['
   3737 @@ -130,6 +132,8 @@ class ScrollMode < Mode
   3738    def line_up;  jump_to_line @topline - 1; end
   3739    def page_down; jump_to_line @topline + buffer.content_height - @slip_rows; end
   3740    def page_up; jump_to_line @topline - buffer.content_height + @slip_rows; end
   3741 +  def half_page_down; jump_to_line @topline + buffer.content_height / 2; end
   3742 +  def half_page_up; jump_to_line @topline - buffer.content_height / 2; end
   3743    def jump_to_start; jump_to_line 0; end
   3744    def jump_to_end; jump_to_line lines - buffer.content_height; end
   3745  
   3746 -- 
   3747 1.5.3.7
   3748 
   3749 
   3750 From marc.hartstein@alum.vassar.edu  Wed Apr 23 20:43:13 2008
   3751 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   3752 Date: Wed, 23 Apr 2008 20:43:13 -0400
   3753 Subject: [sup-talk] [PATCH] Fixes alignment when printing help screen if
   3754 	\C-x is bound.
   3755 In-Reply-To: <1208997793-14546-1-git-send-email-marc.hartstein@alum.vassar.edu>
   3756 References: <1208997793-14546-1-git-send-email-marc.hartstein@alum.vassar.edu>
   3757 Message-ID: <1208997793-14546-2-git-send-email-marc.hartstein@alum.vassar.edu>
   3758 
   3759 Width calculations were getting off by one, causing truncated definitions.
   3760 ---
   3761  lib/sup/keymap.rb |    8 +-------
   3762  1 files changed, 1 insertions(+), 7 deletions(-)
   3763 
   3764 diff --git a/lib/sup/keymap.rb b/lib/sup/keymap.rb
   3765 index 3176415..080e11d 100644
   3766 --- a/lib/sup/keymap.rb
   3767 +++ b/lib/sup/keymap.rb
   3768 @@ -43,16 +43,10 @@ class Keymap
   3769      when :home: "<home>"
   3770      when :end: "<end>"
   3771      when :enter, :return: "<enter>"
   3772 -    when :ctrl_l: "ctrl-l"
   3773 -    when :ctrl_g: "ctrl-g"
   3774      when :tab: "tab"
   3775      when " ": "<space>"
   3776      else
   3777 -      if k.is_a?(String) && k.length == 1
   3778 -        k
   3779 -      else
   3780 -        raise ArgumentError, "unknown key name \"#{k}\""
   3781 -      end
   3782 +      Curses::keyname(keysym_to_keycode k)
   3783      end
   3784    end
   3785  
   3786 -- 
   3787 1.5.3.7
   3788 
   3789 
   3790 From its.jeff.balogh@gmail.com  Thu Apr 24 01:23:10 2008
   3791 From: its.jeff.balogh@gmail.com (Jeff Balogh)
   3792 Date: Thu, 24 Apr 2008 01:23:10 -0400
   3793 Subject: [sup-talk] [PATCH] add a reply-to hook,
   3794 	for setting the Reply To field.
   3795 In-Reply-To: <1207373363-sup-374@archie>
   3796 References: <1207373363-sup-374@archie>
   3797 Message-ID: <1209014328-sup-5801@archie>
   3798 
   3799 I prefer to reply to a mailing list, then all participants:
   3800 
   3801   $ cat .sup/hooks/reply-to.rb
   3802   ([:list, :all] & types)[0]
   3803 ---
   3804 I've been happily using this locally, and forgot to send it to the list. :P
   3805 
   3806  lib/sup/modes/reply-mode.rb |   15 ++++++++++++++-
   3807  1 files changed, 14 insertions(+), 1 deletions(-)
   3808 
   3809 diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb
   3810 index e7b2929..ad50fed 100644
   3811 --- a/lib/sup/modes/reply-mode.rb
   3812 +++ b/lib/sup/modes/reply-mode.rb
   3813 @@ -19,6 +19,14 @@ Return value:
   3814    A string containing the text of the quote line (can be multi-line)
   3815  EOS
   3816  
   3817 +  HookManager.register "reply-to", <<EOS
   3818 +Set the Reply To field.
   3819 +Variables:
   3820 +  types: the valid types to choose from
   3821 +Return value:
   3822 +  The reply type you desire, or nil to let sup set it.
   3823 +EOS
   3824 +
   3825    def initialize message
   3826      @m = message
   3827  
   3828 @@ -92,8 +100,13 @@ EOS
   3829      types = REPLY_TYPES.select { |t| @headers.member?(t) }
   3830      @type_selector = HorizontalSelector.new "Reply to:", types, types.map { |x| TYPE_DESCRIPTIONS[x] }
   3831  
   3832 +    hook_reply = HookManager.run "reply-to", :types => types
   3833 +    Redwood::log hook_reply.to_s
   3834 +
   3835      @type_selector.set_to(
   3836 -      if @m.is_list_message?
   3837 +      if types.include? hook_reply
   3838 +        hook_reply
   3839 +      elsif @m.is_list_message?
   3840          :list
   3841        elsif @headers.member? :sender
   3842          :sender
   3843 -- 
   3844 1.5.5.1
   3845 
   3846 
   3847 From marc.hartstein@alum.vassar.edu  Thu Apr 24 01:56:00 2008
   3848 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   3849 Date: Thu, 24 Apr 2008 01:56:00 -0400
   3850 Subject: [sup-talk] [PATCH] add a reply-to hook,
   3851 	for setting the Reply To field.
   3852 In-Reply-To: <1209014328-sup-5801@archie>
   3853 References: <1207373363-sup-374@archie> <1209014328-sup-5801@archie>
   3854 Message-ID: <1209016094-sup-288@cabinet>
   3855 
   3856 Excerpts from its.jeff.balogh's message of Thu Apr 24 01:23:10 -0400 2008:
   3857 > I prefer to reply to a mailing list, then all participants:
   3858 > 
   3859 >   $ cat .sup/hooks/reply-to.rb
   3860 >   ([:list, :all] & types)[0]
   3861 
   3862 Neat.  For reference for anybody interested in using this, possible
   3863 values are in lib/sup/modes/reply-mode.rb:5
   3864 
   3865 :sender => "Sender",
   3866 :recipient => "Recipient",
   3867 :all => "All",
   3868 :list => "Mailing list",
   3869 :user => "Customized"
   3870 
   3871 The default behavior should be equivalent [see line 97] to
   3872 ([:list, :sender, :recipient] & types)[0]
   3873 
   3874 Is there a reason you ended up going with a hook?
   3875 
   3876 I wonder if the hook should be provided with the current message for
   3877 fuller processing.
   3878 -------------- next part --------------
   3879 A non-text attachment was scrubbed...
   3880 Name: signature.asc
   3881 Type: application/pgp-signature
   3882 Size: 189 bytes
   3883 Desc: not available
   3884 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080424/1ab3f2e6/attachment.bin 
   3885 
   3886 From marcus-sup@bar-coded.net  Thu Apr 24 04:54:53 2008
   3887 From: marcus-sup@bar-coded.net (Marcus Williams)
   3888 Date: Thu, 24 Apr 2008 09:54:53 +0100
   3889 Subject: [sup-talk] [PATCH] Add list-id as a new property of messages
   3890 In-Reply-To: <1208985725-sup-6028@elly>
   3891 References: <1208985725-sup-6028@elly>
   3892 Message-ID: <1209026545-sup-9368@tomsk>
   3893 
   3894 On 23.4.2008, Israel Herraiz wrote:
   3895 > I am using list_address.email to automatically generate labels for
   3896 > messages that are coming from mailing lists (that field uses the value
   3897 > of the List-Post header of the raw message). It seems that some
   3898 > mailing lists are not including that header though. In those lists
   3899 > where I do not see List-Post, I have found that List-Id is still
   3900 > present. Therefore I propose to add that header to the message class
   3901 > for filtering purposes.
   3902 
   3903 Adding list-id is a good idea I think but you cant do a personmanager
   3904 lookup with it because it isnt really an email address according to
   3905 the RFC [1].  List-Subscribe and List-Unsubscribe all set their
   3906 counterparts in message.rb to the raw header so this is what I would
   3907 expect list_id to get set to.
   3908 
   3909 [snip]
   3910 > @@ -128,6 +128,12 @@ class Message
   3911 >      @source_marked_read = header["status"] == "RO"
   3912 >      @list_subscribe = header["list-subscribe"]
   3913 >      @list_unsubscribe = header["list-unsubscribe"]
   3914 > +    @list_id = 
   3915 > +      if header["list-id"]
   3916 > +        @list_id = PersonManager.person_for header["list-id"]
   3917 > +      else
   3918 > +        nil
   3919 > +      end
   3920 >    end
   3921 >    private :parse_header
   3922 [snip]
   3923 
   3924 If you are labeling via list-id you just want the raw header so this
   3925 should just be 
   3926 
   3927 @list_id = header["list-id"]
   3928 
   3929 Then if you want to do a lookup you can do it in the
   3930 before-add-message hook.
   3931 
   3932 Marcus
   3933 
   3934 [1] http://www.apps.ietf.org/rfc/rfc2919.html
   3935 
   3936 From its.jeff.balogh@gmail.com  Thu Apr 24 10:38:28 2008
   3937 From: its.jeff.balogh@gmail.com (Jeff Balogh)
   3938 Date: Thu, 24 Apr 2008 10:38:28 -0400
   3939 Subject: [sup-talk] [PATCH] add a reply-to hook,
   3940 	for setting the Reply To field.
   3941 In-Reply-To: <1209016094-sup-288@cabinet>
   3942 References: <1207373363-sup-374@archie> <1209014328-sup-5801@archie>
   3943 	<1209016094-sup-288@cabinet>
   3944 Message-ID: <1209047347-sup-6866@archie>
   3945 
   3946 marc.hartstein wrote:
   3947 > Excerpts from its.jeff.balogh's message of Thu Apr 24 01:23:10 -0400 2008:
   3948 > > I prefer to reply to a mailing list, then all participants:
   3949 > > 
   3950 > >   $ cat .sup/hooks/reply-to.rb
   3951 > >   ([:list, :all] & types)[0]
   3952 > 
   3953 > Neat.  For reference for anybody interested in using this, possible
   3954 > values are in lib/sup/modes/reply-mode.rb:5
   3955 > 
   3956 > :sender => "Sender",
   3957 > :recipient => "Recipient",
   3958 > :all => "All",
   3959 > :list => "Mailing list",
   3960 > :user => "Customized"
   3961 > 
   3962 > The default behavior should be equivalent [see line 97] to
   3963 > ([:list, :sender, :recipient] & types)[0]
   3964 
   3965 Thanks.  Your documentation skills far exceed mine. :)
   3966 
   3967 > Is there a reason you ended up going with a hook?
   3968 
   3969 1. Laziness.
   3970 2. Reluctance to add to config.
   3971 3. Because I expected someone might want to be fancier, maybe getting the
   3972 message for fuller processing.
   3973 
   3974 > I wonder if the hook should be provided with the current message for
   3975 > fuller processing.
   3976 
   3977 If you (or anyone) finds that useful, we can add it.  I left it out to keep the
   3978 hook simple.
   3979 
   3980 From marc.hartstein@alum.vassar.edu  Thu Apr 24 15:36:52 2008
   3981 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   3982 Date: Thu, 24 Apr 2008 15:36:52 -0400
   3983 Subject: [sup-talk] System encoding versus messages encoding
   3984 In-Reply-To: <1208912590-sup-562@elly>
   3985 References: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com>
   3986 	<1208905597-sup-4977@south> <1208912590-sup-562@elly>
   3987 Message-ID: <1209065804-sup-3481@cabinet>
   3988 
   3989 Excerpts from Israel Herraiz's message of Tue Apr 22 21:08:00 -0400 2008:
   3990 > Excerpts from William Morgan's message of Wed Apr 23 01:18:00 +0200 2008:
   3991 > > A gold star to anyone who makes a nice wiki page out of this.
   3992 > 
   3993 > http://sup.rubyforge.org/wiki/wiki.pl?UTF8
   3994 > 
   3995 > Please note that I have tested only the method included in your
   3996 > previous message (using the git sources). I have not tested the other
   3997 > method (using the gem). I would appreaciate if someone can go to the
   3998 > wiki page, follow the recipe and check that is correct (or change
   3999 > whatever might be wrong).
   4000 
   4001 Have just followed the Git instructions on the wiki, and some of my wide
   4002 character weirdness has gone away.
   4003 
   4004 Thanks, both of you.
   4005 -------------- next part --------------
   4006 A non-text attachment was scrubbed...
   4007 Name: signature.asc
   4008 Type: application/pgp-signature
   4009 Size: 189 bytes
   4010 Desc: not available
   4011 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080424/fd4328b5/attachment.bin 
   4012 
   4013 From grant@antiflux.org  Thu Apr 24 19:10:24 2008
   4014 From: grant@antiflux.org (Grant Hollingworth)
   4015 Date: Thu, 24 Apr 2008 19:10:24 -0400
   4016 Subject: [sup-talk] [PATCH] fixed dlopen of libc for os x
   4017 In-Reply-To: <1208905597-sup-4977@south>
   4018 References: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com>
   4019 	<1208905597-sup-4977@south>
   4020 Message-ID: <1209078492-sup-5794@spooky.local>
   4021 
   4022 OS X likes to do its own thing.
   4023 
   4024 ---
   4025  lib/sup.rb |    2 +-
   4026  1 files changed, 1 insertions(+), 1 deletions(-)
   4027 
   4028 diff --git a/lib/sup.rb b/lib/sup.rb
   4029 index c4d1dd5..afd030f 100644
   4030 --- a/lib/sup.rb
   4031 +++ b/lib/sup.rb
   4032 @@ -14,7 +14,7 @@ require 'curses'
   4033  require 'dl/import'
   4034  module LibC
   4035    extend DL::Importable
   4036 -  dlload "libc.so.6"
   4037 +  dlload Config::CONFIG['arch'] =~ /darwin/ ? "libc.dylib" : "libc.so.6"
   4038    extern "void setlocale(int, const char *)"
   4039  end
   4040  LibC.setlocale(6, "")  # LC_ALL == 6
   4041 -- 
   4042 1.5.4.4
   4043 
   4044 From dag.odenhall@gmail.com  Thu Apr 24 19:53:51 2008
   4045 From: dag.odenhall@gmail.com (Dag Odenhall)
   4046 Date: Fri, 25 Apr 2008 01:53:51 +0200
   4047 Subject: [sup-talk] [PATCH] Configurable coloring
   4048 Message-ID: <1209080103-sup-8620@psilocybic>
   4049 
   4050 Hello good folks
   4051 
   4052 This lil patch allows you to override these color symbols:
   4053 
   4054 :status
   4055 :index_old
   4056 :index_new
   4057 :index_starred
   4058 :index_draft
   4059 :labellist_old
   4060 :labellist_new
   4061 :twiddle
   4062 :label
   4063 :message_patina
   4064 :alternate_patina
   4065 :missing_message
   4066 :attachment
   4067 :cryptosig_valid
   4068 :cryptosig_unknown
   4069 :cryptosig_invalid
   4070 :generic_notice_patina
   4071 :quote_patina
   4072 :sig_patina
   4073 :quote
   4074 :sig
   4075 :to_me
   4076 :starred
   4077 :starred_patina
   4078 :alternate_starred_patina
   4079 :snippet
   4080 :option
   4081 :tagged
   4082 :draft_notification
   4083 :completion_character
   4084 :horizontal_selector_selected
   4085 :horizontal_selector_unselected
   4086 :search_highlight
   4087 
   4088 in your config.yaml. You can set :fg or :bg to any of:
   4089 
   4090 default (transparent)
   4091 black
   4092 blue
   4093 cyan
   4094 green
   4095 magenta
   4096 red
   4097 white
   4098 yellow
   4099 
   4100 You can also set :attrs to a list of any of:
   4101 
   4102 horizontal
   4103 reverse
   4104 left
   4105 blink
   4106 low
   4107 dim
   4108 right
   4109 bold
   4110 top
   4111 protect
   4112 attributes
   4113 vertical
   4114 invis
   4115 normal
   4116 color
   4117 altcharset
   4118 standout
   4119 chartext
   4120 underline
   4121 
   4122 This all goes under :colors, so an example would be:
   4123 
   4124 :colors:
   4125   :status:
   4126     :fg: black
   4127     :bg: red
   4128     :attrs:
   4129     - reverse
   4130     - underline
   4131 
   4132 This is all a quick hack that can probably be improved upon, but it
   4133 works fine.
   4134 
   4135 Thanks Marc Hartstein for help with getting the transparency working.
   4136 
   4137 Dag.
   4138 
   4139 diff --git a/bin/sup b/bin/sup
   4140 index 078a134..0c5e70d 100644
   4141 --- a/bin/sup
   4142 +++ b/bin/sup
   4143 @@ -78,6 +78,7 @@ def start_cursing
   4144    Ncurses.stdscr.keypad 1
   4145    Ncurses.curs_set 0
   4146    Ncurses.start_color
   4147 +  Ncurses.use_default_colors
   4148    $cursing = true
   4149  end
   4150  
   4151 diff --git a/lib/sup/colormap.rb b/lib/sup/colormap.rb
   4152 index 9c6869a..4c48604 100644
   4153 --- a/lib/sup/colormap.rb
   4154 +++ b/lib/sup/colormap.rb
   4155 @@ -1,3 +1,7 @@
   4156 +module Curses
   4157 +  COLOR_DEFAULT = -1
   4158 +end
   4159 +
   4160  module Redwood
   4161  
   4162  class Colormap
   4163 @@ -6,7 +10,7 @@ class Colormap
   4164    CURSES_COLORS = [Curses::COLOR_BLACK, Curses::COLOR_RED, Curses::COLOR_GREEN,
   4165                     Curses::COLOR_YELLOW, Curses::COLOR_BLUE,
   4166                     Curses::COLOR_MAGENTA, Curses::COLOR_CYAN,
   4167 -                   Curses::COLOR_WHITE]
   4168 +                   Curses::COLOR_WHITE, Curses::COLOR_DEFAULT]
   4169    NUM_COLORS = 15
   4170    
   4171    def initialize
   4172 @@ -80,6 +84,11 @@ class Colormap
   4173      fg, bg, attrs, color = @entries[sym]
   4174      return color if color
   4175  
   4176 +    confcolor = $config[:colors][sym.to_s[0..-7].to_sym] rescue nil
   4177 +    fg = Curses.const_get "COLOR_#{confcolor[:fg].upcase}" rescue fg
   4178 +    bg = Curses.const_get "COLOR_#{confcolor[:bg].upcase}" rescue bg
   4179 +    attrs = confcolor[:attrs].map {|a| Curses.const_get "A_#{a.upcase}" } rescue attrs
   4180 +
   4181      if(cp = @color_pairs[[fg, bg]])
   4182        ## nothing
   4183      else ## need to get a new colorpair
   4184 
   4185 From dag.odenhall@gmail.com  Fri Apr 25 15:12:16 2008
   4186 From: dag.odenhall@gmail.com (Dag Odenhall)
   4187 Date: Fri, 25 Apr 2008 21:12:16 +0200
   4188 Subject: [sup-talk] [PATCH] use any custom colors configured in config.yaml
   4189 Message-ID: <1209150616-sup-8211@psilocybic>
   4190 
   4191 * bin/sup: (start_cursing) Initialize use of default
   4192 colors (transparency).
   4193 
   4194 * lib/sup/colormap.rb: Add a COLOR_DEFAULT constant to the
   4195 Curses module.
   4196 (CURSES_COLOR) Add the new COLOR_DEFAULT constant.
   4197 (color_for) Use colors from config if available.
   4198 
   4199 Signed-off-by: Dag Odenhall <dag.odenhall at gmail.com>
   4200 ---
   4201  bin/sup             |    1 +
   4202  lib/sup/colormap.rb |   11 ++++++++++-
   4203  2 files changed, 11 insertions(+), 1 deletions(-)
   4204 
   4205 diff --git a/bin/sup b/bin/sup
   4206 index 6360cde..e791fe5 100644
   4207 --- a/bin/sup
   4208 +++ b/bin/sup
   4209 @@ -78,6 +78,7 @@ def start_cursing
   4210    Ncurses.stdscr.keypad 1
   4211    Ncurses.curs_set 0
   4212    Ncurses.start_color
   4213 +  Ncurses.use_default_colors
   4214    $cursing = true
   4215  end
   4216  
   4217 diff --git a/lib/sup/colormap.rb b/lib/sup/colormap.rb
   4218 index 9c6869a..4c48604 100644
   4219 --- a/lib/sup/colormap.rb
   4220 +++ b/lib/sup/colormap.rb
   4221 @@ -1,3 +1,7 @@
   4222 +module Curses
   4223 +  COLOR_DEFAULT = -1
   4224 +end
   4225 +
   4226  module Redwood
   4227  
   4228  class Colormap
   4229 @@ -6,7 +10,7 @@ class Colormap
   4230    CURSES_COLORS = [Curses::COLOR_BLACK, Curses::COLOR_RED, Curses::COLOR_GREEN,
   4231                     Curses::COLOR_YELLOW, Curses::COLOR_BLUE,
   4232                     Curses::COLOR_MAGENTA, Curses::COLOR_CYAN,
   4233 -                   Curses::COLOR_WHITE]
   4234 +                   Curses::COLOR_WHITE, Curses::COLOR_DEFAULT]
   4235    NUM_COLORS = 15
   4236    
   4237    def initialize
   4238 @@ -80,6 +84,11 @@ class Colormap
   4239      fg, bg, attrs, color = @entries[sym]
   4240      return color if color
   4241  
   4242 +    confcolor = $config[:colors][sym.to_s[0..-7].to_sym] rescue nil
   4243 +    fg = Curses.const_get "COLOR_#{confcolor[:fg].upcase}" rescue fg
   4244 +    bg = Curses.const_get "COLOR_#{confcolor[:bg].upcase}" rescue bg
   4245 +    attrs = confcolor[:attrs].map {|a| Curses.const_get "A_#{a.upcase}" } rescue attrs
   4246 +
   4247      if(cp = @color_pairs[[fg, bg]])
   4248        ## nothing
   4249      else ## need to get a new colorpair
   4250 -- 
   4251 1.5.5.1
   4252 
   4253 
   4254 From israel.herraiz@gmail.com  Fri Apr 25 16:46:04 2008
   4255 From: israel.herraiz@gmail.com (Israel Herraiz)
   4256 Date: Fri, 25 Apr 2008 22:46:04 +0200
   4257 Subject: [sup-talk] [PATCH] Add list-id as a new property of messages
   4258 In-Reply-To: <1209026545-sup-9368@tomsk>
   4259 References: <1208985725-sup-6028@elly> <1209026545-sup-9368@tomsk>
   4260 Message-ID: <1209156188-sup-868@elly>
   4261 
   4262 Excerpts from Marcus Williams's message of Thu Apr 24 10:54:53 +0200 2008:
   4263 > Adding list-id is a good idea I think but you cant do a personmanager
   4264 > lookup with it because it isnt really an email address according to
   4265 > the RFC [1].  List-Subscribe and List-Unsubscribe all set their
   4266 > counterparts in message.rb to the raw header so this is what I would
   4267 > expect list_id to get set to.
   4268 
   4269 Yes, I know. The "problem" is that List-Id use to have two fields: one
   4270 that is a name, and another one that is a address-like. I wanted to
   4271 use that last field and no the name for the automatic label. That's
   4272 why I have used PersonManager to process the List-Id header.
   4273 
   4274 I know it is not a "dirty hack", but after all the regular expression
   4275 to obtain that part of List-Id is the same that to obtain the address
   4276 of List-Post. So I thought it was not that bad to use PersonManager to
   4277 apply the same regular expression.
   4278 
   4279 Cheers,
   4280 Israel
   4281 
   4282 From marcus-sup@bar-coded.net  Fri Apr 25 17:15:38 2008
   4283 From: marcus-sup@bar-coded.net (Marcus Williams)
   4284 Date: Fri, 25 Apr 2008 22:15:38 +0100
   4285 Subject: [sup-talk] [PATCH] Add list-id as a new property of messages
   4286 In-Reply-To: <1209156188-sup-868@elly>
   4287 References: <1208985725-sup-6028@elly> <1209026545-sup-9368@tomsk>
   4288 	<1209156188-sup-868@elly>
   4289 Message-ID: <1209157604-sup-2682@tomsk>
   4290 
   4291 On 25.4.2008, Israel Herraiz wrote:
   4292 > Yes, I know. The "problem" is that List-Id use to have two fields: one
   4293 > that is a name, and another one that is a address-like. I wanted to
   4294 > use that last field and no the name for the automatic label. That's
   4295 > why I have used PersonManager to process the List-Id header.
   4296 
   4297 :) I'm not saying you shouldnt do it - just that personally I dont
   4298 think you should do it in the place you do it. If you make list-id the
   4299 raw header in your patch then you can do the person manager lookup in
   4300 your before-add-message labeling hook (assuming thats where you're
   4301 labeling stuff). That way someone that wants to do something different
   4302 with the list-id header can do because you've given them the raw
   4303 header contents. 
   4304 
   4305 Having said all that, you can access the raw headers directly from the
   4306 message object in the hook anyway so maybe this is a non-issue. I'll
   4307 shut up :)
   4308 
   4309 Marcus
   4310 
   4311 From wmorgan-sup@masanjin.net  Sun Apr 27 02:45:44 2008
   4312 From: wmorgan-sup@masanjin.net (William Morgan)
   4313 Date: Sat, 26 Apr 2008 23:45:44 -0700
   4314 Subject: [sup-talk] CONTRIBUTORS
   4315 Message-ID: <1209278709-sup-4240@south>
   4316 
   4317 There's now a CONTRIBUTORS file and a section of the webpage where you
   4318 can see your name in lights. Order is determined by
   4319 git-rank-contributors (i.e. total size of diffs in the branch history).
   4320 Finally, the fame you all deserve.
   4321 
   4322 -- 
   4323 William <wmorgan-sup at masanjin.net>
   4324 
   4325 From wmorgan-sup@masanjin.net  Sun Apr 27 02:47:36 2008
   4326 From: wmorgan-sup@masanjin.net (William Morgan)
   4327 Date: Sat, 26 Apr 2008 23:47:36 -0700
   4328 Subject: [sup-talk] [PATCH] Fix a bug when forwarding and using crypto.
   4329 Message-ID: <1209278844-sup-1603@south>
   4330 
   4331 Reformatted excerpts from nicolas.pouillard's message of 2008-04-23:
   4332 > What about this patch?
   4333 
   4334 Applied directly to master. Thanks!
   4335 
   4336 -- 
   4337 William <wmorgan-sup at masanjin.net>
   4338 
   4339 From wmorgan-sup@masanjin.net  Sun Apr 27 02:48:07 2008
   4340 From: wmorgan-sup@masanjin.net (William Morgan)
   4341 Date: Sat, 26 Apr 2008 23:48:07 -0700
   4342 Subject: [sup-talk] sup crashes on loading my index
   4343 Message-ID: <1209278883-sup-9468@south>
   4344 
   4345 Reformatted excerpts from William Morgan's message of 2008-04-25:
   4346 > Until I fix that
   4347 
   4348 I've merged a bugfix into next, if you care to try it.
   4349 
   4350 
   4351 -- 
   4352 William <wmorgan-sup at masanjin.net>
   4353 
   4354 From wmorgan-sup@masanjin.net  Sun Apr 27 02:48:36 2008
   4355 From: wmorgan-sup@masanjin.net (William Morgan)
   4356 Date: Sat, 26 Apr 2008 23:48:36 -0700
   4357 Subject: [sup-talk] [PATCH] fixed dlopen of libc for os x
   4358 Message-ID: <1209278908-sup-4247@south>
   4359 
   4360 Reformatted excerpts from Grant Hollingworth's message of 2008-04-24:
   4361 > OS X likes to do its own thing.
   4362 
   4363 Merged into next. Thanks!
   4364 
   4365 -- 
   4366 William <wmorgan-sup at masanjin.net>
   4367 
   4368 From wmorgan-sup@masanjin.net  Sun Apr 27 02:49:25 2008
   4369 From: wmorgan-sup@masanjin.net (William Morgan)
   4370 Date: Sat, 26 Apr 2008 23:49:25 -0700
   4371 Subject: [sup-talk] [PATCH] Config control over how From address is
   4372 	generated when replying.
   4373 Message-ID: <1209278945-sup-1601@south>
   4374 
   4375 Hi Marc,
   4376 
   4377 Reformatted excerpts from Marc Hartstein's message of 2008-04-23:
   4378 > Two new boolean options are now recognized in .sup/config.yaml
   4379 
   4380 I appreciate the idea behind this patch, but I'm making a concerted
   4381 effort to keep the config options down to a minimum. I'd prefer a hook
   4382 that passed in all the relevant header values as parameters
   4383 (@m.recipient_email, @m.to, @m.cc, etc) and returned the desired From:
   4384 address. Then people can implement their own logic without the config
   4385 file starting down the path of Mutt-style configuration insanity.
   4386 
   4387 You could actually technically accomplish this already with the
   4388 before-edit hook, but I'd be happy with a special purpose hook.
   4389 
   4390 -- 
   4391 William <wmorgan-sup at masanjin.net>
   4392 
   4393 From wmorgan-sup@masanjin.net  Sun Apr 27 02:50:16 2008
   4394 From: wmorgan-sup@masanjin.net (William Morgan)
   4395 Date: Sat, 26 Apr 2008 23:50:16 -0700
   4396 Subject: [sup-talk] [PATCH] Add 'A' archive and mark read command to
   4397 	inbox-mode.
   4398 Message-ID: <1209279010-sup-8083@south>
   4399 
   4400 Reformatted excerpts from Marc Hartstein's message of 2008-04-17:
   4401 > The 'A' command does this simple task with a single, easy-to-remember,
   4402 > keystroke, but makes it harder to hit accidentally than 'a'.  A multi_
   4403 > mode is supplied.
   4404 
   4405 Very nice idea. Merged into next. Thanks!
   4406 
   4407 -- 
   4408 William <wmorgan-sup at masanjin.net>
   4409 
   4410 From wmorgan-sup@masanjin.net  Sun Apr 27 02:50:05 2008
   4411 From: wmorgan-sup@masanjin.net (William Morgan)
   4412 Date: Sat, 26 Apr 2008 23:50:05 -0700
   4413 Subject: [sup-talk] [PATCH] add a reply-to hook,
   4414 	for setting the Reply To field.
   4415 Message-ID: <1209278999-sup-9027@south>
   4416 
   4417 Reformatted excerpts from William Morgan's message of 2008-04-26:
   4418 > Maybe add the list of allowable return values.
   4419 
   4420 Heck, you could generate this automatically. Self-documenting code,
   4421 literally!
   4422 
   4423 -- 
   4424 William <wmorgan-sup at masanjin.net>
   4425 
   4426 From wmorgan-sup@masanjin.net  Sun Apr 27 02:49:55 2008
   4427 From: wmorgan-sup@masanjin.net (William Morgan)
   4428 Date: Sat, 26 Apr 2008 23:49:55 -0700
   4429 Subject: [sup-talk] [PATCH] add a reply-to hook,
   4430 	for setting the Reply To field.
   4431 Message-ID: <1209278987-sup-1806@south>
   4432 
   4433 Reformatted excerpts from its.jeff.balogh's message of 2008-04-23:
   4434 >   $ cat .sup/hooks/reply-to.rb
   4435 >   ([:list, :all] & types)[0]
   4436 
   4437 I'd be happy to put this in, but agree that it needs slightly better
   4438 documntation. Maybe add the list of allowable return values. And saying
   4439 it sets the "Reply To field" isn't quite accurate--more like it sets the
   4440 default reply-to "mode". Minor nitpicks, but I can see someone being
   4441 confused by the output of sup --list-hooks.
   4442 
   4443 -- 
   4444 William <wmorgan-sup at masanjin.net>
   4445 
   4446 From wmorgan-sup@masanjin.net  Sun Apr 27 02:49:39 2008
   4447 From: wmorgan-sup@masanjin.net (William Morgan)
   4448 Date: Sat, 26 Apr 2008 23:49:39 -0700
   4449 Subject: [sup-talk] [PATCH] Fixes alignment when printing help screen if
   4450 	\C-x is bound.
   4451 Message-ID: <1209278973-sup-3345@south>
   4452 
   4453 Both patched merged into next. Thanks!
   4454 
   4455 -- 
   4456 William <wmorgan-sup at masanjin.net>
   4457 
   4458 From chrisw@rice.edu  Sun Apr 27 04:45:59 2008
   4459 From: chrisw@rice.edu (Christopher Warrington)
   4460 Date: Sun, 27 Apr 2008 03:45:59 -0500
   4461 Subject: [sup-talk] [PATCH] fixed dlopen of libc for os x
   4462 In-Reply-To: <1209278908-sup-4247@south>
   4463 References: <1209278908-sup-4247@south>
   4464 Message-ID: <1209285778-sup-2320@chris-tablet>
   4465 
   4466 Excerpts from William Morgan's message of Sun Apr 27 01:48:36 -0500 2008:
   4467 >> OS X likes to do its own thing. 
   4468 > Merged into next. Thanks!
   4469 
   4470 Cygwin does too. You need to load "cygwin1.dll", not "libc.so.6". For
   4471 now, I've hacked this into my repository. However, we really should
   4472 come up with a cleaner way of handing these architecture-dependent
   4473 idiosyncrasies. (The Factory pattern from OO design comes to mind...)
   4474 
   4475 -- 
   4476 christopher Warrington <chrisw at rice.edu>
   4477 
   4478 From nicolas.pouillard@gmail.com  Sun Apr 27 05:48:10 2008
   4479 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   4480 Date: Sun, 27 Apr 2008 11:48:10 +0200
   4481 Subject: [sup-talk] CONTRIBUTORS
   4482 In-Reply-To: <1209278709-sup-4240@south>
   4483 References: <1209278709-sup-4240@south>
   4484 Message-ID: <1209289677-sup-6279@ausone.local>
   4485 
   4486 Excerpts from William Morgan's message of Sun Apr 27 08:45:44 +0200 2008:
   4487 > There's now a CONTRIBUTORS file and a section of the webpage where you
   4488 > can see your name in lights. Order is determined by
   4489 > git-rank-contributors (i.e. total size of diffs in the branch history).
   4490 > Finally, the fame you all deserve.
   4491 
   4492 Thank you William!
   4493 
   4494 -- 
   4495 Nicolas Pouillard aka Ertai
   4496 -------------- next part --------------
   4497 A non-text attachment was scrubbed...
   4498 Name: signature.asc
   4499 Type: application/pgp-signature
   4500 Size: 194 bytes
   4501 Desc: not available
   4502 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080427/fc292e99/attachment.bin>
   4503 
   4504 From marc.hartstein@alum.vassar.edu  Mon Apr 28 00:11:06 2008
   4505 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
   4506 Date: Mon, 28 Apr 2008 00:11:06 -0400
   4507 Subject: [sup-talk] [PATCH] Config control over how From address is
   4508 	generated when replying.
   4509 In-Reply-To: <1209278945-sup-1601@south>
   4510 References: <1209278945-sup-1601@south>
   4511 Message-ID: <1209354047-sup-9578@cabinet>
   4512 
   4513 Excerpts from William Morgan's message of Sun Apr 27 02:49:25 -0400 2008:
   4514 > I appreciate the idea behind this patch, but I'm making a concerted
   4515 > effort to keep the config options down to a minimum. I'd prefer a hook
   4516 > that passed in all the relevant header values as parameters
   4517 > (@m.recipient_email, @m.to, @m.cc, etc) and returned the desired From:
   4518 > address. Then people can implement their own logic without the config
   4519 > file starting down the path of Mutt-style configuration insanity.
   4520 
   4521 I can appreciate the desire not to have so many configuration settings
   4522 that you have to read through a tome to find the one you want (and might
   4523 simply never know that the one you want exists).
   4524 
   4525 Is there a reason not to simply pass in the message object to the hook,
   4526 as is done for attribution?
   4527 
   4528 > You could actually technically accomplish this already with the
   4529 > before-edit hook, but I'd be happy with a special purpose hook.
   4530 
   4531 I didn't see any straightforward way to do it using before-edit, as
   4532 before-edit is only passed the header hash and the body.  Unless the
   4533 References/In-Reply-To headers contain enough information to pull up the
   4534 message being replied to, the information I'm using isn't available.
   4535 
   4536 I have two thoughts on how to do this right now, on which I'd appreciate
   4537 input.
   4538 
   4539 First, a new hook "before-edit-reply", like before-edit but with a third
   4540 parameter which is the message to which the user is replying.  Should
   4541 probably be called in addition to before-edit so users don't have to
   4542 repeat themselves between the two (or explicitly make their
   4543 before-edit-reply call into their before-edit).
   4544 
   4545 The second idea is to modify before-edit to provide the message object
   4546 for the message being replied to or forwarded, if any, and some
   4547 indication of whether this is a brand-new message, a reply, a forward,
   4548 or a bounce.  User can then put all the logic in here, which I think
   4549 makes sense.  However, it changes an existing API, and I don't know if
   4550 it can be done in a way which doesn't break current before-edit hooks.
   4551 
   4552 I think I slightly prefer the change to before-edit approach, mostly
   4553 because it allows for the forward and bounce cases if somebody wants to
   4554 do some special handling there.  I'd definitely like some feedback,
   4555 though, as I'm not quite happy with either idea.
   4556 
   4557 Thanks for getting back to me,
   4558 
   4559 Marc
   4560 
   4561 P.S. William, I noticed your recent round of posts to the list lacked
   4562 In-Reply-To and References headers, so they didn't thread with the posts
   4563 they were replying to.  Want to make sure you're aware of it.
   4564 -------------- next part --------------
   4565 A non-text attachment was scrubbed...
   4566 Name: signature.asc
   4567 Type: application/pgp-signature
   4568 Size: 235 bytes
   4569 Desc: not available
   4570 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080428/5bcbc136/attachment.bin>
   4571 
   4572 From grant@antiflux.org  Mon Apr 28 11:26:16 2008
   4573 From: grant@antiflux.org (Grant Hollingworth)
   4574 Date: Mon, 28 Apr 2008 11:26:16 -0400
   4575 Subject: [sup-talk] [PATCH] parenthesized argument to quell warning
   4576 Message-ID: <1209396227-sup-5273@spooky.local>
   4577 
   4578 ---
   4579  lib/sup/keymap.rb |    2 +-
   4580  1 files changed, 1 insertions(+), 1 deletions(-)
   4581 
   4582 diff --git a/lib/sup/keymap.rb b/lib/sup/keymap.rb
   4583 index 080e11d..76c7139 100644
   4584 --- a/lib/sup/keymap.rb
   4585 +++ b/lib/sup/keymap.rb
   4586 @@ -46,7 +46,7 @@ class Keymap
   4587      when :tab: "tab"
   4588      when " ": "<space>"
   4589      else
   4590 -      Curses::keyname(keysym_to_keycode k)
   4591 +      Curses::keyname(keysym_to_keycode(k))
   4592      end
   4593    end
   4594  
   4595 -- 
   4596 1.5.4.4
   4597 
   4598 From pomeroymiles@gmail.com  Mon Apr 28 12:25:57 2008
   4599 From: pomeroymiles@gmail.com (Miles Pomeroy)
   4600 Date: Mon, 28 Apr 2008 09:25:57 -0700
   4601 Subject: [sup-talk] Gmail IMAP with sup
   4602 In-Reply-To: <1208309556-sup-3399@archie>
   4603 References: <6038aa2a0804151530uae50bbbxc6b8eed49906fcf8@mail.gmail.com>
   4604 	<1208309556-sup-3399@archie>
   4605 Message-ID: <C1A07365-2CDE-4C1A-9416-9B4C125610D4@gmail.com>
   4606 
   4607 >> 2. When I look at those messages and then go back to gmail through  
   4608 >> the
   4609 >> browser, those messages are not marked as being read.
   4610 >
   4611 > This is part of the sup philosophy.  It treats mail sources as dumb  
   4612 > stores, and
   4613 > doesn't try to change them.
   4614 
   4615 If this is part of sup philosophy then I'm assuming that it's not  
   4616 going to change. Can someone explain to me why this is a good thing? I  
   4617 use multiple computers and would like to use multiple clients to check  
   4618 my email, but this philosophy seems to only allow for one computer,  
   4619 one client.
   4620 
   4621 From wmorgan-sup@masanjin.net  Mon Apr 28 18:28:29 2008
   4622 From: wmorgan-sup@masanjin.net (William Morgan)
   4623 Date: Mon, 28 Apr 2008 15:28:29 -0700
   4624 Subject: [sup-talk] [PATCH] use any custom colors configured in
   4625 	config.yaml
   4626 In-Reply-To: <1209150616-sup-8211@psilocybic>
   4627 References: <1209150616-sup-8211@psilocybic>
   4628 Message-ID: <1209421539-sup-5981@south>
   4629 
   4630 Hi Dag,
   4631 
   4632 Thanks for the patch! People have been clamoring for this functionality
   4633 forever and I have been cruelly not doing it for them.
   4634 
   4635 A few minor comments:
   4636 
   4637 Reformatted excerpts from Dag Odenhall's message of 2008-04-25:
   4638 > +    confcolor = $config[:colors][sym.to_s[0..-7].to_sym] rescue nil
   4639 > +    fg = Curses.const_get "COLOR_#{confcolor[:fg].upcase}" rescue fg
   4640 > +    bg = Curses.const_get "COLOR_#{confcolor[:bg].upcase}" rescue bg
   4641 > +    attrs = confcolor[:attrs].map {|a| Curses.const_get "A_#{a.upcase}" } rescue attrs
   4642 
   4643 1. Can you wrap all this in an if statement, rather than having sequence of
   4644    post-fix rescue stuff? You could do something like "if(confcolor
   4645    = $config[...)" and set fg and bg within that.
   4646 
   4647 2. Errors in the color names will be silently ignored. The
   4648    NameError exception should be caught and turned into a
   4649    BufferManager.flash and a Redwood::log to inform the user.
   4650 
   4651 3. Since I feel like people will write a lot of these descriptions, I
   4652    would load in colors from a colors.yaml file instead of from the
   4653    config file. (I can do this one instead if you're unsure.)
   4654 
   4655 -- 
   4656 William <wmorgan-sup at masanjin.net>
   4657 
   4658 From dag.odenhall@gmail.com  Mon Apr 28 19:01:41 2008
   4659 From: dag.odenhall@gmail.com (Dag Odenhall)
   4660 Date: Tue, 29 Apr 2008 01:01:41 +0200
   4661 Subject: [sup-talk] [PATCH] use any custom colors configured in
   4662 	config.yaml
   4663 In-Reply-To: <1209421539-sup-5981@south>
   4664 References: <1209150616-sup-8211@psilocybic> <1209421539-sup-5981@south>
   4665 Message-ID: <1209422677-sup-2455@psilocybic>
   4666 
   4667 Excerpts from William Morgan's message of Tue Apr 29 00:28:29 +0200 2008:
   4668 > Hi Dag,
   4669 > 
   4670 > Thanks for the patch! People have been clamoring for this functionality
   4671 > forever and I have been cruelly not doing it for them.
   4672 
   4673 Well thanks for the thanks! :)
   4674 
   4675 > 
   4676 > A few minor comments:
   4677 > 
   4678 > Reformatted excerpts from Dag Odenhall's message of 2008-04-25:
   4679 > > +    confcolor = $config[:colors][sym.to_s[0..-7].to_sym] rescue nil
   4680 > > +    fg = Curses.const_get "COLOR_#{confcolor[:fg].upcase}" rescue fg
   4681 > > +    bg = Curses.const_get "COLOR_#{confcolor[:bg].upcase}" rescue bg
   4682 > > +    attrs = confcolor[:attrs].map {|a| Curses.const_get "A_#{a.upcase}" } rescue attrs
   4683 > 
   4684 > 1. Can you wrap all this in an if statement, rather than having sequence of
   4685 >    post-fix rescue stuff? You could do something like "if(confcolor
   4686 >    = $config[...)" and set fg and bg within that.
   4687 > 
   4688 > 2. Errors in the color names will be silently ignored. The
   4689 >    NameError exception should be caught and turned into a
   4690 >    BufferManager.flash and a Redwood::log to inform the user.
   4691 
   4692 I'll give it a try.
   4693 
   4694 > 3. Since I feel like people will write a lot of these descriptions, I
   4695 >    would load in colors from a colors.yaml file instead of from the
   4696 >    config file. (I can do this one instead if you're unsure.)
   4697 
   4698 I could give this a try too, then again you are probably better at
   4699 getting it the way you envision it... I guess we'll see. :)
   4700 
   4701 From bdwalton@gmail.com  Tue Apr 29 09:47:48 2008
   4702 From: bdwalton@gmail.com (Ben Walton)
   4703 Date: Tue, 29 Apr 2008 09:47:48 -0400
   4704 Subject: [sup-talk] [PATCH] flexible sent source
   4705 Message-ID: <f96e0240804290647t97f84f1h934e8205bd814d3a@mail.gmail.com>
   4706 
   4707 Hi All,
   4708 
   4709 I spoke briefly with William yesterday about this, but didn't get a
   4710 chance to package it until just now...
   4711 
   4712 I've recently discovered sup and am looking to try it out to see if it
   4713 will work for my needs (or can be made to).  It seems to combine the
   4714 things I love about mutt and gmail into a great package (and ruby is a
   4715 plus too!).  Right off the bat, I wanted support for maildir or imap
   4716 storage of sent mail (I live in nfs land so I tend to have a natural
   4717 distaste for mbox).  I've implemented the basic functionality for this
   4718 although there is more room to work (the mbox version is implemented
   4719 in SentLoader as I didn't want to get into refactoring mbox code yet).
   4720 
   4721 Also, this is my first exposure to working with git, so I apologize if
   4722 the attached patch isn't up to snuff...Comments welcome, and I'll
   4723 certainly update the patch and resubmit.
   4724 
   4725 I hope you'll find this useful...It's working for me currently, but
   4726 there are likely some things that could be improved.
   4727 
   4728 Thanks
   4729 -Ben
   4730 -- 
   4731 ---------------------------------------------------------------------------------------------------------------------------
   4732 Ben Walton <bdwalton at gmail.com>
   4733 
   4734 When one person suffers from a delusion, it is called insanity. When
   4735 many people suffer from a delusion it is called Religion.
   4736 Robert M. Pirsig, Zen and the Art of Motorcycle Maintenance
   4737 
   4738 ---------------------------------------------------------------------------------------------------------------------------
   4739 -------------- next part --------------
   4740 A non-text attachment was scrubbed...
   4741 Name: 0001-flexible-sent-source.patch
   4742 Type: text/x-patch
   4743 Size: 10392 bytes
   4744 Desc: not available
   4745 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080429/7093195a/attachment-0001.bin>
   4746 
   4747 From wmorgan-sup@masanjin.net  Tue Apr 29 12:19:39 2008
   4748 From: wmorgan-sup@masanjin.net (William Morgan)
   4749 Date: Tue, 29 Apr 2008 09:19:39 -0700
   4750 Subject: [sup-talk] [PATCH] Config control over how From address is
   4751 	generated when replying.
   4752 In-Reply-To: <1209354047-sup-9578@cabinet>
   4753 References: <1209278945-sup-1601@south> <1209354047-sup-9578@cabinet>
   4754 Message-ID: <1209484583-sup-8823@south>
   4755 
   4756 Reformatted excerpts from Marc Hartstein's message of 2008-04-27:
   4757 > I can appreciate the desire not to have so many configuration settings
   4758 > that you have to read through a tome to find the one you want (and
   4759 > might simply never know that the one you want exists).
   4760 
   4761 There's that, and there's the fact that people want all sorts of crazy
   4762 things to happen with their email and I'd rather provide them a
   4763 programming language to describe their ideas than have to implement a
   4764 configuration option for each one.
   4765 
   4766 > I didn't see any straightforward way to do it using before-edit, as
   4767 > before-edit is only passed the header hash and the body.
   4768 
   4769 You're right. I was thinking before-edit passed in the message object.
   4770 
   4771 > I think I slightly prefer the change to before-edit approach, mostly
   4772 > because it allows for the forward and bounce cases if somebody wants
   4773 > to do some special handling there.  I'd definitely like some feedback,
   4774 > though, as I'm not quite happy with either idea.
   4775 
   4776 What about something that more specifically addresses the problem at
   4777 hand? E.g. a reply-from hook, that takes the message object, and returns
   4778 a Person object to be used as the from?
   4779 
   4780 Adding a hook is very low cost, so I'm not opposed to having fairly
   4781 specific things like this.
   4782 
   4783 > P.S. William, I noticed your recent round of posts to the list lacked
   4784 > In-Reply-To and References headers, so they didn't thread with the
   4785 > posts they were replying to.  Want to make sure you're aware of it.
   4786 
   4787 Yeah... I discovered on 4/27 that all my outgoing messages since 4/23
   4788 had been discarded. So I re-sent them with Sup's edit-as-new command,
   4789 which doesn't preserve Reply-To and References headers. It probably
   4790 should. Sorry!
   4791 
   4792 -- 
   4793 William <wmorgan-sup at masanjin.net>
   4794 
   4795 From wmorgan-sup@masanjin.net  Tue Apr 29 13:45:28 2008
   4796 From: wmorgan-sup@masanjin.net (William Morgan)
   4797 Date: Tue, 29 Apr 2008 10:45:28 -0700
   4798 Subject: [sup-talk] Gmail IMAP with sup
   4799 In-Reply-To: <C1A07365-2CDE-4C1A-9416-9B4C125610D4@gmail.com>
   4800 References: <6038aa2a0804151530uae50bbbxc6b8eed49906fcf8@mail.gmail.com>
   4801 	<1208309556-sup-3399@archie>
   4802 	<C1A07365-2CDE-4C1A-9416-9B4C125610D4@gmail.com>
   4803 Message-ID: <1209490287-sup-9950@south>
   4804 
   4805 Reformatted excerpts from Miles Pomeroy's message of 2008-04-28:
   4806 > > This is part of the sup philosophy.  It treats mail sources as dumb
   4807 > > stores, and doesn't try to change them.
   4808 > 
   4809 > If this is part of sup philosophy then I'm assuming that it's not
   4810 > going to change. Can someone explain to me why this is a good thing? I
   4811 > use multiple computers and would like to use multiple clients to check
   4812 > my email, but this philosophy seems to only allow for one computer,
   4813 > one client.
   4814 
   4815 That's a good question and it deserves explanation.
   4816 
   4817 There are two issues. The first is simply pragmatic. Sup is never going
   4818 to be able to compete with programs like Mutt in terms of operations
   4819 like "open up a mailstore of some format X, and mark a bunch of messages
   4820 as read, and move a bunch of messages to this other mailstore." That's a
   4821 tremendous amount of work to get right, get safe and get fast, and
   4822 Mutt's already done it well, and I sure don't want to have to
   4823 reimplement it.
   4824 
   4825 The other issue is more philosophical, and that's that I ultimately view
   4826 Sup as more of a service than as a MUA (even though it currently only
   4827 has itself as a client and has been masquerading as a MUA for its entire
   4828 life). I think the things that make Sup interesting and useful are the
   4829 indexing and the flags, and those are things that don't translate to
   4830 known mailstores at all. So in terms of multi-computer access, I would
   4831 rather invest time in building up a sup-server program (which has been
   4832 discussed here before, and I'm coming around to the idea, especially in
   4833 light of things like Thrift) or a sup webserver (which currently exists
   4834 in a proof-of-concept form) than to invest time in things that don't
   4835 play to Sup's strengths.
   4836 
   4837 That said, if someone handed me a bunch of patches that does write back
   4838 read/unread status to mailstores of whatever formats, I'd be more than
   4839 happy to incorporate them. I'm just personally not going to spend a lot
   4840 of development time on those features.
   4841 
   4842 -- 
   4843 William <wmorgan-sup at masanjin.net>
   4844 
   4845 From marcus-sup@bar-coded.net  Tue Apr 29 16:45:39 2008
   4846 From: marcus-sup@bar-coded.net (Marcus Williams)
   4847 Date: Tue, 29 Apr 2008 21:45:39 +0100
   4848 Subject: [sup-talk] [PATCH] Gmail style attachment processing
   4849 Message-ID: <1209501856-sup-1982@tomsk>
   4850 
   4851 This patch adds:
   4852 
   4853  * the search terms "filename" and "filetype"
   4854  * hidden/reserved attachment label to track attachments
   4855  * new flag on thread index mode to denote an attachment '@'
   4856  * a "has:attachment" search query.
   4857 
   4858 You can now search for something like "from:phil* filetype:pdf" for all
   4859 messages from a person called phil with a pdf attachment. You can also
   4860 specify a file name for the attachment with "filename:(this is a
   4861 filename with spaces.txt)". You can use wildcards in the filename
   4862 ("filename:test*.pdf"). You can search for all messages from someone
   4863 with attachments using "from:someone has:attachment"
   4864 
   4865 It will require sup-sync -all to work against all sources, but attempts
   4866 to be backwards compatable with non-synced sources.
   4867 ---
   4868  lib/sup/index.rb                   |   17 ++++++++++++++++-
   4869  lib/sup/label.rb                   |    6 +++---
   4870  lib/sup/message.rb                 |    8 +++++++-
   4871  lib/sup/modes/thread-index-mode.rb |    3 ++-
   4872  4 files changed, 28 insertions(+), 6 deletions(-)
   4873 
   4874 diff --git a/lib/sup/index.rb b/lib/sup/index.rb
   4875 index f1ede55..12385d3 100644
   4876 --- a/lib/sup/index.rb
   4877 +++ b/lib/sup/index.rb
   4878 @@ -147,6 +147,7 @@ EOS
   4879        field_infos.add_field :date, :index => :untokenized
   4880        field_infos.add_field :body
   4881        field_infos.add_field :label
   4882 +      field_infos.add_field :attachments
   4883        field_infos.add_field :subject
   4884        field_infos.add_field :from
   4885        field_infos.add_field :to
   4886 @@ -223,6 +224,7 @@ EOS
   4887        :body => (entry[:body] || m.indexable_content),
   4888        :snippet => snippet, # always override
   4889        :label => labels.uniq.join(" "),
   4890 +      :attachments => (entry[:attachments] || m.attachments.uniq.join(" ")),
   4891        :from => (entry[:from] || (m.from ? m.from.indexable_content : "")),
   4892        :to => (entry[:to] || (m.to + m.cc + m.bcc).map { |x| x.indexable_content }.join(" ")),
   4893        :subject => (entry[:subject] || wrap_subj(Message.normalize_subj(m.subj))),
   4894 @@ -465,7 +467,7 @@ protected
   4895      extraopts[:load_deleted] = true if subs =~ /\blabel:deleted\b/
   4896  
   4897      ## gmail style "is" operator
   4898 -    subs = subs.gsub(/\b(is):(\S+)\b/) do
   4899 +    subs = subs.gsub(/\b(is|has):(\S+)\b/) do
   4900        field, label = $1, $2
   4901        case label
   4902        when "read"
   4903 @@ -481,6 +483,19 @@ protected
   4904        end
   4905      end
   4906  
   4907 +    ## gmail style attachments "filename" and "filetype" searches
   4908 +    subs = subs.gsub(/\b(filename|filetype):(\((.+?)\)\B|(\S+)\b)/) do
   4909 +      field, name = $1, ($3 || $4)
   4910 +      case field
   4911 +      when "filename"
   4912 +        Redwood::log "filename - translated #{field}:#{name} to attachments:(#{name.downcase})"
   4913 +        "attachments:(#{name.downcase})"
   4914 +      when "filetype"
   4915 +        Redwood::log "filetype - translated #{field}:#{name} to attachments:(*.#{name.downcase})"
   4916 +        "attachments:(*.#{name.downcase})"
   4917 +      end
   4918 +    end
   4919 +
   4920      if $have_chronic
   4921        chronic_failure = false
   4922        subs = subs.gsub(/\b(before|on|in|during|after):(\((.+?)\)\B|(\S+)\b)/) do
   4923 diff --git a/lib/sup/label.rb b/lib/sup/label.rb
   4924 index 4afc0f9..716ef98 100644
   4925 --- a/lib/sup/label.rb
   4926 +++ b/lib/sup/label.rb
   4927 @@ -5,13 +5,13 @@ class LabelManager
   4928  
   4929    ## labels that have special semantics. user will be unable to
   4930    ## add/remove these via normal label mechanisms.
   4931 -  RESERVED_LABELS = [ :starred, :spam, :draft, :unread, :killed, :sent, :deleted, :inbox ]
   4932 +  RESERVED_LABELS = [ :starred, :spam, :draft, :unread, :killed, :sent, :deleted, :inbox, :attachment ]
   4933  
   4934    ## labels which it nonetheless makes sense to search for by
   4935 -  LISTABLE_RESERVED_LABELS = [ :starred, :spam, :draft, :sent, :killed, :deleted, :inbox ]
   4936 +  LISTABLE_RESERVED_LABELS = [ :starred, :spam, :draft, :sent, :killed, :deleted, :inbox, :attachment ]
   4937  
   4938    ## labels that will typically be hidden from the user
   4939 -  HIDDEN_RESERVED_LABELS = [ :starred, :unread ]
   4940 +  HIDDEN_RESERVED_LABELS = [ :starred, :unread, :attachment ]
   4941  
   4942    def initialize fn
   4943      @fn = fn
   4944 diff --git a/lib/sup/message.rb b/lib/sup/message.rb
   4945 index 249b6c6..5fc91de 100644
   4946 --- a/lib/sup/message.rb
   4947 +++ b/lib/sup/message.rb
   4948 @@ -37,7 +37,7 @@ class Message
   4949    DEFAULT_SENDER = "(missing sender)"
   4950  
   4951    attr_reader :id, :date, :from, :subj, :refs, :replytos, :to, :source,
   4952 -              :cc, :bcc, :labels, :list_address, :recipient_email, :replyto,
   4953 +              :cc, :bcc, :labels, :attachments, :list_address, :recipient_email, :replyto,
   4954                :source_info, :list_subscribe, :list_unsubscribe
   4955  
   4956    bool_reader :dirty, :source_marked_read, :snippet_contains_encrypted_content
   4957 @@ -54,6 +54,7 @@ class Message
   4958      @dirty = false
   4959      @encrypted = false
   4960      @chunks = nil
   4961 +    @attachments = []
   4962  
   4963      ## we need to initialize this. see comments in parse_header as to
   4964      ## why.
   4965 @@ -405,6 +406,11 @@ private
   4966  
   4967        ## if there's a filename, we'll treat it as an attachment.
   4968        if filename
   4969 +        # add this to the attachments list if its not a generated html
   4970 +        # attachment (should we allow images with generated names?).
   4971 +        # Lowercase the filename because searches are easier that way 
   4972 +        @attachments.push filename.downcase unless filename =~ /^sup-attachment-/
   4973 +        add_label :attachment unless filename =~ /^sup-attachment-/
   4974          [Chunk::Attachment.new(m.header.content_type, filename, m, sibling_types)]
   4975  
   4976        ## otherwise, it's body text
   4977 diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
   4978 index 7a0b815..598c1ea 100644
   4979 --- a/lib/sup/modes/thread-index-mode.rb
   4980 +++ b/lib/sup/modes/thread-index-mode.rb
   4981 @@ -713,7 +713,8 @@ protected
   4982        from +
   4983        [
   4984        [subj_color, size_widget_text],
   4985 -      [:to_me_color, dp ? " >" : (p ? ' +' : "  ")],
   4986 +      [:to_me_color, t.labels.member?(:attachment) ? "@" : " "],
   4987 +      [:to_me_color, dp ? ">" : (p ? '+' : " ")],
   4988        [subj_color, t.subj + (t.subj.empty? ? "" : " ")],
   4989      ] +
   4990        (t.labels - @hidden_labels).map { |label| [:label_color, "+#{label} "] } +
   4991 -- 
   4992 1.5.4.1
   4993 
   4994 From johnbent@lanl.gov  Tue Apr 29 17:02:03 2008
   4995 From: johnbent@lanl.gov (John Bent)
   4996 Date: Tue, 29 Apr 2008 15:02:03 -0600
   4997 Subject: [sup-talk] [PATCH] Gmail style attachment processing
   4998 In-Reply-To: <1209501856-sup-1982@tomsk>
   4999 References: <1209501856-sup-1982@tomsk>
   5000 Message-ID: <1209502678-sup-1941@tangerine.lanl.gov>
   5001 
   5002 Excerpts from Marcus Williams's message of Tue Apr 29 14:45:39 -0600 2008:
   5003 > This patch adds:
   5004 > 
   5005 >  * the search terms "filename" and "filetype"
   5006 >  * hidden/reserved attachment label to track attachments
   5007 >  * new flag on thread index mode to denote an attachment '@'
   5008 >  * a "has:attachment" search query.
   5009 
   5010 This is excellent.  Thanks very much!  I don't like doing the patches 
   5011 myself but I'm looking forward to this getting into next.
   5012 
   5013 From marcus-sup@bar-coded.net  Tue Apr 29 17:12:43 2008
   5014 From: marcus-sup@bar-coded.net (Marcus Williams)
   5015 Date: Tue, 29 Apr 2008 22:12:43 +0100
   5016 Subject: [sup-talk] [PATCH] Gmail style attachment processing
   5017 In-Reply-To: <1209502678-sup-1941@tangerine.lanl.gov>
   5018 References: <1209501856-sup-1982@tomsk>
   5019 	<1209502678-sup-1941@tangerine.lanl.gov>
   5020 Message-ID: <1209502890-sup-4022@tomsk>
   5021 
   5022 On 29.4.2008, John Bent wrote:
   5023 > This is excellent.  Thanks very much!  I don't like doing the patches 
   5024 > myself but I'm looking forward to this getting into next.
   5025 
   5026 :) I couldnt live without it in gmail so I had to have it in sup! I'd
   5027 like to have added the regexanalyser suggested by William so that I
   5028 could have a list of attachments on the message object just by
   5029 querying the index but this affected searching usability a bit (I get
   5030 a lot of attachments with spaces in and using the regexanalyser meant
   5031 that you couldnt search for single words from that attachment without
   5032 wildcards which didnt seem right). I may work on that a bit and add to
   5033 this patch but for now it works really well for my usage.
   5034 
   5035 Marcus
   5036 
   5037 From bdwalton@gmail.com  Tue Apr 29 20:07:23 2008
   5038 From: bdwalton@gmail.com (Ben Walton)
   5039 Date: Tue, 29 Apr 2008 20:07:23 -0400
   5040 Subject: [sup-talk] question about contacts
   5041 Message-ID: <f96e0240804291707l4570dbd4xb1000a37a7d52f3@mail.gmail.com>
   5042 
   5043 Hi All,
   5044 
   5045 I've been running sup all day (and importing old folders, etc).  So
   5046 far, I really like it although I've found a few bugs [I'll submit
   5047 patches or bug reports when I find the cause].  I have a question
   5048 about the display names used in threads.  Aside from overriding the
   5049 name/alias displayed with the contact manager, is there a way to tell
   5050 sup to just 'let it be' for certain messages?
   5051 
   5052 We use the RT ticketing system at work and that sees the From: header
   5053 be: "user at example.com via RT" <support at example.com>.  We have (many)
   5054 users that don't bother to include a .sig or sign emails, so this
   5055 identifier is sometimes the fastest way to determine the originator of
   5056 the mail...can I make sup leave the display name alone on a
   5057 mail-by-mail basis?
   5058 
   5059 Thanks
   5060 -Ben
   5061 -- 
   5062 ---------------------------------------------------------------------------------------------------------------------------
   5063 Ben Walton <bdwalton at gmail.com>
   5064 
   5065 When one person suffers from a delusion, it is called insanity. When
   5066 many people suffer from a delusion it is called Religion.
   5067 Robert M. Pirsig, Zen and the Art of Motorcycle Maintenance
   5068 
   5069 ---------------------------------------------------------------------------------------------------------------------------
   5070 
   5071 From kevinr@mit.edu  Wed Apr 30 07:41:06 2008
   5072 From: kevinr@mit.edu (Kevin Riggle)
   5073 Date: Wed, 30 Apr 2008 07:41:06 -0400
   5074 Subject: [sup-talk] Crash report: C-\ in inbox-mode raises an exception
   5075 Message-ID: <1209555404-sup-3139@black-opal>
   5076 
   5077 I accidentally hit <control>-\ in inbox-mode in Sup, immediately after
   5078 opening the application, which caused it to crash.  
   5079 ~/.sup/exception-log.txt contains:
   5080 
   5081 --- SignalException from thread: main
   5082 SIGQUIT
   5083 ./lib/sup/buffer.rb:31:in `select'
   5084 ./lib/sup/buffer.rb:31:in `nonblocking_getch'
   5085 bin/sup:227
   5086 
   5087 FYI.
   5088 
   5089 - Kevin
   5090 -- 
   5091 Kevin Riggle (kevinr at mit.edu) 
   5092 http://free-dissociation.com
   5093 
   5094 From kevinr@mit.edu  Wed Apr 30 08:14:25 2008
   5095 From: kevinr@mit.edu (Kevin Riggle)
   5096 Date: Wed, 30 Apr 2008 08:14:25 -0400
   5097 Subject: [sup-talk] skip_killed not getting set in default config
   5098 Message-ID: <1209555731-sup-8618@black-opal>
   5099 
   5100 Hi,
   5101 
   5102 I've just started using Sup, and I quite like it.  It's always wonderful
   5103 to discover that someone else has developed *exactly the software you
   5104 wanted*, and done such a bang-up job of it.  Thank you!
   5105 
   5106 I have, however, run into a few bugs.  At the moment, the most notable
   5107 one is that killed threads would show up in my inbox again, +killed
   5108 label and all, which sort of defeats the purpose of killing them.  I
   5109 poked around in the source and discovered the skip_killed option, which
   5110 inbox-mode seems to initialize to true.  When I added 
   5111 
   5112 :skip_killed: true
   5113 
   5114 to the end of my ~/.sup/config.yaml, which had previously been exactly
   5115 as sup-config created it, the killed threads no longer showed up in my
   5116 inbox.  I'm not sure if this means that skip_killed needs to be added to
   5117 the default config in lib/sup.rb, or if the initialize method on
   5118 inbox-mode isn't getting called, or if skip_killed is getting set to
   5119 false elsewhere in the code, or something else, but any way it should 
   5120 Just Work for new users, and it's not right now.
   5121 
   5122 (I'm running Sup out of git, for reference -- commit
   5123 5b9eddb8a949c1a712d53ec8fe163de2848d5ac9.)
   5124 
   5125 - Kevin
   5126 -- 
   5127 Kevin Riggle (kevinr at mit.edu) 
   5128 http://free-dissociation.com
   5129 
   5130 From bdwalton@gmail.com  Wed Apr 30 14:50:52 2008
   5131 From: bdwalton@gmail.com (Ben Walton)
   5132 Date: Wed, 30 Apr 2008 14:50:52 -0400
   5133 Subject: [sup-talk] [PATCH] maildir speedups
   5134 Message-ID: <f96e0240804301150w5e07823cuf3b16fc7dffa759e@mail.gmail.com>
   5135 
   5136 Hi All,
   5137 
   5138 The attached small patch improves maildir performance by making the
   5139 assumption that nothing will be modifying the underlying files
   5140 themselves.  It uses the mtimes of cur/ and new/ to mark whether or
   5141 not to poll files in the directory.  This sees the initial poll be a
   5142 somewhat slow process (nfs for me again), but subsequent polls are
   5143 much faster.  I'm caching the mtimes in sources.yaml too, but
   5144 currently this doesn't save anything across loads of sup since the
   5145 id's (and id -> fn map) are not cached across restarts.
   5146 
   5147 I hope you find this useful.
   5148 -Ben
   5149 -- 
   5150 ---------------------------------------------------------------------------------------------------------------------------
   5151 Ben Walton <bdwalton at gmail.com>
   5152 
   5153 When one person suffers from a delusion, it is called insanity. When
   5154 many people suffer from a delusion it is called Religion.
   5155 Robert M. Pirsig, Zen and the Art of Motorcycle Maintenance
   5156 
   5157 ---------------------------------------------------------------------------------------------------------------------------
   5158 -------------- next part --------------
   5159 A non-text attachment was scrubbed...
   5160 Name: 0002-maildir-speed-improvements.patch
   5161 Type: text/x-patch
   5162 Size: 4256 bytes
   5163 Desc: not available
   5164 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080430/1ba57542/attachment-0001.bin>
   5165 
   5166 From tyberius_prime@coonabibba.de  Wed Apr 30 10:12:48 2008
   5167 From: tyberius_prime@coonabibba.de (Tyberius Prime)
   5168 Date: Wed, 30 Apr 2008 16:12:48 +0200
   5169 Subject: [sup-talk] question about contacts
   5170 In-Reply-To: <f96e0240804291707l4570dbd4xb1000a37a7d52f3@mail.gmail.com>
   5171 References: <f96e0240804291707l4570dbd4xb1000a37a7d52f3@mail.gmail.com>
   5172 Message-ID: <1209564726-sup-7788@h984274.serverkompetenz.net>
   5173 
   5174 Excerpts from Ben Walton's message of Wed Apr 30 02:07:23 +0200 2008:
   5175 > Hi All,
   5176 > 
   5177 [snip]
   5178 > 
   5179 > We use the RT ticketing system at work and that sees the From: header
   5180 > be: "user at example.com via RT" <support at example.com>.  We have (many)
   5181 > users that don't bother to include a .sig or sign emails, so this
   5182 > identifier is sometimes the fastest way to determine the originator of
   5183 > the mail...can I make sup leave the display name alone on a
   5184 > mail-by-mail basis?
   5185 > 
   5186 > Thanks
   5187 > -Ben
   5188 
   5189 i,
   5190 
   5191 I would also be in favour of this feature (using rss2email, same problem,
   5192 and of course the names imported from my 50k of emails are just weird...
   5193 One of my own addresses shows up as
   5194 "_Anna3 (by way of Tyberius Prime <tyberius_prime at ...> <... at mail.com>"!
   5195 
   5196 But I'm also interested behind the rationale to "unify" sender names like
   5197 that (maybe there's a good reason that the both of us are missing)!
   5198 
   5199 So long,
   5200 Tyberius Prime
   5201 
   5202 From wmorgan-sup@masanjin.net  Wed Apr 30 21:04:38 2008
   5203 From: wmorgan-sup@masanjin.net (William Morgan)
   5204 Date: Wed, 30 Apr 2008 18:04:38 -0700
   5205 Subject: [sup-talk] [PATCH] reload label list on focus
   5206 In-Reply-To: <1207086451-sup-7738@spooky.local>
   5207 References: <1207082674-sup-4879@spooky.local>
   5208 	<1207086451-sup-7738@spooky.local>
   5209 Message-ID: <1209603839-sup-8137@south>
   5210 
   5211 Reformatted excerpts from Grant Hollingworth's message of 2008-04-01:
   5212 > This ensures the unread count for each label is correct.
   5213 > 
   5214 > I often read my list mail from the label list. When I close the thread
   5215 > index and go back to the label list the unread message count is wrong.
   5216 > This bugs me.
   5217 > 
   5218 > I'm sure a less brutal way of doing this is possible with the
   5219 > UpdateManager but that seems complicated and therefore prone to
   5220 > errors.
   5221 
   5222 It's probably not ideal but we do the same thing elsewhere because it's
   5223 simple.
   5224 
   5225 Applied directly to master. Thanks!
   5226 
   5227 -- 
   5228 William <wmorgan-sup at masanjin.net>
   5229 
   5230 From wmorgan-sup@masanjin.net  Wed Apr 30 21:13:02 2008
   5231 From: wmorgan-sup@masanjin.net (William Morgan)
   5232 Date: Wed, 30 Apr 2008 18:13:02 -0700
   5233 Subject: [sup-talk] [PATCH] Add tab-completion to multi add labels (;l)
   5234 In-Reply-To: <1207338707-2047-1-git-send-email-marc.hartstein@alum.vassar.edu>
   5235 References: <1207338707-2047-1-git-send-email-marc.hartstein@alum.vassar.edu>
   5236 Message-ID: <1209604364-sup-4875@south>
   5237 
   5238 Applied directly to master. Thanks!
   5239 
   5240 -- 
   5241 William <wmorgan-sup at masanjin.net>
   5242 
   5243 From wmorgan-sup@masanjin.net  Wed Apr 30 21:27:02 2008
   5244 From: wmorgan-sup@masanjin.net (William Morgan)
   5245 Date: Wed, 30 Apr 2008 18:27:02 -0700
   5246 Subject: [sup-talk] [PATCH] Simple hook that runs when thread is marked
   5247 	as spam
   5248 In-Reply-To: <1207823457-sup-5040@tomsk>
   5249 References: <1207823457-sup-5040@tomsk>
   5250 Message-ID: <1209605211-sup-6953@south>
   5251 
   5252 Reformatted excerpts from Marcus Williams's message of 2008-04-10:
   5253 > This hook adds the ability to configure further actions that take place
   5254 > when a user marks a thread as spam in sup.
   5255 
   5256 Merged into next. Thanks!
   5257 
   5258 -- 
   5259 William <wmorgan-sup at masanjin.net>
   5260