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/2007-11.txt (276607B) - raw

      1 From manish@gslab.com  Thu Nov  1 00:59:59 2007
      2 From: manish@gslab.com (Manish Sapariya)
      3 Date: Thu, 01 Nov 2007 10:29:59 +0530
      4 Subject: [sup-talk] exception while syncing
      5 Message-ID: <47295D4F.9020101@gslab.com>
      6 
      7 Hi All,
      8 Is this known issue? If yes, can anyone suggest workaroud, if no
      9 where can log bug for this issue? Please let me know if you need
     10 more info in any case.
     11 
     12 I saw following warnings before the crash.
     13 [Thu Nov 01 10:11:12 +0530 2007] warning: error decoding message body
     14 from "us-ascii": "\222t waste time. C"...
     15 [Thu Nov 01 10:11:12 +0530 2007] ignoring erroneous message at
     16 mbox:/data/personel/mails/ImapMail/INBOX#25586133: no message-id field
     17 in header {} (source mbox:/data/personel/mails/ImapMail/INBOX offset
     18 25586133)
     19 [Thu Nov 01 10:11:56 +0530 2007] warning: error decoding message body
     20 from "iso-8859-8-i": invalid encoding ("UTF-8", ""iso-8859-8-i"")
     21 [Thu Nov 01 10:12:01 +0530 2007] warning: error decoding message body
     22 from "us-ascii": "\222ll save up to 5"...
     23 ## 2344 (32.39%) read; 0:01:00 elapsed; 0:02:05 remaining
     24 [Thu Nov 01 10:12:08 +0530 2007] warning: error decoding message body
     25 from "ks_c_5601-1987": invalid encoding ("UTF-8", ""ks_c_5601-1987"")
     26 
     27 
     28 /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/multipart.rb:159:in
     29 `[]=': can't modify frozen string (TypeError)
     30         from
     31 /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/multipart.rb:159:in
     32 `read_chunk_low'
     33         from
     34 /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/multipart.rb:94:in
     35 `loop'
     36         from
     37 /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/multipart.rb:94:in
     38 `read_chunk_low'
     39         from
     40 /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/multipart.rb:76:in
     41 `read_chunk'
     42         from
     43 /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/pushbackreader.rb:85:in 
     44 
     45 `read'
     46         from
     47 /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser.rb:285:in
     48 `parse_singlepart_body'
     49         from
     50 /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser.rb:198:in
     51 `parse_low'
     52         from
     53 /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser.rb:275:in
     54 `parse_multipart_body'
     55          ... 26 levels...
     56         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/bin/sup-sync:128:in `each'
     57         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/bin/sup-sync:128
     58         from /usr/bin/sup-sync:16:in `load'
     59         from /usr/bin/sup-sync:16
     60 
     61 Regards,
     62 Manish
     63 
     64 
     65 From col@baibell.org  Thu Nov  1 01:33:26 2007
     66 From: col@baibell.org (Colin Bell)
     67 Date: Thu, 01 Nov 2007 16:33:26 +1100
     68 Subject: [sup-talk] exception while syncing
     69 In-Reply-To: <47295D4F.9020101@gslab.com>
     70 References: <47295D4F.9020101@gslab.com>
     71 Message-ID: <1193894943-sup-9567@lankhmar>
     72 
     73 Excerpts from Manish Sapariya's message of Thu Nov 01 15:59:59 +1100 2007:
     74 > Hi All,
     75 > Is this known issue? If yes, can anyone suggest workaroud, if no
     76 > where can log bug for this issue? Please let me know if you need
     77 > more info in any case.
     78 /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/multipart.rb:159:in
     79 > `[]=': can't modify frozen string (TypeError)
     80 >         from
     81 
     82 Probably this problem from the FAQ
     83 http://sup.rubyforge.org/FAQ.txt
     84 
     85 P: I get some error message from Rubymail about frozen strings when
     86    importing messages with attachments.
     87 S: The current solution is to directly modify RubyMail.
     88   Change line 159 of   multipart.rb to:
     89      chunk = chunk[0..start]
     90    This is because RubyMail hasn't been updated since like Ruby 1.8.2.
     91    Please bug Matt Lickey.
     92 
     93 From marcus-sup@quintic.co.uk  Thu Nov  1 05:02:57 2007
     94 From: marcus-sup@quintic.co.uk (Marcus Williams)
     95 Date: Thu, 01 Nov 2007 09:02:57 +0000
     96 Subject: [sup-talk] [PATCH] Check IMAP capabilities before using auth methods
     97 Message-ID: <1193907675-sup-9254@tomsk>
     98 
     99 Hi -
    100 
    101 Following patch speeds up IMAP logins if your server doesnt support
    102 CRAM-MD5 or the LOGIN auth methods by checking the advertised
    103 capabilities on the connection before trying to use them.
    104 
    105 Marcus
    106 -------------- next part --------------
    107 A non-text attachment was scrubbed...
    108 Name: imap-diffs
    109 Type: application/octet-stream
    110 Size: 986 bytes
    111 Desc: not available
    112 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071101/d9d0e2e4/attachment.obj 
    113 
    114 From marcus-sup@quintic.co.uk  Thu Nov  1 05:10:26 2007
    115 From: marcus-sup@quintic.co.uk (Marcus Williams)
    116 Date: Thu, 01 Nov 2007 09:10:26 +0000
    117 Subject: [sup-talk] Seen flag treated incorrectly on IMAP mail
    118 In-Reply-To: <2d4a3f900012fe89@IMSS-WIN>
    119 References: <2d4a3f900012fe89@IMSS-WIN>
    120 Message-ID: <47299802.50007@quintic.co.uk>
    121 
    122 On 31/10/2007 Colin Bell wrote:
    123 > I think its caused by this code in each(...) in imap.rb
    124 > 
    125 >  labels = { :Seen => :unread,
    126 >             :Flagged => :starred,
    127 >             :Deleted => :deleted
    128 >           }.inject(@labels) do |cur, (imap, sup)|
    129 >     cur + (state[:flags].include?(imap) ? [sup] : [])
    130 > 
    131 > This seems (to my non-existent Ruby skills) to be equating the IMAP
    132 > Seen flag to be the same as the Sup Unread flag, instead of Seen as
    133 > being Not Unread.
    134 
    135 Yep, I submitted a patch earlier last month (search for imap patch) to 
    136 fix this although what it did was use the /Recent flag to check for 
    137 unread messages. This works as long as you dont use the IMAP source in 
    138 any other client before sup checks for new messages.
    139 
    140 In reality what it should be checking for is the lack of the /Seen flag. 
    141 That requires a patch to the sources generally so they can work out if 
    142 they've been read or not (included in my patch). I've also got some 
    143 further tweaks to the patch locally that I'll submit once I've tested 
    144 them a bit more.
    145 
    146 Marcus
    147 
    148 
    149 From manish@gslab.com  Thu Nov  1 08:48:54 2007
    150 From: manish@gslab.com (Manish Sapariya)
    151 Date: Thu, 01 Nov 2007 18:18:54 +0530
    152 Subject: [sup-talk] one more exception,
    153 Message-ID: <4729CB36.3050408@gslab.com>
    154 
    155 Hi,
    156 Sorry for posting each and every exception, but I am not been able
    157 to use sup since yesterday, because of one or the other reason.
    158 Any help will be appreciated.
    159 Thanks,
    160 Manish
    161 
    162 The problem was: 'can't convert nil into String' (error type TypeError)
    163 A backtrace follows:
    164 /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:323:in 
    165 `initialize': can't convert nil into String (TypeError)
    166         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:323:in 
    167 `new'
    168         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:323:in 
    169 `load_entry_for_id'
    170         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:395:in 
    171 `send'
    172         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:395:in 
    173 `method_missing'
    174         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/poll.rb:149:in 
    175 `add_messages_from'
    176         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/source.rb:93:in 
    177 `each'
    178         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:431:in 
    179 `send'
    180         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:431:in 
    181 `__pass'
    182          ... 28 levels...
    183         from 
    184 /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/modes/thread-index-mode.rb:422:in 
    185 `load_threads'
    186         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/bin/sup:188
    187         from /usr/bin/sup:16:in `load'
    188         from /usr/bin/sup:16
    189 
    190 
    191 From grant@antiflux.org  Thu Nov  1 13:06:47 2007
    192 From: grant@antiflux.org (Grant Hollingworth)
    193 Date: Thu, 01 Nov 2007 13:06:47 -0400
    194 Subject: [sup-talk] [PATCH] Check IMAP capabilities before using auth
    195 	methods
    196 In-Reply-To: <1193907675-sup-9254@tomsk>
    197 References: <1193907675-sup-9254@tomsk>
    198 Message-ID: <1193936725-sup-5565@spooky.local>
    199 
    200 Excerpts from Marcus Williams's message of Thu Nov 01 05:02:57 -0400 2007:
    201 > Following patch speeds up IMAP logins if your server doesnt support
    202 > CRAM-MD5 or the LOGIN auth methods by checking the advertised
    203 > capabilities on the connection before trying to use them.
    204 
    205 Much better!
    206 
    207 Are there any plans to have IMAP sources with a common server share a connection?
    208 
    209 From stubbsd@zetani.com  Thu Nov  1 17:07:20 2007
    210 From: stubbsd@zetani.com (=?utf-8?B?RGF2aWQgU3R1YmJz?=)
    211 Date: Thu, 1 Nov 2007 21:07:20 +0000
    212 Subject: [sup-talk] one more exception,
    213 In-Reply-To: <4729CB36.3050408@gslab.com>
    214 References: <4729CB36.3050408@gslab.com>
    215 Message-ID: <1347250505-1193951242-cardhu_decombobulator_blackberry.rim.net-134551103-@bxe008.bisx.produk.on.blackberry>
    216 
    217 Q
    218 -----Original Message-----
    219 From: Manish Sapariya <manish at gslab.com>
    220 
    221 Date: Thu, 01 Nov 2007 18:18:54 
    222 To:sup-talk at rubyforge.org
    223 Subject: [sup-talk] one more exception,
    224 
    225 
    226 Hi,
    227 Sorry for posting each and every exception, but I am not been able
    228 to use sup since yesterday, because of one or the other reason.
    229 Any help will be appreciated.
    230 Thanks,
    231 Manish
    232 
    233 The problem was: 'can't convert nil into String' (error type TypeError)
    234 A backtrace follows:
    235 /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:323:in
    236 `initialize': can't convert nil into String (TypeError)
    237         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:323:in
    238 `new'
    239         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:323:in
    240 `load_entry_for_id'
    241         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:395:in
    242 `send'
    243         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:395:in
    244 `method_missing'
    245         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/poll.rb:149:in
    246 `add_messages_from'
    247         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/source.rb:93:in
    248 `each'
    249         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:431:in
    250 `send'
    251         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:431:in
    252 `__pass'
    253          ... 28 levels...
    254         from
    255 /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/modes/thread-index-mode.rb:422:in
    256 `load_threads'
    257         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/bin/sup:188
    258         from /usr/bin/sup:16:in `load'
    259         from /usr/bin/sup:16
    260 
    261 _______________________________________________
    262 sup-talk mailing list
    263 sup-talk at rubyforge.org
    264 http://rubyforge.org/mailman/listinfo/sup-talk
    265 
    266 From col@baibell.org  Thu Nov  1 18:09:00 2007
    267 From: col@baibell.org (Colin Bell)
    268 Date: Fri, 02 Nov 2007 09:09:00 +1100
    269 Subject: [sup-talk] Seen flag treated incorrectly on IMAP mail
    270 In-Reply-To: <47299802.50007@quintic.co.uk>
    271 References: <2d4a3f900012fe89@IMSS-WIN> <47299802.50007@quintic.co.uk>
    272 Message-ID: <1193954846-sup-9117@lankhmar>
    273 
    274 Excerpts from Marcus Williams's message of Thu Nov 01 20:10:26 +1100 2007:
    275 >
    276 > Yep, I submitted a patch earlier last month (search for imap patch) to
    277 > fix this although what it did was use the /Recent flag to check for
    278 > unread messages. This works as long as you dont use the IMAP source in
    279 > any other client before sup checks for new messages.
    280 
    281 Got it. Thanks for the patch.
    282 
    283 From itaylor@uark.edu  Thu Nov  1 20:14:55 2007
    284 From: itaylor@uark.edu (Ian Taylor)
    285 Date: Thu, 01 Nov 2007 20:14:55 -0400
    286 Subject: [sup-talk] [PATCH] Fix for imap based sources
    287 In-Reply-To: <47206F23.6080400@quintic.co.uk>
    288 References: <47206F23.6080400@quintic.co.uk>
    289 Message-ID: <1193962132-sup-5058@silver>
    290 
    291 Excerpts from Marcus Williams's message of Thu Oct 25 06:25:39 -0400 2007:
    292 > Hi -
    293 > 
    294 > Apply this one at your peril. This patch makes the unread status
    295 > correct on sources that arent mbox - unfortunately I cant test on
    296 > Maildir so if someone wants to confirm it still works that would be
    297 > good :)
    298 > 
    299 > If you implement a new source, it means you now have to add a
    300 > marked_read? method to your source as well. Argument is a message id.
    301 > message.rb now calls this when source_marked_read is called.
    302 > 
    303 > It also fixes what I think is a bug in the imap sup source - the imap
    304 > "/Seen" flag means a message has been read from the way I interpret the
    305 > RFC, the "/Recent" flag is what you need to check for "unreadness".
    306 > 
    307 > This fixes my problem with imap (in that all new messages were getting
    308 > marked as read). To get just this fix all you have to do is replace Seen
    309 > for Recent in the imap.rb. The line currently looks like:
    310 > 
    311 > labels = { :Seen => :unread,
    312 > 
    313 > and it should be
    314 > 
    315 > labels = { :Recent => :unread,
    316 > 
    317 > 
    318 > 
    319 > Marcus
    320 
    321 That doesn't seem quite right to me. The RFC seems to state that the
    322 'Recent' flag is more of a notification that this is the first session
    323 to see the message.
    324 
    325 What about this instead?
    326 
    327       labels = { :Flagged => :starred,                                                                                                                                                                              
    328                  :Deleted => :deleted                                                                                                                                                                               
    329                }.inject(@labels) do |cur, (imap, sup)|                                                                                                                                                              
    330         cur + (state[:flags].include?(imap) ? [sup] : [])                                                                                                                                                           
    331       end
    332       labels += [:unread] unless state[:flags].include?(:Seen)
    333 
    334 Seems like we want to tag it as unread if it isn't marked as 'Seen'.
    335 
    336 -- 
    337 Ian Taylor
    338 
    339 From col@baibell.org  Thu Nov  1 21:19:10 2007
    340 From: col@baibell.org (Colin Bell)
    341 Date: Fri, 02 Nov 2007 12:19:10 +1100
    342 Subject: [sup-talk] [PATCH] Fix for imap based sources
    343 In-Reply-To: <1193962132-sup-5058@silver>
    344 References: <47206F23.6080400@quintic.co.uk> <1193962132-sup-5058@silver>
    345 Message-ID: <1193966225-sup-1066@lankhmar>
    346 
    347 Excerpts from Ian Taylor's message of Fri Nov 02 11:14:55 +1100 2007:
    348 >
    349 > That doesn't seem quite right to me. The RFC seems to state that the
    350 > 'Recent' flag is more of a notification that this is the first session
    351 > to see the message.
    352 >
    353 > What about this instead?
    354 >
    355 >       labels = { :Flagged => :starred,
    356 >                  :Deleted => :deleted
    357 >                }.inject(@labels) do |cur, (imap, sup)|
    358 >         cur + (state[:flags].include?(imap) ? [sup] : [])
    359 >       end
    360 >       labels += [:unread] unless state[:flags].include?(:Seen)
    361 >
    362 > Seems like we want to tag it as unread if it isn't marked as 'Seen'.
    363 
    364 Works for me. Thanks
    365 
    366 From wmorgan-sup@masanjin.net  Thu Nov  1 21:33:44 2007
    367 From: wmorgan-sup@masanjin.net (William Morgan)
    368 Date: Thu, 01 Nov 2007 18:33:44 -0700
    369 Subject: [sup-talk] Want utf-8 ?
    370 In-Reply-To: <6205b42d0710090621k580b1f0g2ac2633530668553@mail.gmail.com>
    371 References: <6205b42d0710090621k580b1f0g2ac2633530668553@mail.gmail.com>
    372 Message-ID: <1193967168-sup-7761@south>
    373 
    374 Pierre,
    375 
    376 Excerpts from Pierre Baillet's message of Tue Oct 09 06:21:17 -0700 2007:
    377 > I quickly hacked utf-8 support in sup. My first modification aimed at
    378 > allowing Unicode alias in the contact manager.
    379 
    380 Thanks for doing this! I can't wait to try it out.
    381 
    382 -- 
    383 William <wmorgan-sup at masanjin.net>
    384 
    385 From wmorgan-sup@masanjin.net  Thu Nov  1 22:18:19 2007
    386 From: wmorgan-sup@masanjin.net (William Morgan)
    387 Date: Thu, 01 Nov 2007 19:18:19 -0700
    388 Subject: [sup-talk] patch with keymaps for editing message headers
    389 In-Reply-To: <1192119420-sup-7831@timmy>
    390 References: <1192119420-sup-7831@timmy>
    391 Message-ID: <1193969885-sup-7804@south>
    392 
    393 Excerpts from Eyal Oren's message of Thu Oct 11 09:19:17 -0700 2007:
    394 > Attached another small patch, adding keymaps to edit 'To:', 'Cc:', and
    395 > 'Subject:' field of messages. Again something small that I missed,
    396 > coming from Mutt. 
    397 
    398 Applied, thanks!
    399 
    400 -- 
    401 William <wmorgan-sup at masanjin.net>
    402 
    403 From wmorgan-sup@masanjin.net  Thu Nov  1 22:24:46 2007
    404 From: wmorgan-sup@masanjin.net (William Morgan)
    405 Date: Thu, 01 Nov 2007 19:24:46 -0700
    406 Subject: [sup-talk] [PATCH] Toggle show only laebls with unread email
    407 In-Reply-To: <1192246072-sup-7445@lankhmar>
    408 References: <1192246072-sup-7445@lankhmar>
    409 Message-ID: <1193970277-sup-6391@south>
    410 
    411 Excerpts from Colin Bell's message of Fri Oct 12 20:29:50 -0700 2007:
    412 > This patch allows you to toggle between showing all labels and only
    413 > those with unread mail in label list mode by pressing the TAB key.
    414 
    415 Applied, thanks!
    416 
    417 -- 
    418 William <wmorgan-sup at masanjin.net>
    419 
    420 From wmorgan-sup@masanjin.net  Thu Nov  1 22:32:19 2007
    421 From: wmorgan-sup@masanjin.net (William Morgan)
    422 Date: Thu, 01 Nov 2007 19:32:19 -0700
    423 Subject: [sup-talk] Ferret Errors
    424 In-Reply-To: <1193693839-sup-8512@chris-tablet>
    425 References: <1193693839-sup-8512@chris-tablet>
    426 Message-ID: <1193970558-sup-3687@south>
    427 
    428 Excerpts from Christopher Warrington's message of Mon Oct 29 14:40:37 -0700 2007:
    429 > I'm getting odd ferret errors, usually when I am composing messages in
    430 > nano.
    431 > 
    432 > I suspect that it has something to do with the fact that I am running
    433 > sup under cygwin on Windows...
    434 > 
    435 > Here's the exception:
    436 > --- IOError at Mon Oct 29 16:27:51 -0500 2007
    437 > IO Error occured at <except.c>:117 in xpop_context
    438 > Error occured in fs_store.c:70 - fs_exists
    439 >     checking existance of /home/chrisw/.sup/ferret/_g9c.cfs: <Permission denied>
    440 
    441 Yeah, the typical completely incomprehensible Ferret error message.
    442 Current known things that make Ferret generate scary messages:
    443 - running more than one process touching the index at the same time (Sup
    444   locks the index now so this shouldn't happen unless you are being
    445   particularly devious)
    446 - having too many open filehandles, including too many "usual" mbox
    447   sources at the moment until I fix the mbox code not to keep
    448   filehandles open all the time.
    449 - running out of disk space.
    450 
    451 Could it have been any of those?
    452 
    453 -- 
    454 William <wmorgan-sup at masanjin.net>
    455 
    456 From wmorgan-sup@masanjin.net  Thu Nov  1 22:35:15 2007
    457 From: wmorgan-sup@masanjin.net (William Morgan)
    458 Date: Thu, 01 Nov 2007 19:35:15 -0700
    459 Subject: [sup-talk] tiny fix for sup-faked message id's crashing sup-sync
    460 In-Reply-To: <fba9be1d0710291855x15e90fbbp6138a31dd48f0cc1@mail.gmail.com>
    461 References: <fba9be1d0710291855x15e90fbbp6138a31dd48f0cc1@mail.gmail.com>
    462 Message-ID: <1193970811-sup-9784@south>
    463 
    464 Excerpts from Brendan O'Connor's message of Mon Oct 29 18:55:59 -0700 2007:
    465 > After a tiny bugfix off SVN 650, I'm importing gmail imap!  Very
    466 > exciting!
    467 
    468 Great news.
    469 
    470 > I hate it when I add a puts or logging statement and it messes up
    471 > ruby's returning conventions, returning nil that clobbers something
    472 > elsewhere. Glad to see it happens to other people too :)
    473 
    474 Ruby is flawless. I am to blame. Applied, thanks!
    475 
    476 -- 
    477 William <wmorgan-sup at masanjin.net>
    478 
    479 From wmorgan-sup@masanjin.net  Thu Nov  1 22:36:02 2007
    480 From: wmorgan-sup@masanjin.net (William Morgan)
    481 Date: Thu, 01 Nov 2007 19:36:02 -0700
    482 Subject: [sup-talk] [PATCH] svn sup "can't convert nil into String"
    483 	(index.rb)
    484 In-Reply-To: <1193739855.10424.7.camel@onnadayr.ca>
    485 References: <1193739855.10424.7.camel@onnadayr.ca>
    486 Message-ID: <1193970918-sup-4226@south>
    487 
    488 Excerpts from rick.tessner's message of Tue Oct 30 03:24:15 -0700 2007:
    489 > I'm using svn sup and just recently started getting the following
    490 > error when getting new email without a proper message_id (patch is
    491 > attached):
    492 
    493 Gadzooks, two simultaneous patches from two different users for the same
    494 problem! Truly a milestone in Sup's development. Thanks!
    495 
    496 -- 
    497 William <wmorgan-sup at masanjin.net>
    498 
    499 From wmorgan-sup@masanjin.net  Thu Nov  1 23:02:44 2007
    500 From: wmorgan-sup@masanjin.net (William Morgan)
    501 Date: Thu, 01 Nov 2007 20:02:44 -0700
    502 Subject: [sup-talk] Google and IMAP
    503 In-Reply-To: <1193677196-sup-2982@londonbackup>
    504 References: <414a99f20710240051m4656b3b6sbd0057ba95dc68a6@mail.gmail.com>
    505 	<20071024084757.GO5471@horacrux> <1193677196-sup-2982@londonbackup>
    506 Message-ID: <1193971010-sup-3497@south>
    507 
    508 Excerpts from Tim Vaughan's message of Mon Oct 29 10:17:57 -0700 2007:
    509 > * Gmail seems to store messages sent with its SMTP server so when a
    510 > brand-new email is sent it appears in the inbox.  This is a bit
    511 > annoying but I don't think that you can make sup store its sent emails
    512 > in an IMAP folder.
    513 
    514 This is correct. I don't ever plan to write IMAP saving code, but I
    515 would accept a patch to this effect.
    516 
    517 > * Sometimes I load a largeish thread and find that a thread has a red
    518 > line with "message not downloaded" in it.
    519 
    520 If you mean a "message not received" line in Sup, that signifies that
    521 some message had a References: header that mentioned some message id
    522 that never occurred. So it could be symptomatic of someone replying to
    523 an off-list message, or it could be a corrupted References: header, or
    524 it could be a message that you just didn't receive for whatever reason.
    525 (Or that isn't stored in Gmail.)
    526 
    527 > * Feature request: saved searches!
    528 
    529 Acknowledged. On the todo.
    530 
    531 > * Is there a way to make sup reply from the address an email was sent
    532 > to (like Gmail does when it handles more than one account)?
    533 
    534 If you add an account to config.yaml with that email address, it should
    535 start replying from it as well. Unfortunately this is still a manual
    536 process at this point.
    537 
    538 > * Sup is great but having to rebuild the index every time I use
    539 > Gmail's web interface to send an email hurts :(.  Although I realise
    540 > that's just the Way Things Are.
    541 
    542 Sadly, yes...
    543 
    544 -- 
    545 William <wmorgan-sup at masanjin.net>
    546 
    547 From wmorgan-sup@masanjin.net  Thu Nov  1 23:54:43 2007
    548 From: wmorgan-sup@masanjin.net (William Morgan)
    549 Date: Thu, 01 Nov 2007 20:54:43 -0700
    550 Subject: [sup-talk] [PATCH] Configurable automatic CC and BCC
    551 In-Reply-To: <6205b42d0710310142r4c1a699co6776e3180a21e46c@mail.gmail.com>
    552 References: <6205b42d0710140517n1b006956tef57f60b101568e2@mail.gmail.com>
    553 	<6205b42d0710310142r4c1a699co6776e3180a21e46c@mail.gmail.com>
    554 Message-ID: <1193975643-sup-9164@south>
    555 
    556 Hi Pierre,
    557 
    558 Sorry for taking so long to review this. Other patch submitters, don't
    559 worry---I'm going through them one by one and nothing will be ignored!
    560 
    561 Excerpts from Pierre Baillet's message of Wed Oct 31 01:42:58 -0700 2007:
    562 > maybe you came accross my patch, but I don't know what you think about
    563 > integrating it to the trunk or not. Maybe it's not near enough in your
    564 > TODO, too :)
    565 
    566 I like this functionality. But, instead of another set of configuration
    567 options, I would rather see a before-edit hook, which would allow for
    568 auto-filling cc/bcc programmatically and for all sorts of other fun
    569 stuff. Would you be interested in submitting a patch for that instead?
    570 
    571 Marcus just submitted a before-add hook which you can probably use as a
    572 reference.
    573 
    574 What do you think?
    575 
    576 -- 
    577 William <wmorgan-sup at masanjin.net>
    578 
    579 From wmorgan-sup@masanjin.net  Fri Nov  2 00:02:38 2007
    580 From: wmorgan-sup@masanjin.net (William Morgan)
    581 Date: Thu, 01 Nov 2007 21:02:38 -0700
    582 Subject: [sup-talk] new user of sup
    583 In-Reply-To: <20071031180510.GA7449@lenin.sovietwar.org>
    584 References: <4728B67A.7020604@gslab.com>
    585 	<20071031180510.GA7449@lenin.sovietwar.org>
    586 Message-ID: <1193976129-sup-2591@south>
    587 
    588 Excerpts from vasudeva's message of Wed Oct 31 11:05:10 -0700 2007:
    589 > I had an issue like this, and found it to be related somehow to the
    590 > following lines being present in my ~/.sup/sources.yaml...
    591 > 
    592 > - !masanjin.net,2006-10-01/Redwood/SentLoader
    593 >   cur_offset: 29245
    594 > - !masanjin.net,2006-10-01/Redwood/DraftLoader
    595 >   cur_offset: 4
    596 > 
    597 > It seems if I snipped those out, then sup-add would actually add all
    598 > the sources I told it, not simply the final one.
    599 
    600 Interesting. I'm going to look into this.
    601 
    602 -- 
    603 William <wmorgan-sup at masanjin.net>
    604 
    605 From wmorgan-sup@masanjin.net  Fri Nov  2 00:10:20 2007
    606 From: wmorgan-sup@masanjin.net (William Morgan)
    607 Date: Thu, 01 Nov 2007 21:10:20 -0700
    608 Subject: [sup-talk] PATCH - Refine Search
    609 In-Reply-To: <1192430824-sup-1710@chris-tablet>
    610 References: <1192430824-sup-1710@chris-tablet>
    611 Message-ID: <1193976606-sup-197@south>
    612 
    613 Excerpts from Christopher Warrington's message of Sun Oct 14 23:49:55
    614 -0700 2007:
    615 > The attached patch (my first one: I may have screwed it up) adds the
    616 > ability to refine a search from the results view. Pressing '.' will
    617 > prompt for a new query, using the old one as the seed.
    618 
    619 Applied (in slightly modified form). Thanks!
    620 
    621 -- 
    622 William <wmorgan-sup at masanjin.net>
    623 
    624 From wmorgan-sup@masanjin.net  Fri Nov  2 00:12:25 2007
    625 From: wmorgan-sup@masanjin.net (William Morgan)
    626 Date: Thu, 01 Nov 2007 21:12:25 -0700
    627 Subject: [sup-talk] one more exception,
    628 In-Reply-To: <4729CB36.3050408@gslab.com>
    629 References: <4729CB36.3050408@gslab.com>
    630 Message-ID: <1193976706-sup-5069@south>
    631 
    632 Excerpts from Manish Sapariya's message of Thu Nov 01 05:48:54 -0700 2007:
    633 > The problem was: 'can't convert nil into String' (error type TypeError)
    634 
    635 This is fixed in SVN.
    636 
    637 -- 
    638 William <wmorgan-sup at masanjin.net>
    639 
    640 From marcus-sup@quintic.co.uk  Fri Nov  2 06:01:16 2007
    641 From: marcus-sup@quintic.co.uk (Marcus Williams)
    642 Date: Fri, 02 Nov 2007 10:01:16 +0000
    643 Subject: [sup-talk] tiny fix for sup-faked message id's crashing sup-sync
    644 In-Reply-To: <321bb12900151bd3@IMSS-WIN>
    645 References: <fba9be1d0710291855x15e90fbbp6138a31dd48f0cc1@mail.gmail.com>
    646 	<321bb12900151bd3@IMSS-WIN>
    647 Message-ID: <472AF56C.5070807@quintic.co.uk>
    648 
    649 On 02/11/2007 William Morgan wrote:
    650 > > I hate it when I add a puts or logging statement and it messes up
    651 > > > ruby's returning conventions, returning nil that clobbers something
    652 > > > elsewhere. Glad to see it happens to other people too :)
    653 > 
    654 > Ruby is flawless. I am to blame. Applied, thanks!
    655 
    656 ... you may want to remove the @id from the log message - wont this 
    657 always be nil at this point (as it gets assigned by this block)?
    658 
    659 Marcus
    660 
    661 From pierre@baillet.name  Fri Nov  2 07:21:30 2007
    662 From: pierre@baillet.name (Pierre Baillet)
    663 Date: Fri, 2 Nov 2007 12:21:30 +0100
    664 Subject: [sup-talk] [PATCH] Configurable automatic CC and BCC
    665 In-Reply-To: <1193975643-sup-9164@south>
    666 References: <6205b42d0710140517n1b006956tef57f60b101568e2@mail.gmail.com>
    667 	<6205b42d0710310142r4c1a699co6776e3180a21e46c@mail.gmail.com>
    668 	<1193975643-sup-9164@south>
    669 Message-ID: <6205b42d0711020421y6198e446s77bdab118666e20c@mail.gmail.com>
    670 
    671 Hi William and all :)
    672 
    673 I'll have a look into Marcus patch and see if I can use it to make the same
    674 functionality. Thanks for the idea !
    675 
    676 -- 
    677 Pierre.
    678 
    679 On 11/2/07, William Morgan <wmorgan-sup at masanjin.net> wrote:
    680 >
    681 > Hi Pierre,
    682 >
    683 > Sorry for taking so long to review this. Other patch submitters, don't
    684 > worry---I'm going through them one by one and nothing will be ignored!
    685 >
    686 > Excerpts from Pierre Baillet's message of Wed Oct 31 01:42:58 -0700 2007:
    687 > > maybe you came accross my patch, but I don't know what you think about
    688 > > integrating it to the trunk or not. Maybe it's not near enough in your
    689 > > TODO, too :)
    690 >
    691 > I like this functionality. But, instead of another set of configuration
    692 > options, I would rather see a before-edit hook, which would allow for
    693 > auto-filling cc/bcc programmatically and for all sorts of other fun
    694 > stuff. Would you be interested in submitting a patch for that instead?
    695 >
    696 > Marcus just submitted a before-add hook which you can probably use as a
    697 > reference.
    698 >
    699 > What do you think?
    700 >
    701 > --
    702 > William <wmorgan-sup at masanjin.net>
    703 > _______________________________________________
    704 > sup-talk mailing list
    705 > sup-talk at rubyforge.org
    706 > http://rubyforge.org/mailman/listinfo/sup-talk
    707 >
    708 
    709 
    710 
    711 -- 
    712 Pierre Baillet <pierre at baillet.name>
    713 -------------- next part --------------
    714 An HTML attachment was scrubbed...
    715 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071102/1b88c3c7/attachment.html 
    716 
    717 From marcus-sup@quintic.co.uk  Fri Nov  2 08:18:19 2007
    718 From: marcus-sup@quintic.co.uk (Marcus Williams)
    719 Date: Fri, 02 Nov 2007 12:18:19 +0000
    720 Subject: [sup-talk] [PATCH] More IMAP/Maildir functionality
    721 Message-ID: <1194005479-sup-2005@tomsk>
    722 
    723 Hi -
    724 
    725 This patch cleans up my last IMAP patch, and adds the
    726 each_raw_message_line method to both Maildir and IMAP so that you dont
    727 get an exception when you try to save a message to a file with an IMAP
    728 or maildir source. I cant test the Maildir version works easily, so if
    729 someone else could that would be good. If I get time I'll get around
    730 to testing the Maildir stuff, just not now as I dont use it :)
    731 
    732 This fixes the unread status problem to use the lack of /Seen properly
    733 and adds the marked_read? methods to all sources.
    734 
    735 Marcus
    736 -------------- next part --------------
    737 A non-text attachment was scrubbed...
    738 Name: source-diffs
    739 Type: application/octet-stream
    740 Size: 4527 bytes
    741 Desc: not available
    742 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071102/a3d8a87c/attachment-0001.obj 
    743 
    744 From marcus-sup@quintic.co.uk  Fri Nov  2 08:55:15 2007
    745 From: marcus-sup@quintic.co.uk (Marcus Williams)
    746 Date: Fri, 02 Nov 2007 12:55:15 +0000
    747 Subject: [sup-talk] patch with keymaps for editing message headers
    748 In-Reply-To: <320c39cf00151583@IMSS-WIN>
    749 References: <1192119420-sup-7831@timmy> <320c39cf00151583@IMSS-WIN>
    750 Message-ID: <472B1E33.7000207@quintic.co.uk>
    751 
    752 On 02/11/2007 William Morgan wrote:
    753 > Excerpts from Eyal Oren's message of Thu Oct 11 09:19:17 -0700 2007:
    754 > > > Attached another small patch, adding keymaps to edit 'To:', 'Cc:', and
    755 > > > 'Subject:' field of messages. Again something small that I missed,
    756 > > > coming from Mutt. 
    757 > 
    758 > Applied, thanks!
    759 
    760 This adds a method in edit-message-mode called "edit_field" with 1 
    761 argument. reply-mode has an edit_field method that overrides this if you 
    762 are replying so you get an exception as it gets called instead when you 
    763 try to edit the field in reply mode.
    764 
    765 It doesnt look like the reply mode edit_field method gets used anywhere 
    766 so this might need to be removed or the edit-message-mode method needs 
    767 renaming perhaps.
    768 
    769 Marcus
    770 
    771 From wmorgan-sup@masanjin.net  Fri Nov  2 11:17:58 2007
    772 From: wmorgan-sup@masanjin.net (William Morgan)
    773 Date: Fri, 02 Nov 2007 08:17:58 -0700
    774 Subject: [sup-talk] tiny fix for sup-faked message id's crashing sup-sync
    775 In-Reply-To: <472AF56C.5070807@quintic.co.uk>
    776 References: <fba9be1d0710291855x15e90fbbp6138a31dd48f0cc1@mail.gmail.com>
    777 	<321bb12900151bd3@IMSS-WIN> <472AF56C.5070807@quintic.co.uk>
    778 Message-ID: <1194016481-sup-2712@south>
    779 
    780 Excerpts from Marcus Williams's message of Fri Nov 02 03:01:16 -0700 2007:
    781 > ... you may want to remove the @id from the log message - wont this 
    782 > always be nil at this point (as it gets assigned by this block)?
    783 
    784 Good point. A chance to use my k combinator! Check this out:
    785 
    786   --- lib/sup/message.rb  (revision 658)
    787   +++ lib/sup/message.rb  (working copy)
    788   @@ -62,8 +62,9 @@
    789          if header["message-id"]
    790            sanitize_message_id header["message-id"]
    791          else
    792   -        Redwood::log "faking message-id for message from #@from: #@id"
    793   -        "sup-faked-" + Digest::MD5.hexdigest(raw_header)
    794   +        returning("sup-faked-" + Digest::MD5.hexdigest(raw_header)) do |id|
    795   +          Redwood::log "faking message-id for message from #@from: #{id}"
    796   +        end
    797          end
    798        
    799        date = header["date"]
    800 
    801 God I love this language.
    802 
    803 -- 
    804 William <wmorgan-sup at masanjin.net>
    805 
    806 From wmorgan-sup@masanjin.net  Fri Nov  2 11:23:48 2007
    807 From: wmorgan-sup@masanjin.net (William Morgan)
    808 Date: Fri, 02 Nov 2007 08:23:48 -0700
    809 Subject: [sup-talk] patch with keymaps for editing message headers
    810 In-Reply-To: <472B1E33.7000207@quintic.co.uk>
    811 References: <1192119420-sup-7831@timmy> <320c39cf00151583@IMSS-WIN>
    812 	<472B1E33.7000207@quintic.co.uk>
    813 Message-ID: <1194016851-sup-1240@south>
    814 
    815 Excerpts from Marcus Williams's message of Fri Nov 02 05:55:15 -0700 2007:
    816 > This adds a method in edit-message-mode called "edit_field" with 1
    817 > argument. reply-mode has an edit_field method that overrides this if
    818 > you are replying so you get an exception as it gets called instead
    819 > when you try to edit the field in reply mode.
    820 
    821 Good catch. I renamed the original EditMessageMode#edit_field method
    822 (which ReplyMode overrode) to edit_field_or_message, and forgot to check
    823 subclasses.
    824 
    825 Who needs unit tests when you have enough users pulling the SVN head?
    826 
    827 -- 
    828 William <wmorgan-sup at masanjin.net>
    829 
    830 From wmorgan-sup@masanjin.net  Fri Nov  2 15:07:37 2007
    831 From: wmorgan-sup@masanjin.net (William Morgan)
    832 Date: Fri, 02 Nov 2007 12:07:37 -0700
    833 Subject: [sup-talk] [PATCH] Added --search option to sup
    834 In-Reply-To: <47149A98.1040800@quintic.co.uk>
    835 References: <47149A98.1040800@quintic.co.uk>
    836 Message-ID: <1194030370-sup-1200@south>
    837 
    838 Excerpts from Marcus Williams's message of Tue Oct 16 04:03:52 -0700 2007:
    839 > Attached is a simple patch to sup to add a command line option to jump
    840 > straight into a search from the command line.
    841 
    842 Interesting idea! What's your usage case: that you do the search, maybe
    843 read some resulting messages, and then quit Sup? Or do you continue to
    844 use Sup as normal? I.e. should we bother to even load the inbox?
    845 
    846 -- 
    847 William <wmorgan-sup at masanjin.net>
    848 
    849 From manish@gslab.com  Sat Nov  3 06:39:21 2007
    850 From: manish@gslab.com (Manish Sapariya)
    851 Date: Sat, 03 Nov 2007 16:09:21 +0530
    852 Subject: [sup-talk] Can I redirect logs to file,
    853 	instead of using s command in sup console
    854 Message-ID: <472C4FD9.5060707@gslab.com>
    855 
    856 I want to see at the log files when sup crashes. I could not find
    857 any command line option and brief grepping in the sources did not
    858 gave any clue.
    859 
    860 Thanks and Regards,
    861 Manish
    862 
    863 
    864 From marcus-sup@bar-coded.net  Sat Nov  3 16:20:48 2007
    865 From: marcus-sup@bar-coded.net (Marcus Williams)
    866 Date: Sat, 03 Nov 2007 20:20:48 +0000
    867 Subject: [sup-talk] [PATCH] Added --search option to sup
    868 In-Reply-To: <<35a8c9eb0016c658@IMSS-WIN>>
    869 References: <47149A98.1040800@quintic.co.uk> <<35a8c9eb0016c658@IMSS-WIN>>
    870 Message-ID: <1194120151-sup-6999@tomsk>
    871 
    872 [resubscribing under a different address, not sure if this will thread
    873 properly]
    874 
    875 On 2.11.2007, William Morgan wrote:
    876 > Interesting idea! What's your usage case: that you do the search, maybe
    877 > read some resulting messages, and then quit Sup? Or do you continue to
    878 > use Sup as normal? I.e. should we bother to even load the inbox?
    879 
    880 I use my email for all sorts, but one thing I do often is use it as a
    881 todo list. So I have a set of current todos (labeled todo). Its good
    882 to be able to bring up sup, with the todos only. Sometimes I'll stay
    883 in sup, sometimes not. 
    884 
    885 Anyone who is into gtd could use this for contexts, my "todo" label
    886 is like a context. I can enter sup and deal with this and not get 
    887 distracted by other stuff.
    888 
    889 It also means I can alias "todo" in my shell to "sup --search
    890 'label:todo'" or something.
    891 
    892 In some cases I dont need the inbox at all like you say. I tried to 
    893 add a --no-inbox flag to sup, but I couldnt get it to work. I think
    894 the buffer sizes screwed up somehow when I stopped the inbox mode from
    895 spawning. I must have missed something.
    896 
    897 I spotted that the inbox is actually a search result whilst trawling
    898 the code so my idea is now that instead of a --no-inbox what you
    899 actually do is have another search argument --inbox that takes a
    900 search term This would set the search term for the inbox mode. That
    901 way you could go into sup and have your inbox mode permanently in
    902 whatever search term you entered.
    903 
    904 This would mean you could go in via --search and keep your inbox as
    905 normal. Or via --inbox and have a specialised inbox. 
    906 
    907 Marcus
    908 
    909 From wmorgan-sup@masanjin.net  Sat Nov  3 17:17:27 2007
    910 From: wmorgan-sup@masanjin.net (William Morgan)
    911 Date: Sat, 03 Nov 2007 14:17:27 -0700
    912 Subject: [sup-talk] [PATCH] Added --search option to sup
    913 In-Reply-To: <1194120151-sup-6999@tomsk>
    914 References: <47149A98.1040800@quintic.co.uk> <<35a8c9eb0016c658@IMSS-WIN>
    915 	<1194120151-sup-6999@tomsk>
    916 Message-ID: <1194124287-sup-468@south>
    917 
    918 Excerpts from Marcus Williams's message of Sat Nov 03 13:20:48 -0700 2007:
    919 > I use my email for all sorts, but one thing I do often is use it as a
    920 > todo list. So I have a set of current todos (labeled todo). Its good
    921 > to be able to bring up sup, with the todos only. Sometimes I'll stay
    922 > in sup, sometimes not. 
    923 
    924 Very nice. One of the items on the TODO for quite a while has been to
    925 add "notes" as a first-class object, which will be treated more or less
    926 as draft emails are now, except they'll have no from/to/cc/etc, only a
    927 body, and obviously can't be sent, just created, edited, and deleted.
    928 
    929 These can be used as general notes, as todo items, and can be "attached"
    930 to emails or other notes via the threading system. And of course the
    931 full-text search and labeling can be used as normal.
    932 
    933 Then all I have to do is add a web browser mode and a partial
    934 implementation of lisp and sup will be feature complete!
    935 
    936 > I spotted that the inbox is actually a search result whilst trawling
    937 > the code so my idea is now that instead of a --no-inbox what you
    938 > actually do is have another search argument --inbox that takes a
    939 > search term This would set the search term for the inbox mode. That
    940 > way you could go into sup and have your inbox mode permanently in
    941 > whatever search term you entered.
    942 
    943 The problem is that inbox-mode per se has some special functionality
    944 that doesn't quite make sense unless it's applied to the search with
    945 "label:inbox". We could force that to be prepended to any search phrase
    946 passed in from the command line, I suppose.
    947 
    948 For the time being, I'll apply the patch as is.
    949 
    950 -- 
    951 William <wmorgan-sup at masanjin.net>
    952 
    953 From marcus-sup@bar-coded.net  Sat Nov  3 17:35:55 2007
    954 From: marcus-sup@bar-coded.net (Marcus Williams)
    955 Date: Sat, 03 Nov 2007 21:35:55 +0000
    956 Subject: [sup-talk] [PATCH] Added --search option to sup
    957 In-Reply-To: <1194124287-sup-468@south>
    958 References: <47149A98.1040800@quintic.co.uk> <<35a8c9eb0016c658@IMSS-WIN>
    959 	<1194120151-sup-6999@tomsk> <1194124287-sup-468@south>
    960 Message-ID: <1194125144-sup-1843@tomsk>
    961 
    962 On 3.11.2007, William Morgan wrote:
    963 > Very nice. One of the items on the TODO for quite a while has been to
    964 > add "notes" as a first-class object, which will be treated more or less
    965 > as draft emails are now, except they'll have no from/to/cc/etc, only a
    966 > body, and obviously can't be sent, just created, edited, and deleted.
    967 
    968 Yeah, I noticed that on the todo list. That would be very nice -
    969 something that has always bothered me about email is that I cant just
    970 add notes to them (in most clients). And not having to actually send
    971 myself a message to "add" a note would be less work! 
    972 
    973 > Then all I have to do is add a web browser mode and a partial
    974 > implementation of lisp and sup will be feature complete!
    975 
    976 I've been trying to figure out if a web browser mode would be possible
    977 in the current mode system. I couldnt figure out if the mode stuff was
    978 reliant on ncurses or just happened to be modes that used ncurses.
    979 
    980 > The problem is that inbox-mode per se has some special functionality
    981 > that doesn't quite make sense unless it's applied to the search with
    982 > "label:inbox". We could force that to be prepended to any search phrase
    983 > passed in from the command line, I suppose.
    984 
    985 To be honest I probably wouldnt use the --inbox flag that often, it
    986 just struck me as nicer way to implement no having an inbox. I use the
    987 search flag quite a lot though so good to see it got in :)
    988 
    989 Marcus
    990 
    991 From wmorgan-sup@masanjin.net  Sat Nov  3 18:12:07 2007
    992 From: wmorgan-sup@masanjin.net (William Morgan)
    993 Date: Sat, 03 Nov 2007 15:12:07 -0700
    994 Subject: [sup-talk] [PATCH] Added --search option to sup
    995 In-Reply-To: <1194125144-sup-1843@tomsk>
    996 References: <47149A98.1040800@quintic.co.uk> <<35a8c9eb0016c658@IMSS-WIN>
    997 	<1194120151-sup-6999@tomsk> <1194124287-sup-468@south>
    998 	<1194125144-sup-1843@tomsk>
    999 Message-ID: <1194127019-sup-6911@south>
   1000 
   1001 Excerpts from Marcus Williams's message of Sat Nov 03 14:35:55 -0700 2007:
   1002 > I've been trying to figure out if a web browser mode would be possible
   1003 > in the current mode system. I couldnt figure out if the mode stuff was
   1004 > reliant on ncurses or just happened to be modes that used ncurses.
   1005 
   1006 That was actually a sick joke about writing my own ncurses-based browser
   1007 from within Sup. But to answer what I think was a serious question about
   1008 a web version of sup itself, a couple people have expressed a desire to
   1009 write this, which I think is a little ironic, but which I'm certainly
   1010 not opposed to.
   1011 
   1012 The mode system (in contrast with the buffer system) is not *explicitly*
   1013 tied to ncurses but probably has all sorts of implicit ties. I.e. it
   1014 might be possible to come up with some explicit mapping of modes to web
   1015 pages and commands to web form buttons, but my personal suspicion is
   1016 that the paradigms are so radically different that that level of
   1017 integration will be impossible.
   1018 
   1019 But certainly searching the index and pulling up threads, messages, etc
   1020 all is done through nice programmatic interfaces, and I've started
   1021 documenting this on the wiki, mostly from that email I sent you about
   1022 sup-cli.
   1023 
   1024 > To be honest I probably wouldnt use the --inbox flag that often, it
   1025 > just struck me as nicer way to implement no having an inbox. I use the
   1026 > search flag quite a lot though so good to see it got in :)
   1027 
   1028 Just added --search to SVN. Thanks!
   1029 
   1030 -- 
   1031 William <wmorgan-sup at masanjin.net>
   1032 
   1033 From wmorgan-sup@masanjin.net  Sat Nov  3 18:23:23 2007
   1034 From: wmorgan-sup@masanjin.net (William Morgan)
   1035 Date: Sat, 03 Nov 2007 15:23:23 -0700
   1036 Subject: [sup-talk] Changing sources with same URI
   1037 In-Reply-To: <1193759439-sup-5378@tomsk>
   1038 References: <1193759439-sup-5378@tomsk>
   1039 Message-ID: <1194128155-sup-8975@south>
   1040 
   1041 Excerpts from Marcus Williams's message of Tue Oct 30 08:55:18 -0700 2007:
   1042 > I've got two (actually more than two, but that doesnt matter) IMAP
   1043 > sources with the same URI, with different logins. The only problem is
   1044 > I forgot to add a label to one of them. What I want to do is add that
   1045 > source back in with the label added.
   1046 > 
   1047 > I thought all I'd need to do was add the label to the sources.yaml and
   1048 > then run sup-sync --changed <source>, or maybe --all but neither of
   1049 > them pick the right source as the source I want is the second of the
   1050 > two sources in the yaml file (and they both have the same uri).
   1051 
   1052 Heheh. I think you can differentiate the two by putting the username in
   1053 as a component of the URI. It's ignored by Sup completely, except, it
   1054 turns out for the purposes of comparing URIs.
   1055 
   1056 E.g.: imaps://account1 at imap.server.com and
   1057 imaps://account2 at imap.server.com.
   1058 
   1059 (Just figured this out myself!)
   1060 
   1061 > probably want to make both of these sources "unusual" as well, can I
   1062 > do that with sup-sync?
   1063 
   1064 Nope, all modifications of source properties must be done by editing
   1065 source.yaml by hand atm.
   1066 
   1067 -- 
   1068 William <wmorgan-sup at masanjin.net>
   1069 
   1070 From wmorgan-sup@masanjin.net  Sat Nov  3 18:25:36 2007
   1071 From: wmorgan-sup@masanjin.net (William Morgan)
   1072 Date: Sat, 03 Nov 2007 15:25:36 -0700
   1073 Subject: [sup-talk] Can I redirect logs to file,
   1074 	instead of using s command in sup console
   1075 In-Reply-To: <472C4FD9.5060707@gslab.com>
   1076 References: <472C4FD9.5060707@gslab.com>
   1077 Message-ID: <1194128631-sup-6070@south>
   1078 
   1079 Excerpts from Manish Sapariya's message of Sat Nov 03 03:39:21 -0700 2007:
   1080 > I want to see at the log files when sup crashes. I could not find any
   1081 > command line option and brief grepping in the sources did not gave any
   1082 > clue.
   1083 
   1084 There's no way to do this currently. Typically the log doesn't actually
   1085 contain that much useful stuff for diagnosing a crash; the exception is
   1086 more information (written out to sup-exeption-log.txt currently).
   1087 
   1088 Wouldn't be too hard to do this by modified Logger#log.
   1089 
   1090 -- 
   1091 William <wmorgan-sup at masanjin.net>
   1092 
   1093 From wmorgan-sup@masanjin.net  Sun Nov  4 21:40:58 2007
   1094 From: wmorgan-sup@masanjin.net (William Morgan)
   1095 Date: Sun, 04 Nov 2007 18:40:58 -0800
   1096 Subject: [sup-talk] [PATCH] New hook (enabling message filters)
   1097 In-Reply-To: <4718B60F.1090208@quintic.co.uk>
   1098 References: <47188C6F.30008@quintic.co.uk> <4d4780f700181787@IMSS-WIN>
   1099 	<4d6e9e1600182d59@IMSS-WIN> <4718B60F.1090208@quintic.co.uk>
   1100 Message-ID: <1194230448-sup-727@south>
   1101 
   1102 Excerpts from Marcus Williams's message of Fri Oct 19 06:50:07 -0700 2007:
   1103 > On 19/10/2007 Marcus Williams wrote:
   1104 > > Ta - and heres an update that includes that and redirects say to log if
   1105 > > running from sup-sync and ask_yes_or_no to gets.
   1106 > 
   1107 > ... this time I'll attach the right patch :(
   1108 
   1109 Applied. Thanks!
   1110 
   1111 -- 
   1112 William <wmorgan-sup at masanjin.net>
   1113 
   1114 From wmorgan-sup@masanjin.net  Sun Nov  4 21:46:21 2007
   1115 From: wmorgan-sup@masanjin.net (William Morgan)
   1116 Date: Sun, 04 Nov 2007 18:46:21 -0800
   1117 Subject: [sup-talk] [PATCH] Tag all threads
   1118 In-Reply-To: <471F0988.4010909@quintic.co.uk>
   1119 References: <471F0988.4010909@quintic.co.uk>
   1120 Message-ID: <1194230718-sup-8877@south>
   1121 
   1122 Excerpts from Marcus Williams's message of Wed Oct 24 01:59:52 -0700 2007:
   1123 > Attached is a patch to toggle the tag status on all threads in the
   1124 > current view. Use the 'T' to toggle.
   1125 
   1126 Applied. Thanks!
   1127 
   1128 -- 
   1129 William <wmorgan-sup at masanjin.net>
   1130 
   1131 From wmorgan-sup@masanjin.net  Sun Nov  4 22:15:51 2007
   1132 From: wmorgan-sup@masanjin.net (William Morgan)
   1133 Date: Sun, 04 Nov 2007 19:15:51 -0800
   1134 Subject: [sup-talk] [PATCH] More IMAP/Maildir functionality
   1135 In-Reply-To: <1194005479-sup-2005@tomsk>
   1136 References: <1194005479-sup-2005@tomsk>
   1137 Message-ID: <1194232297-sup-5089@south>
   1138 
   1139 Hi Marcus,
   1140 
   1141 Excerpts from Marcus Williams's message of Fri Nov 02 05:18:19 -0700 2007:
   1142 > This patch cleans up my last IMAP patch, and adds the
   1143 > each_raw_message_line method to both Maildir and IMAP so that you dont
   1144 > get an exception when you try to save a message to a file with an IMAP
   1145 > or maildir source.
   1146 
   1147 This all looks great, except for the source_marked_read stuff, which is
   1148 only there as a nasty hack to avoid scanning mbox files twice (because
   1149 you can't tell if an mbox message is read or not until you go through
   1150 all the headers).
   1151 
   1152 For non-mbox read/unread, it should be sufficient to simply set the flags
   1153 as you do in IMAP#raw_header.
   1154 
   1155 If you get a chance, can you resubmit without that? I may have a chance
   1156 to clean it up in the next few days if not.
   1157 
   1158 -- 
   1159 William <wmorgan-sup at masanjin.net>
   1160 
   1161 From wmorgan-sup@masanjin.net  Sun Nov  4 22:17:57 2007
   1162 From: wmorgan-sup@masanjin.net (William Morgan)
   1163 Date: Sun, 04 Nov 2007 19:17:57 -0800
   1164 Subject: [sup-talk] [PATCH] Check IMAP capabilities before using auth
   1165 	methods
   1166 In-Reply-To: <1193936725-sup-5565@spooky.local>
   1167 References: <1193907675-sup-9254@tomsk> <1193936725-sup-5565@spooky.local>
   1168 Message-ID: <1194232657-sup-9019@south>
   1169 
   1170 Excerpts from Grant Hollingworth's message of Thu Nov 01 10:06:47 -0700 2007:
   1171 > Are there any plans to have IMAP sources with a common server share a
   1172 > connection?
   1173 
   1174 Sounds like a truly excellent idea. Added to the TODO!
   1175 
   1176 -- 
   1177 William <wmorgan-sup at masanjin.net>
   1178 
   1179 From marcus-sup@bar-coded.net  Mon Nov  5 04:54:17 2007
   1180 From: marcus-sup@bar-coded.net (Marcus Williams)
   1181 Date: Mon, 05 Nov 2007 09:54:17 +0000
   1182 Subject: [sup-talk] [PATCH] More IMAP/Maildir functionality
   1183 In-Reply-To: <1194232297-sup-5089@south>
   1184 References: <1194005479-sup-2005@tomsk> <1194232297-sup-5089@south>
   1185 Message-ID: <1194256027-sup-6540@tomsk>
   1186 
   1187 On 5.11.2007, William Morgan wrote:
   1188 > For non-mbox read/unread, it should be sufficient to simply set the flags
   1189 > as you do in IMAP#raw_header.
   1190 > 
   1191 > If you get a chance, can you resubmit without that? I may have a chance
   1192 > to clean it up in the next few days if not.
   1193 
   1194 So do you want it removed completely or implemented differently?
   1195 
   1196 From col@baibell.org  Mon Nov  5 05:01:31 2007
   1197 From: col@baibell.org (Colin Bell)
   1198 Date: Mon, 05 Nov 2007 21:01:31 +1100
   1199 Subject: [sup-talk] [PATCH] Show unread message count in thread index
   1200 Message-ID: <1194256715-sup-4315@lankhmar>
   1201 
   1202 Hi,
   1203 
   1204 This patch shows the unread message count in the thread index as well
   1205 as the total number of messages in the thread.
   1206 
   1207 E.G:
   1208 
   1209 
   1210 2:17pm Marcus,Grant,William (1/ 3)  [sup-talk] [PATCH] Check IMAP
   1211 2:15pm Marcus,William       (0/ 2)  [sup-talk] [PATCH] More IMAP/
   1212 
   1213 --
   1214 Col
   1215 
   1216 -------------- next part --------------
   1217 A non-text attachment was scrubbed...
   1218 Name: unread.diff
   1219 Type: application/octet-stream
   1220 Size: 1745 bytes
   1221 Desc: not available
   1222 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071105/167121b3/attachment.obj 
   1223 
   1224 From marcus-sup@bar-coded.net  Mon Nov  5 10:03:40 2007
   1225 From: marcus-sup@bar-coded.net (Marcus Williams)
   1226 Date: Mon, 05 Nov 2007 15:03:40 +0000
   1227 Subject: [sup-talk] [PATCH] New hook (enabling message filters)
   1228 In-Reply-To: <1194230448-sup-727@south>
   1229 References: <47188C6F.30008@quintic.co.uk> <4d4780f700181787@IMSS-WIN>
   1230 	<4d6e9e1600182d59@IMSS-WIN> <4718B60F.1090208@quintic.co.uk>
   1231 	<1194230448-sup-727@south>
   1232 Message-ID: <1194274725-sup-5324@tomsk>
   1233 
   1234 On 5.11.2007, William Morgan wrote:
   1235 > > > Ta - and heres an update that includes that and redirects say to log if
   1236 > > > running from sup-sync and ask_yes_or_no to gets.
   1237 
   1238 > Applied. Thanks!
   1239 
   1240 What I really want to do is get the inbox mode to do handle the cases
   1241 when the hook adds the spam/deleted/starred/archive labels. What I
   1242 mean is, if the hook adds a spam label then I dont want it to appear
   1243 in the inbox.
   1244 
   1245 Currently I have to hit "@" after a poll. This is useful for
   1246 debugging, but I'm not sure its what people would expect.
   1247 
   1248 Marcus
   1249 
   1250 From wmorgan-sup@masanjin.net  Mon Nov  5 10:38:45 2007
   1251 From: wmorgan-sup@masanjin.net (William Morgan)
   1252 Date: Mon, 05 Nov 2007 07:38:45 -0800
   1253 Subject: [sup-talk] [PATCH] New hook (enabling message filters)
   1254 In-Reply-To: <1194274725-sup-5324@tomsk>
   1255 References: <47188C6F.30008@quintic.co.uk> <4d4780f700181787@IMSS-WIN>
   1256 	<4d6e9e1600182d59@IMSS-WIN> <4718B60F.1090208@quintic.co.uk>
   1257 	<1194230448-sup-727@south> <1194274725-sup-5324@tomsk>
   1258 Message-ID: <1194277062-sup-3404@south>
   1259 
   1260 Excerpts from Marcus Williams's message of Mon Nov 05 07:03:40 -0800 2007:
   1261 > What I really want to do is get the inbox mode to do handle the cases
   1262 > when the hook adds the spam/deleted/starred/archive labels. What I
   1263 > mean is, if the hook adds a spam label then I dont want it to appear
   1264 > in the inbox.
   1265 
   1266 Try modifying InboxMode#is_relevant? (called by
   1267 ThreadIndexMode#handle_add_update).
   1268 
   1269 -- 
   1270 William <wmorgan-sup at masanjin.net>
   1271 
   1272 From wmorgan-sup@masanjin.net  Mon Nov  5 10:44:12 2007
   1273 From: wmorgan-sup@masanjin.net (William Morgan)
   1274 Date: Mon, 05 Nov 2007 07:44:12 -0800
   1275 Subject: [sup-talk] [PATCH] More IMAP/Maildir functionality
   1276 In-Reply-To: <1194256027-sup-6540@tomsk>
   1277 References: <1194005479-sup-2005@tomsk> <1194232297-sup-5089@south>
   1278 	<1194256027-sup-6540@tomsk>
   1279 Message-ID: <1194277185-sup-797@south>
   1280 
   1281 Excerpts from Marcus Williams's message of Mon Nov 05 01:54:17 -0800 2007:
   1282 > On 5.11.2007, William Morgan wrote:
   1283 > > For non-mbox read/unread, it should be sufficient to simply set the flags
   1284 > > as you do in IMAP#raw_header.
   1285 > > 
   1286 > > If you get a chance, can you resubmit without that? I may have a chance
   1287 > > to clean it up in the next few days if not.
   1288 > 
   1289 > So do you want it removed completely or implemented differently?
   1290 
   1291 Removed completely from the patch, as the resulting functionality should
   1292 be exactly the same. If an IMAP message doesn't have :unread, then it's
   1293 treated as read. There's no reason to extend the horrible hackishness of
   1294 source_marked_read anywhere beyond mbox.
   1295 
   1296 -- 
   1297 William <wmorgan-sup at masanjin.net>
   1298 
   1299 From itaylor@uark.edu  Mon Nov  5 13:26:24 2007
   1300 From: itaylor@uark.edu (Ian Taylor)
   1301 Date: Mon, 05 Nov 2007 13:26:24 -0500
   1302 Subject: [sup-talk] searching current buffer
   1303 Message-ID: <1194286869-sup-3211@silver>
   1304 
   1305 I find myself wanting to search emails and the current buffer all the
   1306 time. Is there a way to do this? I was looking at adding a search for
   1307 the filebrowser view, but then decided that it should probably be for
   1308 every buffer, not just that one. If this needs to be implemented, where
   1309 would be the likely place for it?
   1310 
   1311 I keep hitting '/' when wanting search the current buffer, which is
   1312 currently for searching all messages. Is this left over from mutt? If
   1313 not, it seems to kind of clash with behavior of many other unix
   1314 programs. Anyone else feel this should change?
   1315 
   1316 -- 
   1317 Ian Taylor
   1318 
   1319 From wmorgan-sup@masanjin.net  Mon Nov  5 13:37:17 2007
   1320 From: wmorgan-sup@masanjin.net (William Morgan)
   1321 Date: Mon, 05 Nov 2007 10:37:17 -0800
   1322 Subject: [sup-talk] searching current buffer
   1323 In-Reply-To: <1194286869-sup-3211@silver>
   1324 References: <1194286869-sup-3211@silver>
   1325 Message-ID: <1194287462-sup-9734@south>
   1326 
   1327 Excerpts from Ian Taylor's message of Mon Nov 05 10:26:24 -0800 2007:
   1328 > I find myself wanting to search emails and the current buffer all the
   1329 > time. Is there a way to do this?
   1330 
   1331 Definitely on the near-term TODO. There was a patch to do this in a
   1332 limited way a few weeks back from Eyal Oren. I'm not sure if he's
   1333 planning on further work or not. Doing it "right" is a little
   1334 complicated.
   1335 
   1336 > If this needs to be implemented, where would be the likely place for
   1337 > it?
   1338 
   1339 Mostly in scroll-mode, with a little bit in line-cursor-mode to
   1340 move the cursor around, and maybe some in thread-view-mode to expand
   1341 messages before searching. To do highlighting, scroll-mode as well.
   1342 
   1343 > I keep hitting '/' when wanting search the current buffer, which is
   1344 > currently for searching all messages. Is this left over from mutt? If
   1345 > not, it seems to kind of clash with behavior of many other unix
   1346 > programs. Anyone else feel this should change?
   1347 
   1348 I'd be amenable to change. What should the global search command be
   1349 then?
   1350 
   1351 -- 
   1352 William <wmorgan-sup at masanjin.net>
   1353 
   1354 From itaylor@uark.edu  Mon Nov  5 14:27:23 2007
   1355 From: itaylor@uark.edu (Ian Taylor)
   1356 Date: Mon, 05 Nov 2007 14:27:23 -0500
   1357 Subject: [sup-talk] Exception from initial sup-sync
   1358 Message-ID: <1194290667-sup-5900@silver>
   1359 
   1360 It said no method normalize_whitespace for nil, not sure why that didn't
   1361 make it to sup-exception-log.txt
   1362 
   1363 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/message.rb:358:in `message_to_chunks'
   1364 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/message.rb:326:in `message_to_chunks'
   1365 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/message.rb:326:in `map'
   1366 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/message.rb:326:in `message_to_chunks'
   1367 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/message.rb:158:in `load_from_source!'
   1368 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/message.rb:211:in `content'
   1369 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/index.rb:173:in `sync_message'
   1370 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/util.rb:395:in `send'
   1371 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/util.rb:395:in `method_missing'
   1372 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/poll.rb:158:in `add_messages_from'
   1373 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/imap.rb:175:in `each'
   1374 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/imap.rb:163:in `upto'
   1375 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/imap.rb:163:in `each'
   1376 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/util.rb:431:in `send'
   1377 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/util.rb:431:in `__pass'
   1378 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/util.rb:420:in `method_missing'
   1379 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/poll.rb:139:in `add_messages_from'
   1380 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/util.rb:395:in `send'
   1381 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/util.rb:395:in `method_missing'
   1382 /var/lib/gems/1.8/gems/sup-0.2/bin/sup-sync:133
   1383 /var/lib/gems/1.8/gems/sup-0.2/bin/sup-sync:128:in `each'
   1384 /var/lib/gems/1.8/gems/sup-0.2/bin/sup-sync:128
   1385 /var/lib/gems/1.8/bin/sup-sync:16:in `load'
   1386 /var/lib/gems/1.8/bin/sup-sync:16
   1387 
   1388 -- 
   1389 Ian Taylor
   1390 
   1391 From eyal.oren@deri.org  Mon Nov  5 15:37:07 2007
   1392 From: eyal.oren@deri.org (Eyal Oren)
   1393 Date: Mon, 05 Nov 2007 21:37:07 +0100
   1394 Subject: [sup-talk] searching current buffer
   1395 In-Reply-To: <1194287462-sup-9734@south>
   1396 References: <1194286869-sup-3211@silver> <1194287462-sup-9734@south>
   1397 Message-ID: <1194294948-sup-4269@timmy>
   1398 
   1399 Excerpts from William Morgan's message of Mon Nov 05 19:37:17 +0100 2007:
   1400 > Excerpts from Ian Taylor's message of Mon Nov 05 10:26:24 -0800 2007:
   1401 > > I find myself wanting to search emails and the current buffer all the
   1402 > > time. Is there a way to do this?
   1403 > 
   1404 > Definitely on the near-term TODO. There was a patch to do this in a
   1405 > limited way a few weeks back from Eyal Oren. I'm not sure if he's
   1406 > planning on further work or not. Doing it "right" is a little
   1407 > complicated.
   1408 I went back to mutt for a couple of weeks, but couldn't resist. So I'm back at 
   1409 sup again now, and I might continue my very simple first attempts in the near 
   1410 future with the tips you gave me.
   1411 
   1412  -eyal
   1413 
   1414 From wmorgan-sup@masanjin.net  Mon Nov  5 19:24:32 2007
   1415 From: wmorgan-sup@masanjin.net (William Morgan)
   1416 Date: Mon, 05 Nov 2007 16:24:32 -0800
   1417 Subject: [sup-talk] searching current buffer
   1418 In-Reply-To: <1194294948-sup-4269@timmy>
   1419 References: <1194286869-sup-3211@silver> <1194287462-sup-9734@south>
   1420 	<1194294948-sup-4269@timmy>
   1421 Message-ID: <1194308588-sup-4298@south>
   1422 
   1423 Excerpts from Eyal Oren's message of Mon Nov 05 12:37:07 -0800 2007:
   1424 > I went back to mutt for a couple of weeks, but couldn't resist. So I'm
   1425 > back at sup again now, and I might continue my very simple first
   1426 > attempts in the near future with the tips you gave me.
   1427 
   1428 Actually I got so excited by your patch that I started working on it. I
   1429 might be able to check something in today or tomorrow! Just a few
   1430 remaining tweaks. Stay tuned...
   1431 
   1432 -- 
   1433 William <wmorgan-sup at masanjin.net>
   1434 
   1435 From wmorgan-sup@masanjin.net  Mon Nov  5 19:42:11 2007
   1436 From: wmorgan-sup@masanjin.net (William Morgan)
   1437 Date: Mon, 05 Nov 2007 16:42:11 -0800
   1438 Subject: [sup-talk] Exception from initial sup-sync
   1439 In-Reply-To: <1194290667-sup-5900@silver>
   1440 References: <1194290667-sup-5900@silver>
   1441 Message-ID: <1194309716-sup-1684@south>
   1442 
   1443 Excerpts from Ian Taylor's message of Mon Nov 05 11:27:23 -0800 2007:
   1444 > It said no method normalize_whitespace for nil, not sure why that didn't
   1445 > make it to sup-exception-log.txt
   1446 
   1447 Yay, another RubyMail weirdness to work around!
   1448 
   1449 -- 
   1450 William <wmorgan-sup at masanjin.net>
   1451 
   1452 From alexander.panek@brainsware.org  Tue Nov  6 03:57:36 2007
   1453 From: alexander.panek@brainsware.org (Alexander Panek)
   1454 Date: Tue, 6 Nov 2007 09:57:36 +0100
   1455 Subject: [sup-talk] Crash on retrieving (many) mails
   1456 Message-ID: <20071106095736.baa060ad.alexander.panek@brainsware.org>
   1457 
   1458 This happened when I retrieved like mails from a few accounts from the last four days (a few hundred mails, so to speak).
   1459 
   1460 Trace:
   1461 > The problem was: 'undefined method `longname' for nil:NilClass' (error type NoMethodError)
   1462 > A backtrace follows:
   1463 > /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/poll.rb:96:in `do_poll': undefined method `longname' for nil:NilClass (NoMethodError)
   1464 >         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/poll.rb:150:in `add_messages_from'
   1465 >         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/imap.rb:174:in `each'
   1466 >         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/imap.rb:163:in `upto'
   1467 >         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/imap.rb:163:in `each'
   1468 >         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/util.rb:431:in `send'
   1469 >         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/util.rb:431:in `__pass'
   1470 >         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/util.rb:420:in `method_missing'
   1471 >         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/poll.rb:133:in `add_messages_from'
   1472 >          ... 26 levels...
   1473 >         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/modes/thread-index-mode.rb:422:in `load_threads'
   1474 >         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/bin/sup:188
   1475 >         from /usr/bin/sup:16:in `load'
   1476 >         from /usr/bin/sup:16
   1477 
   1478 Apart from that, sup (or sup-sync, don't know) seems to be quite slow when syncing a few accounts with lots of mails. Is that caused by the mail servers or by sup itself?
   1479 -- 
   1480 Alexander Panek <alexander.panek at brainsware.org>
   1481 
   1482 From manish@gslab.com  Tue Nov  6 04:37:27 2007
   1483 From: manish@gslab.com (Manish Sapariya)
   1484 Date: Tue, 06 Nov 2007 15:07:27 +0530
   1485 Subject: [sup-talk] Crash on retrieving (many) mails
   1486 In-Reply-To: <20071106095736.baa060ad.alexander.panek@brainsware.org>
   1487 References: <20071106095736.baa060ad.alexander.panek@brainsware.org>
   1488 Message-ID: <473035D7.4020803@gslab.com>
   1489 
   1490 I ran into same kind of problem but I could never zero on what was the 
   1491 cause.
   1492 I was actually playing around to get more than one sources working and 
   1493 trying
   1494 to sync the new source.
   1495 
   1496 However after running sup-sync externally I did work started working. 
   1497 See if that
   1498 helps you. I was using Thunderbird mbox as my sources.
   1499 
   1500 Regards,
   1501 Manish
   1502 
   1503 Alexander Panek wrote:
   1504 > This happened when I retrieved like mails from a few accounts from the last four days (a few hundred mails, so to speak).
   1505 >
   1506 > Trace:
   1507 >   
   1508 >> The problem was: 'undefined method `longname' for nil:NilClass' (error type NoMethodError)
   1509 >> A backtrace follows:
   1510 >> /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/poll.rb:96:in `do_poll': undefined method `longname' for nil:NilClass (NoMethodError)
   1511 >>         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/poll.rb:150:in `add_messages_from'
   1512 >>         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/imap.rb:174:in `each'
   1513 >>         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/imap.rb:163:in `upto'
   1514 >>         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/imap.rb:163:in `each'
   1515 >>         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/util.rb:431:in `send'
   1516 >>         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/util.rb:431:in `__pass'
   1517 >>         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/util.rb:420:in `method_missing'
   1518 >>         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/poll.rb:133:in `add_messages_from'
   1519 >>          ... 26 levels...
   1520 >>         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/modes/thread-index-mode.rb:422:in `load_threads'
   1521 >>         from /usr/lib/ruby/gems/1.8/gems/sup-0.1/bin/sup:188
   1522 >>         from /usr/bin/sup:16:in `load'
   1523 >>         from /usr/bin/sup:16
   1524 >>     
   1525 >
   1526 > Apart from that, sup (or sup-sync, don't know) seems to be quite slow when syncing a few accounts with lots of mails. Is that caused by the mail servers or by sup itself?
   1527 >   
   1528 
   1529 
   1530 From marcus-sup@bar-coded.net  Tue Nov  6 05:00:00 2007
   1531 From: marcus-sup@bar-coded.net (Marcus Williams)
   1532 Date: Tue, 06 Nov 2007 10:00:00 +0000
   1533 Subject: [sup-talk] [PATCH] Delete attachments bug fix
   1534 Message-ID: <1194342872-sup-365@tomsk>
   1535 
   1536 Hi -
   1537 
   1538 First of a few patches. This fixes the bug where you hit the 'd' key
   1539 to delete an attachment in edit/reply mode when there isnt an
   1540 attachment (or isnt one under the cursor possibly as well)
   1541 
   1542 Marcus
   1543 -------------- next part --------------
   1544 A non-text attachment was scrubbed...
   1545 Name: delete-attachments
   1546 Type: application/octet-stream
   1547 Size: 507 bytes
   1548 Desc: not available
   1549 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071106/e883e671/attachment.obj 
   1550 
   1551 From marcus-sup@bar-coded.net  Tue Nov  6 05:02:13 2007
   1552 From: marcus-sup@bar-coded.net (Marcus Williams)
   1553 Date: Tue, 06 Nov 2007 10:02:13 +0000
   1554 Subject: [sup-talk] [PATCH] Save messages from maildir source
   1555 Message-ID: <1194343227-sup-7270@tomsk>
   1556 
   1557 Hi -
   1558 
   1559 Next one :) This fixes the bug where you try to save a message from a
   1560 maildir source (crashes currently with missing method)
   1561 
   1562 Marcus
   1563 -------------- next part --------------
   1564 A non-text attachment was scrubbed...
   1565 Name: maildir-diffs
   1566 Type: application/octet-stream
   1567 Size: 566 bytes
   1568 Desc: not available
   1569 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071106/d560c770/attachment.obj 
   1570 
   1571 From marcus-sup@bar-coded.net  Tue Nov  6 05:05:42 2007
   1572 From: marcus-sup@bar-coded.net (Marcus Williams)
   1573 Date: Tue, 06 Nov 2007 10:05:42 +0000
   1574 Subject: [sup-talk] [PATCH] IMAP fixes
   1575 Message-ID: <1194343383-sup-7427@tomsk>
   1576 
   1577 Hi -
   1578 
   1579 And another. This is the IMAP fixes without the marked_read? stuff.
   1580 This adds:
   1581 
   1582  * unread status fix
   1583 
   1584  * save message fix (same as maildir fix in last patch sent)
   1585 
   1586  * capability checks before using auth methods (note that if your
   1587  server does not advertise an auth capability, even if it supports it
   1588  it will not be used. Check log buffer for messages on login to double
   1589  check what method you use)
   1590 
   1591 Marcus
   1592 -------------- next part --------------
   1593 A non-text attachment was scrubbed...
   1594 Name: imap-diffs
   1595 Type: application/octet-stream
   1596 Size: 1872 bytes
   1597 Desc: not available
   1598 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071106/a124b40f/attachment.obj 
   1599 
   1600 From marcus-sup@bar-coded.net  Tue Nov  6 05:25:04 2007
   1601 From: marcus-sup@bar-coded.net (Marcus Williams)
   1602 Date: Tue, 06 Nov 2007 10:25:04 +0000
   1603 Subject: [sup-talk] [PATCH] Fix for before-add-message hook
   1604 Message-ID: <1194344471-sup-8807@tomsk>
   1605 
   1606 Hi -
   1607 
   1608 Last one for now. This fixes the hook for filtering messages so that
   1609 messages you tag with spam/killed/deleted in the hook dont get
   1610 displayed by the inbox.
   1611 
   1612 Just to confirm something: if you want to tag using one of these
   1613 labels you need to use the ruby symbol in the hook :spam, :killed and
   1614 :deleted
   1615 
   1616 Eg:
   1617 
   1618 message.add_label :spam if message.raw_header =~ /X-Spam-Flag: YES/
   1619 
   1620 Marcus
   1621 -------------- next part --------------
   1622 A non-text attachment was scrubbed...
   1623 Name: before-add-message-hook
   1624 Type: application/octet-stream
   1625 Size: 1117 bytes
   1626 Desc: not available
   1627 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071106/07ad0c18/attachment.obj 
   1628 
   1629 From marcus-sup@bar-coded.net  Tue Nov  6 08:39:49 2007
   1630 From: marcus-sup@bar-coded.net (Marcus Williams)
   1631 Date: Tue, 06 Nov 2007 13:39:49 +0000
   1632 Subject: [sup-talk] [PATCH] xterm title
   1633 Message-ID: <1194356217-sup-6416@tomsk>
   1634 
   1635 Not sure what this will do if you're not running in a capable term
   1636 client (and I'm not sure how to check!), but this patch adds makes the
   1637 status line in sup appear in the title bar of your terminal (as well
   1638 as the usual place at the bottom of the screen). Useful if you have
   1639 multiple terminals open :)
   1640 
   1641 Marcus
   1642 -------------- next part --------------
   1643 A non-text attachment was scrubbed...
   1644 Name: xterm-title
   1645 Type: application/octet-stream
   1646 Size: 421 bytes
   1647 Desc: not available
   1648 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071106/ed7c0e9f/attachment.obj 
   1649 
   1650 From tim@timvaughan.co.uk  Tue Nov  6 08:52:27 2007
   1651 From: tim@timvaughan.co.uk (Tim Vaughan)
   1652 Date: Tue, 6 Nov 2007 13:52:27 +0000
   1653 Subject: [sup-talk] Feature requests for more Googlish behaviour
   1654 Message-ID: <414a99f20711060552u1f35363ai46fad5719f66847c@mail.gmail.com>
   1655 
   1656 I know - feature requests are easy to make but hopefully these will be helpful:
   1657 
   1658 * Google-style contact autocompletion: typing a contact's name, or
   1659 part thereof, should provide autocomplete suggestions which can be
   1660 chosen before or after composing the message body.
   1661 * Undo button: since I'm still learning the keyboard commands (and, I
   1662 think, because they're still in flux) an undo button would be useful
   1663 so I can un-tag an email mistakenly tagged as spam.
   1664 
   1665 -- 
   1666 Tim Vaughan
   1667 07725749263
   1668 
   1669 From marcus-sup@bar-coded.net  Tue Nov  6 09:10:12 2007
   1670 From: marcus-sup@bar-coded.net (Marcus Williams)
   1671 Date: Tue, 06 Nov 2007 14:10:12 +0000
   1672 Subject: [sup-talk] Feature requests for more Googlish behaviour
   1673 In-Reply-To: <414a99f20711060552u1f35363ai46fad5719f66847c@mail.gmail.com>
   1674 References: <414a99f20711060552u1f35363ai46fad5719f66847c@mail.gmail.com>
   1675 Message-ID: <1194358083-sup-2587@tomsk>
   1676 
   1677 On 6.11.2007, Tim Vaughan wrote:
   1678 > * Google-style contact autocompletion: typing a contact's name, or
   1679 > part thereof, should provide autocomplete suggestions which can be
   1680 > chosen before or after composing the message body.
   1681 
   1682 Try pressing tab when you type a contact. It should give you options
   1683 from your contacts list. The only oddness is that now sup doesnt
   1684 auto-add contacts that have no name (ie only an addresS) some contacts
   1685 wont work. So if you want a contact to be auto-completable you may
   1686 need to add it manually with a name/alias.
   1687 
   1688 Marcus
   1689 
   1690 From eyal.oren@deri.org  Tue Nov  6 09:19:29 2007
   1691 From: eyal.oren@deri.org (Eyal Oren)
   1692 Date: Tue, 06 Nov 2007 15:19:29 +0100
   1693 Subject: [sup-talk] Feature requests for more Googlish behaviour
   1694 In-Reply-To: <1194358083-sup-2587@tomsk>
   1695 References: <414a99f20711060552u1f35363ai46fad5719f66847c@mail.gmail.com>
   1696 	<1194358083-sup-2587@tomsk>
   1697 Message-ID: <1194358627-sup-630@timmy>
   1698 
   1699 Excerpts from Marcus Williams's message of Tue Nov 06 15:10:12 +0100 2007:
   1700 > On 6.11.2007, Tim Vaughan wrote:
   1701 > > * Google-style contact autocompletion: typing a contact's name, or
   1702 > > part thereof, should provide autocomplete suggestions which can be
   1703 > > chosen before or after composing the message body.
   1704 > 
   1705 > Try pressing tab when you type a contact. It should give you options
   1706 > from your contacts list. The only oddness is that now sup doesnt
   1707 > auto-add contacts that have no name (ie only an addresS) some contacts
   1708 > wont work. So if you want a contact to be auto-completable you may
   1709 > need to add it manually with a name/alias.
   1710 Regarding autocomplete, I have problems when autocompleting contacts whose name is something like 
   1711 "Doe, John". Maybe somebody is seeing similar issues?
   1712 
   1713 The name is autocompleted correctly, but the email is sent to two addresses: 
   1714 doe at smtphost (which doesn't arrive) and to john.doe at ... (which arrives 
   1715 correctly). Has anyone seen something similar?
   1716 
   1717  -eyal
   1718 
   1719 From marcus-sup@bar-coded.net  Tue Nov  6 10:05:28 2007
   1720 From: marcus-sup@bar-coded.net (Marcus Williams)
   1721 Date: Tue, 06 Nov 2007 15:05:28 +0000
   1722 Subject: [sup-talk] [PATCH] xterm title
   1723 In-Reply-To: <1194356217-sup-6416@tomsk>
   1724 References: <1194356217-sup-6416@tomsk>
   1725 Message-ID: <1194361216-sup-2140@tomsk>
   1726 
   1727 On 6.11.2007, Marcus Williams wrote:
   1728 > Not sure what this will do if you're not running in a capable term
   1729 > client (and I'm not sure how to check!), but this patch adds makes the
   1730 > status line in sup appear in the title bar of your terminal (as well
   1731 > as the usual place at the bottom of the screen). Useful if you have
   1732 > multiple terminals open :)
   1733 
   1734 If this gets applied, it would actually be more useful to display a
   1735 new message count in front of the status line. I havnt had time to
   1736 look to see if I can get the new message count somehow from within
   1737 buffer.rb though.
   1738 
   1739 Something like:
   1740 
   1741 Sup/0.2 - (3 new) [inbox-mode] ..........
   1742 
   1743 It needs to be at the front of the status line because then its
   1744 visible in the title bar. I think it can be added somewhere in one of
   1745 the mode classes but I'm not sure how to get the number of new
   1746 messages short of searching for all messages tagged wth :unread.
   1747 
   1748 If theres a way of doing this thats quick I'll resubmit the patch.
   1749 
   1750 Marcus
   1751 
   1752 From wmorgan-sup@masanjin.net  Tue Nov  6 17:41:37 2007
   1753 From: wmorgan-sup@masanjin.net (William Morgan)
   1754 Date: Tue, 06 Nov 2007 14:41:37 -0800
   1755 Subject: [sup-talk] new in svn: in-buffer search
   1756 Message-ID: <1194388505-sup-2866@south>
   1757 
   1758 Thanks to Eyal Oren, who took a first crack at a patch and got me
   1759 excited, SVN head now has in-buffer search.
   1760 
   1761 First, note that I've remapped the index search from '/' to '\'. Hah!
   1762 
   1763 '/' now does an in-buffer search, highlights the results, and jumps to
   1764 the first one. 'n' jumps to the next result; ^G or any other key cancels
   1765 the current search.
   1766 
   1767 Also note that the search is restricted to exactly what you see on the
   1768 screen. Collapsed messages in thread-view-mode, etc must be uncollapsed
   1769 in order to be in-buffer search candidates. Maybe there will be fancier
   1770 behavior in the future.
   1771 
   1772 Future plans: regex search (very easy to do now), and use the
   1773 highlighting code to make search-results-mode nicer.
   1774 
   1775 -- 
   1776 William <wmorgan-sup at masanjin.net>
   1777 
   1778 From itaylor@uark.edu  Tue Nov  6 17:57:25 2007
   1779 From: itaylor@uark.edu (Ian Taylor)
   1780 Date: Tue, 06 Nov 2007 17:57:25 -0500
   1781 Subject: [sup-talk] new in svn: in-buffer search
   1782 In-Reply-To: <1194388505-sup-2866@south>
   1783 References: <1194388505-sup-2866@south>
   1784 Message-ID: <1194389659-sup-2148@silver>
   1785 
   1786 Excerpts from William Morgan's message of Tue Nov 06 17:41:37 -0500 2007:
   1787 > Thanks to Eyal Oren, who took a first crack at a patch and got me
   1788 > excited, SVN head now has in-buffer search.
   1789 > 
   1790 > First, note that I've remapped the index search from '/' to '\'. Hah!
   1791 > 
   1792 > '/' now does an in-buffer search, highlights the results, and jumps to
   1793 > the first one. 'n' jumps to the next result; ^G or any other key cancels
   1794 > the current search.
   1795 > 
   1796 > Also note that the search is restricted to exactly what you see on the
   1797 > screen. Collapsed messages in thread-view-mode, etc must be uncollapsed
   1798 > in order to be in-buffer search candidates. Maybe there will be fancier
   1799 > behavior in the future.
   1800 > 
   1801 > Future plans: regex search (very easy to do now), and use the
   1802 > highlighting code to make search-results-mode nicer.
   1803 > 
   1804 
   1805 Not sure if this was introduced as a result of this patch, but '?' in
   1806 the first view seems to crash sup with this error:
   1807 
   1808 The problem was: 'unknown key name "ctrl_g"' (error type ArgumentError)
   1809 A backtrace follows:
   1810 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/keymap.rb:54:in `keysym_to_string': unknown key name "ctrl_g" (ArgumentError)
   1811         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/keymap.rb:80:in `help_text'
   1812         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/keymap.rb:80:in `map'
   1813         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/keymap.rb:80:in `help_text'
   1814         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/keymap.rb:77:in `map'
   1815         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/keymap.rb:77:in `help_text'
   1816         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/modes/help-mode.rb:13:in `initialize'
   1817         from /var/lib/gems/1.8/gems/sup-0.2/bin/sup:217:in `new'
   1818         from /var/lib/gems/1.8/gems/sup-0.2/bin/sup:217
   1819         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/buffer.rb:262:in `spawn_unless_exists'
   1820         from /var/lib/gems/1.8/gems/sup-0.2/bin/sup:217
   1821         from /var/lib/gems/1.8/bin/sup:16:in `load'
   1822         from /var/lib/gems/1.8/bin/sup:16
   1823 
   1824 My guess is that the following changes need to be made in keymap.rb
   1825 
   1826      when :end: "<end>"
   1827      when :enter, :return: "<enter>"
   1828      when :ctrl_l: "ctrl-l"
   1829 -    when :ctrl_l: "ctrl-g"
   1830 +    when :ctrl_g: "ctrl-g"
   1831      when :tab: "tab"
   1832      when " ": "<space>"
   1833      else
   1834 
   1835 -- 
   1836 Ian Taylor
   1837 
   1838 From wmorgan-sup@masanjin.net  Tue Nov  6 17:59:37 2007
   1839 From: wmorgan-sup@masanjin.net (William Morgan)
   1840 Date: Tue, 06 Nov 2007 14:59:37 -0800
   1841 Subject: [sup-talk] run-mailcap not working correctly
   1842 In-Reply-To: <1193790417-sup-3611@chris-tablet>
   1843 References: <1192497496-sup-690@silver>
   1844 	<6205b42d0710160119k5291a5e2ta1e89a0040471972@mail.gmail.com>
   1845 	<1193783673-sup-4792@south> <1193790417-sup-3611@chris-tablet>
   1846 Message-ID: <1194389962-sup-1890@south>
   1847 
   1848 Excerpts from Christopher Warrington's message of Tue Oct 30 17:29:29 -0700 2007:
   1849 > process > /dev/null 2> /dev/null
   1850 
   1851 Fixed in svn. Thanks!
   1852 
   1853 -- 
   1854 William <wmorgan-sup at masanjin.net>
   1855 
   1856 From wmorgan-sup@masanjin.net  Tue Nov  6 19:18:41 2007
   1857 From: wmorgan-sup@masanjin.net (William Morgan)
   1858 Date: Tue, 06 Nov 2007 16:18:41 -0800
   1859 Subject: [sup-talk] new in svn: in-buffer search
   1860 In-Reply-To: <1194389659-sup-2148@silver>
   1861 References: <1194388505-sup-2866@south> <1194389659-sup-2148@silver>
   1862 Message-ID: <1194394699-sup-6551@south>
   1863 
   1864 Excerpts from Ian Taylor's message of Tue Nov 06 14:57:25 -0800 2007:
   1865 > My guess is that the following changes need to be made in keymap.rb
   1866 
   1867 Exactly. Thanks!
   1868 
   1869 -- 
   1870 William <wmorgan-sup at masanjin.net>
   1871 
   1872 From wmorgan-sup@masanjin.net  Tue Nov  6 20:55:22 2007
   1873 From: wmorgan-sup@masanjin.net (William Morgan)
   1874 Date: Tue, 06 Nov 2007 17:55:22 -0800
   1875 Subject: [sup-talk] [PATCH] Delete attachments bug fix
   1876 In-Reply-To: <1194342872-sup-365@tomsk>
   1877 References: <1194342872-sup-365@tomsk>
   1878 Message-ID: <1194400502-sup-6815@south>
   1879 
   1880 Excerpts from Marcus Williams's message of Tue Nov 06 02:00:00 -0800 2007:
   1881 > This fixes the bug where you hit the 'd' key to delete an attachment
   1882 > in edit/reply mode when there isnt an attachment (or isnt one under
   1883 > the cursor possibly as well)
   1884 
   1885 Applied, thanks!
   1886 
   1887 -- 
   1888 William <wmorgan-sup at masanjin.net>
   1889 
   1890 From wmorgan-sup@masanjin.net  Tue Nov  6 20:55:37 2007
   1891 From: wmorgan-sup@masanjin.net (William Morgan)
   1892 Date: Tue, 06 Nov 2007 17:55:37 -0800
   1893 Subject: [sup-talk] [PATCH] Save messages from maildir source
   1894 In-Reply-To: <1194343227-sup-7270@tomsk>
   1895 References: <1194343227-sup-7270@tomsk>
   1896 Message-ID: <1194400526-sup-7357@south>
   1897 
   1898 Excerpts from Marcus Williams's message of Tue Nov 06 02:02:13 -0800 2007:
   1899 > This fixes the bug where you try to save a message from a maildir
   1900 > source (crashes currently with missing method)
   1901 
   1902 Applied, thanks!
   1903 
   1904 -- 
   1905 William <wmorgan-sup at masanjin.net>
   1906 
   1907 From wmorgan-sup@masanjin.net  Tue Nov  6 20:55:53 2007
   1908 From: wmorgan-sup@masanjin.net (William Morgan)
   1909 Date: Tue, 06 Nov 2007 17:55:53 -0800
   1910 Subject: [sup-talk] [PATCH] IMAP fixes
   1911 In-Reply-To: <1194343383-sup-7427@tomsk>
   1912 References: <1194343383-sup-7427@tomsk>
   1913 Message-ID: <1194400540-sup-8291@south>
   1914 
   1915 Excerpts from Marcus Williams's message of Tue Nov 06 02:05:42 -0800 2007:
   1916 > This is the IMAP fixes without the marked_read? stuff.
   1917 
   1918 Applied, thanks!
   1919 
   1920 -- 
   1921 William <wmorgan-sup at masanjin.net>
   1922 
   1923 From wmorgan-sup@masanjin.net  Tue Nov  6 20:56:31 2007
   1924 From: wmorgan-sup@masanjin.net (William Morgan)
   1925 Date: Tue, 06 Nov 2007 17:56:31 -0800
   1926 Subject: [sup-talk] [PATCH] Fix for before-add-message hook
   1927 In-Reply-To: <1194344471-sup-8807@tomsk>
   1928 References: <1194344471-sup-8807@tomsk>
   1929 Message-ID: <1194400555-sup-7015@south>
   1930 
   1931 Excerpts from Marcus Williams's message of Tue Nov 06 02:25:04 -0800 2007:
   1932 > Last one for now. This fixes the hook for filtering messages so that
   1933 > messages you tag with spam/killed/deleted in the hook dont get
   1934 > displayed by the inbox.
   1935 
   1936 And applied. Thanks for all your hard work, Marcus!
   1937 
   1938 -- 
   1939 William <wmorgan-sup at masanjin.net>
   1940 
   1941 From wmorgan-sup@masanjin.net  Tue Nov  6 21:09:46 2007
   1942 From: wmorgan-sup@masanjin.net (William Morgan)
   1943 Date: Tue, 06 Nov 2007 18:09:46 -0800
   1944 Subject: [sup-talk] [PATCH] Show unread message count in thread index
   1945 In-Reply-To: <1194256715-sup-4315@lankhmar>
   1946 References: <1194256715-sup-4315@lankhmar>
   1947 Message-ID: <1194400626-sup-6556@south>
   1948 
   1949 Hi Colin,
   1950 
   1951 Excerpts from Colin Bell's message of Mon Nov 05 02:01:31 -0800 2007:
   1952 > This patch shows the unread message count in the thread index as well
   1953 > as the total number of messages in the thread.
   1954 
   1955 I personally don't like this, because I feel like it clutters up
   1956 index-mode. But I'd like people to be able to do this sort of thing.
   1957 
   1958 How about an "index-mode-widget" hook instead, that lets you replace the
   1959 "(###)" with any string you want, based on the thread? (And if the
   1960 return value is nil, use the current thread.size string.)
   1961 
   1962 You'll have to scan over them twice to get the sizing right, but it
   1963 shouldn't be too bad of a patch...
   1964 
   1965 -- 
   1966 William <wmorgan-sup at masanjin.net>
   1967 
   1968 From col@baibell.org  Tue Nov  6 22:55:17 2007
   1969 From: col@baibell.org (Colin Bell)
   1970 Date: Wed, 07 Nov 2007 14:55:17 +1100
   1971 Subject: [sup-talk] [PATCH] Show unread message count in thread index
   1972 In-Reply-To: <1194400626-sup-6556@south>
   1973 References: <1194256715-sup-4315@lankhmar> <1194400626-sup-6556@south>
   1974 Message-ID: <1194407592-sup-4584@lankhmar>
   1975 
   1976 Excerpts from William Morgan's message of Wed Nov 07 13:09:46 +1100 2007:
   1977 > I personally don't like this, because I feel like it clutters up
   1978 > index-mode. But I'd like people to be able to do this sort of thing.
   1979 >
   1980 > How about an "index-mode-widget" hook instead, that lets you replace the
   1981 > "(###)" with any string you want, based on the thread? (And if the
   1982 > return value is nil, use the current thread.size string.)
   1983 
   1984 Good idea. I'll try to take a look at it tonight.
   1985 
   1986 From marcus-sup@bar-coded.net  Wed Nov  7 03:53:35 2007
   1987 From: marcus-sup@bar-coded.net (Marcus Williams)
   1988 Date: Wed, 07 Nov 2007 08:53:35 +0000
   1989 Subject: [sup-talk] new in svn: in-buffer search
   1990 In-Reply-To: <1194388505-sup-2866@south>
   1991 References: <1194388505-sup-2866@south>
   1992 Message-ID: <1194425266-sup-7682@tomsk>
   1993 
   1994 On 6.11.2007, William Morgan wrote:
   1995 > First, note that I've remapped the index search from '/' to '\'. Hah!
   1996 > 
   1997 > '/' now does an in-buffer search, highlights the results, and jumps to
   1998 > the first one. 'n' jumps to the next result; ^G or any other key cancels
   1999 > the current search.
   2000 
   2001 This feels a bit wrong to me (might just be me though). I'd say that
   2002 searching for emails is the most used case for a search option in sup
   2003 so should have the '/', and searching in buffer should be something
   2004 different.
   2005 
   2006 Better than that, make '/' mode dependant so you can use say ctrl-s to
   2007 search for emails (always), ctrl-f to search in buffer (always) but
   2008 map '/' to ctrl-s in thread-index mode (so that would be in inbox and
   2009 search results). In all other modes '/' could map to ctrl-f.
   2010 
   2011 Any thoughts?
   2012 
   2013 Marcus
   2014 
   2015 From eyal.oren@deri.org  Wed Nov  7 04:21:57 2007
   2016 From: eyal.oren@deri.org (Eyal Oren)
   2017 Date: Wed, 07 Nov 2007 10:21:57 +0100
   2018 Subject: [sup-talk] new in svn: in-buffer search
   2019 In-Reply-To: <1194425266-sup-7682@tomsk>
   2020 References: <1194388505-sup-2866@south> <1194425266-sup-7682@tomsk>
   2021 Message-ID: <1194427158-sup-6839@timmy>
   2022 
   2023 Excerpts from Marcus Williams's message of Wed Nov 07 09:53:35 +0100 2007:
   2024 > On 6.11.2007, William Morgan wrote:
   2025 > > First, note that I've remapped the index search from '/' to '\'. Hah!
   2026 > > 
   2027 > > '/' now does an in-buffer search, highlights the results, and jumps to
   2028 > > the first one. 'n' jumps to the next result; ^G or any other key cancels
   2029 > > the current search.
   2030 > 
   2031 > This feels a bit wrong to me (might just be me though). I'd say that
   2032 > searching for emails is the most used case for a search option in sup
   2033 > so should have the '/', and searching in buffer should be something
   2034 > different.
   2035 > 
   2036 > Better than that, make '/' mode dependant so you can use say ctrl-s to
   2037 > search for emails (always), ctrl-f to search in buffer (always) but
   2038 > map '/' to ctrl-s in thread-index mode (so that would be in inbox and
   2039 > search results). In all other modes '/' could map to ctrl-f.
   2040 Personally, I feel that '/' should search in buffer, as many other UNIX tools do 
   2041 (vi, mutt, less, etc). 
   2042 
   2043 Btw, William, thanks for the search! It's great. But wouldn't you like to search 
   2044 from the top instead of searching from cursor position? I often want to use 
   2045 search instead of hitting cursor-up seven times.
   2046 
   2047 -- 
   2048  -eyal
   2049 
   2050 From manish@gslab.com  Wed Nov  7 04:32:59 2007
   2051 From: manish@gslab.com (Manish Sapariya)
   2052 Date: Wed, 07 Nov 2007 15:02:59 +0530
   2053 Subject: [sup-talk] undefined method `normalize_whitespace' for nil:NilClass
   2054  (NoMethodError) in Revision: 673
   2055 Message-ID: <4731864B.4050205@gslab.com>
   2056 
   2057 Any Clues?
   2058 Thanks,
   2059 Manish
   2060 
   2061 /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/message.rb:358:in 
   2062 `message_to_chunks': undefined method `normalize_whitespace' for 
   2063 nil:NilClass (NoMethodError)
   2064         from 
   2065 /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/message.rb:158:in 
   2066 `load_from_source!'
   2067         from 
   2068 /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/message.rb:211:in `content'
   2069         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:173:in 
   2070 `sync_message'
   2071         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:395:in 
   2072 `send'
   2073         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:395:in 
   2074 `method_missing'
   2075         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/poll.rb:158:in 
   2076 `add_messages_from'
   2077         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/source.rb:93:in 
   2078 `each'
   2079         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:431:in 
   2080 `send'
   2081          ... 6 levels...
   2082         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/bin/sup-sync:128:in `each'
   2083         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/bin/sup-sync:128
   2084         from /usr/bin/sup-sync:16:in `load'
   2085         from /usr/bin/sup-sync:16
   2086 
   2087 
   2088 From manish@gslab.com  Wed Nov  7 04:35:07 2007
   2089 From: manish@gslab.com (Manish Sapariya)
   2090 Date: Wed, 07 Nov 2007 15:05:07 +0530
   2091 Subject: [sup-talk] 'undefined method `longname' for nil:NilClass' (error
   2092 	type NoMethodError)
   2093 Message-ID: <473186CB.8090307@gslab.com>
   2094 
   2095 This is seen when I run sup. The previous one was with sup-sync.
   2096 
   2097 Looks like some problem with handling encoded messages.
   2098 How can I back track?
   2099 Thanks,
   2100 -Manish
   2101 
   2102 
   2103 The problem was: 'undefined method `longname' for nil:NilClass' (error 
   2104 type NoMethodError)
   2105 A backtrace follows:
   2106 /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/poll.rb:102:in `do_poll': 
   2107 undefined method `longname' for nil:NilClass (NoMethodError)
   2108         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/poll.rb:157:in 
   2109 `add_messages_from'
   2110         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/source.rb:93:in 
   2111 `each'
   2112         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:431:in 
   2113 `send'
   2114         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:431:in 
   2115 `__pass'
   2116         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:420:in 
   2117 `method_missing'
   2118         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/poll.rb:139:in 
   2119 `add_messages_from'
   2120         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/poll.rb:96:in 
   2121 `do_poll'
   2122         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/poll.rb:84:in 
   2123 `each'
   2124          ... 24 levels...
   2125         from 
   2126 /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/modes/thread-index-mode.rb:431:in 
   2127 `load_threads'
   2128         from /usr/lib/ruby/gems/1.8/gems/sup-0.2/bin/sup:193
   2129         from /usr/bin/sup:16:in `load'
   2130         from /usr/bin/sup:16
   2131 
   2132 
   2133 From marcus-sup@bar-coded.net  Wed Nov  7 04:43:47 2007
   2134 From: marcus-sup@bar-coded.net (Marcus Williams)
   2135 Date: Wed, 07 Nov 2007 09:43:47 +0000
   2136 Subject: [sup-talk] new in svn: in-buffer search
   2137 In-Reply-To: <1194427158-sup-6839@timmy>
   2138 References: <1194388505-sup-2866@south> <1194425266-sup-7682@tomsk>
   2139 	<1194427158-sup-6839@timmy>
   2140 Message-ID: <1194428338-sup-2107@tomsk>
   2141 
   2142 On 7.11.2007, Eyal Oren wrote:
   2143 > Personally, I feel that '/' should search in buffer, as many other
   2144 > UNIX tools do (vi, mutt, less, etc). 
   2145 
   2146 I agree with you, but I dont think it makes sense in the inbox or
   2147 thread index views which is why I suggested having it mode dependant.
   2148 Maybe that would just confuse though.
   2149 
   2150 That aside I like it :)
   2151 
   2152 Marcus
   2153 
   2154 From marcus-sup@bar-coded.net  Wed Nov  7 04:53:16 2007
   2155 From: marcus-sup@bar-coded.net (Marcus Williams)
   2156 Date: Wed, 07 Nov 2007 09:53:16 +0000
   2157 Subject: [sup-talk] new in svn: in-buffer search
   2158 In-Reply-To: <1194427158-sup-6839@timmy>
   2159 References: <1194388505-sup-2866@south> <1194425266-sup-7682@tomsk>
   2160 	<1194427158-sup-6839@timmy>
   2161 Message-ID: <1194429069-sup-681@tomsk>
   2162 
   2163 On 7.11.2007, Eyal Oren wrote:
   2164 > Btw, William, thanks for the search! It's great. But wouldn't you
   2165 > like to search from the top instead of searching from cursor
   2166 > position? I often want to use search instead of hitting cursor-up
   2167 > seven times.
   2168 
   2169 Forgot to add - you can just hit '1' to move your cursor to the top of
   2170 the buffer if that helps.
   2171 
   2172 Marcus
   2173 
   2174 From col@baibell.org  Wed Nov  7 05:29:03 2007
   2175 From: col@baibell.org (Colin Bell)
   2176 Date: Wed, 07 Nov 2007 21:29:03 +1100
   2177 Subject: [sup-talk] [PATCH] Show unread message count in thread index
   2178 In-Reply-To: <1194400626-sup-6556@south>
   2179 References: <1194256715-sup-4315@lankhmar> <1194400626-sup-6556@south>
   2180 Message-ID: <1194430991-sup-3015@lankhmar>
   2181 
   2182 Excerpts from William Morgan's message of Wed Nov 07 13:09:46 +1100 2007:
   2183 > How about an "index-mode-widget" hook instead, that lets you replace the
   2184 > "(###)" with any string you want, based on the thread? (And if the
   2185 > return value is nil, use the current thread.size string.)
   2186 >
   2187 > You'll have to scan over them twice to get the sizing right, but it
   2188 > shouldn't be too bad of a patch...
   2189 >
   2190 
   2191 Attempt 2 :-)
   2192 
   2193 I've attached an example hook as well as the diff. If you accept the
   2194 patch something like the example should go up on the wiki.
   2195 
   2196 Please take a careful look at this patch as I am just learning Ruby so
   2197 I've probably done a few silly things.
   2198 
   2199 index-mode-widget
   2200 -----------------
   2201 File: ~/.sup/hooks/index-mode-widget.rb
   2202 Executes when formatting the output of the number of messages for each thread in the thread index.
   2203 Variables:
   2204       thread: The message thread to be formatted.
   2205 -------------- next part --------------
   2206 A non-text attachment was scrubbed...
   2207 Name: widget.diff
   2208 Type: application/octet-stream
   2209 Size: 2708 bytes
   2210 Desc: not available
   2211 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071107/dd62a04e/attachment.obj 
   2212 -------------- next part --------------
   2213 A non-text attachment was scrubbed...
   2214 Name: index-mode-widget.rb
   2215 Type: application/octet-stream
   2216 Size: 203 bytes
   2217 Desc: not available
   2218 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071107/dd62a04e/attachment-0001.obj 
   2219 
   2220 From vasudeva@linkswarm.com  Wed Nov  7 09:25:27 2007
   2221 From: vasudeva@linkswarm.com (vasudeva)
   2222 Date: Wed, 7 Nov 2007 09:25:27 -0500
   2223 Subject: [sup-talk] new in svn: in-buffer search
   2224 In-Reply-To: <1194425266-sup-7682@tomsk>
   2225 References: <1194388505-sup-2866@south> <1194425266-sup-7682@tomsk>
   2226 Message-ID: <20071107142527.GB1579@lenin.sovietwar.org>
   2227 
   2228 * on 11-07-07, Marcus Williams wrote:
   2229 > On 6.11.2007, William Morgan wrote:
   2230 > > First, note that I've remapped the index search from '/' to '\'. Hah!
   2231 > > 
   2232 > > '/' now does an in-buffer search, highlights the results, and jumps to
   2233 > > the first one. 'n' jumps to the next result; ^G or any other key cancels
   2234 > > the current search.
   2235 > 
   2236 > This feels a bit wrong to me (might just be me though). I'd say that
   2237 > searching for emails is the most used case for a search option in sup
   2238 > so should have the '/', and searching in buffer should be something
   2239 > different.
   2240 > 
   2241 > Better than that, make '/' mode dependant so you can use say ctrl-s to
   2242 > search for emails (always), ctrl-f to search in buffer (always) but
   2243 > map '/' to ctrl-s in thread-index mode (so that would be in inbox and
   2244 > search results). In all other modes '/' could map to ctrl-f.
   2245 
   2246 For purposes of migration from existing tools, and conforming to
   2247 established UNIX conventions, I like keeping / as buffer search (per
   2248 the 'screen search' CLI norm) and \ as ferret-index search (somewhat
   2249 unusual functionality in terms of CLI app search conventions, thus
   2250 deserving of a lower-priority keybinding). 
   2251 
   2252 That said, I think mode-dependency could be a neat resolve. 
   2253 
   2254 
   2255 
   2256 /></
   2257 
   2258 --
   2259 linkswarm.com :: Collaborative Insolence
   2260 vasudeva.linkswarm.com/gallery :: For The Faint of Heart
   2261 
   2262 
   2263 From marcus-sup@bar-coded.net  Wed Nov  7 11:06:18 2007
   2264 From: marcus-sup@bar-coded.net (Marcus Williams)
   2265 Date: Wed, 07 Nov 2007 16:06:18 +0000
   2266 Subject: [sup-talk] [PATCH] Fix for before-add-message hook
   2267 In-Reply-To: <1194400555-sup-7015@south>
   2268 References: <1194344471-sup-8807@tomsk> <1194400555-sup-7015@south>
   2269 Message-ID: <1194451347-sup-1828@tomsk>
   2270 
   2271 On 7.11.2007, William Morgan wrote:
   2272 > Excerpts from Marcus Williams's message of Tue Nov 06 02:25:04 -0800 2007:
   2273 > > Last one for now. This fixes the hook for filtering messages so that
   2274 > > messages you tag with spam/killed/deleted in the hook dont get
   2275 > > displayed by the inbox.
   2276 > 
   2277 > And applied. Thanks for all your hard work, Marcus!
   2278 
   2279 ... Mmmm - I'm having a few problems with that is-relevant change.
   2280 Sometimes (I've just seen one now) I get a new message that doesnt
   2281 make it to the inbox. Whats odd is that it does appear if I pull in a
   2282 few more threads or somehow update the inbox buffer.
   2283 
   2284 It might not be related to this change, but I'd not noticed it until
   2285 just now. I'll see if I can reproduce it somehow.
   2286 
   2287 Marcus
   2288 
   2289 From marcus-sup@bar-coded.net  Wed Nov  7 11:34:32 2007
   2290 From: marcus-sup@bar-coded.net (Marcus Williams)
   2291 Date: Wed, 07 Nov 2007 16:34:32 +0000
   2292 Subject: [sup-talk] [PATCH] Fix for before-add-message hook
   2293 In-Reply-To: <1194451347-sup-1828@tomsk>
   2294 References: <1194344471-sup-8807@tomsk> <1194400555-sup-7015@south>
   2295 	<1194451347-sup-1828@tomsk>
   2296 Message-ID: <1194452873-sup-8208@tomsk>
   2297 
   2298 On 7.11.2007, Marcus Williams wrote:
   2299 > It might not be related to this change, but I'd not noticed it until
   2300 > just now. I'll see if I can reproduce it somehow.
   2301 
   2302 Got it - in is_relevant you changed the patch to use "&&" instead of
   2303 "and" and I think this broke it because of the precedence of "&&"
   2304 makes it do
   2305 
   2306 m.labels.include? (:inbox && ......)
   2307 
   2308 whereas mine does
   2309 
   2310 (m.labels.include? :inbox) and (......)
   2311 
   2312 reverting back to "and" fixes it in my version.
   2313 
   2314 Marcus
   2315 
   2316 From wmorgan-sup@masanjin.net  Wed Nov  7 12:35:11 2007
   2317 From: wmorgan-sup@masanjin.net (William Morgan)
   2318 Date: Wed, 07 Nov 2007 09:35:11 -0800
   2319 Subject: [sup-talk] [PATCH] Fix for before-add-message hook
   2320 In-Reply-To: <1194452873-sup-8208@tomsk>
   2321 References: <1194344471-sup-8807@tomsk> <1194400555-sup-7015@south>
   2322 	<1194451347-sup-1828@tomsk> <1194452873-sup-8208@tomsk>
   2323 Message-ID: <1194456839-sup-763@south>
   2324 
   2325 Excerpts from Marcus Williams's message of Wed Nov 07 08:34:32 -0800 2007:
   2326 > Got it - in is_relevant you changed the patch to use "&&" instead of
   2327 > "and" and I think this broke it because of the precedence of "&&"
   2328 > makes it do
   2329 
   2330 Good catch. Fixed in SVN. (Still refusing to use "and" though
   2331 :) )
   2332 
   2333 -- 
   2334 William <wmorgan-sup at masanjin.net>
   2335 
   2336 From wmorgan-sup@masanjin.net  Wed Nov  7 12:41:36 2007
   2337 From: wmorgan-sup@masanjin.net (William Morgan)
   2338 Date: Wed, 07 Nov 2007 09:41:36 -0800
   2339 Subject: [sup-talk] [PATCH] Fix for before-add-message hook
   2340 In-Reply-To: <1194456839-sup-763@south>
   2341 References: <1194344471-sup-8807@tomsk> <1194400555-sup-7015@south>
   2342 	<1194451347-sup-1828@tomsk> <1194452873-sup-8208@tomsk>
   2343 	<1194456839-sup-763@south>
   2344 Message-ID: <1194457060-sup-5193@south>
   2345 
   2346 Excerpts from William Morgan's message of Wed Nov 07 09:35:11 -0800 2007:
   2347 > Good catch. Fixed in SVN. (Still refusing to use "and" though
   2348 > :) )
   2349 
   2350 To be clear, idiomatic Ruby is to use and/or for short-cut exit checks
   2351 like "or return nil", and use && and || for all "normal" boolean
   2352 comparisons. I'm not just trying to be a jerk! But I did blindly make
   2353 that change your patch without thinking about what I was doing, so thank
   2354 you for catching that.
   2355 
   2356 -- 
   2357 William <wmorgan-sup at masanjin.net>
   2358 
   2359 From chrisw@rice.edu  Wed Nov  7 13:38:19 2007
   2360 From: chrisw@rice.edu (Christopher Warrington)
   2361 Date: Wed, 07 Nov 2007 12:38:19 -0600
   2362 Subject: [sup-talk] [PATCH] Fix for before-add-message hook
   2363 In-Reply-To: <1194456839-sup-763@south>
   2364 References: <1194344471-sup-8807@tomsk> <1194400555-sup-7015@south>
   2365 	<1194451347-sup-1828@tomsk> <1194452873-sup-8208@tomsk>
   2366 	<1194456839-sup-763@south>
   2367 Message-ID: <1194460683-sup-6198@chris-tablet>
   2368 
   2369 Excerpts from William Morgan's message of Wed Nov 07 11:35:11 -0600 2007:
   2370 > Good catch. Fixed in SVN. (Still refusing to use "and" though
   2371 > :) )
   2372 
   2373 Thanks guys! This had been bugging me all day.
   2374 
   2375 -- 
   2376 Christopher Warrington <chrisw at rice.edu>
   2377 Jones College
   2378 
   2379 From wmorgan-sup@masanjin.net  Wed Nov  7 15:08:50 2007
   2380 From: wmorgan-sup@masanjin.net (William Morgan)
   2381 Date: Wed, 07 Nov 2007 12:08:50 -0800
   2382 Subject: [sup-talk] [PATCH] Show unread message count in thread index
   2383 In-Reply-To: <1194430991-sup-3015@lankhmar>
   2384 References: <1194256715-sup-4315@lankhmar> <1194400626-sup-6556@south>
   2385 	<1194430991-sup-3015@lankhmar>
   2386 Message-ID: <1194465975-sup-3345@south>
   2387 
   2388 Excerpts from Colin Bell's message of Wed Nov 07 02:29:03 -0800 2007:
   2389 > Please take a careful look at this patch as I am just learning Ruby so
   2390 > I've probably done a few silly things.
   2391 
   2392 I've applied this patch in modified form. There was a little work to be
   2393 done when the size of the widget changes (namely, if a widget suddenly
   2394 exceeds the previous size due to a change, the whole screen has to be
   2395 redrawn).
   2396 
   2397 I've also renamed the hook "index-mode-size-widget", in case there are
   2398 other widgets you'll want to tweak later. :)
   2399 
   2400 I've been trying it and I actually quite like this slight modification
   2401 of your hook code, which only displays the unread/total breakdown in the
   2402 case where some, but not all, messages in a thread are unread:
   2403 
   2404   unread_size = thread.map { |m, *o| m && m.has_label?(:unread) ? 1 : 0 }.sum
   2405   size = thread.size
   2406   
   2407   case
   2408     when size == 1 : ""
   2409     when (unread_size == 0) || (unread_size == size) : "(#{size})"
   2410     else "(#{unread_size}/#{size})"
   2411   end
   2412 
   2413 -- 
   2414 William <wmorgan-sup at masanjin.net>
   2415 
   2416 From wmorgan-sup@masanjin.net  Wed Nov  7 15:38:30 2007
   2417 From: wmorgan-sup@masanjin.net (William Morgan)
   2418 Date: Wed, 07 Nov 2007 12:38:30 -0800
   2419 Subject: [sup-talk] undefined method `normalize_whitespace' for
   2420 	nil:NilClass
   2421 In-Reply-To: <4731864B.4050205@gslab.com>
   2422 References: <4731864B.4050205@gslab.com>
   2423 Message-ID: <1194467886-sup-3015@south>
   2424 
   2425 Excerpts from Manish Sapariya's message of Wed Nov 07 01:32:59 -0800 2007:
   2426 > /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/message.rb:358:in `message_to_chunks': undefined method `normalize_whitespace' for nil:NilClass (NoMethodError)
   2427 
   2428 This should be fixed in SVN now.
   2429 
   2430 -- 
   2431 William <wmorgan-sup at masanjin.net>
   2432 
   2433 From wmorgan-sup@masanjin.net  Wed Nov  7 15:39:26 2007
   2434 From: wmorgan-sup@masanjin.net (William Morgan)
   2435 Date: Wed, 07 Nov 2007 12:39:26 -0800
   2436 Subject: [sup-talk] 'undefined method `longname' for nil:NilClass'
   2437 	(error type NoMethodError)
   2438 In-Reply-To: <473186CB.8090307@gslab.com>
   2439 References: <473186CB.8090307@gslab.com>
   2440 Message-ID: <1194467915-sup-5870@south>
   2441 
   2442 Excerpts from Manish Sapariya's message of Wed Nov 07 01:35:07 -0800 2007:
   2443 > The problem was: 'undefined method `longname' for nil:NilClass' (error 
   2444 > type NoMethodError)
   2445 > A backtrace follows:
   2446 > /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/poll.rb:102:in `do_poll': undefined method `longname' for nil:NilClass (NoMethodError)
   2447 
   2448 This should be fixed in SVN now. You may have to re-index the offending
   2449 source (sup-sync --all <source uri>).
   2450 
   2451 -- 
   2452 William <wmorgan-sup at masanjin.net>
   2453 
   2454 From wmorgan-sup@masanjin.net  Wed Nov  7 15:41:46 2007
   2455 From: wmorgan-sup@masanjin.net (William Morgan)
   2456 Date: Wed, 07 Nov 2007 12:41:46 -0800
   2457 Subject: [sup-talk] new in svn: in-buffer search
   2458 In-Reply-To: <20071107142527.GB1579@lenin.sovietwar.org>
   2459 References: <1194388505-sup-2866@south> <1194425266-sup-7682@tomsk>
   2460 	<20071107142527.GB1579@lenin.sovietwar.org>
   2461 Message-ID: <1194467985-sup-8861@south>
   2462 
   2463 Excerpts from vasudeva's message of Wed Nov 07 06:25:27 -0800 2007:
   2464 > For purposes of migration from existing tools, and conforming to
   2465 > established UNIX conventions, I like keeping / as buffer search (per
   2466 > the 'screen search' CLI norm) and \ as ferret-index search (somewhat
   2467 > unusual functionality in terms of CLI app search conventions, thus
   2468 > deserving of a lower-priority keybinding). 
   2469 
   2470 This was pretty much my thinking. Anyone else want to weight in?  (I'll
   2471 admit I'm having to retrain myself to use the new keybindings, which is
   2472 mildly irritating.)
   2473 
   2474 -- 
   2475 William <wmorgan-sup at masanjin.net>
   2476 
   2477 From marcus-sup@bar-coded.net  Wed Nov  7 16:05:58 2007
   2478 From: marcus-sup@bar-coded.net (Marcus Williams)
   2479 Date: Wed, 07 Nov 2007 21:05:58 +0000
   2480 Subject: [sup-talk] new in svn: in-buffer search
   2481 In-Reply-To: <1194467985-sup-8861@south>
   2482 References: <1194388505-sup-2866@south> <1194425266-sup-7682@tomsk>
   2483 	<20071107142527.GB1579@lenin.sovietwar.org>
   2484 	<1194467985-sup-8861@south>
   2485 Message-ID: <1194469177-sup-3271@tomsk>
   2486 
   2487 On 7.11.2007, William Morgan wrote:
   2488 > This was pretty much my thinking. Anyone else want to weight in?  (I'll
   2489 > admit I'm having to retrain myself to use the new keybindings, which is
   2490 > mildly irritating.)
   2491 
   2492 Retraining is one thing, the other is that the '\' is in different
   2493 places on all the keyboards I use! I'm sure I'll get over it though :)
   2494 
   2495 Two things - can we make the prompts different to make it more obvious
   2496 and make a blank search not do anything?
   2497 
   2498 Marcus
   2499 
   2500 From marcus-sup@bar-coded.net  Wed Nov  7 16:09:10 2007
   2501 From: marcus-sup@bar-coded.net (Marcus Williams)
   2502 Date: Wed, 07 Nov 2007 21:09:10 +0000
   2503 Subject: [sup-talk] [PATCH] Show unread message count in thread index
   2504 In-Reply-To: <1194465975-sup-3345@south>
   2505 References: <1194256715-sup-4315@lankhmar> <1194400626-sup-6556@south>
   2506 	<1194430991-sup-3015@lankhmar> <1194465975-sup-3345@south>
   2507 Message-ID: <1194469570-sup-4239@tomsk>
   2508 
   2509 On 7.11.2007, William Morgan wrote:
   2510 > I've also renamed the hook "index-mode-size-widget", in case there are
   2511 > other widgets you'll want to tweak later. :)
   2512 
   2513 ... status bar for instance :) I'm in the middle of doing one for this
   2514 but its causing me bother! Is there any way to get the new message
   2515 count without search for unread labels? How fast is that in ferret?
   2516 What happens if your result set has 60k messages in it, does it chew
   2517 memory? I cant imagine having 60k new messages, but on initial
   2518 sup-sync you might on a big mailbox.
   2519 
   2520 Marcus
   2521 
   2522 From col@baibell.org  Wed Nov  7 16:56:21 2007
   2523 From: col@baibell.org (Colin Bell)
   2524 Date: Thu, 08 Nov 2007 08:56:21 +1100
   2525 Subject: [sup-talk] new in svn: in-buffer search
   2526 In-Reply-To: <1194467985-sup-8861@south>
   2527 References: <1194388505-sup-2866@south> <1194425266-sup-7682@tomsk>
   2528 	<20071107142527.GB1579@lenin.sovietwar.org>
   2529 	<1194467985-sup-8861@south>
   2530 Message-ID: <1194472330-sup-3257@lankhmar>
   2531 
   2532 Excerpts from William Morgan's message of Thu Nov 08 07:41:46 +1100 2007:
   2533 > Excerpts from vasudeva's message of Wed Nov 07 06:25:27 -0800 2007:
   2534 > > For purposes of migration from existing tools, and conforming to
   2535 > > established UNIX conventions, I like keeping / as buffer search (per
   2536 > > the 'screen search' CLI norm) and \ as ferret-index search (somewhat
   2537 > > unusual functionality in terms of CLI app search conventions, thus
   2538 > > deserving of a lower-priority keybinding).
   2539 >
   2540 > This was pretty much my thinking. Anyone else want to weight in?  (I'll
   2541 > admit I'm having to retrain myself to use the new keybindings, which is
   2542 > mildly irritating.)
   2543 
   2544 You could replace \ with F for Filter or Ferret-index search if the \
   2545 character is too annoying. My first thought was to borrow L for Limit
   2546 from mutt but that doesn't work too well with labels :-)
   2547 
   2548 From wmorgan-sup@masanjin.net  Wed Nov  7 18:12:03 2007
   2549 From: wmorgan-sup@masanjin.net (William Morgan)
   2550 Date: Wed, 07 Nov 2007 15:12:03 -0800
   2551 Subject: [sup-talk] [PATCH] Show unread message count in thread index
   2552 In-Reply-To: <1194469570-sup-4239@tomsk>
   2553 References: <1194256715-sup-4315@lankhmar> <1194400626-sup-6556@south>
   2554 	<1194430991-sup-3015@lankhmar> <1194465975-sup-3345@south>
   2555 	<1194469570-sup-4239@tomsk>
   2556 Message-ID: <1194476394-sup-4617@south>
   2557 
   2558 Excerpts from Marcus Williams's message of Wed Nov 07 13:09:10 -0800 2007:
   2559 > Is there any way to get the new message count without search for
   2560 > unread labels?
   2561 
   2562 Nope. Unread is just another label, so you've got to do the search.
   2563 
   2564 > How fast is that in ferret?
   2565 
   2566 Pretty fast!
   2567 
   2568   $ sh devel/console.sh
   2569   [Wed Nov 07 15:03:42 -0800 2007] loading index...
   2570   [Wed Nov 07 15:03:42 -0800 2007] loaded index of 65765 messages
   2571   >> require 'benchmark'
   2572   >> all = "+label:unread -label:deleted -label:killed -label:spam"
   2573   >> inbox = all + " +label:inbox"
   2574   >> puts Benchmark.measure { Index.ferret.search(all).total_hits }
   2575     0.020000   0.000000   0.020000 (  0.015534)
   2576   >> Index.ferret.search(all).total_hits
   2577   => 57551
   2578   >> puts Benchmark.measure { Index.ferret.search(inbox).total_hits }
   2579   => nil
   2580   >> Index.ferret.search(inbox).total_hits
   2581   => 13
   2582 
   2583 The number in parentheses is elapsed real time. Probably fast enough to
   2584 call on every keypress, but feel free to cache it if you like.
   2585 
   2586 > What happens if your result set has 60k messages in it, does it chew
   2587 > memory?
   2588 
   2589 Nope. Play around with the methods above. Ferret is pretty good about
   2590 this.
   2591 
   2592 > I cant imagine having 60k new messages, but on initial sup-sync you
   2593 > might on a big mailbox.
   2594 
   2595 As you can see above, 57k of the 66k messages in my index are new.
   2596 (It's the last few years of ruby-talk.) Have I blown your mind? :)
   2597 
   2598 
   2599 -- 
   2600 William <wmorgan-sup at masanjin.net>
   2601 
   2602 From wmorgan-sup@masanjin.net  Wed Nov  7 20:40:48 2007
   2603 From: wmorgan-sup@masanjin.net (William Morgan)
   2604 Date: Wed, 07 Nov 2007 17:40:48 -0800
   2605 Subject: [sup-talk] new in svn: subscribe/unsubscribe from list
   2606 Message-ID: <1194485819-sup-2326@south>
   2607 
   2608 In thread-view-mode, pressing ( or ) will dump you into compose mode
   2609 with a pre-generated email to subscribe or unsubscribe from the
   2610 corresponding mailing list. (I guess this means it's time to add support
   2611 for multi-key keybindings.)
   2612 
   2613 Now you can unsubscribe from sup-talk even more easily!
   2614 
   2615 -- 
   2616 William <wmorgan-sup at masanjin.net>
   2617 
   2618 From wmorgan-sup@masanjin.net  Wed Nov  7 21:08:00 2007
   2619 From: wmorgan-sup@masanjin.net (William Morgan)
   2620 Date: Wed, 07 Nov 2007 18:08:00 -0800
   2621 Subject: [sup-talk] wup
   2622 Message-ID: <1194487545-sup-8478@south>
   2623 
   2624 Hi Suppers,
   2625 
   2626 My friend Leslie has hacked together "wup", a web interface on top of
   2627 Sup: http://jinsync.com/?q=node/16.
   2628 
   2629 75 lines of code gets you quite a lot!
   2630 
   2631 -- 
   2632 William <wmorgan-sup at masanjin.net>
   2633 
   2634 From manish@gslab.com  Thu Nov  8 00:15:09 2007
   2635 From: manish@gslab.com (Manish Sapariya)
   2636 Date: Thu, 08 Nov 2007 10:45:09 +0530
   2637 Subject: [sup-talk] 'undefined method `longname' for
   2638  nil:NilClass'	(error type NoMethodError)
   2639 In-Reply-To: <1194467915-sup-5870@south>
   2640 References: <473186CB.8090307@gslab.com> <1194467915-sup-5870@south>
   2641 Message-ID: <47329B5D.4090907@gslab.com>
   2642 
   2643 Hi Williams,
   2644 Thanks for the fix. However looks like I have some weird mail in my box.
   2645 The body and the charset both are nil. Is there any way I can backtrack the
   2646 offending message and find out whats the character set and encoding used
   2647 for that message?
   2648 Thanks,
   2649 Manish
   2650 
   2651 (rdb:1) list
   2652 [372, 381] in /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/message.rb
   2653    372    def self.convert_from body, charset
   2654    373      begin
   2655    374        raise MessageFormatError, "RubyMail decode returned a null 
   2656 body" unless body
   2657    375        return body unless charset
   2658    376        Iconv.iconv($encoding, charset, body).join
   2659    377      rescue Errno::EINVAL, Iconv::InvalidEncoding, 
   2660 Iconv::IllegalSequence, MessageFormatError => e
   2661    378        Redwood::log "warning: error (#{e.class.name}) decoding 
   2662 message body from #{charset}: #{e.message}"
   2663    379        File.open("sup-unable-to-decode.txt", "w") { |f| f.write 
   2664 body }
   2665    380        body
   2666    381      end
   2667 (rdb:1) p m.charset
   2668 nil
   2669 (rdb:1) p m.body
   2670 nil
   2671 
   2672 
   2673 
   2674 William Morgan wrote:
   2675 > Excerpts from Manish Sapariya's message of Wed Nov 07 01:35:07 -0800 2007:
   2676 >   
   2677 >> The problem was: 'undefined method `longname' for nil:NilClass' (error 
   2678 >> type NoMethodError)
   2679 >> A backtrace follows:
   2680 >> /usr/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/poll.rb:102:in `do_poll': undefined method `longname' for nil:NilClass (NoMethodError)
   2681 >>     
   2682 >
   2683 > This should be fixed in SVN now. You may have to re-index the offending
   2684 > source (sup-sync --all <source uri>).
   2685 >
   2686 >   
   2687 
   2688 
   2689 From marcus-sup@bar-coded.net  Thu Nov  8 03:31:35 2007
   2690 From: marcus-sup@bar-coded.net (Marcus Williams)
   2691 Date: Thu, 08 Nov 2007 08:31:35 +0000
   2692 Subject: [sup-talk] [PATCH] Show unread message count in thread index
   2693 In-Reply-To: <1194476394-sup-4617@south>
   2694 References: <1194256715-sup-4315@lankhmar> <1194400626-sup-6556@south>
   2695 	<1194430991-sup-3015@lankhmar> <1194465975-sup-3345@south>
   2696 	<1194469570-sup-4239@tomsk> <1194476394-sup-4617@south>
   2697 Message-ID: <1194510622-sup-5004@tomsk>
   2698 
   2699 On 7.11.2007, William Morgan wrote:
   2700 > > I cant imagine having 60k new messages, but on initial sup-sync you
   2701 > > might on a big mailbox.
   2702 > 
   2703 > As you can see above, 57k of the 66k messages in my index are new.
   2704 > (It's the last few years of ruby-talk.) Have I blown your mind? :)
   2705 
   2706 ruby seems to do this regularly (at the moment daily!) :)
   2707 
   2708 From kevin.mark@verizon.net  Thu Nov  8 03:49:10 2007
   2709 From: kevin.mark@verizon.net (Kevin Mark)
   2710 Date: Thu, 8 Nov 2007 03:49:10 -0500
   2711 Subject: [sup-talk] wup
   2712 In-Reply-To: <1194487545-sup-8478@south>
   2713 References: <1194487545-sup-8478@south>
   2714 Message-ID: <20071108084910.GH13064@horacrux>
   2715 
   2716 On Wed, Nov 07, 2007 at 06:08:00PM -0800, William Morgan wrote:
   2717 > Hi Suppers,
   2718 > 
   2719 > My friend Leslie has hacked together "wup", a web interface on top of
   2720 > Sup: http://jinsync.com/?q=node/16.
   2721 > 
   2722 > 75 lines of code gets you quite a lot!
   2723 > 
   2724 This is what make FLOSS great! Release early, Release often. And allow
   2725 folks to build on it. Cool.
   2726 -K
   2727 -- 
   2728 |  .''`.  == Debian GNU/Linux == |       my web site:           |
   2729 | : :' :      The  Universal     |mysite.verizon.net/kevin.mark/|
   2730 | `. `'      Operating System    | go to counter.li.org and     |
   2731 |   `-    http://www.debian.org/ |    be counted! #238656       |
   2732 |  my keyserver: subkeys.pgp.net |     my NPO: cfsg.org         |
   2733 |join the new debian-community.org to help Debian!              |
   2734 |_______  Unless I ask to be CCd, assume I am subscribed _______|
   2735 
   2736 From pierre@baillet.name  Thu Nov  8 05:22:29 2007
   2737 From: pierre@baillet.name (Pierre Baillet)
   2738 Date: Thu, 8 Nov 2007 11:22:29 +0100
   2739 Subject: [sup-talk] [BUG] Killed thread and unread count
   2740 Message-ID: <6205b42d0711080222i119831cdl64edf4a3291a3078@mail.gmail.com>
   2741 
   2742 Hi,
   2743 
   2744 When an unread thread is killed, it is still marked as belonging to +inbox
   2745 and hence is accounted as unread by sup in the "Label list". However, when
   2746 displaying the +inbox labelled emails, this thread does not appear. I think
   2747 this behaviour may confuse the user. Shouldn't killed threads be marked as
   2748 read ?
   2749 
   2750 -- 
   2751 Pierre Baillet <pierre at baillet.name>
   2752 -------------- next part --------------
   2753 An HTML attachment was scrubbed...
   2754 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071108/cbc7065b/attachment.html 
   2755 
   2756 From marcus-sup@bar-coded.net  Thu Nov  8 05:44:44 2007
   2757 From: marcus-sup@bar-coded.net (Marcus Williams)
   2758 Date: Thu, 08 Nov 2007 10:44:44 +0000
   2759 Subject: [sup-talk] [PATCH] Title bar and status bar widget
   2760 Message-ID: <1194518450-sup-4792@tomsk>
   2761 
   2762 This patch adds two new hooks that allow you to set the title bar of a
   2763 terminal (default is no title, to support non-terminal users) and the
   2764 status bar of sup (default is standard status bar string).
   2765 
   2766 status-bar-widget
   2767 -----------------
   2768 File: /home/marcus/.sup/hooks/status-bar-widget.rb
   2769 Generates the contents of the status bar
   2770 Variables:
   2771   total: Total number of messages in inbox
   2772   spam: Total number of messages marked as spam
   2773   new: Total number of messages marked as unread (new)
   2774   mode: Mode string
   2775   status: Mode status
   2776   title: Mode title
   2777 
   2778 terminal-title-widget
   2779 ---------------------
   2780 File: /home/marcus/.sup/hooks/terminal-title-widget.rb
   2781 Generates the contents of the title bar
   2782 Variables:
   2783   total: Total number of messages in inbox
   2784   spam: Total number of messages marked as spam
   2785   new: Total number of messages marked as unread (new)
   2786   mode: Mode string
   2787   status: Mode status
   2788   title: Mode title
   2789 
   2790 So I have in my terminal-title-widget.rb (giving me a quick way to see
   2791 if I have any email when iconised):
   2792 
   2793 "Sup/#{Redwood::VERSION} - #{new} unread of #{total} messages"
   2794 
   2795 In my title bar this looks like
   2796 
   2797 Sup/0.2 - 12 unread of 4520 messages
   2798 
   2799 Note that the numbers come from the index, so if you read a message
   2800 and dont save (via '$') the display doesnt know about those changes.
   2801 Incoming messages go straight to index so will update it
   2802 automatically.
   2803 
   2804 If its any use I could add counts for other forms of messages
   2805 (starred/killed etc) but I only use the spam, new and total and I only
   2806 use spam to track what the before-add-message hook is doing :)
   2807 
   2808 Marcus
   2809 
   2810 From marcus-sup@bar-coded.net  Thu Nov  8 06:18:51 2007
   2811 From: marcus-sup@bar-coded.net (Marcus Williams)
   2812 Date: Thu, 08 Nov 2007 11:18:51 +0000
   2813 Subject: [sup-talk] Sup sources question
   2814 Message-ID: <1194520465-sup-413@tomsk>
   2815 
   2816 I cocked up when I set up one of my sources so that I added a sent
   2817 folder from imap to sup without the sent label.
   2818 
   2819 What I thought I'd do is sup-dump, sup-sync everything again and then
   2820 restore my settings. Then I remembered I'd noticed that you have a
   2821 source_id in the ferret index, so I can search for messages marked
   2822 with that source_id and add the label in manually. The only problem is
   2823 I dont know the source_id (although its easy to find out in the
   2824 console.sh).
   2825 
   2826 What I'm thinking is, rather than use an auto-generated id which I
   2827 assume is some index into the source.yaml could you not name the
   2828 sources in some way in the yaml so that you can then use this name to
   2829 look up certain sources? This would also stop your source.yaml and
   2830 your source_id's getting out of sync which I assume they can if you
   2831 add a source to your yaml file in the middle somewhere. On startup you
   2832 could check for uniqueness if needed.
   2833 
   2834 Does this make sense?
   2835 
   2836 Marcus
   2837 
   2838 From marcus-sup@bar-coded.net  Thu Nov  8 06:21:06 2007
   2839 From: marcus-sup@bar-coded.net (Marcus Williams)
   2840 Date: Thu, 08 Nov 2007 11:21:06 +0000
   2841 Subject: [sup-talk] Sup sources question
   2842 In-Reply-To: <1194520465-sup-413@tomsk>
   2843 References: <1194520465-sup-413@tomsk>
   2844 Message-ID: <1194520783-sup-4954@tomsk>
   2845 
   2846 On 8.11.2007, Marcus Williams wrote:
   2847 > What I'm thinking is, rather than use an auto-generated id which I
   2848 > assume is some index into the source.yaml could you not name the
   2849 > sources in some way in the yaml so that you can then use this name to
   2850 > look up certain sources? This would also stop your source.yaml and
   2851 > your source_id's getting out of sync which I assume they can if you
   2852 > add a source to your yaml file in the middle somewhere. On startup you
   2853 > could check for uniqueness if needed.
   2854 
   2855 Rather embarrassingly, I just noticed the id flag in sources.yaml
   2856 which probably does exactly this :)
   2857 
   2858 Ignore the noise..
   2859 
   2860 From vasudeva@linkswarm.com  Thu Nov  8 07:10:27 2007
   2861 From: vasudeva@linkswarm.com (vasudeva)
   2862 Date: Thu, 8 Nov 2007 07:10:27 -0500
   2863 Subject: [sup-talk] [PATCH] Title bar and status bar widget
   2864 In-Reply-To: <1194518450-sup-4792@tomsk>
   2865 References: <1194518450-sup-4792@tomsk>
   2866 Message-ID: <20071108121027.GA19876@lenin.sovietwar.org>
   2867 
   2868 * on 11-08-07, Marcus Williams wrote:
   2869 > This patch adds two new hooks that allow you to set the title bar of a
   2870 > terminal (default is no title, to support non-terminal users) and the
   2871 > status bar of sup (default is standard status bar string).
   2872 
   2873 A case for :confirm_no_patches ? ;)
   2874 
   2875 
   2876 
   2877 /></
   2878 
   2879 --
   2880 linkswarm.com :: Collaborative Insolence
   2881 vasudeva.linkswarm.com/gallery :: For The Faint of Heart
   2882 
   2883 
   2884 From nevans@mdlogix.com  Thu Nov  8 09:49:22 2007
   2885 From: nevans@mdlogix.com (nicholas a. evans)
   2886 Date: Thu, 08 Nov 2007 09:49:22 -0500
   2887 Subject: [sup-talk] wup
   2888 In-Reply-To: <1194487545-sup-8478@south>
   2889 References: <1194487545-sup-8478@south>
   2890 Message-ID: <1194533290-sup-646@nevans-desktop>
   2891 
   2892 Excerpts from William Morgan's message of Wed Nov 07 21:08:00 -0500 2007:
   2893 > My friend Leslie has hacked together "wup", a web interface on top of
   2894 > Sup: http://jinsync.com/?q=node/16.
   2895 > 
   2896 > 75 lines of code gets you quite a lot!
   2897 
   2898 Sweet!  Using merb too.  :-)
   2899 
   2900 -- 
   2901 Nick
   2902 
   2903 From eyal.oren@deri.org  Thu Nov  8 10:47:30 2007
   2904 From: eyal.oren@deri.org (Eyal Oren)
   2905 Date: Thu, 08 Nov 2007 16:47:30 +0100
   2906 Subject: [sup-talk] patch: execute shell command
   2907 Message-ID: <1194536747-sup-4081@timmy>
   2908 
   2909 Find attached a simple patch (against svn head) to execute a shell command using 
   2910 '!' (as in vi or mutt). It requires the 'session' gem: if you want to get rid of 
   2911 that dependency you can just capture the output using >& etc.
   2912 
   2913 It works for me. If I did something wrong, let me know.
   2914 
   2915 -- 
   2916  -eyal
   2917 -------------- next part --------------
   2918 A non-text attachment was scrubbed...
   2919 Name: shell.patch
   2920 Type: application/octet-stream
   2921 Size: 1154 bytes
   2922 Desc: not available
   2923 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071108/1f8becde/attachment.obj 
   2924 
   2925 From eyal.oren@deri.org  Thu Nov  8 10:51:30 2007
   2926 From: eyal.oren@deri.org (Eyal Oren)
   2927 Date: Thu, 08 Nov 2007 16:51:30 +0100
   2928 Subject: [sup-talk] bugfix in thread-index-mode
   2929 Message-ID: <1194536965-sup-2478@timmy>
   2930 
   2931 Find attached tiny bugfix in thread-index-mode that caused sup (svn) to crash 
   2932 when archiving/deleting messages in thread-mode.
   2933 
   2934 -- 
   2935  -eyal
   2936 -------------- next part --------------
   2937 A non-text attachment was scrubbed...
   2938 Name: thread.patch
   2939 Type: application/octet-stream
   2940 Size: 455 bytes
   2941 Desc: not available
   2942 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071108/162203a4/attachment.obj 
   2943 
   2944 From sup-talk@gurski.org  Thu Nov  8 11:57:26 2007
   2945 From: sup-talk@gurski.org (Michael Gurski)
   2946 Date: Thu, 08 Nov 2007 11:57:26 -0500
   2947 Subject: [sup-talk] bugfix in thread-index-mode
   2948 In-Reply-To: <1194536965-sup-2478@timmy>
   2949 References: <1194536965-sup-2478@timmy>
   2950 Message-ID: <1194540012-sup-3316@ln>
   2951 
   2952 Excerpts from eyal.oren's message of Thu Nov 08 10:51:30 -0500 2007:
   2953 > Find attached tiny bugfix in thread-index-mode that caused sup (svn) to crash 
   2954 > when archiving/deleting messages in thread-mode.
   2955 
   2956 Excellent, this seems to have fixed the problem I posted about
   2957 earlier.
   2958 
   2959 
   2960 -- 
   2961 Michael A. Gurski (opt. [first].)[last]@pobox.com  http://www.pobox.com/~[last]
   2962 1024R/39B5BADD PGP: 34 93 A9 94 B1 59 48 B7  17 57 1E 4E 62 56 45 70
   2963 1024D/1166213E GPG: 628F 37A4 62AF 1475 45DB  AD81 ADC9 E606 1166 213E
   2964 4096R/C0B4F04B GPG: 5B3E 75D7 43CF CF34 4042  7788 1DCE B5EE C0B4 F04B
   2965 Views expressed by the host do not reflect the staff, management or sponsors.
   2966 
   2967 
   2968 From sup-talk@gurski.org  Thu Nov  8 09:56:38 2007
   2969 From: sup-talk@gurski.org (Michael Gurski)
   2970 Date: Thu, 08 Nov 2007 09:56:38 -0500
   2971 Subject: [sup-talk] exception when archiving in rev 684
   2972 Message-ID: <1194533224-sup-2750@ln>
   2973 
   2974 I've been getting exceptions whenever I attempt to archive a message
   2975 or thread if I'm NOT in the main index, in rev 684.  I can either be
   2976 reading a thread and hit "a" or be in an index for a specific label
   2977 and hit "a", and both will trigger the following exception:
   2978 
   2979 The problem was: 'undefined method `contains?' for
   2980 #<Array:0x4159b5b4>' (error type NoMethodError)
   2981 A backtrace follows:
   2982 ./lib/sup/modes/thread-index-mode.rb:71:in `contains_thread?': undefined method `contains?' for #<Array:0x4159b5b4> (NoMethodError)
   2983         from ./lib/sup/modes/inbox-mode.rb:42:in `handle_archived_update'
   2984         from ./lib/sup/update.rb:16:in `send'
   2985         from ./lib/sup/update.rb:16:in `relay'
   2986         from ./lib/sup/update.rb:16:in `each'
   2987         from ./lib/sup/update.rb:16:in `relay'
   2988         from ./lib/sup/util.rb:422:in `send'
   2989         from ./lib/sup/util.rb:422:in `method_missing'
   2990         from ./lib/sup/modes/thread-index-mode.rb:198:in `actually_toggle_archived'
   2991         from ./lib/sup/modes/thread-index-mode.rb:227:in `toggle_archived'
   2992         from ./lib/sup/mode.rb:54:in `send'
   2993         from ./lib/sup/mode.rb:54:in `handle_input'
   2994         from ./lib/sup/buffer.rb:203:in `handle_input'
   2995         from bin/sup:210
   2996 
   2997 Currently, to archive, I need to "x" while reading, and make sure I
   2998 hit "a" in the main index.
   2999 
   3000 -- 
   3001 Michael A. Gurski (opt. [first].)[last]@pobox.com  http://www.pobox.com/~[last]
   3002 1024R/39B5BADD PGP: 34 93 A9 94 B1 59 48 B7  17 57 1E 4E 62 56 45 70
   3003 1024D/1166213E GPG: 628F 37A4 62AF 1475 45DB  AD81 ADC9 E606 1166 213E
   3004 4096R/C0B4F04B GPG: 5B3E 75D7 43CF CF34 4042  7788 1DCE B5EE C0B4 F04B
   3005 Views expressed by the host do not reflect the staff, management or sponsors.
   3006 
   3007 
   3008 From marcus-sup@bar-coded.net  Fri Nov  9 02:40:32 2007
   3009 From: marcus-sup@bar-coded.net (Marcus Williams)
   3010 Date: Fri, 09 Nov 2007 07:40:32 +0000
   3011 Subject: [sup-talk] [PATCH] Title bar and status bar widget
   3012 In-Reply-To: <20071108121027.GA19876@lenin.sovietwar.org>
   3013 References: <1194518450-sup-4792@tomsk>
   3014 	<20071108121027.GA19876@lenin.sovietwar.org>
   3015 Message-ID: <1194593969-sup-9828@tomsk>
   3016 
   3017 On 8.11.2007, vasudeva wrote:
   3018 > * on 11-08-07, Marcus Williams wrote:
   3019 > > This patch adds two new hooks that allow you to set the title bar of a
   3020 > > terminal (default is no title, to support non-terminal users) and the
   3021 > > status bar of sup (default is standard status bar string).
   3022 > 
   3023 > A case for :confirm_no_patches ? ;)
   3024 
   3025 Oops! :) Attached this time....
   3026 -------------- next part --------------
   3027 A non-text attachment was scrubbed...
   3028 Name: widgets-patch
   3029 Type: application/octet-stream
   3030 Size: 2037 bytes
   3031 Desc: not available
   3032 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071109/5cedd47f/attachment.obj 
   3033 
   3034 From marcus-sup@bar-coded.net  Fri Nov  9 10:33:35 2007
   3035 From: marcus-sup@bar-coded.net (Marcus Williams)
   3036 Date: Fri, 09 Nov 2007 15:33:35 +0000
   3037 Subject: [sup-talk] [PATCH] Pipe message/attachement to shell command
   3038 Message-ID: <1194622205-sup-2949@tomsk>
   3039 
   3040 Hi -
   3041 
   3042 On the back of Eyal's patch heres a patch to pipe a message or
   3043 attachment to a shell command via '|' in thread view mode.
   3044 
   3045 William, in the code it says that message.raw_message is slow but
   3046 thats the only way I could do it without creating a string via
   3047 each_raw_message_line. Is there a better way than this?
   3048 
   3049 Marcus
   3050 -------------- next part --------------
   3051 A non-text attachment was scrubbed...
   3052 Name: pipe-patch
   3053 Type: application/octet-stream
   3054 Size: 1467 bytes
   3055 Desc: not available
   3056 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071109/4a0fc011/attachment.obj 
   3057 
   3058 From wmorgan-sup@masanjin.net  Fri Nov  9 13:46:52 2007
   3059 From: wmorgan-sup@masanjin.net (William Morgan)
   3060 Date: Fri, 09 Nov 2007 10:46:52 -0800
   3061 Subject: [sup-talk] [PATCH] Natural language date searches
   3062 In-Reply-To: <1193519205-sup-6445@tomsk>
   3063 References: <1193436327-sup-5753@tomsk> <1193519205-sup-6445@tomsk>
   3064 Message-ID: <1194633682-sup-962@south>
   3065 
   3066 Excerpts from Marcus Williams's message of Sat Oct 27 14:10:35 -0700 2007:
   3067 > Attached is a tweaked patch so that you dont get an error if you pass
   3068 > a query string that Chronic cant parse.
   3069 
   3070 Modified to skip parsing if Chronic isn't available, and applied.
   3071 Thanks!
   3072 
   3073 Also made it accept one-word Chronic tokens without parentheses,
   3074 although "after:yesterday" means "after yesterday noon", which maybe is
   3075 not so useful...
   3076 
   3077 -- 
   3078 William <wmorgan-sup at masanjin.net>
   3079 
   3080 From wmorgan-sup@masanjin.net  Fri Nov  9 14:04:43 2007
   3081 From: wmorgan-sup@masanjin.net (William Morgan)
   3082 Date: Fri, 09 Nov 2007 11:04:43 -0800
   3083 Subject: [sup-talk] Crash on retrieving (many) mails
   3084 In-Reply-To: <20071106095736.baa060ad.alexander.panek@brainsware.org>
   3085 References: <20071106095736.baa060ad.alexander.panek@brainsware.org>
   3086 Message-ID: <1194635022-sup-600@south>
   3087 
   3088 Excerpts from Alexander Panek's message of Tue Nov 06 00:57:36 -0800 2007:
   3089 > This happened when I retrieved like mails from a few accounts from the
   3090 > last four days (a few hundred mails, so to speak).
   3091 > 
   3092 > Trace:
   3093 > > The problem was: 'undefined method `longname' for nil:NilClass' (error type NoMethodError)
   3094 
   3095 This should be fixed in SVN.
   3096 
   3097 > Apart from that, sup (or sup-sync, don't know) seems to be quite slow
   3098 > when syncing a few accounts with lots of mails. Is that caused by the
   3099 > mail servers or by sup itself?
   3100 
   3101 The message importation process is slow. There's no getting around it;
   3102 it's the price you pay for searching being really quick.
   3103 
   3104 -- 
   3105 William <wmorgan-sup at masanjin.net>
   3106 
   3107 From wmorgan-sup@masanjin.net  Fri Nov  9 14:07:05 2007
   3108 From: wmorgan-sup@masanjin.net (William Morgan)
   3109 Date: Fri, 09 Nov 2007 11:07:05 -0800
   3110 Subject: [sup-talk] Feature requests for more Googlish behaviour
   3111 In-Reply-To: <1194358627-sup-630@timmy>
   3112 References: <414a99f20711060552u1f35363ai46fad5719f66847c@mail.gmail.com>
   3113 	<1194358083-sup-2587@tomsk> <1194358627-sup-630@timmy>
   3114 Message-ID: <1194635118-sup-766@south>
   3115 
   3116 Excerpts from Eyal Oren's message of Tue Nov 06 06:19:29 -0800 2007:
   3117 > Regarding autocomplete, I have problems when autocompleting contacts
   3118 > whose name is something like "Doe, John". Maybe somebody is seeing
   3119 > similar issues?
   3120 > 
   3121 > The name is autocompleted correctly, but the email is sent to two
   3122 > addresses: doe at smtphost (which doesn't arrive) and to john.doe at ...
   3123 > (which arrives correctly). Has anyone seen something similar?
   3124 
   3125 I think this should be fixed in SVN. (By, of course, writing my own
   3126 55-line state machine to parse sequences of email addresses. Sigh.)
   3127 
   3128 The downside is that names with commas like "Doe, John" now require
   3129 double-quotes in order to complete. 
   3130 
   3131 -- 
   3132 William <wmorgan-sup at masanjin.net>
   3133 
   3134 From wmorgan-sup@masanjin.net  Fri Nov  9 14:09:17 2007
   3135 From: wmorgan-sup@masanjin.net (William Morgan)
   3136 Date: Fri, 09 Nov 2007 11:09:17 -0800
   3137 Subject: [sup-talk] Feature requests for more Googlish behaviour
   3138 In-Reply-To: <414a99f20711060552u1f35363ai46fad5719f66847c@mail.gmail.com>
   3139 References: <414a99f20711060552u1f35363ai46fad5719f66847c@mail.gmail.com>
   3140 Message-ID: <1194635257-sup-765@south>
   3141 
   3142 Excerpts from Tim Vaughan's message of Tue Nov 06 05:52:27 -0800 2007:
   3143 > * Google-style contact autocompletion: typing a contact's name, or
   3144 > part thereof, should provide autocomplete suggestions which can be
   3145 > chosen before or after composing the message body.
   3146 
   3147 As Marcus points out, Sup has tab completion. Only does prefix matches,
   3148 but it's the same basic functionality.
   3149 
   3150 > * Undo button: since I'm still learning the keyboard commands (and, I
   3151 > think, because they're still in flux) an undo button would be useful
   3152 > so I can un-tag an email mistakenly tagged as spam.
   3153 
   3154 Yes, this has been on the todo list for quite some time. One day!
   3155 Currently you can "undo everything since I last pressed the $ key" by
   3156 hitting @.
   3157 
   3158 -- 
   3159 William <wmorgan-sup at masanjin.net>
   3160 
   3161 From wmorgan-sup@masanjin.net  Fri Nov  9 14:10:05 2007
   3162 From: wmorgan-sup@masanjin.net (William Morgan)
   3163 Date: Fri, 09 Nov 2007 11:10:05 -0800
   3164 Subject: [sup-talk] Exception from initial sup-sync
   3165 In-Reply-To: <1194309716-sup-1684@south>
   3166 References: <1194290667-sup-5900@silver> <1194309716-sup-1684@south>
   3167 Message-ID: <1194635397-sup-79@south>
   3168 
   3169 Excerpts from William Morgan's message of Mon Nov 05 16:42:11 -0800 2007:
   3170 > Yay, another RubyMail weirdness to work around!
   3171 
   3172 Should be fixed in SVN.
   3173 
   3174 -- 
   3175 William <wmorgan-sup at masanjin.net>
   3176 
   3177 From wmorgan-sup@masanjin.net  Fri Nov  9 14:13:45 2007
   3178 From: wmorgan-sup@masanjin.net (William Morgan)
   3179 Date: Fri, 09 Nov 2007 11:13:45 -0800
   3180 Subject: [sup-talk] 'undefined method `longname' for nil:NilClass'
   3181 	(error type NoMethodError)
   3182 In-Reply-To: <47329B5D.4090907@gslab.com>
   3183 References: <473186CB.8090307@gslab.com> <1194467915-sup-5870@south>
   3184 	<47329B5D.4090907@gslab.com>
   3185 Message-ID: <1194635480-sup-4853@south>
   3186 
   3187 Excerpts from Manish Sapariya's message of Wed Nov 07 21:15:09 -0800 2007:
   3188 > Thanks for the fix. However looks like I have some weird mail in my
   3189 > box.  The body and the charset both are nil. Is there any way I can
   3190 > backtrack the offending message and find out whats the character set
   3191 > and encoding used for that message?
   3192 
   3193 You have two options: insert some puts or logging statements in the code
   3194 and try and figure out what the message id was (which then you can use
   3195 to locate the message in the source), or convert the source into an mbox
   3196 file (if it isn't already) and divide and conquer it until you find the
   3197 offending message.
   3198 
   3199 Probably the first one is easier at this point.
   3200 
   3201 -- 
   3202 William <wmorgan-sup at masanjin.net>
   3203 
   3204 From wmorgan-sup@masanjin.net  Fri Nov  9 14:17:21 2007
   3205 From: wmorgan-sup@masanjin.net (William Morgan)
   3206 Date: Fri, 09 Nov 2007 11:17:21 -0800
   3207 Subject: [sup-talk] bugfix in thread-index-mode
   3208 In-Reply-To: <1194536965-sup-2478@timmy>
   3209 References: <1194536965-sup-2478@timmy>
   3210 Message-ID: <1194635834-sup-4277@south>
   3211 
   3212 Excerpts from Eyal Oren's message of Thu Nov 08 07:51:30 -0800 2007:
   3213 > Find attached tiny bugfix in thread-index-mode that caused sup (svn)
   3214 > to crash when archiving/deleting messages in thread-mode.
   3215 
   3216 Applied, thanks!
   3217 
   3218 -- 
   3219 William <wmorgan-sup at masanjin.net>
   3220 
   3221 From marcus-sup@bar-coded.net  Fri Nov  9 15:29:58 2007
   3222 From: marcus-sup@bar-coded.net (Marcus Williams)
   3223 Date: Fri, 09 Nov 2007 20:29:58 +0000
   3224 Subject: [sup-talk] [PATCH] Natural language date searches
   3225 In-Reply-To: <1194633682-sup-962@south>
   3226 References: <1193436327-sup-5753@tomsk> <1193519205-sup-6445@tomsk>
   3227 	<1194633682-sup-962@south>
   3228 Message-ID: <1194639409-sup-6180@tomsk>
   3229 
   3230 On 9.11.2007, William Morgan wrote:
   3231 > Modified to skip parsing if Chronic isn't available, and applied.
   3232 > Thanks!
   3233 > 
   3234 > Also made it accept one-word Chronic tokens without parentheses,
   3235 > although "after:yesterday" means "after yesterday noon", which maybe is
   3236 > not so useful...
   3237 
   3238 I think I may have worked out how to fix that - change the parse
   3239 method to be:
   3240 
   3241 realdate = Chronic.parse(datestr, :guess => false).begin
   3242 
   3243 If guess is set to false it looks like Chronic always returns a span
   3244 and you can just select the beginning of the span.  At the moment I'm
   3245 pretty sure you always want the beginning of the span in search
   3246 situations. Certainly makes the single tokens more usable:
   3247 
   3248 irb(main):003:0> Chronic.parse("november", :guess => false).begin
   3249 => Thu Nov 01 00:00:00 +0000 2007
   3250 irb(main):004:0> Chronic.parse("monday", :guess => false).begin
   3251 => Mon Nov 12 00:00:00 +0000 2007
   3252 irb(main):005:0> Chronic.parse("24 hours ago", :guess => false).begin
   3253 => Thu Nov 08 20:24:14 +0000 2007
   3254 irb(main):006:0> Chronic.parse("sunday", :guess => false).begin
   3255 => Sun Nov 11 00:00:00 +0000 2007
   3256 irb(main):008:0> Chronic.parse("last sunday", :guess => false).begin
   3257 => Sun Nov 04 00:00:00 +0000 2007
   3258 irb(main):010:0> Chronic.parse("first monday of november", :guess => false).begin
   3259 => Mon Nov 05 00:00:00 +0000 2007
   3260 
   3261 Marcus
   3262 
   3263 From marcus-sup@bar-coded.net  Fri Nov  9 15:44:08 2007
   3264 From: marcus-sup@bar-coded.net (Marcus Williams)
   3265 Date: Fri, 09 Nov 2007 20:44:08 +0000
   3266 Subject: [sup-talk] [PATCH] Natural language date searches
   3267 In-Reply-To: <1194639409-sup-6180@tomsk>
   3268 References: <1193436327-sup-5753@tomsk> <1193519205-sup-6445@tomsk>
   3269 	<1194633682-sup-962@south> <1194639409-sup-6180@tomsk>
   3270 Message-ID: <1194640984-sup-1658@tomsk>
   3271 
   3272 On 9.11.2007, Marcus Williams wrote:
   3273 > On 9.11.2007, William Morgan wrote:
   3274 > > Modified to skip parsing if Chronic isn't available, and applied.
   3275 > > Thanks!
   3276 > > 
   3277 > > Also made it accept one-word Chronic tokens without parentheses,
   3278 > > although "after:yesterday" means "after yesterday noon", which maybe is
   3279 > > not so useful...
   3280 > 
   3281 > I think I may have worked out how to fix that - change the parse
   3282 > method to be:
   3283 > 
   3284 > realdate = Chronic.parse(datestr, :guess => false).begin
   3285 
   3286 Mmmm - in fact it might be that you want to use .begin when you are
   3287 searching "before", but .end when you are searching "after"
   3288 
   3289 That way searches like after:yesterday or after:(last monday) do what
   3290 you expect. Patch attached 
   3291 
   3292 Marcus
   3293 -------------- next part --------------
   3294 A non-text attachment was scrubbed...
   3295 Name: search-patch
   3296 Type: application/octet-stream
   3297 Size: 1111 bytes
   3298 Desc: not available
   3299 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071109/1631a80b/attachment.obj 
   3300 
   3301 From marcus-sup@bar-coded.net  Fri Nov  9 16:20:33 2007
   3302 From: marcus-sup@bar-coded.net (Marcus Williams)
   3303 Date: Fri, 09 Nov 2007 21:20:33 +0000
   3304 Subject: [sup-talk] [PATCH] Natural language date searches
   3305 In-Reply-To: <1194640984-sup-1658@tomsk>
   3306 References: <1193436327-sup-5753@tomsk> <1193519205-sup-6445@tomsk>
   3307 	<1194633682-sup-962@south> <1194639409-sup-6180@tomsk>
   3308 	<1194640984-sup-1658@tomsk>
   3309 Message-ID: <1194643094-sup-4630@tomsk>
   3310 
   3311 On 9.11.2007, Marcus Williams wrote:
   3312 > Mmmm - in fact it might be that you want to use .begin when you are
   3313 > searching "before", but .end when you are searching "after"
   3314 > 
   3315 > That way searches like after:yesterday or after:(last monday) do what
   3316 > you expect. Patch attached 
   3317 
   3318 ... on a roll here :) ... which means you can also have some sugar for
   3319 single date search allowing "on:monday" or "on:(11th november)" saving
   3320 you typing "after:(10th november) before:(12th november)".
   3321 "on" probably isnt the best choice of words (on:november?) - so I
   3322 added the alias "in" that does the same thing so you can type
   3323 in:november.
   3324 
   3325 Updated patch attached. 
   3326 
   3327 Marcus
   3328 -------------- next part --------------
   3329 A non-text attachment was scrubbed...
   3330 Name: search-patch
   3331 Type: application/octet-stream
   3332 Size: 1480 bytes
   3333 Desc: not available
   3334 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071109/075e087c/attachment.obj 
   3335 
   3336 From wmorgan-sup@masanjin.net  Sun Nov 11 18:57:55 2007
   3337 From: wmorgan-sup@masanjin.net (William Morgan)
   3338 Date: Sun, 11 Nov 2007 15:57:55 -0800
   3339 Subject: [sup-talk] [BUG] Killed thread and unread count
   3340 In-Reply-To: <6205b42d0711080222i119831cdl64edf4a3291a3078@mail.gmail.com>
   3341 References: <6205b42d0711080222i119831cdl64edf4a3291a3078@mail.gmail.com>
   3342 Message-ID: <1194824455-sup-3508@south>
   3343 
   3344 Hi Pierre,
   3345 
   3346 Excerpts from Pierre Baillet's message of Thu Nov 08 02:22:29 -0800 2007:
   3347 > When an unread thread is killed, it is still marked as belonging to
   3348 > +inbox and hence is accounted as unread by sup in the "Label list".
   3349 > However, when displaying the +inbox labelled emails, this thread does
   3350 > not appear. I think this behaviour may confuse the user. Shouldn't
   3351 > killed threads be marked as read ?
   3352 
   3353 Excellent question. This is actually a symptom of a larger problem,
   3354 which is that threading information is never explicitly stored in the
   3355 Sup index, and that being killed is a thread-level, not a message-level,
   3356 feature. (A killed thread is a thread in which at least one message has
   3357 the label :killed.)
   3358 
   3359 So even if you marked a thread as unread before you killed it, the next
   3360 time a message in that thread was received, it would count as a new
   3361 message in the inbox, even though it never showed up.
   3362 
   3363 In order for unread messages in killed threads to not count as unread
   3364 messages, Sup would have to maintain a list of all message-ids in all
   3365 killed threads, and check new messages against that list before
   3366 incrementing the unread message count. Not impossible, but substantially
   3367 harder than just marking killed messages as unread. I've added it to the
   3368 TODO.
   3369 
   3370 -- 
   3371 William <wmorgan-sup at masanjin.net>
   3372 
   3373 From wmorgan-sup@masanjin.net  Sun Nov 11 19:02:16 2007
   3374 From: wmorgan-sup@masanjin.net (William Morgan)
   3375 Date: Sun, 11 Nov 2007 16:02:16 -0800
   3376 Subject: [sup-talk] new in svn: in-buffer search
   3377 In-Reply-To: <1194472330-sup-3257@lankhmar>
   3378 References: <1194388505-sup-2866@south> <1194425266-sup-7682@tomsk>
   3379 	<20071107142527.GB1579@lenin.sovietwar.org>
   3380 	<1194467985-sup-8861@south> <1194472330-sup-3257@lankhmar>
   3381 Message-ID: <1194825592-sup-8870@south>
   3382 
   3383 Excerpts from Colin Bell's message of Wed Nov 07 13:56:21 -0800 2007:
   3384 > You could replace \ with F for Filter or Ferret-index search if the \
   3385 > character is too annoying. My first thought was to borrow L for Limit
   3386 > from mutt but that doesn't work too well with labels :-)
   3387 
   3388 I'm actually quite liking \ now that I've gotten used to it. I'll add F.
   3389 If you're tired of being bound by my capricious whims, patches to make
   3390 keybindings configurable are welcome!
   3391 
   3392 -- 
   3393 William <wmorgan-sup at masanjin.net>
   3394 
   3395 From wmorgan-sup@masanjin.net  Sun Nov 11 19:11:58 2007
   3396 From: wmorgan-sup@masanjin.net (William Morgan)
   3397 Date: Sun, 11 Nov 2007 16:11:58 -0800
   3398 Subject: [sup-talk] new in svn: in-buffer search
   3399 In-Reply-To: <1194469177-sup-3271@tomsk>
   3400 References: <1194388505-sup-2866@south> <1194425266-sup-7682@tomsk>
   3401 	<20071107142527.GB1579@lenin.sovietwar.org>
   3402 	<1194467985-sup-8861@south> <1194469177-sup-3271@tomsk>
   3403 Message-ID: <1194826308-sup-2152@south>
   3404 
   3405 Excerpts from Marcus Williams's message of Wed Nov 07 13:05:58 -0800 2007:
   3406 > Two things - can we make the prompts different to make it more obvious
   3407 > and make a blank search not do anything?
   3408 
   3409 Done!
   3410 
   3411 -- 
   3412 William <wmorgan-sup at masanjin.net>
   3413 
   3414 From wmorgan-sup@masanjin.net  Sun Nov 11 19:13:43 2007
   3415 From: wmorgan-sup@masanjin.net (William Morgan)
   3416 Date: Sun, 11 Nov 2007 16:13:43 -0800
   3417 Subject: [sup-talk] new in svn: in-buffer search
   3418 In-Reply-To: <1194427158-sup-6839@timmy>
   3419 References: <1194388505-sup-2866@south> <1194425266-sup-7682@tomsk>
   3420 	<1194427158-sup-6839@timmy>
   3421 Message-ID: <1194826336-sup-7538@south>
   3422 
   3423 Excerpts from Eyal Oren's message of Wed Nov 07 01:21:57 -0800 2007:
   3424 > Btw, William, thanks for the search! It's great. But wouldn't you like
   3425 > to search from the top instead of searching from cursor position? I
   3426 > often want to use search instead of hitting cursor-up seven times.
   3427 
   3428 I'm following vi, emacs, and less precedent here. You can hit 1 or Home
   3429 to jump up to the top. (Maybe that should be 0.)
   3430 
   3431 -- 
   3432 William <wmorgan-sup at masanjin.net>
   3433 
   3434 From chrisw@rice.edu  Sun Nov 11 19:33:19 2007
   3435 From: chrisw@rice.edu (Christopher Warrington)
   3436 Date: Sun, 11 Nov 2007 18:33:19 -0600
   3437 Subject: [sup-talk] new in svn: in-buffer search
   3438 In-Reply-To: <1194825592-sup-8870@south>
   3439 References: <1194388505-sup-2866@south> <1194425266-sup-7682@tomsk>
   3440 	<20071107142527.GB1579@lenin.sovietwar.org>
   3441 	<1194467985-sup-8861@south> <1194472330-sup-3257@lankhmar>
   3442 	<1194825592-sup-8870@south>
   3443 Message-ID: <1194827554-sup-6010@chris-tablet>
   3444 
   3445 Excerpts from William Morgan's message of Sun Nov 11 18:02:16 -0600 2007:
   3446 > I'm actually quite liking \ now that I've gotten used to it. I'll add F.
   3447 > If you're tired of being bound by my capricious whims, patches to make
   3448 > keybindings configurable are welcome!
   3449 
   3450 The "Refine Search" keybinding probably needs to be re-adjusted.
   3451 Currently, it is '.', which is right next to / on a normal QWERTY
   3452 keyboard.
   3453 
   3454 Right now, ']' is unbound and next to '\' on typical QWERTY keyboards.
   3455 
   3456 -- 
   3457 Christopher Warrington <chrisw at rice.edu>
   3458 
   3459 From philsnow@gmail.com  Sun Nov 11 19:49:55 2007
   3460 From: philsnow@gmail.com (Phil Snowberger)
   3461 Date: Sun, 11 Nov 2007 19:49:55 -0500
   3462 Subject: [sup-talk] ruby/sup causing lots of wakeups-from-idle
   3463 Message-ID: <6ab4c98f0711111649o3e06c24aq73750c99bc4af248@mail.gmail.com>
   3464 
   3465 I was wondering if anybody else has a problem with sup/ruby causing
   3466 lots of wakeups-from-idle?  The following line comes from the output
   3467 of powertop on my thinkpad:
   3468 
   3469 ...
   3470   20.6% ( 94.8)              ruby : do_nanosleep (hrtimer_wakeup)
   3471 ...
   3472 
   3473 That is, there are ~94.8 wakeups-from-idle per second occuring because
   3474 ruby is do_nanosleep'ing a lot.  Is there any workaround for this?
   3475 Cursory searching seems to indicate that lots of wakeups can be caused
   3476 by doing usleep()s instead of select()/poll().  I'm trying to save as
   3477 much battery power as possible, and I currently leave sup off until I
   3478 want to check my email, which introduces startup time, etc.
   3479 
   3480 I could just run it on some other host and access it with ssh, but for
   3481 a few reasons (mostly not wanting to do X forwarding), I'd like to try
   3482 getting ruby/sup to behave a little better.
   3483 
   3484 Thanks,
   3485 --Phil
   3486 
   3487 From wmorgan-sup@masanjin.net  Sun Nov 11 19:48:39 2007
   3488 From: wmorgan-sup@masanjin.net (William Morgan)
   3489 Date: Sun, 11 Nov 2007 16:48:39 -0800
   3490 Subject: [sup-talk] [PATCH] Title bar and status bar widget
   3491 In-Reply-To: <1194518450-sup-4792@tomsk>
   3492 References: <1194518450-sup-4792@tomsk>
   3493 Message-ID: <1194827264-sup-5774@south>
   3494 
   3495 Hi Marcus,
   3496 
   3497 Excerpts from Marcus Williams's message of Thu Nov 08 02:44:44 -0800 2007:
   3498 > This patch adds two new hooks that allow you to set the title bar of a
   3499 > terminal (default is no title, to support non-terminal users) and the
   3500 > status bar of sup (default is standard status bar string).
   3501 
   3502 This patch actually has a problem, which you can see if you try and use
   3503 "say" from within one of those hooks, or if you insert an error into the
   3504 hook code.
   3505 
   3506 The problem is that the hooks are executed from draw_status, which is
   3507 executed within the context of a lock on Ncurses.mutex.
   3508 BufferManager#flash (which is triggered by both a call to #say and an
   3509 error) cannot be called within that lock or a double-lock exception
   3510 occurs.
   3511 
   3512 So, either Ncurses.mutex needs to be a reentrant lock (I have played
   3513 around with this but haven't yet been able to get it to work), or the
   3514 code that runs these hooks needs to run outside of the lock (which takes
   3515 place in BufferManager#draw_screen and #completely_redraw_screen).
   3516 
   3517 -- 
   3518 William <wmorgan-sup at masanjin.net>
   3519 
   3520 From alec@thened.net  Sun Nov 11 19:48:05 2007
   3521 From: alec@thened.net (Alec Berryman)
   3522 Date: Sun, 11 Nov 2007 19:48:05 -0500
   3523 Subject: [sup-talk] two crashes on reply
   3524 Message-ID: <20071112004805.GA25086@thened.net>
   3525 
   3526 I'm new to sup and running it from svn (r689), and get not one but two
   3527 crashes while trying to reply.
   3528 
   3529 I sent a message to myself, then tried to reply to it by hitting 'r'
   3530 from the message list buffer I get when I start up.  It popped up a
   3531 buffer entitled "Customized reply" with the From line highlighted.  All
   3532 the fields - From, To, Cc, Bcc, Subject - were blank.  From here I can
   3533 trigger two crashes.
   3534 
   3535 First, if I press enter, my editor pops up.  If I change the file's
   3536 contents, save, and exit, I get the following:
   3537 
   3538 [Sun Nov 11 19:33:29 -0500 2007] locking /home/alec/.sup/lock...
   3539 [Sun Nov 11 19:33:29 -0500 2007] loading index...
   3540 [Sun Nov 11 19:33:29 -0500 2007] loaded index of 829 messages
   3541 [Sun Nov 11 19:33:29 -0500 2007] starting curses
   3542 [Sun Nov 11 19:35:47 -0500 2007] stopped cursing
   3543 [Sun Nov 11 19:35:47 -0500 2007] oh crap, an exception
   3544 [Sun Nov 11 19:35:47 -0500 2007] unlocking /home/alec/.sup/lock...
   3545 ----------------------------------------------------------------
   3546 I'm very sorry, but it seems that an error occurred in Sup.
   3547 Please accept my sincere apologies. If you don't mind, please
   3548 send the backtrace below and a brief report of the circumstances
   3549 to sup-talk at rubyforge dot orgs so that I might address this
   3550 problem. Thank you!
   3551 
   3552 Sincerely,
   3553 William
   3554 ----------------------------------------------------------------
   3555 
   3556 The problem was: 'undefined method `size' for nil:NilClass' (error type NoMethodError)
   3557 A backtrace follows:
   3558 ./lib/sup/modes/reply-mode.rb:113:in `handle_new_text': undefined method `size' for nil:NilClass (NoMethodError)
   3559     from ./lib/sup/modes/edit-message-mode.rb:94:in `edit_message'
   3560     from ./lib/sup/mode.rb:54:in `send'
   3561     from ./lib/sup/mode.rb:54:in `handle_input'
   3562     from ./lib/sup/buffer.rb:203:in `handle_input'
   3563     from bin/sup:210
   3564 
   3565 If I don't change the contents, everything's fine.
   3566 
   3567 The second crash comes if I try and use the reply-mode keybindings to
   3568 change the To field by pressing 't'.  I get this:
   3569 
   3570 [Sun Nov 11 19:43:36 -0500 2007] starting curses
   3571 [Sun Nov 11 19:45:07 -0500 2007] stopped cursing
   3572 [Sun Nov 11 19:45:07 -0500 2007] oh crap, an exception
   3573 [Sun Nov 11 19:45:07 -0500 2007] unlocking /home/alec/.sup/lock...
   3574 ----------------------------------------------------------------
   3575 I'm very sorry, but it seems that an error occurred in Sup.
   3576 Please accept my sincere apologies. If you don't mind, please
   3577 send the backtrace below and a brief report of the circumstances
   3578 to sup-talk at rubyforge dot orgs so that I might address this
   3579 problem. Thank you!
   3580 
   3581 Sincerely,
   3582 William
   3583 ----------------------------------------------------------------
   3584 
   3585 The problem was: 'undefined method `join' for nil:NilClass' (error type NoMethodError)
   3586 A backtrace follows:
   3587 ./lib/sup/modes/edit-message-mode.rb:306:in `edit_field': undefined method `join' for nil:NilClass (NoMethodError)
   3588     from ./lib/sup/modes/reply-mode.rb:125:in `edit_field'
   3589     from ./lib/sup/modes/edit-message-mode.rb:73:in `edit_to'
   3590     from ./lib/sup/mode.rb:54:in `send'
   3591     from ./lib/sup/mode.rb:54:in `handle_input'
   3592     from ./lib/sup/buffer.rb:203:in `handle_input'
   3593     from bin/sup:210
   3594 
   3595 I get similar errors if I try to change CC:, but not if I try to change
   3596 the subject.
   3597 
   3598 I'm also not sure why sup isn't filling in the To and Subject fields.
   3599 
   3600 From wmorgan-sup@masanjin.net  Sun Nov 11 20:24:37 2007
   3601 From: wmorgan-sup@masanjin.net (William Morgan)
   3602 Date: Sun, 11 Nov 2007 17:24:37 -0800
   3603 Subject: [sup-talk] ruby/sup causing lots of wakeups-from-idle
   3604 In-Reply-To: <6ab4c98f0711111649o3e06c24aq73750c99bc4af248@mail.gmail.com>
   3605 References: <6ab4c98f0711111649o3e06c24aq73750c99bc4af248@mail.gmail.com>
   3606 Message-ID: <1194830575-sup-5874@south>
   3607 
   3608 Excerpts from Phil Snowberger's message of Sun Nov 11 16:49:55 -0800 2007:
   3609 > I was wondering if anybody else has a problem with sup/ruby causing
   3610 > lots of wakeups-from-idle?
   3611 
   3612 Does this happen with other multithreaded Ruby apps? Sup uses select()
   3613 for input, and the only persistent threads have multi-second sleep
   3614 times. But I have no idea how that translates down to the OS level, as
   3615 Ruby does its own threading.
   3616 
   3617 -- 
   3618 William <wmorgan-sup at masanjin.net>
   3619 
   3620 From wmorgan-sup@masanjin.net  Sun Nov 11 23:03:47 2007
   3621 From: wmorgan-sup@masanjin.net (William Morgan)
   3622 Date: Sun, 11 Nov 2007 20:03:47 -0800
   3623 Subject: [sup-talk] Sup sources question
   3624 In-Reply-To: <1194520465-sup-413@tomsk>
   3625 References: <1194520465-sup-413@tomsk>
   3626 Message-ID: <1194840179-sup-2716@south>
   3627 
   3628 Excerpts from Marcus Williams's message of Thu Nov 08 03:18:51 -0800 2007:
   3629 > What I thought I'd do is sup-dump, sup-sync everything again and then
   3630 > restore my settings. Then I remembered I'd noticed that you have a
   3631 > source_id in the ferret index, so I can search for messages marked
   3632 > with that source_id and add the label in manually.
   3633 
   3634 Just curious if you managed to make this work. I sent an example to the
   3635 list a few weeks back about using console.sh to do just this sort of
   3636 thing.
   3637 
   3638 -- 
   3639 William <wmorgan-sup at masanjin.net>
   3640 
   3641 From wmorgan-sup@masanjin.net  Sun Nov 11 23:13:40 2007
   3642 From: wmorgan-sup@masanjin.net (William Morgan)
   3643 Date: Sun, 11 Nov 2007 20:13:40 -0800
   3644 Subject: [sup-talk] patch: execute shell command
   3645 In-Reply-To: <1194536747-sup-4081@timmy>
   3646 References: <1194536747-sup-4081@timmy>
   3647 Message-ID: <1194840554-sup-9310@south>
   3648 
   3649 Hi Eyal,
   3650 
   3651 Excerpts from Eyal Oren's message of Thu Nov 08 07:47:30 -0800 2007:
   3652 > Find attached a simple patch (against svn head) to execute a shell
   3653 > command using '!' (as in vi or mutt). It requires the 'session' gem:
   3654 > if you want to get rid of that dependency you can just capture the
   3655 > output using >& etc.
   3656 
   3657 I like this functionality but the session gem seems like it's overkill
   3658 here. Is there a reason to use it instead of just something like
   3659   output = `#{cmd}`
   3660 ? I'm not that familiar with the gem, so maybe there is.
   3661 
   3662 Also I think the code for this should be in bin/sup rather than in
   3663 scroll-mode.rb, since, unless I'm mistaken, it's not specific to
   3664 scroll-mode at all.
   3665 
   3666 -- 
   3667 William <wmorgan-sup at masanjin.net>
   3668 
   3669 From eyal.oren@deri.org  Mon Nov 12 00:05:31 2007
   3670 From: eyal.oren@deri.org (Eyal Oren)
   3671 Date: Mon, 12 Nov 2007 14:05:31 +0900
   3672 Subject: [sup-talk] patch: execute shell command
   3673 In-Reply-To: <1194840554-sup-9310@south>
   3674 References: <1194536747-sup-4081@timmy> <1194840554-sup-9310@south>
   3675 Message-ID: <1194843828-sup-7014@timmy>
   3676 
   3677 Excerpts from William Morgan's message of Mon Nov 12 13:13:40 +0900 2007:
   3678 > I like this functionality but the session gem seems like it's overkill
   3679 > here. Is there a reason to use it instead of just something like
   3680 >   output = `#{cmd}`
   3681 I also wanted to catch error output, to find out if an unexisting command was 
   3682 invoked, and I didn't know how to do that with ``?
   3683 
   3684 > Also I think the code for this should be in bin/sup rather than in
   3685 > scroll-mode.rb, since, unless I'm mistaken, it's not specific to
   3686 > scroll-mode at all.
   3687 Agree. Wasn't sure where to put it, actually.
   3688 
   3689 -- 
   3690  -eyal
   3691 
   3692 From eyal.oren@deri.org  Mon Nov 12 00:07:59 2007
   3693 From: eyal.oren@deri.org (Eyal Oren)
   3694 Date: Mon, 12 Nov 2007 14:07:59 +0900
   3695 Subject: [sup-talk] starting with threads opened vs. closed in
   3696 	thread-view-mode
   3697 Message-ID: <1194843956-sup-1110@timmy>
   3698 
   3699 Hi, 
   3700 
   3701 I find myself always hitting 'h' in thread-view-mode to read emails, because I 
   3702 don't care for the header details and rather read the email without abstraction. 
   3703 Would there be a way to make the fact that headers start opened/closed 
   3704 configurable? Or is there a hook I could use just to close the header before 
   3705 displaying the thread? 
   3706 
   3707 -- 
   3708  -eyal
   3709 
   3710 From marcus-sup@bar-coded.net  Mon Nov 12 04:23:59 2007
   3711 From: marcus-sup@bar-coded.net (Marcus Williams)
   3712 Date: Mon, 12 Nov 2007 09:23:59 +0000
   3713 Subject: [sup-talk] [PATCH] Title bar and status bar widget
   3714 In-Reply-To: <1194827264-sup-5774@south>
   3715 References: <1194518450-sup-4792@tomsk> <1194827264-sup-5774@south>
   3716 Message-ID: <1194859333-sup-9479@tomsk>
   3717 
   3718 On 12.11.2007, William Morgan wrote:
   3719 > So, either Ncurses.mutex needs to be a reentrant lock (I have played
   3720 > around with this but haven't yet been able to get it to work), or the
   3721 > code that runs these hooks needs to run outside of the lock (which takes
   3722 > place in BufferManager#draw_screen and #completely_redraw_screen).
   3723 
   3724 Presumably after the unlock, rather than before the lock on the mutex
   3725 if the stuff is redrawing? I'll resubmit later today.
   3726 
   3727 Marcus
   3728 
   3729 From marcus-sup@bar-coded.net  Mon Nov 12 08:29:30 2007
   3730 From: marcus-sup@bar-coded.net (Marcus Williams)
   3731 Date: Mon, 12 Nov 2007 13:29:30 +0000
   3732 Subject: [sup-talk] Sup sources question
   3733 In-Reply-To: <1194840179-sup-2716@south>
   3734 References: <1194520465-sup-413@tomsk> <1194840179-sup-2716@south>
   3735 Message-ID: <1194873885-sup-8903@tomsk>
   3736 
   3737 On 12.11.2007, William Morgan wrote:
   3738 > Just curious if you managed to make this work. I sent an example to the
   3739 > list a few weeks back about using console.sh to do just this sort of
   3740 > thing.
   3741 
   3742 Yep - cleaned up all of my sources without having to resync. I wrote a
   3743 little wrapper tool to do it, might clean up that and post it some
   3744 time. For info, the way I did it was almost exactly the way you
   3745 suggested (to be run in console.sh):
   3746 
   3747 # remove inbox label and add sent label on all messages coming from a
   3748 # single source (id is 3)
   3749 Index.ferret.search_each("source_id:3", :limit => :all) do |id, score|
   3750   m = Index.build_message id
   3751   puts "Modifying #{m.id}\t[#{m.labels.join ','}]"
   3752   m.labels.uniq!
   3753   m.labels -= [:inbox] unless m.labels.include? :starred
   3754   m.labels += [:sent]
   3755   puts ".......to #{m.id}\t[#{m.labels.join ','}]"
   3756   Index.sync_message m
   3757 end
   3758 Index.ferret.optimize
   3759 
   3760 I did notice some messages had a lot of repeated labels. Not sure why,
   3761 but calling uniq! fixed it.
   3762 
   3763 Marcus
   3764 
   3765 From marcus-sup@bar-coded.net  Mon Nov 12 10:35:34 2007
   3766 From: marcus-sup@bar-coded.net (Marcus Williams)
   3767 Date: Mon, 12 Nov 2007 15:35:34 +0000
   3768 Subject: [sup-talk] patch: execute shell command
   3769 In-Reply-To: <1194843828-sup-7014@timmy>
   3770 References: <1194536747-sup-4081@timmy> <1194840554-sup-9310@south>
   3771 	<1194843828-sup-7014@timmy>
   3772 Message-ID: <1194881637-sup-5906@tomsk>
   3773 
   3774 On 12.11.2007, Eyal Oren wrote:
   3775 > > I like this functionality but the session gem seems like it's overkill
   3776 > > here. Is there a reason to use it instead of just something like
   3777 > >   output = `#{cmd}`
   3778 > I also wanted to catch error output, to find out if an unexisting command was 
   3779 > invoked, and I didn't know how to do that with ``?
   3780 
   3781 Shouldnt this be possible with open3? The only problem is that open3
   3782 is unix only (in std ruby). I think there is a win32 open3 gem though.
   3783 
   3784 Marcus
   3785 
   3786 From wmorgan-sup@masanjin.net  Mon Nov 12 11:59:35 2007
   3787 From: wmorgan-sup@masanjin.net (William Morgan)
   3788 Date: Mon, 12 Nov 2007 08:59:35 -0800
   3789 Subject: [sup-talk] patch: execute shell command
   3790 In-Reply-To: <1194881637-sup-5906@tomsk>
   3791 References: <1194536747-sup-4081@timmy> <1194840554-sup-9310@south>
   3792 	<1194843828-sup-7014@timmy> <1194881637-sup-5906@tomsk>
   3793 Message-ID: <1194886486-sup-6107@south>
   3794 
   3795 Excerpts from Marcus Williams's message of Mon Nov 12 07:35:34 -0800 2007:
   3796 > Shouldnt this be possible with open3? The only problem is that open3
   3797 > is unix only (in std ruby). I think there is a win32 open3 gem though.
   3798 
   3799 It looks like Session doesn't work on windows, anyways:
   3800 http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/173910
   3801 
   3802 So how's this for a plan:
   3803  1. First version just uses open3.
   3804  2. When windows people complain, add code to detect the platform and
   3805     load in win32-open3 accordingly.
   3806 
   3807 -- 
   3808 William <wmorgan-sup at masanjin.net>
   3809 
   3810 From wmorgan-sup@masanjin.net  Mon Nov 12 12:02:13 2007
   3811 From: wmorgan-sup@masanjin.net (William Morgan)
   3812 Date: Mon, 12 Nov 2007 09:02:13 -0800
   3813 Subject: [sup-talk] [PATCH] Title bar and status bar widget
   3814 In-Reply-To: <1194859333-sup-9479@tomsk>
   3815 References: <1194518450-sup-4792@tomsk> <1194827264-sup-5774@south>
   3816 	<1194859333-sup-9479@tomsk>
   3817 Message-ID: <1194886848-sup-8236@south>
   3818 
   3819 Excerpts from Marcus Williams's message of Mon Nov 12 01:23:59 -0800 2007:
   3820 > Presumably after the unlock, rather than before the lock on the mutex
   3821 > if the stuff is redrawing? I'll resubmit later today.
   3822 
   3823 Actually I think the best would be to call the hooks before the lock,
   3824 and pass in the values to actually be drawn into the locked code, so
   3825 that the draw happens within the lock. It means adding a couple
   3826 arguments to some of these methods, probably.
   3827 
   3828 -- 
   3829 William <wmorgan-sup at masanjin.net>
   3830 
   3831 From wmorgan-sup@masanjin.net  Mon Nov 12 12:20:44 2007
   3832 From: wmorgan-sup@masanjin.net (William Morgan)
   3833 Date: Mon, 12 Nov 2007 09:20:44 -0800
   3834 Subject: [sup-talk] Sup sources question
   3835 In-Reply-To: <1194873885-sup-8903@tomsk>
   3836 References: <1194520465-sup-413@tomsk> <1194840179-sup-2716@south>
   3837 	<1194873885-sup-8903@tomsk>
   3838 Message-ID: <1194888016-sup-9385@south>
   3839 
   3840 Excerpts from Marcus Williams's message of Mon Nov 12 05:29:30 -0800 2007:
   3841 > I did notice some messages had a lot of repeated labels. Not sure why,
   3842 > but calling uniq! fixed it.
   3843 
   3844 Interesting. Well, I'll throw a uniq into the index saving code for good
   3845 measure. 
   3846 
   3847 -- 
   3848 William <wmorgan-sup at masanjin.net>
   3849 
   3850 From wmorgan-sup@masanjin.net  Mon Nov 12 12:55:54 2007
   3851 From: wmorgan-sup@masanjin.net (William Morgan)
   3852 Date: Mon, 12 Nov 2007 09:55:54 -0800
   3853 Subject: [sup-talk] [PATCH] Pipe message/attachement to shell command
   3854 In-Reply-To: <1194622205-sup-2949@tomsk>
   3855 References: <1194622205-sup-2949@tomsk>
   3856 Message-ID: <1194889791-sup-3292@south>
   3857 
   3858 Excerpts from Marcus Williams's message of Fri Nov 09 07:33:35 -0800 2007:
   3859 > William, in the code it says that message.raw_message is slow but
   3860 > thats the only way I could do it without creating a string via
   3861 > each_raw_message_line. Is there a better way than this?
   3862 
   3863 Hey, this is another reason to use open3 instead of Session. You need to
   3864 have access to use the stdin filehandle in order to use
   3865 #each_raw_message_line. (There's no speed difference for IMAP, but for
   3866 Maildir and mbox, it's quite large. Maildir could be sped up, but mbox
   3867 fundamentally not.)
   3868 
   3869 BTW, that first argument to BufferManager#ask should ideally be a symbol
   3870 of some sort rather than nil. History is shared amongst all invocations
   3871 with the same symbol.
   3872 
   3873 -- 
   3874 William <wmorgan-sup at masanjin.net>
   3875 
   3876 From wmorgan-sup@masanjin.net  Mon Nov 12 13:01:43 2007
   3877 From: wmorgan-sup@masanjin.net (William Morgan)
   3878 Date: Mon, 12 Nov 2007 10:01:43 -0800
   3879 Subject: [sup-talk] [PATCH] Natural language date searches
   3880 In-Reply-To: <1194643094-sup-4630@tomsk>
   3881 References: <1193436327-sup-5753@tomsk> <1193519205-sup-6445@tomsk>
   3882 	<1194633682-sup-962@south> <1194639409-sup-6180@tomsk>
   3883 	<1194640984-sup-1658@tomsk> <1194643094-sup-4630@tomsk>
   3884 Message-ID: <1194890483-sup-9349@south>
   3885 
   3886 Excerpts from Marcus Williams's message of Fri Nov 09 13:20:33 -0800 2007:
   3887 > ... on a roll here :) ... which means you can also have some sugar for
   3888 > single date search allowing "on:monday" or "on:(11th november)" saving
   3889 > you typing "after:(10th november) before:(12th november)".  "on"
   3890 > probably isnt the best choice of words (on:november?) - so I added the
   3891 > alias "in" that does the same thing so you can type in:november.
   3892 
   3893 This is great stuff. Thanks, Marcus. Applied!
   3894 
   3895 -- 
   3896 William <wmorgan-sup at masanjin.net>
   3897 
   3898 From wmorgan-sup@masanjin.net  Mon Nov 12 13:23:40 2007
   3899 From: wmorgan-sup@masanjin.net (William Morgan)
   3900 Date: Mon, 12 Nov 2007 10:23:40 -0800
   3901 Subject: [sup-talk] two crashes on reply
   3902 In-Reply-To: <20071112004805.GA25086@thened.net>
   3903 References: <20071112004805.GA25086@thened.net>
   3904 Message-ID: <1194891731-sup-468@south>
   3905 
   3906 Hi Alec,
   3907 
   3908 Excerpts from Alec Berryman's message of Sun Nov 11 16:48:05 -0800 2007:
   3909 > I sent a message to myself, then tried to reply to it by hitting 'r'
   3910 > from the message list buffer I get when I start up.  It popped up a
   3911 > buffer entitled "Customized reply" with the From line highlighted.  All
   3912 > the fields - From, To, Cc, Bcc, Subject - were blank.  From here I can
   3913 > trigger two crashes.
   3914 
   3915 This is quite strange. The From field should never be blank. (And that's
   3916 what triggers the other crashes, I believe.) Can you post your
   3917 config.yaml?
   3918 
   3919 -- 
   3920 William <wmorgan-sup at masanjin.net>
   3921 
   3922 From marcus-sup@bar-coded.net  Mon Nov 12 17:06:01 2007
   3923 From: marcus-sup@bar-coded.net (Marcus Williams)
   3924 Date: Mon, 12 Nov 2007 22:06:01 +0000
   3925 Subject: [sup-talk] [PATCH] Pipe message/attachement to shell command
   3926 In-Reply-To: <1194889791-sup-3292@south>
   3927 References: <1194622205-sup-2949@tomsk> <1194889791-sup-3292@south>
   3928 Message-ID: <1194905067-sup-4236@tomsk>
   3929 
   3930 On 12.11.2007, William Morgan wrote:
   3931 > Hey, this is another reason to use open3 instead of Session. You need to
   3932 > have access to use the stdin filehandle in order to use
   3933 > #each_raw_message_line. (There's no speed difference for IMAP, but for
   3934 > Maildir and mbox, it's quite large. Maildir could be sped up, but mbox
   3935 > fundamentally not.)
   3936 
   3937 Attached is a patch for the shell/pipe code so that it uses open3.
   3938 Just realised I've not moved shell method into sup in this patch, but
   3939 its a start!
   3940 
   3941 Marcus
   3942 -------------- next part --------------
   3943 A non-text attachment was scrubbed...
   3944 Name: open3-diffs
   3945 Type: application/octet-stream
   3946 Size: 3068 bytes
   3947 Desc: not available
   3948 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071112/0add038a/attachment.obj 
   3949 
   3950 From marcus-sup@bar-coded.net  Mon Nov 12 17:07:17 2007
   3951 From: marcus-sup@bar-coded.net (Marcus Williams)
   3952 Date: Mon, 12 Nov 2007 22:07:17 +0000
   3953 Subject: [sup-talk] [PATCH] Title bar and status bar widget
   3954 In-Reply-To: <1194886848-sup-8236@south>
   3955 References: <1194518450-sup-4792@tomsk> <1194827264-sup-5774@south>
   3956 	<1194859333-sup-9479@tomsk> <1194886848-sup-8236@south>
   3957 Message-ID: <1194905177-sup-2828@tomsk>
   3958 
   3959 On 12.11.2007, William Morgan wrote:
   3960 > Actually I think the best would be to call the hooks before the lock,
   3961 > and pass in the values to actually be drawn into the locked code, so
   3962 > that the draw happens within the lock. It means adding a couple
   3963 > arguments to some of these methods, probably.
   3964 
   3965 Attached is a patch for this. Not sure if this is the best way of
   3966 doing it as I've used accessors on buffer class rather than passing
   3967 args.
   3968 
   3969 Marcus
   3970 -------------- next part --------------
   3971 A non-text attachment was scrubbed...
   3972 Name: widget-diffs
   3973 Type: application/octet-stream
   3974 Size: 2692 bytes
   3975 Desc: not available
   3976 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071112/a834f4e4/attachment.obj 
   3977 
   3978 From marcus-sup@bar-coded.net  Mon Nov 12 17:09:19 2007
   3979 From: marcus-sup@bar-coded.net (Marcus Williams)
   3980 Date: Mon, 12 Nov 2007 22:09:19 +0000
   3981 Subject: [sup-talk] [PATCH] Bugfix for message counts
   3982 Message-ID: <1194905311-sup-2362@tomsk>
   3983 
   3984 Simple bugfix attached for fixing message counts when you're using the
   3985 filter hooks.
   3986 
   3987 Marcus
   3988 
   3989 -------------- next part --------------
   3990 A non-text attachment was scrubbed...
   3991 Name: bugfix-diffs
   3992 Type: application/octet-stream
   3993 Size: 518 bytes
   3994 Desc: not available
   3995 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071112/d34abf9e/attachment.obj 
   3996 
   3997 From wmorgan-sup@masanjin.net  Mon Nov 12 18:49:40 2007
   3998 From: wmorgan-sup@masanjin.net (William Morgan)
   3999 Date: Mon, 12 Nov 2007 15:49:40 -0800
   4000 Subject: [sup-talk] starting with threads opened vs. closed in
   4001 	thread-view-mode
   4002 In-Reply-To: <1194843956-sup-1110@timmy>
   4003 References: <1194843956-sup-1110@timmy>
   4004 Message-ID: <1194911317-sup-4000@south>
   4005 
   4006 Excerpts from Eyal Oren's message of Sun Nov 11 21:07:59 -0800 2007:
   4007 > I find myself always hitting 'h' in thread-view-mode to read emails,
   4008 > because I don't care for the header details and rather read the email
   4009 > without abstraction.  Would there be a way to make the fact that
   4010 > headers start opened/closed configurable? Or is there a hook I could
   4011 > use just to close the header before displaying the thread? 
   4012 
   4013 Seems a little excessive for a hook, especially since I can't think of
   4014 anything else related that would really be tweakable. Maybe a config
   4015 option would be a reasonable choice here.
   4016 
   4017 -- 
   4018 William <wmorgan-sup at masanjin.net>
   4019 
   4020 From wmorgan-sup@masanjin.net  Mon Nov 12 18:54:03 2007
   4021 From: wmorgan-sup@masanjin.net (William Morgan)
   4022 Date: Mon, 12 Nov 2007 15:54:03 -0800
   4023 Subject: [sup-talk] [PATCH] Bugfix for message counts
   4024 In-Reply-To: <1194905311-sup-2362@tomsk>
   4025 References: <1194905311-sup-2362@tomsk>
   4026 Message-ID: <1194911631-sup-8094@south>
   4027 
   4028 Excerpts from Marcus Williams's message of Mon Nov 12 14:09:19 -0800 2007:
   4029 > Simple bugfix attached for fixing message counts when you're using the
   4030 > filter hooks.
   4031 
   4032 Applied, thanks.
   4033 
   4034 -- 
   4035 William <wmorgan-sup at masanjin.net>
   4036 
   4037 From wmorgan-sup@masanjin.net  Mon Nov 12 19:13:03 2007
   4038 From: wmorgan-sup@masanjin.net (William Morgan)
   4039 Date: Mon, 12 Nov 2007 16:13:03 -0800
   4040 Subject: [sup-talk] new user of sup
   4041 In-Reply-To: <20071031180510.GA7449@lenin.sovietwar.org>
   4042 References: <4728B67A.7020604@gslab.com>
   4043 	<20071031180510.GA7449@lenin.sovietwar.org>
   4044 Message-ID: <1194912687-sup-4696@south>
   4045 
   4046 Excerpts from vasudeva's message of Wed Oct 31 11:05:10 -0700 2007:
   4047 > I had an issue like this, and found it to be related somehow to the
   4048 > following lines being present in my ~/.sup/sources.yaml...
   4049 > 
   4050 > - !masanjin.net,2006-10-01/Redwood/SentLoader
   4051 >   cur_offset: 29245
   4052 > - !masanjin.net,2006-10-01/Redwood/DraftLoader
   4053 >   cur_offset: 4
   4054 > 
   4055 > It seems if I snipped those out, then sup-add would actually add all
   4056 > the sources I told it, not simply the final one. That is, if those
   4057 > lines were present, sup-add seemed to overwrite any recently-added
   4058 > source with the next source I'd add. (The two lines get generated
   4059 > and replaced by sup at some point.)
   4060 
   4061 I'm not able to reproduce this. Does the same behavior happen now? If
   4062 so, can you post a source.yaml and some commands that exhibit the
   4063 overwriting?
   4064 
   4065 -- 
   4066 William <wmorgan-sup at masanjin.net>
   4067 
   4068 From alec@thened.net  Mon Nov 12 19:16:37 2007
   4069 From: alec@thened.net (Alec Berryman)
   4070 Date: Mon, 12 Nov 2007 19:16:37 -0500
   4071 Subject: [sup-talk] two crashes on reply
   4072 In-Reply-To: <1194891731-sup-468@south>
   4073 References: <20071112004805.GA25086@thened.net> <1194891731-sup-468@south>
   4074 Message-ID: <20071113001636.GA6682@thened.net>
   4075 
   4076 William Morgan on 2007-11-12 10:23:40 -0800:
   4077 
   4078 > Hi Alec,
   4079 >
   4080 > Excerpts from Alec Berryman's message of Sun Nov 11 16:48:05 -0800 2007:
   4081 > > I sent a message to myself, then tried to reply to it by hitting 'r'
   4082 > > from the message list buffer I get when I start up.  It popped up a
   4083 > > buffer entitled "Customized reply" with the From line highlighted.  All
   4084 > > the fields - From, To, Cc, Bcc, Subject - were blank.  From here I can
   4085 > > trigger two crashes.
   4086 >
   4087 > This is quite strange. The From field should never be blank. (And that's
   4088 > what triggers the other crashes, I believe.) Can you post your
   4089 > config.yaml?
   4090 
   4091 It's inlined below; I assume sup-config made it and haven't touched it since
   4092 except to edit my alternative address here.  When I sent the original message
   4093 to myself, the From field was filled in correctly.  Additionally, this only
   4094 seems to happen on messages I send myself; I tried to reply to another message
   4095 and it seemed to work fine.
   4096 
   4097 ---
   4098 :ask_for_subject: true
   4099 :confirm_no_attachments: true
   4100 :thread_by_subject: false
   4101 :confirm_top_posting: true
   4102 :edit_signature: false
   4103 :ask_for_cc: true
   4104 :accounts:
   4105   :default:
   4106     :sendmail: /usr/sbin/sendmail -oem -ti
   4107     :alternates:
   4108     - aberryman at otheraddress.com
   4109     :name: Alec Berryman
   4110     :signature: /home/alec/.signature
   4111     :email: alec at thened.net
   4112 :editor: vim
   4113 :ask_for_bcc: false
   4114 
   4115 
   4116 From brenocon@gmail.com  Mon Nov 12 20:56:22 2007
   4117 From: brenocon@gmail.com (Brendan O'Connor)
   4118 Date: Mon, 12 Nov 2007 17:56:22 -0800
   4119 Subject: [sup-talk] Excluding a certain name and/or email from being
   4120 	auto-added to people.txt?
   4121 Message-ID: <1194918770-sup-9170@bdawg>
   4122 
   4123 I feel lame for asking a question without a patch fixing it and adding 5 new
   4124 features :) but was wondering: is there a way to exclude a particular email
   4125 address from having names being added to it?  i have emails from a bug tracking
   4126 system (JIRA) that puts various person names but always with the same email
   4127 address <issues at bla.com> which ends up getting saved in ~/.sup/people.txt and
   4128 then sup displays all emails from issues at bla.com based on the people.txt name
   4129 instead of the individual names on the emails.  I think being able to say
   4130 "never auto-save for emails matching a certain regex" is the right solution but
   4131 not sure...
   4132 
   4133 From sup-talk@gurski.org  Mon Nov 12 22:29:11 2007
   4134 From: sup-talk@gurski.org (Michael Gurski)
   4135 Date: Mon, 12 Nov 2007 22:29:11 -0500
   4136 Subject: [sup-talk] Excluding a certain name and/or email from being
   4137 	auto-added to people.txt?
   4138 In-Reply-To: <1194918770-sup-9170@bdawg>
   4139 References: <1194918770-sup-9170@bdawg>
   4140 Message-ID: <1194923879-sup-1418@ln>
   4141 
   4142 Excerpts from Brendan O'Connor's message of Mon Nov 12 20:56:22 -0500 2007:
   4143 > I feel lame for asking a question without a patch fixing it and adding 5 new
   4144 > features :) but was wondering: is there a way to exclude a particular email
   4145 > address from having names being added to it?  i have emails from a bug tracking
   4146 > system (JIRA) that puts various person names but always with the same email
   4147 > address <issues at bla.com> which ends up getting saved in ~/.sup/people.txt and
   4148 > then sup displays all emails from issues at bla.com based on the people.txt name
   4149 > instead of the individual names on the emails.  I think being able to say
   4150 > "never auto-save for emails matching a certain regex" is the right solution but
   4151 > not sure...
   4152 
   4153 I'd have to agree.  Certain sites like linkedin.com, as well as some
   4154 web-to-mailinglist gateways (notably the ruby on rails list) do the
   4155 same thing.  Worse, the gateways periodically get spam that isn't
   4156 trapped anywhere, and so now all mail from that address shows up as
   4157 being from <reallylongspamtext> <reallylongspamtext>.  Since sup's the
   4158 only client I've used that caches the name fields, this is the first
   4159 I've run into this particular problem...
   4160 
   4161 
   4162 -- 
   4163 Michael A. Gurski (opt. [first].)[last]@pobox.com  http://www.pobox.com/~[last]
   4164 1024R/39B5BADD PGP: 34 93 A9 94 B1 59 48 B7  17 57 1E 4E 62 56 45 70
   4165 1024D/1166213E GPG: 628F 37A4 62AF 1475 45DB  AD81 ADC9 E606 1166 213E
   4166 4096R/C0B4F04B GPG: 5B3E 75D7 43CF CF34 4042  7788 1DCE B5EE C0B4 F04B
   4167 Views expressed by the host do not reflect the staff, management or sponsors.
   4168 
   4169 
   4170 From chrisw@rice.edu  Mon Nov 12 23:30:13 2007
   4171 From: chrisw@rice.edu (Christopher Warrington)
   4172 Date: Mon, 12 Nov 2007 22:30:13 -0600
   4173 Subject: [sup-talk] Ferret Errors
   4174 In-Reply-To: <1193970558-sup-3687@south>
   4175 References: <1193693839-sup-8512@chris-tablet> <1193970558-sup-3687@south>
   4176 Message-ID: <1194928185-sup-2189@chris-tablet>
   4177 
   4178 (So, this has been sitting in my drafts folder FOREVER...)
   4179 
   4180 Excerpts from William Morgan's message of Thu Nov 01 21:32:19 -0500 2007:
   4181 > Yeah, the typical completely incomprehensible Ferret error message.
   4182 > Current known things that make Ferret generate scary messages:
   4183 > - running more than one process touching the index at the same time (Sup
   4184 >   locks the index now so this shouldn't happen unless you are being
   4185 >   particularly devious)
   4186 Perhaps... I'm not explicitly running two copies of sup, nor am I
   4187 running sup and another sup- tool at the same time. I'm just composing a
   4188 message.
   4189 
   4190 > - having too many open filehandles, including too many "usual" mbox
   4191 >   sources at the moment until I fix the mbox code not to keep
   4192 >   filehandles open all the time.
   4193 I don't think so.
   4194 
   4195 > - running out of disk space.
   4196 Nope.
   4197 
   4198 > Could it have been any of those?
   4199 
   4200 If MIGHT be the first. It just happened again. I think that it only
   4201 happens when I am composing a message and, during a background poll for
   4202 new messages, sup finds one.
   4203 
   4204 This might not even be the problem, but, it seems to me, that the editor
   4205 does not need to have sup's open files handles.
   4206 
   4207 -- 
   4208 Christopher Warrington <chrisw at rice.edu>
   4209 
   4210 From marcus-sup@bar-coded.net  Tue Nov 13 06:58:27 2007
   4211 From: marcus-sup@bar-coded.net (Marcus Williams)
   4212 Date: Tue, 13 Nov 2007 11:58:27 +0000
   4213 Subject: [sup-talk] [PATCH] Pipe message/attachement to shell command
   4214 In-Reply-To: <1194905067-sup-4236@tomsk>
   4215 References: <1194622205-sup-2949@tomsk> <1194889791-sup-3292@south>
   4216 	<1194905067-sup-4236@tomsk>
   4217 Message-ID: <1194955037-sup-614@tomsk>
   4218 
   4219 On 12.11.2007, Marcus Williams wrote:
   4220 > Attached is a patch for the shell/pipe code so that it uses open3.
   4221 > Just realised I've not moved shell method into sup in this patch, but
   4222 > its a start!
   4223 
   4224 Mmmm. Seem to be having some buffering problems with open3 on slightly
   4225 longer messages. The pipe stuff blocks because of it.
   4226 
   4227 Will have to resubmit when I figure it out.
   4228 
   4229 Marcus
   4230 
   4231 From eyal.oren@deri.org  Tue Nov 13 10:12:44 2007
   4232 From: eyal.oren@deri.org (Eyal Oren)
   4233 Date: Wed, 14 Nov 2007 00:12:44 +0900
   4234 Subject: [sup-talk] joining threads manually
   4235 Message-ID: <1194966571-sup-6200@timmy>
   4236 
   4237 Hi,
   4238 
   4239 Due to other people's broken email clients, threads are sometimes not properly 
   4240 connected (eg. their client doesn't use the in-reply-to header).  Mutt allows 
   4241 you to manually join such broken threads by first tagging the child message and
   4242 then going to the parent message and pressing '&'. 
   4243 
   4244 Would it be possible to do this in sup? Given a pointer to some places in the 
   4245 code, I could try to hack something.
   4246 
   4247 PS: Mutt also allows you to break threads ('#') but for me that's less useful.
   4248 
   4249  -eyal
   4250 
   4251 From sup-talk@gurski.org  Tue Nov 13 11:42:40 2007
   4252 From: sup-talk@gurski.org (Michael Gurski)
   4253 Date: Tue, 13 Nov 2007 11:42:40 -0500
   4254 Subject: [sup-talk] joining threads manually
   4255 In-Reply-To: <1194966571-sup-6200@timmy>
   4256 References: <1194966571-sup-6200@timmy>
   4257 Message-ID: <1194970669-sup-1917@ln>
   4258 
   4259 Excerpts from eyal.oren's message of Tue Nov 13 10:12:44 -0500 2007:
   4260 > PS: Mutt also allows you to break threads ('#') but for me that's less useful.
   4261 
   4262 You must have better-trained people on mailing lists you frequent. :-(
   4263 There are several I'm on that have subscribers that keep believing
   4264 that "reply" means "start a completely new, distinct, unrelated
   4265 topic".  Which was fine back in the pine days and no one really
   4266 threading anything.  These days, it's...painful.
   4267 
   4268 If no one else wants to tackle either of these, I could probably give
   4269 it a shot at some point.  No promises though, as I never seem to have
   4270 that "time" thing that I keep hearing about.
   4271 
   4272 -- 
   4273 Michael A. Gurski (opt. [first].)[last]@pobox.com  http://www.pobox.com/~[last]
   4274 1024R/39B5BADD PGP: 34 93 A9 94 B1 59 48 B7  17 57 1E 4E 62 56 45 70
   4275 1024D/1166213E GPG: 628F 37A4 62AF 1475 45DB  AD81 ADC9 E606 1166 213E
   4276 4096R/C0B4F04B GPG: 5B3E 75D7 43CF CF34 4042  7788 1DCE B5EE C0B4 F04B
   4277 Views expressed by the host do not reflect the staff, management or sponsors.
   4278 
   4279 
   4280 From wmorgan-sup@masanjin.net  Tue Nov 13 12:12:54 2007
   4281 From: wmorgan-sup@masanjin.net (William Morgan)
   4282 Date: Tue, 13 Nov 2007 09:12:54 -0800
   4283 Subject: [sup-talk] joining threads manually
   4284 In-Reply-To: <1194966571-sup-6200@timmy>
   4285 References: <1194966571-sup-6200@timmy>
   4286 Message-ID: <1194973525-sup-1660@south>
   4287 
   4288 Excerpts from Eyal Oren's message of Tue Nov 13 07:12:44 -0800 2007:
   4289 > Due to other people's broken email clients, threads are sometimes not
   4290 > properly connected (eg. their client doesn't use the in-reply-to
   4291 > header).  Mutt allows you to manually join such broken threads by
   4292 > first tagging the child message and then going to the parent message
   4293 > and pressing '&'. 
   4294 
   4295 There is an option in config.yaml to also thread by subject, although I
   4296 haven't tested it for quite a while. But that has its own problems, so I
   4297 leave it off by default. The best solution, of course, is to go to where
   4298 those people live and punish them until they switch to a reasonable
   4299 email client.
   4300 
   4301 > Would it be possible to do this in sup? Given a pointer to some places
   4302 > in the code, I could try to hack something.
   4303 
   4304 Here's what I would try. In thread-index-mode, given n>1 tagged threads,
   4305 you simply want to add the message-id of the root message of the
   4306 earliest thread to the refs field of the root messages of all other
   4307 threads. (You'll have to make refs a r/w attribute of message instead of
   4308 r/o.) That will thread them all at the top level, which probably is the
   4309 most reasonable thing to do.
   4310 
   4311 Then you'll need to update thread-index-mode's Threadset to handle the
   4312 new structure. It might be enough to call ThreadSet#link (which you'll
   4313 have to make public). Or you can first delete the messages from the
   4314 threadset with #remove, munge the refs as above, and re-add them with
   4315 #add_message. This step will require a little experimentation.
   4316 
   4317 Once the threadset's in place, you can call the ThreadIndexMode#update
   4318 to regenerate the display.
   4319 
   4320 > PS: Mutt also allows you to break threads ('#') but for me that's less
   4321 > useful.
   4322 
   4323 If you can accomplish the above, then this will be very similar,
   4324 although it will belong in thread-view-mode.
   4325 
   4326 -- 
   4327 William <wmorgan-sup at masanjin.net>
   4328 
   4329 From vasudeva@linkswarm.com  Tue Nov 13 13:41:29 2007
   4330 From: vasudeva@linkswarm.com (vasudeva)
   4331 Date: Tue, 13 Nov 2007 13:41:29 -0500
   4332 Subject: [sup-talk] new user of sup
   4333 In-Reply-To: <1194912687-sup-4696@south>
   4334 References: <4728B67A.7020604@gslab.com>
   4335 	<20071031180510.GA7449@lenin.sovietwar.org>
   4336 	<1194912687-sup-4696@south>
   4337 Message-ID: <20071113184129.GA11753@lenin.sovietwar.org>
   4338 
   4339 * on 11-12-07, William Morgan wrote:
   4340 > Excerpts from vasudeva's message of Wed Oct 31 11:05:10 -0700 2007:
   4341 > > I had an issue like this, and found it to be related somehow to the
   4342 > > following lines being present in my ~/.sup/sources.yaml...
   4343 > > 
   4344 > > - !masanjin.net,2006-10-01/Redwood/SentLoader
   4345 > >   cur_offset: 29245
   4346 > > - !masanjin.net,2006-10-01/Redwood/DraftLoader
   4347 > >   cur_offset: 4
   4348 > > 
   4349 > > It seems if I snipped those out, then sup-add would actually add all
   4350 > > the sources I told it, not simply the final one. That is, if those
   4351 > > lines were present, sup-add seemed to overwrite any recently-added
   4352 > > source with the next source I'd add. (The two lines get generated
   4353 > > and replaced by sup at some point.)
   4354 > 
   4355 > I'm not able to reproduce this. Does the same behavior happen now? If
   4356 > so, can you post a source.yaml and some commands that exhibit the
   4357 > overwriting?
   4358 
   4359 I've just svn updated sup, and I can reproduce this.
   4360 
   4361 I'm using the same sup-add command I documented in the wiki under
   4362 AddingSources...
   4363 
   4364 http://sup.rubyforge.org/wiki/wiki.pl?AddingSources
   4365 
   4366 to wit...
   4367 
   4368 for i in $(find muttmail -type f); do ruby -I lib -w sup/trunk/bin/sup-add  -l `basename $i` -a mbox://`pwd`/$i; done
   4369 
   4370 Here's my ~/.sup/sources.yaml before I start...
   4371 
   4372 ***
   4373 cat ~/.sup/sources.yaml
   4374 ---
   4375 - !masanjin.net,2006-10-01/Redwood/MBox/Loader
   4376   uri: mbox:///home/vasudeva/muttmail/projects/amsterdam
   4377   cur_offset:
   4378   usual: true
   4379   archived: true
   4380   id: 3
   4381   labels:
   4382   - amsterdam
   4383 - !masanjin.net,2006-10-01/Redwood/SentLoader
   4384   cur_offset: 29245
   4385 - !masanjin.net,2006-10-01/Redwood/DraftLoader
   4386   cur_offset: 4
   4387 ***
   4388 
   4389 And here it is after letting the batch sup-add command run...
   4390 
   4391 ***
   4392 cat ~/.sup/sources.yaml
   4393 ---
   4394 - !masanjin.net,2006-10-01/Redwood/MBox/Loader
   4395   uri: mbox:///home/vasudeva/muttmail/windows.lib
   4396   cur_offset:
   4397   usual: true
   4398   archived: true
   4399   id: 3
   4400   labels:
   4401   - windows.lib
   4402 - !masanjin.net,2006-10-01/Redwood/SentLoader
   4403   cur_offset: 29245
   4404 - !masanjin.net,2006-10-01/Redwood/DraftLoader
   4405   cur_offset: 4
   4406 ***
   4407 
   4408 The find routine returns 67 sources, the names of which are all
   4409 alpha plus the following characters: -_+.@
   4410 
   4411 I'll send you a list of the sourcenames off-list, where my
   4412 meticulously-sorted furryporn email archive can't come back to haunt
   4413 me some day.
   4414 
   4415 
   4416 
   4417 /></
   4418 
   4419 --
   4420 linkswarm.com :: Collaborative Insolence
   4421 vasudeva.linkswarm.com/gallery :: For The Faint of Heart
   4422 
   4423 
   4424 From pierre@baillet.name  Tue Nov 13 14:38:19 2007
   4425 From: pierre@baillet.name (Pierre Baillet)
   4426 Date: Tue, 13 Nov 2007 20:38:19 +0100
   4427 Subject: [sup-talk] Address input bug
   4428 Message-ID: <6205b42d0711131138g32f232d5s8877fdcf8952efea@mail.gmail.com>
   4429 
   4430 Hi,
   4431 
   4432 I don't know if this is an already known issue but it does seem to be
   4433 impossible to type a long long list of recipient in the TO field. It seems
   4434 that as soon as it wraps, sup loses everything before the wrap :
   4435 
   4436 say I have a 10 columns terminal (yes my screen is uber small) :
   4437 
   4438 To: ab at c.c <- wrap
   4439 om<- here is press enter
   4440 
   4441 In vim, I only see :
   4442 
   4443 To: om
   4444 
   4445 This can be annoying when you spend some times to type this long list.
   4446 
   4447 Cheers,
   4448 -- 
   4449 Pierre Baillet <pierre at baillet.name>
   4450 -------------- next part --------------
   4451 An HTML attachment was scrubbed...
   4452 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071113/33167c5c/attachment.html 
   4453 
   4454 From pierre@baillet.name  Tue Nov 13 14:50:34 2007
   4455 From: pierre@baillet.name (Pierre Baillet)
   4456 Date: Tue, 13 Nov 2007 20:50:34 +0100
   4457 Subject: [sup-talk] Suggested new feature : little brother database support
   4458 Message-ID: <6205b42d0711131150o55e00a95q3116aee72170e93b@mail.gmail.com>
   4459 
   4460 Hi,
   4461 
   4462 I'm just writing you a small mail to inform you that I'd love to see sup
   4463 support the "little brother database" (http://www.spinnaker.de/lbdb/) which
   4464 is very well supported under mutt and pretty useful when writing emails...
   4465 
   4466 Maybe the contact manager could do as well as lbdb, but I've yet to
   4467 understand how the CM works exactly :)
   4468 
   4469 If nobody is against that idea, I think I will look into adding this feature
   4470 sometimes soon...
   4471 
   4472 Cheers,
   4473 ps: I'm still working on my before-edit patch but real life and emailing
   4474 takes always too much time :)
   4475 -- 
   4476 Pierre Baillet <pierre at baillet.name>
   4477 -------------- next part --------------
   4478 An HTML attachment was scrubbed...
   4479 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071113/b759b539/attachment.html 
   4480 
   4481 From chrisw@rice.edu  Tue Nov 13 15:19:14 2007
   4482 From: chrisw@rice.edu (Christopher Warrington)
   4483 Date: Tue, 13 Nov 2007 14:19:14 -0600
   4484 Subject: [sup-talk] Address input bug
   4485 In-Reply-To: <6205b42d0711131138g32f232d5s8877fdcf8952efea@mail.gmail.com>
   4486 References: <6205b42d0711131138g32f232d5s8877fdcf8952efea@mail.gmail.com>
   4487 Message-ID: <1194985118-sup-2616@chris-tablet>
   4488 
   4489 Excerpts from Pierre Baillet's message of Tue Nov 13 13:38:19 -0600 2007:
   4490 > I don't know if this is an already known issue but it does seem to be
   4491 > impossible to type a long long list of recipient in the TO field. It
   4492 > seems that as soon as it wraps, sup loses everything before the wrap :
   4493 
   4494 I've seen something similar when attaching files.
   4495 
   4496 -- 
   4497 Christopher Warrington <chrisw at rice.edu>
   4498 
   4499 
   4500 From philsnow@gmail.com  Tue Nov 13 15:26:26 2007
   4501 From: philsnow@gmail.com (Phil Snowberger)
   4502 Date: Tue, 13 Nov 2007 15:26:26 -0500
   4503 Subject: [sup-talk] ruby/sup causing lots of wakeups-from-idle
   4504 In-Reply-To: <1194830575-sup-5874@south>
   4505 References: <6ab4c98f0711111649o3e06c24aq73750c99bc4af248@mail.gmail.com>
   4506 	<1194830575-sup-5874@south>
   4507 Message-ID: <6ab4c98f0711131226q4772e60fuda2d98fe3d3e5b7d@mail.gmail.com>
   4508 
   4509 On Nov 11, 2007 8:24 PM, William Morgan <wmorgan-sup at masanjin.net> wrote:
   4510 > Excerpts from Phil Snowberger's message of Sun Nov 11 16:49:55 -0800 2007:
   4511 > > I was wondering if anybody else has a problem with sup/ruby causing
   4512 > > lots of wakeups-from-idle?
   4513 >
   4514 > Does this happen with other multithreaded Ruby apps? Sup uses select()
   4515 > for input, and the only persistent threads have multi-second sleep
   4516 > times. But I have no idea how that translates down to the OS level, as
   4517 > Ruby does its own threading.
   4518 
   4519 I tried raggle to see if it would cause a similar amount of wakeups,
   4520 and it does;  Once it settles into a steady state (after it's checked
   4521 each feed on startup), it does ~95 wakeups per second, just like sup.
   4522 
   4523 Sorry for what appears to be a false alarm; I'll take this question to
   4524 some ruby folks.
   4525 
   4526 Thanks,
   4527 --Phil
   4528 
   4529 From pierre@baillet.name  Tue Nov 13 17:44:01 2007
   4530 From: pierre@baillet.name (Pierre Baillet)
   4531 Date: Tue, 13 Nov 2007 23:44:01 +0100
   4532 Subject: [sup-talk] [PATCH] before-edit hook
   4533 Message-ID: <6205b42d0711131444w6d4a397buad33dad9ba4ded5@mail.gmail.com>
   4534 
   4535 Hi,
   4536 
   4537 Please find here the patch for the before-edit hook. It enables you to alter
   4538 the headers and the body before editing an email. I'm using it to
   4539 automically Bcc me.
   4540 
   4541 Sample hook : before-edit.rb
   4542 --->8-----8<------
   4543 header["Bcc"] = "pierre at baillet.name"
   4544 --->8-----8<------
   4545 
   4546 
   4547 Not sure sending the body to the hook is useful though.
   4548 
   4549 HTH !
   4550 -- 
   4551 Pierre Baillet <pierre at baillet.name>
   4552 -------------- next part --------------
   4553 An HTML attachment was scrubbed...
   4554 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071113/976d943b/attachment.html 
   4555 -------------- next part --------------
   4556 A non-text attachment was scrubbed...
   4557 Name: before_edit_hook_sup.patch
   4558 Type: application/octet-stream
   4559 Size: 802 bytes
   4560 Desc: not available
   4561 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071113/976d943b/attachment.obj 
   4562 
   4563 From pierre@baillet.name  Tue Nov 13 18:00:06 2007
   4564 From: pierre@baillet.name (Pierre Baillet)
   4565 Date: Wed, 14 Nov 2007 00:00:06 +0100
   4566 Subject: [sup-talk] Crash when deleting an email from
   4567 	person-search-results-mode
   4568 Message-ID: <6205b42d0711131500k2c784316t9dd6ae831e98a0ed@mail.gmail.com>
   4569 
   4570 Hi there,
   4571 
   4572 while playing with the contact manager (shouldn't tab look for
   4573 "*typedstring* instead of "typedstring*" when selecting TO recipients ?), I
   4574 did a search "S" on one of my contact. Sup brought back one email which I
   4575 could read by pressing enter. However, as soon as i typed d to delete the
   4576 email, sup crashed :
   4577 
   4578 The problem was: 'no implicit conversion from nil to integer' (error type
   4579 TypeError)
   4580 A backtrace follows:
   4581 /home/oct/temp/sup_trunk/lib/sup/modes/thread-index-mode.rb:483:in
   4582 `delete_at': no implicit conversion from nil to integer (TypeError)
   4583         from /home/oct/temp/sup_trunk/lib/sup/modes/thread-index-mode.rb:483:in
   4584 `hide_thread'
   4585         from /usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
   4586         from /home/oct/temp/sup_trunk/lib/sup/modes/thread-index-mode.rb:479:in
   4587 `hide_thread'
   4588         from /home/oct/temp/sup_trunk/lib/sup/modes/thread-index-mode.rb:126:in
   4589 `handle_deleted_update'
   4590         from /home/oct/temp/sup_trunk/lib/sup/update.rb:16:in `send'
   4591         from /home/oct/temp/sup_trunk/lib/sup/update.rb:16:in `relay'
   4592         from /home/oct/temp/sup_trunk/lib/sup/update.rb:16:in `each'
   4593         from /home/oct/temp/sup_trunk/lib/sup/update.rb:16:in `relay'
   4594          ... 7 levels...
   4595         from /home/oct/temp/sup_trunk/lib/sup/mode.rb:54:in `send'
   4596         from /home/oct/temp/sup_trunk/lib/sup/mode.rb:54:in `handle_input'
   4597         from /home/oct/temp/sup_trunk/lib/sup/buffer.rb:203:in
   4598 `handle_input'
   4599         from /home/oct/temp/sup_trunk/bin/sup:208
   4600 
   4601 I had just synchronised my sup with my mailbox. From the backtrace, I
   4602 suspect that this is the redraw of the updated (now empty) result list that
   4603 poses problem, but i didn't look into it very much...
   4604 
   4605 -- 
   4606 Pierre Baillet <pierre at baillet.name>
   4607 -------------- next part --------------
   4608 An HTML attachment was scrubbed...
   4609 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071114/f5b6822f/attachment.html 
   4610 
   4611 From chrisw@rice.edu  Tue Nov 13 19:07:44 2007
   4612 From: chrisw@rice.edu (Christopher Warrington)
   4613 Date: Tue, 13 Nov 2007 18:07:44 -0600
   4614 Subject: [sup-talk] [PATCH] before-edit hook
   4615 In-Reply-To: <6205b42d0711131444w6d4a397buad33dad9ba4ded5@mail.gmail.com>
   4616 References: <6205b42d0711131444w6d4a397buad33dad9ba4ded5@mail.gmail.com>
   4617 Message-ID: <1194998809-sup-9124@chris-tablet>
   4618 
   4619 Excerpts from Pierre Baillet's message of Tue Nov 13 16:44:01 -0600 2007:
   4620 > Not sure sending the body to the hook is useful though.
   4621 
   4622 If body text can somehow be returned, we could start implementing
   4623 templates.
   4624 
   4625 -- 
   4626 Christopher Warrington <chrisw at rice.edu>
   4627 
   4628 From wmorgan-sup@masanjin.net  Wed Nov 14 02:04:52 2007
   4629 From: wmorgan-sup@masanjin.net (William Morgan)
   4630 Date: Tue, 13 Nov 2007 23:04:52 -0800
   4631 Subject: [sup-talk] Excluding a certain name and/or email from being
   4632 	auto-added to people.txt?
   4633 In-Reply-To: <1194918770-sup-9170@bdawg>
   4634 References: <1194918770-sup-9170@bdawg>
   4635 Message-ID: <1195023641-sup-7821@south>
   4636 
   4637 Excerpts from Brendan O'Connor's message of Mon Nov 12 17:56:22 -0800 2007:
   4638 > i have emails from a bug tracking system (JIRA) that puts various
   4639 > person names but always with the same email address <issues at bla.com>
   4640 > which ends up getting saved in ~/.sup/people.txt and then sup displays
   4641 > all emails from issues at bla.com based on the people.txt name instead of
   4642 > the individual names on the emails.
   4643 
   4644 Yeah, this is a problem because Sup stores only the email address in the
   4645 index and discards the corresponding name. You can override the name by
   4646 adding the email address to contacts.txt, which at least makes it
   4647 consistent, but in the long run I've got to change how Sup handles this.
   4648 
   4649 -- 
   4650 William <wmorgan-sup at masanjin.net>
   4651 
   4652 From wmorgan-sup@masanjin.net  Wed Nov 14 02:36:32 2007
   4653 From: wmorgan-sup@masanjin.net (William Morgan)
   4654 Date: Tue, 13 Nov 2007 23:36:32 -0800
   4655 Subject: [sup-talk] two crashes on reply
   4656 In-Reply-To: <20071113001636.GA6682@thened.net>
   4657 References: <20071112004805.GA25086@thened.net> <1194891731-sup-468@south>
   4658 	<20071113001636.GA6682@thened.net>
   4659 Message-ID: <1195025575-sup-9780@south>
   4660 
   4661 Excerpts from Alec Berryman's message of Mon Nov 12 16:16:37 -0800 2007:
   4662 > When I sent the original message to myself, the From field was filled
   4663 > in correctly.  Additionally, this only seems to happen on messages I
   4664 > send myself; I tried to reply to another message and it seemed to work
   4665 > fine.
   4666 
   4667 This should be fixed in SVN now. It was a border case in determining 
   4668 what the set of possible reply-to options should be. Thanks!
   4669 
   4670 -- 
   4671 William <wmorgan-sup at masanjin.net>
   4672 
   4673 From brenocon@gmail.com  Wed Nov 14 03:17:28 2007
   4674 From: brenocon@gmail.com (Brendan O'Connor)
   4675 Date: Wed, 14 Nov 2007 08:17:28 +0000
   4676 Subject: [sup-talk] bugfix to message-chunks.rb
   4677 Message-ID: <1195028091-sup-5871@aa0-000-6.u.powerset.com>
   4678 
   4679 I was getting some crashes and tracked it down to this line.  This patch makes
   4680 the crash go away, so I think it's a bugfix (local variable masking the
   4681 accessor?) but am not sure.
   4682 
   4683 Index: lib/sup/message-chunks.rb
   4684 ===================================================================
   4685 --- lib/sup/message-chunks.rb   (revision 698)
   4686 +++ lib/sup/message-chunks.rb   (working copy)
   4687 @@ -111,7 +111,7 @@
   4688        @lines = lines.map { |l| l.chomp.wrap WRAP_LEN }.flatten # wrap
   4689  
   4690        ## trim off all empty lines except one
   4691 -      lines.pop while lines.last =~ /^\s*$/ 
   4692 +      @lines.pop while @lines.last =~ /^\s*$/ 
   4693      end
   4694  
   4695      def inlineable?; true end
   4696 
   4697 From marcus-sup@bar-coded.net  Wed Nov 14 04:40:23 2007
   4698 From: marcus-sup@bar-coded.net (Marcus Williams)
   4699 Date: Wed, 14 Nov 2007 09:40:23 +0000
   4700 Subject: [sup-talk] [PATCH] Pipe message/attachement to shell command
   4701 In-Reply-To: <1194955037-sup-614@tomsk>
   4702 References: <1194622205-sup-2949@tomsk> <1194889791-sup-3292@south>
   4703 	<1194905067-sup-4236@tomsk> <1194955037-sup-614@tomsk>
   4704 Message-ID: <1195032303-sup-7083@tomsk>
   4705 
   4706 On 13.11.2007, Marcus Williams wrote:
   4707 > Mmmm. Seem to be having some buffering problems with open3 on slightly
   4708 > longer messages. The pipe stuff blocks because of it.
   4709 > 
   4710 > Will have to resubmit when I figure it out.
   4711 
   4712 Ok, heres the new one. I think in the pipe to command case, the
   4713 session gem is probably the best way to go (although I've not use it
   4714 here) because it handles the blocking problems for you.
   4715 
   4716 This patch will:
   4717 
   4718 * return an error correctly if the command returns an error initially
   4719 (like a usage error, or missing file etc)
   4720 * pipes the mail/attachment to the command
   4721 * read either stdout OR stderr, whichever is ready first and display that.
   4722 
   4723 The last step is where the problem lies. If a command produces both I
   4724 cant figure out what to do with it, should it display two separate
   4725 buffers, one with errors and one with output? What happens if the
   4726 context of the error is important (ie where it is in the output
   4727 stream)?
   4728 
   4729 I'm pretty sure this is an edge case, as the majority of usages of
   4730 this would be to pipe through a spam filter, or a file viewer (like
   4731 textviewer.sh from claws mail or antiword) and this patch works fine
   4732 in those cases.
   4733 
   4734 Anyone any comments?
   4735 
   4736 Marcus
   4737 -------------- next part --------------
   4738 A non-text attachment was scrubbed...
   4739 Name: open3-diffs
   4740 Type: application/octet-stream
   4741 Size: 3524 bytes
   4742 Desc: not available
   4743 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071114/5d29ac10/attachment.obj 
   4744 
   4745 From marcus-sup@bar-coded.net  Wed Nov 14 05:04:39 2007
   4746 From: marcus-sup@bar-coded.net (Marcus Williams)
   4747 Date: Wed, 14 Nov 2007 10:04:39 +0000
   4748 Subject: [sup-talk] [PATCH] Move save to disk out to text mode
   4749 Message-ID: <1195034553-sup-5745@tomsk>
   4750 
   4751 Save to disk is useful in text mode in conjunction with the shell/pipe
   4752 command patches. This patch moves the code out from log modle to the
   4753 text mode so you can save the output of a command to a file.
   4754 
   4755 Marcus
   4756 -------------- next part --------------
   4757 A non-text attachment was scrubbed...
   4758 Name: save-diffs
   4759 Type: application/octet-stream
   4760 Size: 1291 bytes
   4761 Desc: not available
   4762 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071114/15ec679d/attachment.obj 
   4763 
   4764 From alec@thened.net  Wed Nov 14 08:12:33 2007
   4765 From: alec@thened.net (Alec Berryman)
   4766 Date: Wed, 14 Nov 2007 08:12:33 -0500
   4767 Subject: [sup-talk] two crashes on reply
   4768 In-Reply-To: <1195025575-sup-9780@south>
   4769 References: <20071112004805.GA25086@thened.net> <1194891731-sup-468@south>
   4770 	<20071113001636.GA6682@thened.net> <1195025575-sup-9780@south>
   4771 Message-ID: <20071114131233.GA22726@thened.net>
   4772 
   4773 William Morgan on 2007-11-13 23:36:32 -0800:
   4774 
   4775 > Excerpts from Alec Berryman's message of Mon Nov 12 16:16:37 -0800 2007:
   4776 > > When I sent the original message to myself, the From field was filled
   4777 > > in correctly.  Additionally, this only seems to happen on messages I
   4778 > > send myself; I tried to reply to another message and it seemed to work
   4779 > > fine.
   4780 >
   4781 > This should be fixed in SVN now. It was a border case in determining
   4782 > what the set of possible reply-to options should be. Thanks!
   4783 
   4784 I just tried it out and everything works!  Thanks!
   4785 
   4786 From wmorgan-sup@masanjin.net  Wed Nov 14 10:53:36 2007
   4787 From: wmorgan-sup@masanjin.net (William Morgan)
   4788 Date: Wed, 14 Nov 2007 07:53:36 -0800
   4789 Subject: [sup-talk] bugfix to message-chunks.rb
   4790 In-Reply-To: <1195028091-sup-5871@aa0-000-6.u.powerset.com>
   4791 References: <1195028091-sup-5871@aa0-000-6.u.powerset.com>
   4792 Message-ID: <1195055576-sup-449@south>
   4793 
   4794 Excerpts from Brendan O'Connor's message of Wed Nov 14 00:17:28 -0800 2007:
   4795 > I was getting some crashes and tracked it down to this line.  This
   4796 > patch makes the crash go away, so I think it's a bugfix (local
   4797 > variable masking the accessor?) but am not sure.
   4798 
   4799 I believe you're right. Applied. Thanks!
   4800 
   4801 -- 
   4802 William <wmorgan-sup at masanjin.net>
   4803 
   4804 From wmorgan-sup@masanjin.net  Wed Nov 14 11:05:31 2007
   4805 From: wmorgan-sup@masanjin.net (William Morgan)
   4806 Date: Wed, 14 Nov 2007 08:05:31 -0800
   4807 Subject: [sup-talk] [PATCH] Move save to disk out to text mode
   4808 In-Reply-To: <1195034553-sup-5745@tomsk>
   4809 References: <1195034553-sup-5745@tomsk>
   4810 Message-ID: <1195056286-sup-8701@south>
   4811 
   4812 Excerpts from Marcus Williams's message of Wed Nov 14 02:04:39 -0800 2007:
   4813 > Save to disk is useful in text mode in conjunction with the shell/pipe
   4814 > command patches. This patch moves the code out from log modle to the
   4815 > text mode so you can save the output of a command to a file.
   4816 
   4817 Been meaning to do this for a while, since I end up viewing most patches
   4818 through text-mode and it's a pain to not to be able to save from that
   4819 screen. Applied. Thanks!
   4820 
   4821 -- 
   4822 William <wmorgan-sup at masanjin.net>
   4823 
   4824 From wmorgan-sup@masanjin.net  Wed Nov 14 11:08:17 2007
   4825 From: wmorgan-sup@masanjin.net (William Morgan)
   4826 Date: Wed, 14 Nov 2007 08:08:17 -0800
   4827 Subject: [sup-talk] Address input bug
   4828 In-Reply-To: <6205b42d0711131138g32f232d5s8877fdcf8952efea@mail.gmail.com>
   4829 References: <6205b42d0711131138g32f232d5s8877fdcf8952efea@mail.gmail.com>
   4830 Message-ID: <1195056393-sup-8856@south>
   4831 
   4832 Excerpts from Pierre Baillet's message of Tue Nov 13 11:38:19 -0800 2007:
   4833 > I don't know if this is an already known issue but it does seem to be
   4834 > impossible to type a long long list of recipient in the TO field. It
   4835 > seems that as soon as it wraps, sup loses everything before the wrap :
   4836 
   4837 This is another miracle of Ncurses forms. I'm waiting to fix this until
   4838 I've done something really bad and am in need of punishment.
   4839 
   4840 -- 
   4841 William <wmorgan-sup at masanjin.net>
   4842 
   4843 From wmorgan-sup@masanjin.net  Wed Nov 14 11:44:55 2007
   4844 From: wmorgan-sup@masanjin.net (William Morgan)
   4845 Date: Wed, 14 Nov 2007 08:44:55 -0800
   4846 Subject: [sup-talk] [PATCH] before-edit hook
   4847 In-Reply-To: <6205b42d0711131444w6d4a397buad33dad9ba4ded5@mail.gmail.com>
   4848 References: <6205b42d0711131444w6d4a397buad33dad9ba4ded5@mail.gmail.com>
   4849 Message-ID: <1195058615-sup-3814@south>
   4850 
   4851 Excerpts from Pierre Baillet's message of Tue Nov 13 14:44:01 -0800 2007:
   4852 > Please find here the patch for the before-edit hook. It enables you to
   4853 > alter the headers and the body before editing an email. I'm using it
   4854 > to automically Bcc me.
   4855 
   4856 Applied. Note that body is an array, not a string.
   4857 
   4858 -- 
   4859 William <wmorgan-sup at masanjin.net>
   4860 
   4861 From wmorgan-sup@masanjin.net  Wed Nov 14 12:07:04 2007
   4862 From: wmorgan-sup@masanjin.net (William Morgan)
   4863 Date: Wed, 14 Nov 2007 09:07:04 -0800
   4864 Subject: [sup-talk] Crash when deleting an email from
   4865 	person-search-results-mode
   4866 In-Reply-To: <6205b42d0711131500k2c784316t9dd6ae831e98a0ed@mail.gmail.com>
   4867 References: <6205b42d0711131500k2c784316t9dd6ae831e98a0ed@mail.gmail.com>
   4868 Message-ID: <1195059761-sup-5443@south>
   4869 
   4870 Excerpts from Pierre Baillet's message of Tue Nov 13 15:00:06 -0800 2007:
   4871 > while playing with the contact manager (shouldn't tab look for
   4872 > "*typedstring* instead of "typedstring*" when selecting TO recipients
   4873 > ?)
   4874 
   4875 Prefix match is more what I'm used to in console apps, but infix match
   4876 is what Gmail does. Vim does infix match on tab-completion for things
   4877 like switching buffers, so it's not unheard of...
   4878 
   4879 What do people think?
   4880 
   4881 > I did a search "S" on one of my contact. Sup brought back one email
   4882 > which I could read by pressing enter. However, as soon as i typed d to
   4883 > delete the email, sup crashed :
   4884 
   4885 This should be fixed in SVN now. Thanks!
   4886 
   4887 -- 
   4888 William <wmorgan-sup at masanjin.net>
   4889 
   4890 From nicolas.pouillard@gmail.com  Wed Nov 14 12:39:10 2007
   4891 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   4892 Date: Wed, 14 Nov 2007 18:39:10 +0100
   4893 Subject: [sup-talk] Crash when deleting an email from
   4894 	person-search-results-mode
   4895 In-Reply-To: <1195059761-sup-5443@south>
   4896 References: <6205b42d0711131500k2c784316t9dd6ae831e98a0ed@mail.gmail.com>
   4897 	<1195059761-sup-5443@south>
   4898 Message-ID: <1195061802-sup-1844@ausone.local>
   4899 
   4900 Excerpts from William Morgan's message of Wed Nov 14 18:07:04 +0100 2007:
   4901 > Excerpts from Pierre Baillet's message of Tue Nov 13 15:00:06 -0800 2007:
   4902 > > while playing with the contact manager (shouldn't tab look for
   4903 > > "*typedstring* instead of "typedstring*" when selecting TO recipients
   4904 > > ?)
   4905 > 
   4906 > Prefix match is more what I'm used to in console apps, but infix match
   4907 > is what Gmail does. Vim does infix match on tab-completion for things
   4908 > like switching buffers, so it's not unheard of...
   4909 > 
   4910 > What do people think?
   4911 
   4912 I would prefer infix match.
   4913 
   4914 What about using prefix match when the query starts with a '^'?
   4915 
   4916 Regards,
   4917 -- 
   4918 Nicolas Pouillard aka Ertai
   4919 
   4920 From vasudeva@linkswarm.com  Wed Nov 14 19:36:25 2007
   4921 From: vasudeva@linkswarm.com (vasudeva)
   4922 Date: Wed, 14 Nov 2007 19:36:25 -0500
   4923 Subject: [sup-talk] Crash when deleting an email from
   4924 	person-search-results-mode
   4925 In-Reply-To: <1195061802-sup-1844@ausone.local>
   4926 References: <6205b42d0711131500k2c784316t9dd6ae831e98a0ed@mail.gmail.com>
   4927 	<1195059761-sup-5443@south> <1195061802-sup-1844@ausone.local>
   4928 Message-ID: <20071115003625.GA4938@lenin.sovietwar.org>
   4929 
   4930 * on 11-14-07, Nicolas Pouillard wrote:
   4931 > Excerpts from William Morgan's message of Wed Nov 14 18:07:04 +0100 2007:
   4932 > > Excerpts from Pierre Baillet's message of Tue Nov 13 15:00:06 -0800 2007:
   4933 > > > while playing with the contact manager (shouldn't tab look for
   4934 > > > "*typedstring* instead of "typedstring*" when selecting TO recipients
   4935 > > > ?)
   4936 > > 
   4937 > > Prefix match is more what I'm used to in console apps, but infix match
   4938 > > is what Gmail does. Vim does infix match on tab-completion for things
   4939 > > like switching buffers, so it's not unheard of...
   4940 > > 
   4941 > > What do people think?
   4942 > 
   4943 > I would prefer infix match.
   4944 
   4945 Same.
   4946 
   4947 
   4948 
   4949 > What about using prefix match when the query starts with a '^'?
   4950 
   4951 This smacks of sensibility.
   4952 
   4953 
   4954 
   4955 /></
   4956 
   4957 --
   4958 linkswarm.com :: Collaborative Insolence
   4959 vasudeva.linkswarm.com/gallery :: For The Faint of Heart
   4960 
   4961 
   4962 From dylans@gmail.com  Wed Nov 14 22:36:31 2007
   4963 From: dylans@gmail.com (Dylan Stamat)
   4964 Date: Thu, 15 Nov 2007 16:36:31 +1300
   4965 Subject: [sup-talk] Odd behaviour on message creation
   4966 Message-ID: <63501594-4912-428D-B20B-B2D252877160@gmail.com>
   4967 
   4968 When creating a message, and filling out the :to, :cc, :subject... I  
   4969 can't erase my input... ie:  backspace isn't working.
   4970 I have the config pointing to local vim, and vim commands won't erase  
   4971 the input either.
   4972 The rest of the program seems to be working fine.
   4973 
   4974 So... if I create an email, and make a typo on the :to... I have to  
   4975 abort :)
   4976 Any suggestions / ideas would be appreciated.
   4977 
   4978 Thanks !
   4979 ==
   4980 Dylan
   4981 
   4982 From chrisw@rice.edu  Thu Nov 15 03:09:13 2007
   4983 From: chrisw@rice.edu (Christopher Warrington)
   4984 Date: Thu, 15 Nov 2007 02:09:13 -0600
   4985 Subject: [sup-talk] Odd behaviour on message creation
   4986 In-Reply-To: <63501594-4912-428D-B20B-B2D252877160@gmail.com>
   4987 References: <63501594-4912-428D-B20B-B2D252877160@gmail.com>
   4988 Message-ID: <1195114107-sup-1008@chris-tablet>
   4989 
   4990 Excerpts from Dylan Stamat's message of Wed Nov 14 21:36:31 -0600 2007:
   4991 > When creating a message, and filling out the :to, :cc, :subject... I
   4992 > can't erase my input... ie: backspace isn't working. I have the config
   4993 > pointing to local vim, and vim commands won't erase the input either.
   4994 > The rest of the program seems to be working fine.
   4995 > 
   4996 > So... if I create an email, and make a typo on the :to... I have to  
   4997 > abort :)
   4998 
   4999 > Any suggestions / ideas would be appreciated.
   5000 
   5001 Does ^H work instead of backspace? If so, check your key bindings.
   5002 
   5003 -- 
   5004 Christopher Warrington <chrisw at rice.edu>
   5005 Jones College
   5006 
   5007 From kingshivan@gmail.com  Thu Nov 15 11:26:36 2007
   5008 From: kingshivan@gmail.com (shivan)
   5009 Date: Thu, 15 Nov 2007 17:26:36 +0100
   5010 Subject: [sup-talk] uninitialized constant problem
   5011 Message-ID: <1e5fdab70711150826v2e916586t19c7bc150af92c34@mail.gmail.com>
   5012 
   5013 Hi, I get a error from sup when I try to  start it :
   5014 
   5015 /var/lib/gems/1.8/gems/sup-0.1/lib/sup/buffer.rb:32: warning: already
   5016 initialized constant KEY_ENTER
   5017 /var/lib/gems/1.8/gems/sup-0.1/lib/sup/buffer.rb:33: warning: already
   5018 initialized constant KEY_CANCEL
   5019 [Thu Nov 15 17:25:16 +0100 2007] locking /home/shivan/.sup/lock...
   5020 [Thu Nov 15 17:25:16 +0100 2007] stopped cursing
   5021 [Thu Nov 15 17:25:16 +0100 2007] oh crap, an exception
   5022 [Thu Nov 15 17:25:16 +0100 2007] unlocking /home/shivan/.sup/lock...
   5023 ----------------------------------------------------------------
   5024 I'm very sorry, but it seems that an error occurred in Sup.
   5025 Please accept my sincere apologies. If you don't mind, please
   5026 send the backtrace below and a brief report of the circumstances
   5027 to sup-talk at rubyforge dot orgs so that I might address this
   5028 problem. Thank you!
   5029 
   5030 Sincerely,
   5031 William
   5032 ----------------------------------------------------------------
   5033 
   5034 The problem was: 'uninitialized constant Redwood::CanSpawnComposeMode'
   5035 (error type NameError)
   5036 A backtrace follows:
   5037 sup/bin/sup:97: uninitialized constant Redwood::CanSpawnComposeMode (NameError)
   5038 
   5039 that's with the revision 704 of the svn version.
   5040 my only source is an mbox file of my gmail account (sup-sync
   5041 --all-sources died a few times before indexing it completely)
   5042 
   5043 any idea ?
   5044 
   5045 -- 
   5046 shivan
   5047 
   5048 From wmorgan-sup@masanjin.net  Thu Nov 15 12:42:19 2007
   5049 From: wmorgan-sup@masanjin.net (William Morgan)
   5050 Date: Thu, 15 Nov 2007 09:42:19 -0800
   5051 Subject: [sup-talk] uninitialized constant problem
   5052 In-Reply-To: <1e5fdab70711150826v2e916586t19c7bc150af92c34@mail.gmail.com>
   5053 References: <1e5fdab70711150826v2e916586t19c7bc150af92c34@mail.gmail.com>
   5054 Message-ID: <1195148436-sup-4453@south>
   5055 
   5056 Excerpts from kingshivan's message of Thu Nov 15 08:26:36 -0800 2007:
   5057 > Hi, I get a error from sup when I try to  start it :
   5058 > 
   5059 > /var/lib/gems/1.8/gems/sup-0.1/lib/sup/buffer.rb:32: warning: already
   5060 > initialized constant KEY_ENTER
   5061 > /var/lib/gems/1.8/gems/sup-0.1/lib/sup/buffer.rb:33: warning: already
   5062 > initialized constant KEY_CANCEL
   5063 [snip]
   5064 > The problem was: 'uninitialized constant Redwood::CanSpawnComposeMode'
   5065 > (error type NameError)
   5066 > A backtrace follows:
   5067 > sup/bin/sup:97: uninitialized constant Redwood::CanSpawnComposeMode (NameError)
   5068 > 
   5069 > that's with the revision 704 of the svn version.
   5070 
   5071 It looks like you're running the SVN version of bin/sup but it's loading
   5072 code from the 0.1 gem. Run sup from SVN like this:
   5073   ruby -I lib bin/sup
   5074 
   5075 -- 
   5076 William <wmorgan-sup at masanjin.net>
   5077 
   5078 From nicolas.pouillard@gmail.com  Mon Nov 19 07:15:18 2007
   5079 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   5080 Date: Mon, 19 Nov 2007 13:15:18 +0100
   5081 Subject: [sup-talk] Sup error when saving mails using maildir
   5082 Message-ID: <1195474360-sup-4962@ausone.inria.fr>
   5083 
   5084 I  was  trying  to switch to a maildir with all my mails, so I marked them and
   5085 read and archive them all. However I hit this error while saving.
   5086 
   5087 Any idea?
   5088 
   5089 Here is the backtrace...
   5090 
   5091 The problem was: 'trying to delete non-corresponding entry 3321 with index message-id "3DB8D934-72AE-11D9-A8FB-000A95DBE2C4 at feydakins.org" and parameter message id "20050206210231.GA3364 at yargla.epita.fr"' (error type RuntimeError)
   5092 A backtrace follows:
   5093 /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:164:in `sync_message': trying to delete non-corresponding entry 3321 with index message-id "3DB8D934-72AE-11D9-A8FB-000A95DBE2C4 at feydakins.org" and parameter message id "20050206210231.GA3364 at yargla.epita.fr" (RuntimeError)
   5094 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:485:in `send'
   5095 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:485:in `method_missing'
   5096 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/message.rb:126:in `save'
   5097 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/thread.rb:110:in `save'
   5098 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/thread.rb:66:in `each'
   5099 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/thread.rb:166:in `each_with_stuff'
   5100 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/thread.rb:164:in `each_with_stuff'
   5101 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/thread.rb:166:in `each_with_stuff'
   5102 	 ... 15 levels...
   5103 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/buffer.rb:203:in `handle_input'
   5104 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/bin/sup:210
   5105 	from /opt/local/bin/sup:18:in `load'
   5106 	from /opt/local/bin/sup:18
   5107 
   5108 -- 
   5109 Nicolas Pouillard aka Ertai
   5110 
   5111 From nicolas.pouillard@gmail.com  Mon Nov 19 08:53:33 2007
   5112 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   5113 Date: Mon, 19 Nov 2007 14:53:33 +0100
   5114 Subject: [sup-talk] More sup errors...
   5115 Message-ID: <1195480287-sup-1830@ausone.inria.fr>
   5116 
   5117 Sorry to came up with some new backtraces...
   5118 
   5119 I've saved some more mails and get this kind of errors:
   5120 
   5121 The problem was: ':20492 is out of range [0..20456] for IndexReader#[]' (error type ArgumentError)
   5122 A backtrace follows:
   5123 /opt/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:411:in `[]': :20492 is out of range [0..20456] for IndexReader#[] (ArgumentError)
   5124 	from /opt/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:411:in `[]'
   5125 	from /opt/local/lib/ruby/1.8/monitor.rb:238:in `synchronize'
   5126 	from /opt/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:403:in `[]'
   5127 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:304:in `build_message'
   5128 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:286:in `each_message_in_thread_for'
   5129 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/thread.rb:319:in `call'
   5130 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/thread.rb:319:in `load_thread_for_message'
   5131 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:297:in `each_message_in_thread_for'
   5132 	 ... 36 levels...
   5133 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/util.rb:485:in `method_missing'
   5134 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/bin/sup:196
   5135 	from /opt/local/bin/sup:16:in `load'
   5136 	from /opt/local/bin/sup:16
   5137 
   5138 And then this kind of errors:
   5139 
   5140 The problem was: 'State Error occured at <except.c>:93 in xraise
   5141 Error occured in index.c:4142 - sr_get_lazy_doc
   5142 	Document 9761 has already been deleted
   5143 
   5144 ' (error type Ferret::StateError)
   5145 A backtrace follows:
   5146 /opt/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:411:in `[]': State Error occured at <except.c>:93 in xraise (Ferret::StateError)
   5147 Error occured in index.c:4142 - sr_get_lazy_doc
   5148 	Document 9761 has already been deleted
   5149 
   5150 	from /opt/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:411:in `[]'
   5151 	from /opt/local/lib/ruby/1.8/monitor.rb:238:in `synchronize'
   5152 	from /opt/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:403:in `[]'
   5153 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:217:in `each_id_by_date'
   5154 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:217:in `each'
   5155 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/index.rb:217:in `each_id_by_date'
   5156 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/thread.rb:304:in `load_n_threads'
   5157 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/modes/thread-index-mode.rb:413:in `__unprotected_load_n_threads'
   5158 	 ... 17 levels...
   5159 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/lib/sup/buffer.rb:203:in `handle_input'
   5160 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.2/bin/sup:210
   5161 	from /opt/local/bin/sup:16:in `load'
   5162 	from /opt/local/bin/sup:16
   5163 
   5164 Best regards,
   5165 -- 
   5166 Nicolas Pouillard aka Ertai
   5167 
   5168 From col@baibell.org  Tue Nov 20 23:26:40 2007
   5169 From: col@baibell.org (Colin Bell)
   5170 Date: Wed, 21 Nov 2007 15:26:40 +1100
   5171 Subject: [sup-talk] [PATCH] New hook to allow formatting of message headers
   5172 Message-ID: <1195618839-sup-4347@lankhmar>
   5173 
   5174 Hi,
   5175 
   5176 This patch allows you to format the headers shown in the Detailed
   5177 Headers view. Also attached is an example hook which will show the
   5178 email client and a spam header.
   5179 
   5180 --
   5181 Col
   5182 
   5183 -------------- next part --------------
   5184 A non-text attachment was scrubbed...
   5185 Name: headers.diff
   5186 Type: application/octet-stream
   5187 Size: 1193 bytes
   5188 Desc: not available
   5189 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071121/a752531a/attachment.obj 
   5190 -------------- next part --------------
   5191 A non-text attachment was scrubbed...
   5192 Name: format-message-headers.rb
   5193 Type: application/octet-stream
   5194 Size: 202 bytes
   5195 Desc: not available
   5196 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071121/a752531a/attachment-0001.obj 
   5197 
   5198 From grant@antiflux.org  Wed Nov 21 14:53:34 2007
   5199 From: grant@antiflux.org (Grant Hollingworth)
   5200 Date: Wed, 21 Nov 2007 12:53:34 -0700
   5201 Subject: [sup-talk] [PATCH] label-list-mode with no unread messages
   5202 Message-ID: <1195673904-sup-7215@spooky>
   5203 
   5204 This patch sets the status to "No labels with unread messages" for label-list-mode when unread_only is toggled on and there are, well, no labels with unread messages. I thought the blank buffer looked a little odd.
   5205 
   5206 It would be nicer if label-list-mode wasn't modal. I keep hitting 'b' and 'x' and 'q' with no effect, and then hitting C-g. It would be more work to keep the counts up to date, but that could use some work anyway. If I read all the new mail in one label and then activate label-list-mode, the unread count will be wrong... unless I kill the label buffer or sync it first.
   5207 -------------- next part --------------
   5208 A non-text attachment was scrubbed...
   5209 Name: label-list-no-unread.diff
   5210 Type: application/octet-stream
   5211 Size: 912 bytes
   5212 Desc: not available
   5213 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071121/760d8bb6/attachment.obj 
   5214 
   5215 From grant@antiflux.org  Wed Nov 21 15:41:28 2007
   5216 From: grant@antiflux.org (Grant Hollingworth)
   5217 Date: Wed, 21 Nov 2007 13:41:28 -0700
   5218 Subject: [sup-talk] [PATCH] keep buffer-list-mode up-to-date
   5219 Message-ID: <1195677515-sup-8177@spooky>
   5220 
   5221 If you kill or create buffers, but leave buffer-list-mode open, the list of buffers will no longer be correct. If you then select a buffer that has been killed, Sup will crash at BufferManager.raise_to_front.
   5222 
   5223 This patch just reloads the buffer list every time you switch back to it.
   5224 -------------- next part --------------
   5225 A non-text attachment was scrubbed...
   5226 Name: sup-buffer-list-focus-reload.diff
   5227 Type: application/octet-stream
   5228 Size: 467 bytes
   5229 Desc: not available
   5230 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071121/24fcd1c0/attachment.obj 
   5231 
   5232 From grant@antiflux.org  Thu Nov 22 01:35:34 2007
   5233 From: grant@antiflux.org (Grant Hollingworth)
   5234 Date: Wed, 21 Nov 2007 23:35:34 -0700
   5235 Subject: [sup-talk] [PATCH] chronic parsing for 'today'
   5236 Message-ID: <1195712820-sup-7120@spooky>
   5237 
   5238 It turns out Chronic.parse has a poorly documented option of :context => :none.
   5239 
   5240 By default, Chronic uses :context => :future, so 'today' means the rest of today. This also applies to 'this day' (which is what Chronic normalizes 'today' to), 'this week', 'this month', etc.  
   5241 
   5242 With :context => :none, 'today' means all of today. I think it's safe to use for all searches.
   5243 
   5244 This feature has been around for at least a year -- Chronic 0.1.6 is the earliest gem I have, and it works.
   5245 -------------- next part --------------
   5246 A non-text attachment was scrubbed...
   5247 Name: sup-chronic-today.diff
   5248 Type: application/octet-stream
   5249 Size: 607 bytes
   5250 Desc: not available
   5251 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071121/4657fc5d/attachment-0001.obj 
   5252 
   5253 From eyal.oren@deri.org  Thu Nov 22 03:51:55 2007
   5254 From: eyal.oren@deri.org (Eyal Oren)
   5255 Date: Thu, 22 Nov 2007 09:51:55 +0100
   5256 Subject: [sup-talk] replying to html emails
   5257 Message-ID: <1195721327-sup-8333@timmy>
   5258 
   5259 Hi all,
   5260 
   5261 When I reply to HTML emails, the quoted body text is empty (I guess, because the 
   5262 emails only contains an HTML attachment, without actual body text). As a result, 
   5263 I cannot properly reply (inline) to these people.
   5264 
   5265 Has anyone else seen this? Where in the code should I look to fix this (I also 
   5266 still want to fix the manual thread-joining, but this annoys me more right now)?
   5267 
   5268  -eyal
   5269 
   5270 From pierre@baillet.name  Thu Nov 22 03:57:08 2007
   5271 From: pierre@baillet.name (Pierre Baillet)
   5272 Date: Thu, 22 Nov 2007 09:57:08 +0100
   5273 Subject: [sup-talk] Contact Manager and fullname aliasing
   5274 Message-ID: <6205b42d0711220057l79ecc2ect6c4a29dc5efff4ef@mail.gmail.com>
   5275 
   5276 Hi,
   5277 
   5278 I'd like to alter the way the ContactManager work so that it could be able
   5279 to save contact which don't have an alias but for which the #name has been
   5280 modified: For some of my contacts,  I'd like to be able to change the #name
   5281 without adding an alias (such as rename dad at home.com to "Dad Home" and
   5282 dad at work.com to "Dad Work") in order to make the Inbox List much easier to
   5283 read.
   5284 
   5285 The problem is that the contact manager is not able to handle alias-less
   5286 contacts and hence any modification to a Person during the run of Sup is
   5287 never saved for unaliased contacts (I actually patched my sup to allow
   5288 fullname modification before understanding that sup will never save these
   5289 changes :p).
   5290 
   5291 Another idea would be to force all displays to use aliases instead of real
   5292 names when displaying emails.  This is probably simple to implement because
   5293 there is no need to rework on the Contact Manager, but i still think that
   5294 "full name" (this full name is used in TO: headers)  and "alias" (this alias
   5295 is only used internally) should be different : I might want to have an alias
   5296 name "annoyingcolleague" and still have "John Doe" displayed when sending
   5297 him an email... Maybe a mix of these two ideas : allow fullname aliasing and
   5298 present all "internal" emails list in the following priority order: alias,
   5299 aliased fullname, fullname from the real email.
   5300 
   5301 What do you think ?
   5302 
   5303 Cheers,
   5304 -- 
   5305 Pierre Baillet <pierre at baillet.name>
   5306 -------------- next part --------------
   5307 An HTML attachment was scrubbed...
   5308 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071122/5bcffae0/attachment.html 
   5309 
   5310 From wmorgan-sup@masanjin.net  Fri Nov 23 13:56:58 2007
   5311 From: wmorgan-sup@masanjin.net (William Morgan)
   5312 Date: Fri, 23 Nov 2007 10:56:58 -0800
   5313 Subject: [sup-talk] Contact Manager and fullname aliasing
   5314 In-Reply-To: <6205b42d0711220057l79ecc2ect6c4a29dc5efff4ef@mail.gmail.com>
   5315 References: <6205b42d0711220057l79ecc2ect6c4a29dc5efff4ef@mail.gmail.com>
   5316 Message-ID: <1195843961-sup-2106@south>
   5317 
   5318 Hi Pierre,
   5319 
   5320 Excerpts from Pierre Baillet's message of Thu Nov 22 00:57:08 -0800 2007:
   5321 > I'd like to alter the way the ContactManager work so that it could be
   5322 > able to save contact which don't have an alias but for which the #name
   5323 > has been modified:
   5324 
   5325 Sounds great.
   5326 
   5327 > The problem is that the contact manager is not able to handle
   5328 > alias-less contacts and hence any modification to a Person during the
   5329 > run of Sup is never saved for unaliased contacts (I actually patched
   5330 > my sup to allow fullname modification before understanding that sup
   5331 > will never save these changes :p).
   5332 
   5333 I think the best solution is to alter the contact manager such that it
   5334 can handle contacts without aliases. I think it currently stores
   5335 everything as a hash from alias to Person object, so you'll have to add
   5336 an array instead.
   5337 
   5338 On the UI side, we can mimic Mutt-style alias prompts. Press 'l' and it
   5339 asks you for the person name (pre-filled with the name from the email),
   5340 and then asks you for the alias, allowing you to hit enter for none.
   5341 Something like that.
   5342 
   5343 > Another idea would be to force all displays to use aliases instead of
   5344 > real names when displaying emails.  This is probably simple to
   5345 > implement because there is no need to rework on the Contact Manager,
   5346 > but i still think that "full name" (this full name is used in TO:
   5347 > headers)  and "alias" (this alias is only used internally) should be
   5348 > different
   5349 
   5350 I agree that it's better that the two fields are different.
   5351 
   5352 -- 
   5353 William <wmorgan-sup at masanjin.net>
   5354 
   5355 From wmorgan-sup@masanjin.net  Fri Nov 23 17:44:09 2007
   5356 From: wmorgan-sup@masanjin.net (William Morgan)
   5357 Date: Fri, 23 Nov 2007 14:44:09 -0800
   5358 Subject: [sup-talk] replying to html emails
   5359 In-Reply-To: <1195721327-sup-8333@timmy>
   5360 References: <1195721327-sup-8333@timmy>
   5361 Message-ID: <1195857737-sup-1500@south>
   5362 
   5363 Excerpts from Eyal Oren's message of Thu Nov 22 00:51:55 -0800 2007:
   5364 > When I reply to HTML emails, the quoted body text is empty (I guess,
   5365 > because the emails only contains an HTML attachment, without actual
   5366 > body text). As a result, I cannot properly reply (inline) to these
   5367 > people.
   5368 
   5369 The proper reply to these people, of course, is "Can you please re-send
   5370 without the abomination that is HTML email?".
   5371 
   5372 But, ok, I've fixed this in SVN, such that anything that successfully
   5373 goes through the mime-decode hook will be quoted for replies and
   5374 forwards.
   5375 
   5376 I've also sped up IMAP a little bit... let me know if people notice any
   5377 difference.
   5378 
   5379 -- 
   5380 William <wmorgan-sup at masanjin.net>
   5381 
   5382 From wmorgan-sup@masanjin.net  Fri Nov 23 17:50:54 2007
   5383 From: wmorgan-sup@masanjin.net (William Morgan)
   5384 Date: Fri, 23 Nov 2007 14:50:54 -0800
   5385 Subject: [sup-talk] [PATCH] chronic parsing for 'today'
   5386 In-Reply-To: <1195712820-sup-7120@spooky>
   5387 References: <1195712820-sup-7120@spooky>
   5388 Message-ID: <1195858234-sup-7252@south>
   5389 
   5390 Excerpts from Grant Hollingworth's message of Wed Nov 21 22:35:34 -0800 2007:
   5391 > With :context => :none, 'today' means all of today. I think it's safe
   5392 > to use for all searches.
   5393 
   5394 Applied, thanks!
   5395 
   5396 -- 
   5397 William <wmorgan-sup at masanjin.net>
   5398 
   5399 From grant@antiflux.org  Fri Nov 23 18:35:07 2007
   5400 From: grant@antiflux.org (Grant Hollingworth)
   5401 Date: Fri, 23 Nov 2007 16:35:07 -0700
   5402 Subject: [sup-talk] replying to html emails
   5403 In-Reply-To: <1195857737-sup-1500@south>
   5404 References: <1195721327-sup-8333@timmy> <1195857737-sup-1500@south>
   5405 Message-ID: <1195860795-sup-2643@spooky>
   5406 
   5407 Excerpts from William Morgan's message of Fri Nov 23 15:44:09 -0700 2007:
   5408 > I've also sped up IMAP a little bit... let me know if people notice any
   5409 > difference.
   5410 
   5411 Startup is way faster now. Thanks! It does look a little crazy as the flash messages pile up on each other, but that's not a big deal.
   5412 
   5413 
   5414 From nicolas.pouillard@gmail.com  Sat Nov 24 05:25:57 2007
   5415 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   5416 Date: Sat, 24 Nov 2007 11:25:57 +0100
   5417 Subject: [sup-talk] Weird behaviour saving attachments.
   5418 Message-ID: <1195899951-sup-7842@ausone.local>
   5419 
   5420 Hi,
   5421 
   5422 Sometimes  when  I  save attachment the file name is not properly unquoted and
   5423 then save a file with double quotes in the name (e.g. "foo.bar").
   5424 
   5425 Best regards,
   5426 
   5427 -- 
   5428 Nicolas Pouillard aka Ertai
   5429 
   5430 
   5431 From wmorgan-sup@masanjin.net  Sat Nov 24 11:52:22 2007
   5432 From: wmorgan-sup@masanjin.net (William Morgan)
   5433 Date: Sat, 24 Nov 2007 08:52:22 -0800
   5434 Subject: [sup-talk] replying to html emails
   5435 In-Reply-To: <1195860795-sup-2643@spooky>
   5436 References: <1195721327-sup-8333@timmy> <1195857737-sup-1500@south>
   5437 	<1195860795-sup-2643@spooky>
   5438 Message-ID: <1195922940-sup-510@south>
   5439 
   5440 Excerpts from Grant Hollingworth's message of Fri Nov 23 15:35:07 -0800 2007:
   5441 > Startup is way faster now. Thanks!
   5442 
   5443 Excellent. The next critical IMAP thing is connection sharing.
   5444 
   5445 > It does look a little crazy as the flash messages pile up on each
   5446 > other, but that's not a big deal.
   5447 
   5448 Heck, the very act of using Sup to read your email is crazy! I actually
   5449 am proud of the stacking status bar. My contribution to the fast-paced
   5450 world of Curses-based interfaces, we'll call it.
   5451 
   5452 -- 
   5453 William <wmorgan-sup at masanjin.net>
   5454 
   5455 From guillaume.quintard@gmail.com  Sat Nov 24 12:13:22 2007
   5456 From: guillaume.quintard@gmail.com (Guillaume Quintard)
   5457 Date: Sat, 24 Nov 2007 18:13:22 +0100
   5458 Subject: [sup-talk] Can't use "H" or "?"
   5459 Message-ID: <1e5fdab70711240913m57c14e6etfa3f97dded8a0163@mail.gmail.com>
   5460 
   5461 hi,
   5462 I can't access to the helmp menu, whenever I press H or ? (no matter
   5463 if I use left or right shift key) I get this :
   5464 The problem was: 'unknown key name "ctrl_g"' (error type ArgumentError)
   5465 A backtrace follows:
   5466 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/keymap.rb:54:in
   5467 `keysym_to_string': unknown key name "ctrl_g" (ArgumentError)
   5468         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/keymap.rb:80:in `help_text'
   5469         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/keymap.rb:80:in `map'
   5470         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/keymap.rb:80:in `help_text'
   5471         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/keymap.rb:77:in `map'
   5472         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/keymap.rb:77:in `help_text'
   5473         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/modes/help-mode.rb:13:in
   5474 `initialize'
   5475         from sup/bin/sup:209:in `new'
   5476         from sup/bin/sup:209
   5477         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/buffer.rb:251:in
   5478 `spawn_unless_exists'
   5479         from sup/bin/sup:209
   5480 
   5481 I'm using an azerty keyboard
   5482 
   5483 -- 
   5484 shivan
   5485 
   5486 From wmorgan-sup@masanjin.net  Sat Nov 24 12:18:06 2007
   5487 From: wmorgan-sup@masanjin.net (William Morgan)
   5488 Date: Sat, 24 Nov 2007 09:18:06 -0800
   5489 Subject: [sup-talk] More sup errors...
   5490 In-Reply-To: <1195480287-sup-1830@ausone.inria.fr>
   5491 References: <1195480287-sup-1830@ausone.inria.fr>
   5492 Message-ID: <1195923981-sup-4149@south>
   5493 
   5494 Excerpts from nicolas.pouillard's message of Mon Nov 19 05:53:33 -0800 2007:
   5495 > The problem was: ':20492 is out of range [0..20456] for IndexReader#[]' (error
   5496 > type ArgumentError)
   5497 > A backtrace follows:
   5498 > /opt/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:411:in
   5499 > `[]': :20492 is out of range [0..20456] for IndexReader#[] (ArgumentError)
   5500 [snip]
   5501 > The problem was: 'State Error occured at <except.c>:93 in xraise
   5502 > Error occured in index.c:4142 - sr_get_lazy_doc
   5503 >     Document 9761 has already been deleted
   5504 > 
   5505 > ' (error type Ferret::StateError)
   5506 > A backtrace follows:
   5507 > /opt/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:411:in
   5508 > `[]': State Error occured at <except.c>:93 in xraise (Ferret::StateError)
   5509 > Error occured in index.c:4142 - sr_get_lazy_doc
   5510 >     Document 9761 has already been deleted
   5511 
   5512 These errors (and the previous errors you reported about the
   5513 non-matching message ids) suggest that Ferret is very confused---it's
   5514 returning document ids (each message is stored as a Ferret "document")
   5515 from a search that don't correspond to the right messages, or that
   5516 correspond to documents that have already been deleted, or that are
   5517 simply bigger than the max document id in the index.
   5518 
   5519 I suspect a bug in Ferret has somehow broken your index. Here's what I
   5520 suggest.
   5521 
   5522 0. Make a backup of ~/.sup in case something terrible happens.
   5523 1. Upgrade your Ferret gem to 11.5 (the latest).
   5524 2. sup-sync --all --optimize. (Might take a while.)
   5525 
   5526 If step #2 fails with the same Ferret errors, try:
   5527 
   5528 3. sup-dump | bzip2 > /tmp/state.bz2
   5529 4. rm -rf ~/.sup/ferret # you did make a backup, right?
   5530 5. sup-sync --all --restore <(bzcat /tmp/state.bz2) # assumes bash
   5531 
   5532 But hopefully step #2 will work. And if we're lucky step #1 will fix
   5533 whatever Ferret bug caused this.
   5534 
   5535 -- 
   5536 William <wmorgan-sup at masanjin.net>
   5537 
   5538 From wmorgan-sup@masanjin.net  Sat Nov 24 12:24:36 2007
   5539 From: wmorgan-sup@masanjin.net (William Morgan)
   5540 Date: Sat, 24 Nov 2007 09:24:36 -0800
   5541 Subject: [sup-talk] Can't use "H" or "?"
   5542 In-Reply-To: <1e5fdab70711240913m57c14e6etfa3f97dded8a0163@mail.gmail.com>
   5543 References: <1e5fdab70711240913m57c14e6etfa3f97dded8a0163@mail.gmail.com>
   5544 Message-ID: <1195924950-sup-1007@south>
   5545 
   5546 Excerpts from Guillaume Quintard's message of Sat Nov 24 09:13:22 -0800 2007:
   5547 > I can't access to the helmp menu, whenever I press H or ? (no matter
   5548 > if I use left or right shift key) I get this :
   5549 > The problem was: 'unknown key name "ctrl_g"' (error type ArgumentError)
   5550 
   5551 It looks like you're using an out-of-date SVN checkout. Time to SVN update!
   5552 
   5553 -- 
   5554 William <wmorgan-sup at masanjin.net>
   5555 
   5556 From wmorgan-sup@masanjin.net  Sat Nov 24 12:34:28 2007
   5557 From: wmorgan-sup@masanjin.net (William Morgan)
   5558 Date: Sat, 24 Nov 2007 09:34:28 -0800
   5559 Subject: [sup-talk] Weird behaviour saving attachments.
   5560 In-Reply-To: <1195899951-sup-7842@ausone.local>
   5561 References: <1195899951-sup-7842@ausone.local>
   5562 Message-ID: <1195925357-sup-8894@south>
   5563 
   5564 Excerpts from nicolas.pouillard's message of Sat Nov 24 02:25:57 -0800 2007:
   5565 > Sometimes  when  I  save attachment the file name is not properly
   5566 > unquoted and then save a file with double quotes in the name (e.g.
   5567 > "foo.bar").
   5568 
   5569 Can you track down the MIME header in the raw message that names the
   5570 attachment? 
   5571 
   5572 If you save the message to disk with 's' and search the file for
   5573 "filename", you should see it. (Probably a Content-Disposition header.)
   5574 
   5575 -- 
   5576 William <wmorgan-sup at masanjin.net>
   5577 
   5578 From wmorgan-sup@masanjin.net  Sat Nov 24 12:41:38 2007
   5579 From: wmorgan-sup@masanjin.net (William Morgan)
   5580 Date: Sat, 24 Nov 2007 09:41:38 -0800
   5581 Subject: [sup-talk] [PATCH] keep buffer-list-mode up-to-date
   5582 In-Reply-To: <1195677515-sup-8177@spooky>
   5583 References: <1195677515-sup-8177@spooky>
   5584 Message-ID: <1195926040-sup-8821@south>
   5585 
   5586 Excerpts from Grant Hollingworth's message of Wed Nov 21 12:41:28 -0800 2007:
   5587 > This patch just reloads the buffer list every time you switch back to
   5588 > it.
   5589 
   5590 Applied, thanks!
   5591 
   5592 -- 
   5593 William <wmorgan-sup at masanjin.net>
   5594 
   5595 From wmorgan-sup@masanjin.net  Sat Nov 24 12:45:22 2007
   5596 From: wmorgan-sup@masanjin.net (William Morgan)
   5597 Date: Sat, 24 Nov 2007 09:45:22 -0800
   5598 Subject: [sup-talk] Can't use "H" or "?"
   5599 In-Reply-To: <1e5fdab70711240913m57c14e6etfa3f97dded8a0163@mail.gmail.com>
   5600 References: <1e5fdab70711240913m57c14e6etfa3f97dded8a0163@mail.gmail.com>
   5601 Message-ID: <1195926236-sup-3173@south>
   5602 
   5603 Excerpts from Guillaume Quintard's message of Sat Nov 24 09:13:22 -0800 2007:
   5604 >         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/buffer.rb:251:in
   5605 > `spawn_unless_exists'
   5606 >         from sup/bin/sup:209
   5607 
   5608 Oh, I see that you're starting sup from SVN but that it's loading code
   5609 from the 0.2 gem. You need to use something like "ruby -Ilib bin/sup" to
   5610 start it if you're running from SVN. You should probably uninstall that
   5611 gem to prevent further confusion.
   5612 
   5613 -- 
   5614 William <wmorgan-sup at masanjin.net>
   5615 
   5616 From pierre@baillet.name  Sat Nov 24 13:38:49 2007
   5617 From: pierre@baillet.name (Pierre Baillet)
   5618 Date: Sat, 24 Nov 2007 19:38:49 +0100
   5619 Subject: [sup-talk] Contact Manager and fullname aliasing
   5620 In-Reply-To: <1195843961-sup-2106@south>
   5621 References: <6205b42d0711220057l79ecc2ect6c4a29dc5efff4ef@mail.gmail.com>
   5622 	<1195843961-sup-2106@south>
   5623 Message-ID: <6205b42d0711241038j3f1b75e6s3ad7a2d7f4d5b316@mail.gmail.com>
   5624 
   5625 Hi,
   5626 
   5627 This is my first implementation. Interestingly enough, most of the code
   5628 modified is in person.rb because this class already seems to store the full
   5629 name of contacts. Can the full name stored in it be overwritten by sup when
   5630 it receives new emails ? If this is the case, maybe we should add another
   5631 field there to indicate that the fullname has been modified by the user and
   5632 that sup shouldn't change it. I wanted to avoid to duplicate the full names
   5633 between person and contact but maybe i'm too lazy... At the same time, no
   5634 data migration is needed to add an extra field in the person or contact.txt:)
   5635 
   5636 The Contact Manager now has an Array instead of a hash. One problem might
   5637 happen : duplicate aliases. How can i warm the user that the alias he just
   5638 typed already exists ? This should be done in #update_alias of
   5639 #alias_contact. The method contact_for aalias has been modified and now
   5640 includes a grep. I don't know when this method is called, but i always take
   5641 the first elements returned. What if the aalias passed as parameter yields
   5642 no match ? Last method implementation yielded nil. Can this happen ?
   5643 
   5644 I aliased everything to "a" like before, and made sup ask for the alias and
   5645 the full name (my mutt has this bound on "a" too...).
   5646 
   5647 Let me know what you think of all this :)
   5648 -- 
   5649 Pierre.
   5650 
   5651 
   5652 On Nov 23, 2007 7:56 PM, William Morgan <wmorgan-sup at masanjin.net> wrote:
   5653 
   5654 > Hi Pierre,
   5655 >
   5656 > Excerpts from Pierre Baillet's message of Thu Nov 22 00:57:08 -0800 2007:
   5657 > > I'd like to alter the way the ContactManager work so that it could be
   5658 > > able to save contact which don't have an alias but for which the #name
   5659 > > has been modified:
   5660 >
   5661 > Sounds great.
   5662 >
   5663 > > The problem is that the contact manager is not able to handle
   5664 > > alias-less contacts and hence any modification to a Person during the
   5665 > > run of Sup is never saved for unaliased contacts (I actually patched
   5666 > > my sup to allow fullname modification before understanding that sup
   5667 > > will never save these changes :p).
   5668 >
   5669 > I think the best solution is to alter the contact manager such that it
   5670 > can handle contacts without aliases. I think it currently stores
   5671 > everything as a hash from alias to Person object, so you'll have to add
   5672 > an array instead.
   5673 >
   5674 > On the UI side, we can mimic Mutt-style alias prompts. Press 'l' and it
   5675 > asks you for the person name (pre-filled with the name from the email),
   5676 > and then asks you for the alias, allowing you to hit enter for none.
   5677 > Something like that.
   5678 >
   5679 > > Another idea would be to force all displays to use aliases instead of
   5680 > > real names when displaying emails.  This is probably simple to
   5681 > > implement because there is no need to rework on the Contact Manager,
   5682 > > but i still think that "full name" (this full name is used in TO:
   5683 > > headers)  and "alias" (this alias is only used internally) should be
   5684 > > different
   5685 >
   5686 > I agree that it's better that the two fields are different.
   5687 >
   5688 > --
   5689 > William <wmorgan-sup at masanjin.net>
   5690 > _______________________________________________
   5691 > sup-talk mailing list
   5692 > sup-talk at rubyforge.org
   5693 > http://rubyforge.org/mailman/listinfo/sup-talk
   5694 >
   5695 
   5696 
   5697 
   5698 -- 
   5699 Pierre Baillet <pierre at baillet.name>
   5700 -------------- next part --------------
   5701 An HTML attachment was scrubbed...
   5702 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071124/157e6dd2/attachment.html 
   5703 -------------- next part --------------
   5704 A non-text attachment was scrubbed...
   5705 Name: contact_manager.patch
   5706 Type: application/octet-stream
   5707 Size: 4344 bytes
   5708 Desc: not available
   5709 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071124/157e6dd2/attachment.obj 
   5710 
   5711 From guillaume.quintard@enst-bretagne.fr  Sat Nov 24 12:58:21 2007
   5712 From: guillaume.quintard@enst-bretagne.fr (Guillaume Quintard)
   5713 Date: Sat, 24 Nov 2007 18:58:21 +0100
   5714 Subject: [sup-talk] Can't use "H" or "?"
   5715 In-Reply-To: <1195926236-sup-3173@south>
   5716 References: <1e5fdab70711240913m57c14e6etfa3f97dded8a0163@mail.gmail.com>
   5717 	<1195926236-sup-3173@south>
   5718 Message-ID: <1e5fdab70711240958v3d3fe89ak7c6b670bb54e5103@mail.gmail.com>
   5719 
   5720 On Nov 24, 2007 6:45 PM, William Morgan <wmorgan-sup at masanjin.net> wrote:
   5721 > Oh, I see that you're starting sup from SVN but that it's loading code
   5722 > from the 0.2 gem. You need to use something like "ruby -Ilib bin/sup" to
   5723 > start it if you're running from SVN. You should probably uninstall that
   5724 > gem to prevent further confusion.
   5725 
   5726 actually, I tried without the gem, but I got this error message :
   5727 
   5728 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
   5729 `gem_original_require': no such file to load -- sup (LoadError)
   5730         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
   5731         from sup/bin/sup:8
   5732 
   5733 and now that I uninstalled it, I get the message agin
   5734 
   5735 
   5736 -- 
   5737 shivan
   5738 
   5739 From nicolas.pouillard@gmail.com  Sat Nov 24 14:00:52 2007
   5740 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   5741 Date: Sat, 24 Nov 2007 20:00:52 +0100
   5742 Subject: [sup-talk] More sup errors...
   5743 In-Reply-To: <1195923981-sup-4149@south>
   5744 References: <1195480287-sup-1830@ausone.inria.fr> <1195923981-sup-4149@south>
   5745 Message-ID: <1195930793-sup-417@ausone.local>
   5746 
   5747 Excerpts from William Morgan's message of Sat Nov 24 18:18:06 +0100 2007:
   5748 > Excerpts from nicolas.pouillard's message of Mon Nov 19 05:53:33 -0800 2007:
   5749 > > The problem was: ':20492 is out of range [0..20456] for IndexReader#[]' (error
   5750 > > type ArgumentError)
   5751 > > A backtrace follows:
   5752 > > /opt/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:411:in
   5753 > > `[]': :20492 is out of range [0..20456] for IndexReader#[] (ArgumentError)
   5754 > [snip]
   5755 > > The problem was: 'State Error occured at <except.c>:93 in xraise
   5756 > > Error occured in index.c:4142 - sr_get_lazy_doc
   5757 > >     Document 9761 has already been deleted
   5758 > > 
   5759 > > ' (error type Ferret::StateError)
   5760 > > A backtrace follows:
   5761 > > /opt/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:411:in
   5762 > > `[]': State Error occured at <except.c>:93 in xraise (Ferret::StateError)
   5763 > > Error occured in index.c:4142 - sr_get_lazy_doc
   5764 > >     Document 9761 has already been deleted
   5765 > 
   5766 > These errors (and the previous errors you reported about the
   5767 > non-matching message ids) suggest that Ferret is very confused---it's
   5768 > returning document ids (each message is stored as a Ferret "document")
   5769 > from a search that don't correspond to the right messages, or that
   5770 > correspond to documents that have already been deleted, or that are
   5771 > simply bigger than the max document id in the index.
   5772 > 
   5773 > I suspect a bug in Ferret has somehow broken your index. Here's what I
   5774 > suggest.
   5775 
   5776 Thanks a lot.
   5777 
   5778 I no longer have these errors, so I keep the recipe when errors will come.
   5779 
   5780 > 0. Make a backup of ~/.sup in case something terrible happens.
   5781 > 1. Upgrade your Ferret gem to 11.5 (the latest).
   5782 > 2. sup-sync --all --optimize. (Might take a while.)
   5783 > 
   5784 > If step #2 fails with the same Ferret errors, try:
   5785 > 
   5786 > 3. sup-dump | bzip2 > /tmp/state.bz2
   5787 > 4. rm -rf ~/.sup/ferret # you did make a backup, right?
   5788 > 5. sup-sync --all --restore <(bzcat /tmp/state.bz2) # assumes bash
   5789 > 
   5790 > But hopefully step #2 will work. And if we're lucky step #1 will fix
   5791 > whatever Ferret bug caused this.
   5792 > 
   5793 
   5794 -- 
   5795 Nicolas Pouillard aka Ertai
   5796 
   5797 
   5798 From wmorgan-sup@masanjin.net  Sat Nov 24 15:10:34 2007
   5799 From: wmorgan-sup@masanjin.net (William Morgan)
   5800 Date: Sat, 24 Nov 2007 12:10:34 -0800
   5801 Subject: [sup-talk] Can't use "H" or "?"
   5802 In-Reply-To: <1e5fdab70711240958v3d3fe89ak7c6b670bb54e5103@mail.gmail.com>
   5803 References: <1e5fdab70711240913m57c14e6etfa3f97dded8a0163@mail.gmail.com>
   5804 	<1195926236-sup-3173@south>
   5805 	<1e5fdab70711240958v3d3fe89ak7c6b670bb54e5103@mail.gmail.com>
   5806 Message-ID: <1195934992-sup-1552@south>
   5807 
   5808 Excerpts from guillaume.quintard's message of Sat Nov 24 09:58:21 -0800 2007:
   5809 > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
   5810 > `gem_original_require': no such file to load -- sup (LoadError)
   5811 >         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
   5812 >         from sup/bin/sup:8
   5813 > 
   5814 > and now that I uninstalled it, I get the message agin
   5815 
   5816 Are you in the SVN directory? I.e. are "bin" and "lib" both
   5817 subdirectories of the current directory?
   5818 
   5819 -- 
   5820 William <wmorgan-sup at masanjin.net>
   5821 
   5822 From wmorgan-sup@masanjin.net  Sat Nov 24 15:47:34 2007
   5823 From: wmorgan-sup@masanjin.net (William Morgan)
   5824 Date: Sat, 24 Nov 2007 12:47:34 -0800
   5825 Subject: [sup-talk] [PATCH] label-list-mode with no unread messages
   5826 In-Reply-To: <1195673904-sup-7215@spooky>
   5827 References: <1195673904-sup-7215@spooky>
   5828 Message-ID: <1195936974-sup-3449@south>
   5829 
   5830 Excerpts from Grant Hollingworth's message of Wed Nov 21 11:53:34 -0800 2007:
   5831 > This patch sets the status to "No labels with unread messages" for
   5832 > label-list-mode when unread_only is toggled on and there are, well, no
   5833 > labels with unread messages. I thought the blank buffer looked a
   5834 > little odd.
   5835 > 
   5836 > It would be nicer if label-list-mode wasn't modal. I keep hitting 'b'
   5837 > and 'x' and 'q' with no effect, and then hitting C-g.
   5838 
   5839 I've committed the following changes to SVN:
   5840 
   5841 1. LabelListMode is no longer modal (it was bugging me too)
   5842 2. Hitting tab now cycles the cursor between labels with unread
   5843    messages, just like in ThreadIndexMode.
   5844 3. Hitting 'u' does the toggle that tab used to. (Sorry to everyone who
   5845    has to retrain their fingers---maybe this is motivation to submit a
   5846    configurable keybinding patch!)
   5847 
   5848 > It would be more work to keep the counts up to date, but that could
   5849 > use some work anyway. If I read all the new mail in one label and then
   5850 > activate label-list-mode, the unread count will be wrong... unless I
   5851 > kill the label buffer or sync it first.
   5852 
   5853 Shouldn't be too hard to do this if you use catch the appropriate
   5854 events from UpdateManager.
   5855 
   5856 -- 
   5857 William <wmorgan-sup at masanjin.net>
   5858 
   5859 From nicolas.pouillard@gmail.com  Sun Nov 25 06:28:34 2007
   5860 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   5861 Date: Sun, 25 Nov 2007 12:28:34 +0100
   5862 Subject: [sup-talk] Weird behaviour saving attachments.
   5863 In-Reply-To: <1195925357-sup-8894@south>
   5864 References: <1195899951-sup-7842@ausone.local> <1195925357-sup-8894@south>
   5865 Message-ID: <1195990103-sup-5438@ausone.local>
   5866 
   5867 Excerpts from William Morgan's message of Sat Nov 24 18:34:28 +0100 2007:
   5868 > Excerpts from nicolas.pouillard's message of Sat Nov 24 02:25:57 -0800 2007:
   5869 > > Sometimes  when  I  save attachment the file name is not properly
   5870 > > unquoted and then save a file with double quotes in the name (e.g.
   5871 > > "foo.bar").
   5872 > 
   5873 > Can you track down the MIME header in the raw message that names the
   5874 > attachment? 
   5875 > 
   5876 > If you save the message to disk with 's' and search the file for
   5877 > "filename", you should see it. (Probably a Content-Disposition header.)
   5878 > 
   5879 
   5880 It  was  the  name  attribute of the Content-Type header that was not unquoted
   5881 like Content-Disposition filename. Here is a patch as attachment.
   5882 
   5883 -- 
   5884 Nicolas Pouillard aka Ertai
   5885 -------------- next part --------------
   5886 A non-text attachment was scrubbed...
   5887 Name: unquote-content-type-name.patch
   5888 Type: application/octet-stream
   5889 Size: 494 bytes
   5890 Desc: not available
   5891 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071125/287d1205/attachment.obj 
   5892 
   5893 From guillaume.quintard@enst-bretagne.fr  Sat Nov 24 22:29:50 2007
   5894 From: guillaume.quintard@enst-bretagne.fr (Guillaume Quintard)
   5895 Date: Sun, 25 Nov 2007 04:29:50 +0100
   5896 Subject: [sup-talk] Can't use "H" or "?"
   5897 In-Reply-To: <1195934992-sup-1552@south>
   5898 References: <1e5fdab70711240913m57c14e6etfa3f97dded8a0163@mail.gmail.com>
   5899 	<1195926236-sup-3173@south>
   5900 	<1e5fdab70711240958v3d3fe89ak7c6b670bb54e5103@mail.gmail.com>
   5901 	<1195934992-sup-1552@south>
   5902 Message-ID: <1e5fdab70711241929i2e07565bt745dd103a69e169@mail.gmail.com>
   5903 
   5904 On Nov 24, 2007 9:10 PM, William Morgan <wmorgan-sup at masanjin.net> wrote:
   5905 > Are you in the SVN directory? I.e. are "bin" and "lib" both
   5906 > subdirectories of the current directory?
   5907 
   5908 yep, sup is in sup/bin, and there's a lib directory on the same level as lib
   5909 
   5910 
   5911 -- 
   5912 Black masses are cool, as long as you're not the virgin.
   5913 
   5914 From pierre@baillet.name  Mon Nov 26 01:50:04 2007
   5915 From: pierre@baillet.name (Pierre Baillet)
   5916 Date: Mon, 26 Nov 2007 07:50:04 +0100
   5917 Subject: [sup-talk] [BUG] Forward in ThreadViewMode broken ?
   5918 Message-ID: <6205b42d0711252250x319ee165h3c83fd4eadb6426a@mail.gmail.com>
   5919 
   5920 Hi,
   5921 
   5922 trunk sup crashes when attempting to forward an email from the Thread View :
   5923 
   5924 The problem was: 'undefined method `spawn_forward_mode' for
   5925 #<Redwood::ThreadViewMode:0x2f1350d26e90>' (error type NoMethodError)
   5926 A backtrace follows:
   5927 /home/oct/temp/sup_trunk/lib/sup/modes/thread-view-mode.rb:130:in `forward':
   5928 undefined method `spawn_forward_mode' for
   5929 #<Redwood::ThreadViewMode:0x2f1350d26e90> (NoMethodError)
   5930         from /home/oct/temp/sup_trunk/lib/sup/mode.rb:54:in `send'
   5931         from /home/oct/temp/sup_trunk/lib/sup/mode.rb:54:in `handle_input'
   5932         from /home/oct/temp/sup_trunk/lib/sup/buffer.rb:204:in
   5933 `handle_input'
   5934         from /home/oct/temp/sup_trunk/bin/sup:201
   5935 [1]    18225 exit 1     sup
   5936 
   5937 Cheers,
   5938 -- 
   5939 Pierre Baillet <pierre at baillet.name>
   5940 -------------- next part --------------
   5941 An HTML attachment was scrubbed...
   5942 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071126/8d35957d/attachment.html 
   5943 
   5944 From marcus-sup@bar-coded.net  Mon Nov 26 07:09:06 2007
   5945 From: marcus-sup@bar-coded.net (Marcus Williams)
   5946 Date: Mon, 26 Nov 2007 12:09:06 +0000
   5947 Subject: [sup-talk] [BUG] Forward in ThreadViewMode broken ?
   5948 In-Reply-To: <6205b42d0711252250x319ee165h3c83fd4eadb6426a@mail.gmail.com>
   5949 References: <6205b42d0711252250x319ee165h3c83fd4eadb6426a@mail.gmail.com>
   5950 Message-ID: <1196078892-sup-2549@tomsk>
   5951 
   5952 On 26.11.2007, Pierre Baillet wrote:
   5953 > trunk sup crashes when attempting to forward an email from the Thread View :
   5954 
   5955 .. as is compose from within thread view with a similar stack trace
   5956 (but with spawn_compose_view)
   5957 
   5958 Marcus
   5959 
   5960 From grant@antiflux.org  Mon Nov 26 13:57:49 2007
   5961 From: grant@antiflux.org (Grant Hollingworth)
   5962 Date: Mon, 26 Nov 2007 13:57:49 -0500
   5963 Subject: [sup-talk] [PATCH] label-list-mode with no unread messages
   5964 In-Reply-To: <1195936974-sup-3449@south>
   5965 References: <1195673904-sup-7215@spooky> <1195936974-sup-3449@south>
   5966 Message-ID: <1196103315-sup-3020@spooky.local>
   5967 
   5968 Excerpts from William Morgan's message of Sat Nov 24 15:47:34 -0500 2007:
   5969 > Shouldn't be too hard to do this if you use catch the appropriate
   5970 > events from UpdateManager.
   5971 
   5972 I hadn't looked at the UpdateManager before... that's pretty cool.
   5973 
   5974 The problem is that the text in label-list-mode is created by LabelListMode#regen_text. It would be awkward to fiddle with @text outside of there. Since regen_text gets its numbers from Index.num_results_for, the other buffer has to sync to the index before the label list will know about it. So it seems to be just as effective to add 'def focus; reload; end' to LabelListMode.
   5975 
   5976 Handling the unread counts in LabelListMode seems dirty, anyway. You'd have to watch more than just the :read event, right? If a thread is archived from the inbox, for instance, the unread count for 'Inbox' should go down.
   5977 
   5978 So I haven't done any of that... but I found a related problem: the inbox doesn't update if you unarchive a thread elsewhere. I made a na?ve patch that works in some cases.
   5979 
   5980 -------------- next part --------------
   5981 A non-text attachment was scrubbed...
   5982 Name: sup-inbox-unarchived.diff
   5983 Type: application/octet-stream
   5984 Size: 988 bytes
   5985 Desc: not available
   5986 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071126/5ad3bba1/attachment.obj 
   5987 
   5988 From wmorgan-sup@masanjin.net  Mon Nov 26 15:09:31 2007
   5989 From: wmorgan-sup@masanjin.net (William Morgan)
   5990 Date: Mon, 26 Nov 2007 12:09:31 -0800
   5991 Subject: [sup-talk] [BUG] Forward in ThreadViewMode broken ?
   5992 In-Reply-To: <1196078892-sup-2549@tomsk>
   5993 References: <6205b42d0711252250x319ee165h3c83fd4eadb6426a@mail.gmail.com>
   5994 	<1196078892-sup-2549@tomsk>
   5995 Message-ID: <1196107764-sup-7455@south>
   5996 
   5997 Excerpts from Marcus Williams's message of Mon Nov 26 04:09:06 -0800 2007:
   5998 > On 26.11.2007, Pierre Baillet wrote:
   5999 > > trunk sup crashes when attempting to forward an email from the Thread View :
   6000 > 
   6001 > .. as is compose from within thread view with a similar stack trace
   6002 > (but with spawn_compose_view)
   6003 
   6004 Fixed. Sorry!
   6005 
   6006 -- 
   6007 William <wmorgan-sup at masanjin.net>
   6008 
   6009 From wmorgan-sup@masanjin.net  Mon Nov 26 15:11:28 2007
   6010 From: wmorgan-sup@masanjin.net (William Morgan)
   6011 Date: Mon, 26 Nov 2007 12:11:28 -0800
   6012 Subject: [sup-talk] Weird behaviour saving attachments.
   6013 In-Reply-To: <1195990103-sup-5438@ausone.local>
   6014 References: <1195899951-sup-7842@ausone.local> <1195925357-sup-8894@south>
   6015 	<1195990103-sup-5438@ausone.local>
   6016 Message-ID: <1196107869-sup-201@south>
   6017 
   6018 Excerpts from nicolas.pouillard's message of Sun Nov 25 03:28:34 -0800 2007:
   6019 > It  was  the  name  attribute of the Content-Type header that was not
   6020 > unquoted like Content-Disposition filename. Here is a patch as
   6021 > attachment.
   6022 
   6023 Applied. Thanks!
   6024 
   6025 -- 
   6026 William <wmorgan-sup at masanjin.net>
   6027 
   6028 From wmorgan-sup@masanjin.net  Mon Nov 26 15:37:29 2007
   6029 From: wmorgan-sup@masanjin.net (William Morgan)
   6030 Date: Mon, 26 Nov 2007 12:37:29 -0800
   6031 Subject: [sup-talk] new user of sup
   6032 In-Reply-To: <20071113184129.GA11753@lenin.sovietwar.org>
   6033 References: <4728B67A.7020604@gslab.com>
   6034 	<20071031180510.GA7449@lenin.sovietwar.org>
   6035 	<1194912687-sup-4696@south>
   6036 	<20071113184129.GA11753@lenin.sovietwar.org>
   6037 Message-ID: <1196109402-sup-5167@south>
   6038 
   6039 Excerpts from vasudeva's message of Tue Nov 13 10:41:29 -0800 2007:
   6040 > I've just svn updated sup, and I can reproduce this.
   6041 
   6042 Sorry for the delay! Finally fixed this. It was something dumb on 
   6043 my part. SVN update and see if it works now.
   6044 
   6045 -- 
   6046 William <wmorgan-sup at masanjin.net>
   6047 
   6048 From wmorgan-sup@masanjin.net  Mon Nov 26 15:42:48 2007
   6049 From: wmorgan-sup@masanjin.net (William Morgan)
   6050 Date: Mon, 26 Nov 2007 12:42:48 -0800
   6051 Subject: [sup-talk] [PATCH] Title bar and status bar widget
   6052 In-Reply-To: <1194905177-sup-2828@tomsk>
   6053 References: <1194518450-sup-4792@tomsk> <1194827264-sup-5774@south>
   6054 	<1194859333-sup-9479@tomsk> <1194886848-sup-8236@south>
   6055 	<1194905177-sup-2828@tomsk>
   6056 Message-ID: <1196109465-sup-5703@south>
   6057 
   6058 Excerpts from Marcus Williams's message of Mon Nov 12 14:07:17 -0800 2007:
   6059 > Attached is a patch for this. Not sure if this is the best way of
   6060 > doing it as I've used accessors on buffer class rather than passing
   6061 > args.
   6062 
   6063 I've added this functionality to SVN trunk, although I had to deviate
   6064 pretty far from the patch in order to get everything right. I also
   6065 changed the variable names slightly. Check it out and see if it does
   6066 everything you want.
   6067 
   6068 -- 
   6069 William <wmorgan-sup at masanjin.net>
   6070 
   6071 From marcus-sup@bar-coded.net  Mon Nov 26 15:45:47 2007
   6072 From: marcus-sup@bar-coded.net (Marcus Williams)
   6073 Date: Mon, 26 Nov 2007 20:45:47 +0000
   6074 Subject: [sup-talk] [PATCH] Title bar and status bar widget
   6075 In-Reply-To: <1196109465-sup-5703@south>
   6076 References: <1194518450-sup-4792@tomsk> <1194827264-sup-5774@south>
   6077 	<1194859333-sup-9479@tomsk> <1194886848-sup-8236@south>
   6078 	<1194905177-sup-2828@tomsk> <1196109465-sup-5703@south>
   6079 Message-ID: <1196109865-sup-4282@tomsk>
   6080 
   6081 On 26.11.2007, William Morgan wrote:
   6082 > I've added this functionality to SVN trunk, although I had to deviate
   6083 > pretty far from the patch in order to get everything right. I also
   6084 > changed the variable names slightly. Check it out and see if it does
   6085 > everything you want.
   6086 
   6087 On it now - cant get the title text to work yet, but I might be
   6088 missing something. Just trying to re-jig my shell and pipe patches so
   6089 that the shell one is in bin/sup. Will submit soon.
   6090 
   6091 Marcus
   6092 
   6093 From wmorgan-sup@masanjin.net  Mon Nov 26 15:46:28 2007
   6094 From: wmorgan-sup@masanjin.net (William Morgan)
   6095 Date: Mon, 26 Nov 2007 12:46:28 -0800
   6096 Subject: [sup-talk] Can't use "H" or "?"
   6097 In-Reply-To: <1e5fdab70711241929i2e07565bt745dd103a69e169@mail.gmail.com>
   6098 References: <1e5fdab70711240913m57c14e6etfa3f97dded8a0163@mail.gmail.com>
   6099 	<1195926236-sup-3173@south>
   6100 	<1e5fdab70711240958v3d3fe89ak7c6b670bb54e5103@mail.gmail.com>
   6101 	<1195934992-sup-1552@south>
   6102 	<1e5fdab70711241929i2e07565bt745dd103a69e169@mail.gmail.com>
   6103 Message-ID: <1196109860-sup-6281@south>
   6104 
   6105 Excerpts from guillaume.quintard's message of Sat Nov 24 19:29:50 -0800 2007:
   6106 > On Nov 24, 2007 9:10 PM, William Morgan <wmorgan-sup at masanjin.net> wrote:
   6107 > > Are you in the SVN directory? I.e. are "bin" and "lib" both
   6108 > > subdirectories of the current directory?
   6109 > 
   6110 > yep, sup is in sup/bin, and there's a lib directory on the same level as lib
   6111 
   6112 If you are in the SVN checkout directory, and there's a bin/sup, and a
   6113 lib/sup.rb, and a lot of lib/sup/*.rb, then it must be the case that:
   6114   ruby -I lib bin/sup
   6115 finds the correct libraries!
   6116 
   6117 -- 
   6118 William <wmorgan-sup at masanjin.net>
   6119 
   6120 From marcus-sup@bar-coded.net  Mon Nov 26 15:57:05 2007
   6121 From: marcus-sup@bar-coded.net (Marcus Williams)
   6122 Date: Mon, 26 Nov 2007 20:57:05 +0000
   6123 Subject: [sup-talk] [PATCH] Pipe message/attachement to shell command
   6124 In-Reply-To: <1195032303-sup-7083@tomsk>
   6125 References: <1194622205-sup-2949@tomsk> <1194889791-sup-3292@south>
   6126 	<1194905067-sup-4236@tomsk> <1194955037-sup-614@tomsk>
   6127 	<1195032303-sup-7083@tomsk>
   6128 Message-ID: <1196110544-sup-3133@tomsk>
   6129 
   6130 On 14.11.2007, Marcus Williams wrote:
   6131 > Ok, heres the new one. I think in the pipe to command case, the
   6132 > session gem is probably the best way to go (although I've not use it
   6133 > here) because it handles the blocking problems for you.
   6134 
   6135 Here we go again. Attached is the shell patch (pipe to follow) as a
   6136 patch to bin/sup instead of in the scroll mode.
   6137 
   6138 Marcus
   6139 -------------- next part --------------
   6140 A non-text attachment was scrubbed...
   6141 Name: shell-patch
   6142 Type: application/octet-stream
   6143 Size: 1221 bytes
   6144 Desc: not available
   6145 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071126/bd47d15c/attachment-0001.obj 
   6146 
   6147 From marcus-sup@bar-coded.net  Mon Nov 26 16:01:22 2007
   6148 From: marcus-sup@bar-coded.net (Marcus Williams)
   6149 Date: Mon, 26 Nov 2007 21:01:22 +0000
   6150 Subject: [sup-talk] [PATCH] Pipe message/attachement to shell command
   6151 In-Reply-To: <1196110544-sup-3133@tomsk>
   6152 References: <1194622205-sup-2949@tomsk> <1194889791-sup-3292@south>
   6153 	<1194905067-sup-4236@tomsk> <1194955037-sup-614@tomsk>
   6154 	<1195032303-sup-7083@tomsk> <1196110544-sup-3133@tomsk>
   6155 Message-ID: <1196110823-sup-7451@tomsk>
   6156 
   6157 On 26.11.2007, Marcus Williams wrote:
   6158 > Here we go again. Attached is the shell patch (pipe to follow) as a
   6159 > patch to bin/sup instead of in the scroll mode.
   6160 
   6161 ... and here is the pipe patch.
   6162 
   6163 Marcus
   6164 -------------- next part --------------
   6165 A non-text attachment was scrubbed...
   6166 Name: pipe-patch
   6167 Type: application/octet-stream
   6168 Size: 1926 bytes
   6169 Desc: not available
   6170 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071126/4a9e950a/attachment.obj 
   6171 
   6172 From mr@fudgie.org  Tue Nov 27 07:00:01 2007
   6173 From: mr@fudgie.org (Erlend Simonsen)
   6174 Date: Tue, 27 Nov 2007 13:00:01 +0100
   6175 Subject: [sup-talk] backtrace
   6176 Message-ID: <1196164801.15000.1.camel@quad>
   6177 
   6178 I composed a reply, and noticed I had typed a signature as well as gotten an auto-included one. Pressed 'd' on my typed signature '-- Erlend' and got this:
   6179 
   6180 
   6181 /var/lib/gems/1.8/gems/sup-0.2/lib/sup/modes/edit-message-mode.rb:124:in `-': nil can't be coerced into Fixnum (TypeError)
   6182         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/modes/edit-message-mode.rb:124:in `delete_attachment'
   6183         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/mode.rb:52:in `send'
   6184         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/mode.rb:52:in `handle_input'
   6185         from /var/lib/gems/1.8/gems/sup-0.2/lib/sup/buffer.rb:193:in `handle_input'
   6186         from /var/lib/gems/1.8/gems/sup-0.2/bin/sup:201
   6187         from /var/lib/gems/1.8/bin/sup:16:in `load'
   6188         from /var/lib/gems/1.8/bin/sup:16
   6189 
   6190 
   6191 
   6192 From wmorgan-sup@masanjin.net  Tue Nov 27 12:16:39 2007
   6193 From: wmorgan-sup@masanjin.net (William Morgan)
   6194 Date: Tue, 27 Nov 2007 09:16:39 -0800
   6195 Subject: [sup-talk] backtrace
   6196 In-Reply-To: <1196164801.15000.1.camel@quad>
   6197 References: <1196164801.15000.1.camel@quad>
   6198 Message-ID: <1196183750-sup-8312@south>
   6199 
   6200 Excerpts from Erlend Simonsen's message of Tue Nov 27 04:00:01 -0800 2007:
   6201 > I composed a reply, and noticed I had typed a signature as well as
   6202 > gotten an auto-included one. Pressed 'd' on my typed signature '--
   6203 > Erlend' and got this:
   6204 
   6205 This is fixed in SVN. I'm going to release an 0.3 soon.
   6206 
   6207 -- 
   6208 William <wmorgan-sup at masanjin.net>
   6209 
   6210 From wmorgan-sup@masanjin.net  Tue Nov 27 14:46:47 2007
   6211 From: wmorgan-sup@masanjin.net (William Morgan)
   6212 Date: Tue, 27 Nov 2007 11:46:47 -0800
   6213 Subject: [sup-talk] [ANN] Sup 0.3 released
   6214 Message-ID: <1196192739-sup-4301@south>
   6215 
   6216 Sup version 0.3 has been released!
   6217 
   6218 http://sup.rubyforge.org
   6219 
   6220 Sup is a console-based email client for people with a lot of email.
   6221 It supports tagging, very fast full-text search, automatic contact-
   6222 list management, and more. If you're the type of person who treats
   6223 email as an extension of your long-term memory, Sup is for you.
   6224 
   6225 Sup makes it easy to:
   6226 - Handle massive amounts of email.
   6227 
   6228 - Mix email from different sources: mbox files (even across different
   6229   machines), Maildir directories, IMAP folders, POP accounts, and
   6230   GMail accounts.
   6231 
   6232 - Instantaneously search over your entire email collection. Search
   6233   over body text, or use a query language to combine search
   6234   predicates in any way.
   6235 
   6236 - Handle multiple accounts. Replying to email sent to a particular
   6237   account will use the correct SMTP server, signature, and from
   6238   address.
   6239 
   6240 - Add custom code to handle certain types of messages or to handle
   6241   certain types of text within messages.
   6242 
   6243 - Organize email with user-defined labels, automatically track
   6244   recent contacts, and much more!
   6245 
   6246 The goal of Sup is to become the email client of choice for nerds
   6247 everywhere.
   6248 
   6249 Changes:
   6250 
   6251 ## 0.3 / 2007-10-29
   6252 * In-buffer search (finally!)
   6253 * Subscribe to/unsubscribe from mailing list commands.
   6254 * IMAP speedups.
   6255 * More hooks: set status bar, set terminal title bar, modify message headers
   6256   and bodies before editing, etc.
   6257 * Optionally use chronic gem to allow for natural-language dates in searches.
   6258 * Many, many bugfixes and minor improvements.
   6259 * Tomorrow is Sup's first birthday!
   6260 
   6261 * http://sup.rubyforge.org
   6262 
   6263 -- 
   6264 William <wmorgan-sup at masanjin.net>
   6265 
   6266 From grant@antiflux.org  Tue Nov 27 17:18:42 2007
   6267 From: grant@antiflux.org (Grant Hollingworth)
   6268 Date: Tue, 27 Nov 2007 17:18:42 -0500
   6269 Subject: [sup-talk] [PATCH] mode.focus not called when buffer killed
   6270 Message-ID: <1196201559-sup-3731@spooky.local>
   6271 
   6272 r708 changed buffer.rb to set @focus_buf in kill_buffer. The problem with that is that focus_on (called through raise_to_front) sees that @focus_buf is set and returns without doing anything... so mode.focus is never called. Since focus_on will set @focus_buf, I changed kill_buffer back and moved the focus_on call in raise_to_front out of the conditional. I think that should still work as expected.
   6273 
   6274 If I added some tests, would you use them? Some assertions would really help with cases like this.
   6275 -------------- next part --------------
   6276 A non-text attachment was scrubbed...
   6277 Name: sup-kill-buffer-focus.diff
   6278 Type: application/octet-stream
   6279 Size: 678 bytes
   6280 Desc: not available
   6281 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071127/f9132051/attachment.obj 
   6282 
   6283 From marcus-sup@bar-coded.net  Tue Nov 27 17:34:02 2007
   6284 From: marcus-sup@bar-coded.net (Marcus Williams)
   6285 Date: Tue, 27 Nov 2007 22:34:02 +0000
   6286 Subject: [sup-talk] [PATCH] More gmail search goodness
   6287 Message-ID: <1196202259-sup-7348@tomsk>
   6288 
   6289 Simple patch attached. Adds the "during" operator to the date searches
   6290 so you can say during:today or during:november . I prefer it to in/on
   6291 today :)
   6292 
   6293 Also adds an alias for the label search of "is" so that you can do
   6294 more gmail like searches is:starred, is:unread, is:spam, is:deleted.
   6295 The last two required changing the return value to a list/pair in
   6296 parse_user_string_query and I'm not sure what the best way to do this
   6297 in ruby is. For now its a simple list. Also is there a better way to
   6298 deal with a nil result other than returning [nil,nil]? The first
   6299 element is the parsed query string, the second allows the parser to
   6300 add options to the query like :load_spam, :load_deleted which are then
   6301 used in the code already to drop (or not) the spam/deleted labeled
   6302 messages.
   6303 
   6304 I figured you'd never want to search killed threads... and it made the
   6305 patch nastier because of the :skip_killed flag.
   6306 
   6307 I'd like to add a has:attachment operator but the ferret index doesnt
   6308 appear to store enough info for this. It would be really nice to be
   6309 able to search for attachments (of certain types as well with
   6310 filename:...) I took a look at extending the index to add a new field
   6311 "filename" that contains a list of filenames attached to a message,
   6312 but this would break everyones index so I'm just requesting it as a
   6313 wishlist item rather than submitting a patch. With it you could do
   6314 wildcard filename attachment searches and the has:attachment search
   6315 would just be converted to a search for the presence of any filename. 
   6316 
   6317 Marcus
   6318 -------------- next part --------------
   6319 A non-text attachment was scrubbed...
   6320 Name: more-gmail-search-prefix-patch
   6321 Type: application/octet-stream
   6322 Size: 2972 bytes
   6323 Desc: not available
   6324 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071127/311423df/attachment.obj 
   6325 
   6326 From daniel@electricrain.com  Tue Nov 27 20:25:22 2007
   6327 From: daniel@electricrain.com (Dan Sully)
   6328 Date: Tue, 27 Nov 2007 17:25:22 -0800
   6329 Subject: [sup-talk] Syncing from Exchange IMAP
   6330 Message-ID: <20071128012522.GA2951@electricrain.com>
   6331 
   6332 So I really like pain, and am trying to sync from an Exchange server via
   6333 IMAP. Login appears to work ok, but then:
   6334 
   6335 Updating message imaps://owa015.foo.net/Inbox#11848861110123690,
   6336 source 1 => 1, offset 11848861110123690 => 11848861110123690, state {inbox}
   6337 => {inbox}
   6338 
   6339 [Tue Nov 27 17:21:37 -0800 2007] problem getting messages from
   6340 imaps://owa015.foo.net/Inbox: IMAP message mismatch: requested
   6341 11848861110123690, got 11848861110160176.
   6342 
   6343 [Tue Nov 27 17:21:37 -0800 2007] error loading messages from
   6344 imaps://owa015.foo.net/Inbox: IMAP message mismatch: requested
   6345 11848861110123690, got 11848861110160176.
   6346 
   6347 Scanned 1, added 0, updated 1 messages from
   6348 imaps://owa015.foo.net/Inbox.
   6349 
   6350 I've tried with both Inbox and INBOX. Any thoughts? Thunderbird (*spit*)
   6351 talks to the server fine.
   6352 
   6353 -D
   6354 --
   6355 <dsully> please describe web 2.0 to me in 2 sentences or less.
   6356 <jwb> you make all the content. they keep all the revenue.
   6357 
   6358 From andrei@andreimaxim.ro  Tue Nov 27 21:19:43 2007
   6359 From: andrei@andreimaxim.ro (Andrei Maxim)
   6360 Date: Wed, 28 Nov 2007 04:19:43 +0200
   6361 Subject: [sup-talk] to_time_s
   6362 Message-ID: <a630bbc30711271819y8d1d5d1o53e70adc47a6ca15@mail.gmail.com>
   6363 
   6364 Hi guys,
   6365 
   6366 I just grabbed the latest sup using `sudo gem install sup` after seeing the
   6367 announce on RubyTalk, configured my Gmail account and did a `sup-sync` and
   6368 this is what I got:
   6369 
   6370 [Wed Nov 28 03:50:30 +0200 2007] unlocking /Users/andrei/.sup/lock...
   6371 /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/bin/sup-sync:14:in `to_i':
   6372 Infinity (FloatDomainError)
   6373         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/bin/sup-sync:14:in
   6374 `to_time_s'
   6375         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/bin/sup-sync:182
   6376         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/poll.rb:158:in
   6377 `add_messages_from'
   6378         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/imap.rb:170:in
   6379 `each'
   6380         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/imap.rb:158:in
   6381 `upto'
   6382         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/imap.rb:158:in
   6383 `each'
   6384         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/util.rb:533:in
   6385 `send'
   6386         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/util.rb:533:in
   6387 `__pass'
   6388         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/util.rb:522:in
   6389 `method_missing'
   6390         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/poll.rb:140:in
   6391 `add_messages_from'
   6392         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/util.rb:496:in
   6393 `send'
   6394         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/util.rb:496:in
   6395 `method_missing'
   6396         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/bin/sup-sync:134
   6397         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/bin/sup-sync:129:in
   6398 `each'
   6399         from /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/bin/sup-sync:129
   6400         from /usr/local/bin/sup-sync:16:in `load'
   6401         from /usr/local/bin/sup-sync:16
   6402 
   6403 Here's the line of the code that's causing the issues:
   6404 
   6405 $stderr.puts "## #{num_scanned} (#{pctdone}%) read; #{elapsed.to_time_s}
   6406 elapsed; #{remaining.to_time_s} remaining"
   6407 
   6408 It seems that the time difference is way too big. The mailbox is not so big,
   6409 around 400 MB according to Gmail, but I have a couple of months of high
   6410 traffic emails like Rails and RubyTalk. Sup detects that I have 66844 emails
   6411 in the INBOX folder.
   6412 
   6413 If needed, I could send a patch.
   6414 
   6415 -- 
   6416 Andrei Maxim
   6417 http://andreimaxim.ro
   6418 -------------- next part --------------
   6419 An HTML attachment was scrubbed...
   6420 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071128/d0463ad2/attachment-0001.html 
   6421 
   6422 From alexg@kuicr.kyoto-u.ac.jp  Wed Nov 28 04:17:11 2007
   6423 From: alexg@kuicr.kyoto-u.ac.jp (Alex Gutteridge)
   6424 Date: Wed, 28 Nov 2007 18:17:11 +0900
   6425 Subject: [sup-talk] Exception on start up
   6426 Message-ID: <BAF01BB7-5D51-418D-830B-044583A26FC9@kuicr.kyoto-u.ac.jp>
   6427 
   6428 This was thrown on OSX 10.5.1. Running iTerm 0.9.5.
   6429 
   6430 --- ArgumentError from thread: main
   6431 couldn't initialize curses color pair 4, 0 (key 1)
   6432 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/colormap.rb:88:in  
   6433 `color_for'
   6434 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/colormap.rb:112:in `send'
   6435 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/colormap.rb:112:in  
   6436 `method_missing'
   6437 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:104:in `write'
   6438 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/scroll-mode.rb:49:in  
   6439 `draw'
   6440 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/scroll-mode.rb:47:in  
   6441 `each'
   6442 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/scroll-mode.rb:47:in  
   6443 `draw'
   6444 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/line-cursor-mode.rb: 
   6445 24:in `draw'
   6446 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:95:in `draw'
   6447 /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:283:in  
   6448 `draw_screen'
   6449 /Library/Ruby/Gems/1.8/gems/sup-0.3/bin/sup:172
   6450 /usr/bin/sup:19:in `load'
   6451 /usr/bin/sup:19
   6452 
   6453 Alex Gutteridge
   6454 
   6455 Bioinformatics Center
   6456 Kyoto University
   6457 
   6458 
   6459 
   6460 From wmorgan-sup@masanjin.net  Wed Nov 28 12:08:45 2007
   6461 From: wmorgan-sup@masanjin.net (William Morgan)
   6462 Date: Wed, 28 Nov 2007 09:08:45 -0800
   6463 Subject: [sup-talk] to_time_s
   6464 In-Reply-To: <a630bbc30711271819y8d1d5d1o53e70adc47a6ca15@mail.gmail.com>
   6465 References: <a630bbc30711271819y8d1d5d1o53e70adc47a6ca15@mail.gmail.com>
   6466 Message-ID: <1196269623-sup-7802@south>
   6467 
   6468 Excerpts from Andrei Maxim's message of Tue Nov 27 18:19:43 -0800 2007:
   6469 > [Wed Nov 28 03:50:30 +0200 2007] unlocking /Users/andrei/.sup/lock...
   6470 > /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/bin/sup-sync:14:in `to_i':
   6471 > Infinity (FloatDomainError)
   6472 
   6473 Heh. Does this patch help?
   6474 
   6475 --- bin/sup-sync        (revision 731)
   6476 +++ bin/sup-sync        (working copy)
   6477 @@ -7,6 +7,9 @@
   6478  
   6479  class Float
   6480    def to_s; sprintf '%.2f', self; end
   6481 +  def to_time_s
   6482 +    infinite? ? "unknown" : super
   6483 +  end
   6484  end
   6485 
   6486 -- 
   6487 William <wmorgan-sup at masanjin.net>
   6488 
   6489 From wmorgan-sup@masanjin.net  Wed Nov 28 12:11:50 2007
   6490 From: wmorgan-sup@masanjin.net (William Morgan)
   6491 Date: Wed, 28 Nov 2007 09:11:50 -0800
   6492 Subject: [sup-talk] Syncing from Exchange IMAP
   6493 In-Reply-To: <20071128012522.GA2951@electricrain.com>
   6494 References: <20071128012522.GA2951@electricrain.com>
   6495 Message-ID: <1196269754-sup-8420@south>
   6496 
   6497 Excerpts from Dan Sully's message of Tue Nov 27 17:25:22 -0800 2007:
   6498 > [Tue Nov 27 17:21:37 -0800 2007] problem getting messages from imaps://owa015.foo.net/Inbox: IMAP message mismatch: requested 11848861110123690, got 11848861110160176.
   6499 
   6500 This suggests that Exchange is crazy and is giving different sizes for
   6501 the same message at different points in time.
   6502 
   6503 But that error is only a sanity check (hence "crazy"). If you comment
   6504 out the line that raises it (lib/sup/imap.rb line 276), do things work
   6505 right? Specifically, when you hit enter in thread-index-mode, do you
   6506 actually see the messages you thought you would?
   6507 
   6508 -- 
   6509 William <wmorgan-sup at masanjin.net>
   6510 
   6511 From wmorgan-sup@masanjin.net  Wed Nov 28 12:21:59 2007
   6512 From: wmorgan-sup@masanjin.net (William Morgan)
   6513 Date: Wed, 28 Nov 2007 09:21:59 -0800
   6514 Subject: [sup-talk] [PATCH] mode.focus not called when buffer killed
   6515 In-Reply-To: <1196201559-sup-3731@spooky.local>
   6516 References: <1196201559-sup-3731@spooky.local>
   6517 Message-ID: <1196270440-sup-7754@south>
   6518 
   6519 Excerpts from Grant Hollingworth's message of Tue Nov 27 14:18:42 -0800 2007:
   6520 > r708 changed buffer.rb to set @focus_buf in kill_buffer. The problem
   6521 > with that is that focus_on (called through raise_to_front) sees that
   6522 > @focus_buf is set and returns without doing anything... so mode.focus
   6523 > is never called. Since focus_on will set @focus_buf, I changed
   6524 > kill_buffer back and moved the focus_on call in raise_to_front out of
   6525 > the conditional. I think that should still work as expected.
   6526 
   6527 Applied, thanks.
   6528 
   6529 > If I added some tests, would you use them? Some assertions would
   6530 > really help with cases like this.
   6531 
   6532 Sure!
   6533 
   6534 -- 
   6535 William <wmorgan-sup at masanjin.net>
   6536 
   6537 From wmorgan-sup@masanjin.net  Wed Nov 28 12:27:07 2007
   6538 From: wmorgan-sup@masanjin.net (William Morgan)
   6539 Date: Wed, 28 Nov 2007 09:27:07 -0800
   6540 Subject: [sup-talk] Exception on start up
   6541 In-Reply-To: <BAF01BB7-5D51-418D-830B-044583A26FC9@kuicr.kyoto-u.ac.jp>
   6542 References: <BAF01BB7-5D51-418D-830B-044583A26FC9@kuicr.kyoto-u.ac.jp>
   6543 Message-ID: <1196270623-sup-6328@south>
   6544 
   6545 Excerpts from Alex Gutteridge's message of Wed Nov 28 01:17:11 -0800 2007:
   6546 > This was thrown on OSX 10.5.1. Running iTerm 0.9.5.
   6547 > 
   6548 > --- ArgumentError from thread: main
   6549 > couldn't initialize curses color pair 4, 0 (key 1)
   6550 
   6551 This suggests that ncurses doesn't want to work. Not knowing too much
   6552 about MacOS, are you missing some ncurses libraries?  Have you installed
   6553 the ncurses ruby gem? Are you able to run any other ncurses apps from
   6554 that terminal? (For example, the ncurses gem comes with a couple example
   6555 .rb files. Do they work?)
   6556 
   6557 -- 
   6558 William <wmorgan-sup at masanjin.net>
   6559 
   6560 From daniel@electricrain.com  Wed Nov 28 13:09:01 2007
   6561 From: daniel@electricrain.com (Dan Sully)
   6562 Date: Wed, 28 Nov 2007 10:09:01 -0800
   6563 Subject: [sup-talk] Syncing from Exchange IMAP
   6564 In-Reply-To: <1196269754-sup-8420@south>
   6565 References: <20071128012522.GA2951@electricrain.com>
   6566 	<1196269754-sup-8420@south>
   6567 Message-ID: <20071128180901.GA22871@electricrain.com>
   6568 
   6569 * William Morgan shaped the electrons to say...
   6570 
   6571 >This suggests that Exchange is crazy and is giving different sizes for
   6572 >the same message at different points in time.
   6573 
   6574 I concur that Exchange is crazy.
   6575 
   6576 >But that error is only a sanity check (hence "crazy"). If you comment
   6577 >out the line that raises it (lib/sup/imap.rb line 276), do things work
   6578 >right? Specifically, when you hit enter in thread-index-mode, do you
   6579 >actually see the messages you thought you would?
   6580 
   6581 Yes, things appear to work right. The mismatch only fails on the first 2
   6582 messages.
   6583 
   6584 -D
   6585 --
   6586 <dsully> please describe web 2.0 to me in 2 sentences or less.
   6587 <jwb> you make all the content. they keep all the revenue.
   6588 
   6589 From brenocon@gmail.com  Wed Nov 28 17:35:23 2007
   6590 From: brenocon@gmail.com (Brendan O'Connor)
   6591 Date: Wed, 28 Nov 2007 22:35:23 +0000
   6592 Subject: [sup-talk] Syncing from Exchange IMAP
   6593 In-Reply-To: <20071128180901.GA22871@electricrain.com>
   6594 References: <20071128012522.GA2951@electricrain.com>
   6595 	<1196269754-sup-8420@south>
   6596 	<20071128180901.GA22871@electricrain.com>
   6597 Message-ID: <1196289275-sup-7343@aa0-000-6.u.powerset.com>
   6598 
   6599 Excerpts from Dan Sully's message of Wed Nov 28 18:09:01 +0000 2007:
   6600 > * William Morgan shaped the electrons to say...
   6601 > 
   6602 > >This suggests that Exchange is crazy and is giving different sizes for
   6603 > >the same message at different points in time.
   6604 > 
   6605 > I concur that Exchange is crazy.
   6606 > 
   6607 > >But that error is only a sanity check (hence "crazy"). If you comment
   6608 > >out the line that raises it (lib/sup/imap.rb line 276), do things work
   6609 > >right? Specifically, when you hit enter in thread-index-mode, do you
   6610 > >actually see the messages you thought you would?
   6611 > 
   6612 > Yes, things appear to work right. The mismatch only fails on the first 2
   6613 > messages.
   6614 
   6615 Yep, I did the same workaround for exchange IMAP and it works for me too.
   6616 
   6617 
   6618 From andrei@andreimaxim.ro  Wed Nov 28 19:58:33 2007
   6619 From: andrei@andreimaxim.ro (Andrei Maxim)
   6620 Date: Thu, 29 Nov 2007 02:58:33 +0200
   6621 Subject: [sup-talk] to_time_s
   6622 In-Reply-To: <1196269623-sup-7802@south>
   6623 References: <a630bbc30711271819y8d1d5d1o53e70adc47a6ca15@mail.gmail.com>
   6624 	<1196269623-sup-7802@south>
   6625 Message-ID: <a630bbc30711281658h3b515c57k529289402eab7ce1@mail.gmail.com>
   6626 
   6627 On 11/28/07, William Morgan <wmorgan-sup at masanjin.net> wrote:
   6628 >
   6629 > Excerpts from Andrei Maxim's message of Tue Nov 27 18:19:43 -0800 2007:
   6630 > > [Wed Nov 28 03:50:30 +0200 2007] unlocking /Users/andrei/.sup/lock...
   6631 > > /usr/local/lib/ruby/gems/1.8/gems/sup-0.3/bin/sup-sync:14:in `to_i':
   6632 > > Infinity (FloatDomainError)
   6633 >
   6634 > Heh. Does this patch help?
   6635 >
   6636 > --- bin/sup-sync        (revision 731)
   6637 > +++ bin/sup-sync        (working copy)
   6638 > @@ -7,6 +7,9 @@
   6639 >
   6640 > class Float
   6641 >    def to_s; sprintf '%.2f', self; end
   6642 > +  def to_time_s
   6643 > +    infinite? ? "unknown" : super
   6644 > +  end
   6645 > end
   6646 >
   6647 
   6648 I have decided to delete most of the emails and it worked ok. But thanks for
   6649 the patch :)
   6650 
   6651 -- 
   6652 Andrei Maxim
   6653 http://andreimaxim.ro
   6654 -------------- next part --------------
   6655 An HTML attachment was scrubbed...
   6656 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071129/57c172b4/attachment.html 
   6657 
   6658 From andrei@andreimaxim.ro  Wed Nov 28 20:05:02 2007
   6659 From: andrei@andreimaxim.ro (Andrei Maxim)
   6660 Date: Thu, 29 Nov 2007 03:05:02 +0200
   6661 Subject: [sup-talk] Skipped '.'
   6662 Message-ID: <a630bbc30711281705r3df5f40au11940deb886625f0@mail.gmail.com>
   6663 
   6664 Hi again guys,
   6665 I'm trying to move away from Gmail (mostly because I hate to top post and
   6666 because I'd like to be able to read my emails when I'm offline) to A Better
   6667 Email Client and sup seems a very interesting solution. But the ride isn't
   6668 as smooth as I thought it would be.
   6669 
   6670 I did a sup-config and then a sup-sync. Everything went fine. But when I'm
   6671 starting sup, all I get is "Skipped '.'" and then exits:
   6672 
   6673 
   6674 $ sup
   6675 Skipped '.'
   6676 $
   6677 
   6678 I tried to google around, but it seems to be an odd error. What might be the
   6679 problem? Is there a log or something similar?
   6680 
   6681 I'm running Mac OS X 10.4, I have ncurses installed, I installed every
   6682 dependency for sup and I have the latest 0.3.
   6683 
   6684 Thanks,
   6685 -- 
   6686 Andrei Maxim
   6687 http://andreimaxim.ro
   6688 -------------- next part --------------
   6689 An HTML attachment was scrubbed...
   6690 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071129/ce461bce/attachment.html 
   6691 
   6692 From alexg@kuicr.kyoto-u.ac.jp  Wed Nov 28 20:49:34 2007
   6693 From: alexg@kuicr.kyoto-u.ac.jp (Alex Gutteridge)
   6694 Date: Thu, 29 Nov 2007 10:49:34 +0900
   6695 Subject: [sup-talk] Exception on start up
   6696 Message-ID: <2F2233F8-7973-4157-A6B8-600502AD6D6F@kuicr.kyoto-u.ac.jp>
   6697 
   6698 > This was thrown on OSX 10.5.1. Running iTerm 0.9.5.
   6699 >
   6700 > --- ArgumentError from thread: main
   6701 > couldn't initialize curses color pair 4, 0 (key 1)
   6702 > /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/colormap.rb:88:in  
   6703 > `color_for'
   6704 > /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/colormap.rb:112:in `send'
   6705 > /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/colormap.rb:112:in  
   6706 > `method_missing'
   6707 > /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:104:in `write'
   6708 > /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/scroll-mode.rb: 
   6709 > 49:in `draw'
   6710 > /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/scroll-mode.rb: 
   6711 > 47:in `each'
   6712 > /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/scroll-mode.rb: 
   6713 > 47:in `draw'
   6714 > /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/line-cursor- 
   6715 > mode.rb:24:in `draw'
   6716 > /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:95:in `draw'
   6717 > /Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:283:in  
   6718 > `draw_screen'
   6719 > /Library/Ruby/Gems/1.8/gems/sup-0.3/bin/sup:172
   6720 > /usr/bin/sup:19:in `load'
   6721 > /usr/bin/sup:19
   6722 
   6723 All the ncurses examples run, but not in color, so there's clearly  
   6724 something going wrong with OSX or my terminal. Curses wont initialize  
   6725 any color pair, so it's seems to be a problem with curses on OSX not  
   6726 sup.
   6727 
   6728 irb(main):001:0> require 'rubygems'
   6729 => true
   6730 irb(main):002:0> require 'curses'
   6731 => true
   6732 irb(main):003:0> require 'ncurses'
   6733 => true
   6734 irb(main):004:0> Curses.init_pair 1, -1, -1
   6735 => false
   6736 irb(main):005:0> Curses.init_pair 1, Curses::COLOR_WHITE,  
   6737 Curses::COLOR_BLACK
   6738 => false
   6739 
   6740 Alex Gutteridge
   6741 
   6742 Bioinformatics Center
   6743 Kyoto University
   6744 
   6745 
   6746 
   6747 From chrisw@rice.edu  Wed Nov 28 23:17:03 2007
   6748 From: chrisw@rice.edu (Christopher Warrington)
   6749 Date: Wed, 28 Nov 2007 22:17:03 -0600
   6750 Subject: [sup-talk] Exception on start up
   6751 In-Reply-To: <2F2233F8-7973-4157-A6B8-600502AD6D6F@kuicr.kyoto-u.ac.jp>
   6752 References: <2F2233F8-7973-4157-A6B8-600502AD6D6F@kuicr.kyoto-u.ac.jp>
   6753 Message-ID: <1196309742-sup-1589@chris-tablet>
   6754 
   6755 Excerpts from Alex Gutteridge's message of Wed Nov 28 19:49:34 -0600 2007:
   6756 > All the ncurses examples run, but not in color, so there's clearly  
   6757 > something going wrong with OSX or my terminal. Curses wont initialize  
   6758 > any color pair, so it's seems to be a problem with curses on OSX not  
   6759 > sup.
   6760 
   6761 If I remember correctly, the Apple Terminal program identified itself as
   6762 "xterm-color". This has caused me problems in the past. Changing it to
   6763 simply "xterm" has fixed it for me with no loss of functionality.
   6764 
   6765 -- 
   6766 Christopher Warrington <chrisw at rice.edu>
   6767 
   6768 
   6769 From wmorgan-sup@masanjin.net  Thu Nov 29 00:44:29 2007
   6770 From: wmorgan-sup@masanjin.net (William Morgan)
   6771 Date: Wed, 28 Nov 2007 21:44:29 -0800
   6772 Subject: [sup-talk] Skipped '.'
   6773 In-Reply-To: <a630bbc30711281705r3df5f40au11940deb886625f0@mail.gmail.com>
   6774 References: <a630bbc30711281705r3df5f40au11940deb886625f0@mail.gmail.com>
   6775 Message-ID: <1196314902-sup-9299@south>
   6776 
   6777 Excerpts from Andrei Maxim's message of Wed Nov 28 17:05:02 -0800 2007:
   6778 > $ sup
   6779 > Skipped '.'
   6780 > $
   6781 
   6782 That looks like the output of "svn update". Do you have "sup" aliased?
   6783 
   6784 Someone on ruby-talk pointed out that "sup" was the name of an old BSD
   6785 source checkout tool, or something. Maybe you have that installed? A
   6786 "which sup" might clear things up.
   6787 
   6788 -- 
   6789 William <wmorgan-sup at masanjin.net>
   6790 
   6791 From andrei@andreimaxim.ro  Thu Nov 29 01:54:50 2007
   6792 From: andrei@andreimaxim.ro (Andrei Maxim)
   6793 Date: Thu, 29 Nov 2007 08:54:50 +0200
   6794 Subject: [sup-talk] Skipped '.'
   6795 In-Reply-To: <1196314902-sup-9299@south>
   6796 References: <a630bbc30711281705r3df5f40au11940deb886625f0@mail.gmail.com>
   6797 	<1196314902-sup-9299@south>
   6798 Message-ID: <a630bbc30711282254y7012e9acgc452dd5e490286cf@mail.gmail.com>
   6799 
   6800 On 11/29/07, William Morgan <wmorgan-sup at masanjin.net> wrote:
   6801 >
   6802 > Excerpts from Andrei Maxim's message of Wed Nov 28 17:05:02 -0800 2007:
   6803 > > $ sup
   6804 > > Skipped '.'
   6805 > > $
   6806 >
   6807 > That looks like the output of "svn update". Do you have "sup" aliased?
   6808 >
   6809 
   6810 I totally forgot about the sup alias. Thanks, guys.
   6811 Now I'm overwhelmed with memories form the mutt days 8^)
   6812 
   6813 -- 
   6814 Andrei Maxim
   6815 http://andreimaxim.ro
   6816 -------------- next part --------------
   6817 An HTML attachment was scrubbed...
   6818 URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071129/65428552/attachment.html 
   6819 
   6820 From marcus-sup@bar-coded.net  Thu Nov 29 03:51:46 2007
   6821 From: marcus-sup@bar-coded.net (Marcus Williams)
   6822 Date: Thu, 29 Nov 2007 08:51:46 +0000
   6823 Subject: [sup-talk] New from address choosing code borked
   6824 Message-ID: <1196325968-sup-4654@tomsk>
   6825 
   6826 Hi -
   6827 
   6828 Looks like the reply address selection code is broken in svn - most of
   6829 the time it works but on my default account I get a reply (from)
   6830 address of:
   6831 
   6832 <Marcus Williams <Marcus Williams <marcus at .......>>>
   6833 
   6834 or something similar. Is this due to the changes just gone in (updated
   6835 late last night r732?). I think its only reproducible if you reply to
   6836 a message that you sent. Sup does what I'd expect (doesnt reply to me,
   6837 replies to the recipient I sent to) but somehow breaks the from
   6838 address.
   6839 
   6840 Marcus
   6841 
   6842 
   6843 From grant@antiflux.org  Thu Nov 29 10:15:01 2007
   6844 From: grant@antiflux.org (Grant Hollingworth)
   6845 Date: Thu, 29 Nov 2007 10:15:01 -0500
   6846 Subject: [sup-talk] Exception on start up
   6847 In-Reply-To: <2F2233F8-7973-4157-A6B8-600502AD6D6F@kuicr.kyoto-u.ac.jp>
   6848 References: <2F2233F8-7973-4157-A6B8-600502AD6D6F@kuicr.kyoto-u.ac.jp>
   6849 Message-ID: <1196348740-sup-7327@spooky.local>
   6850 
   6851 Excerpts from Alex Gutteridge's message of Wed Nov 28 20:49:34 -0500 2007:
   6852 > All the ncurses examples run, but not in color, so there's clearly  
   6853 > something going wrong with OSX or my terminal. Curses wont initialize  
   6854 > any color pair, so it's seems to be a problem with curses on OSX not  
   6855 > sup.
   6856 > 
   6857 > irb(main):001:0> require 'rubygems'
   6858 > => true
   6859 > irb(main):002:0> require 'curses'
   6860 > => true
   6861 > irb(main):003:0> require 'ncurses'
   6862 > => true
   6863 > irb(main):004:0> Curses.init_pair 1, -1, -1
   6864 > => false
   6865 > irb(main):005:0> Curses.init_pair 1, Curses::COLOR_WHITE,  
   6866 > Curses::COLOR_BLACK
   6867 > => false
   6868 
   6869 Sup works for me, in colour, in Terminal.app. $TERM is set to xterm-color. I'm using ncurses 5.6 from MacPorts.
   6870 
   6871 I get the same results as you in irb. Does curses normally work there?
   6872 
   6873 From grant@antiflux.org  Thu Nov 29 10:50:36 2007
   6874 From: grant@antiflux.org (Grant Hollingworth)
   6875 Date: Thu, 29 Nov 2007 10:50:36 -0500
   6876 Subject: [sup-talk] [PATCH] mode.focus not called when buffer killed
   6877 In-Reply-To: <1196270440-sup-7754@south>
   6878 References: <1196201559-sup-3731@spooky.local> <1196270440-sup-7754@south>
   6879 Message-ID: <1196351158-sup-2243@spooky.local>
   6880 
   6881 Excerpts from William Morgan's message of Wed Nov 28 12:21:59 -0500 2007:
   6882 > Applied, thanks.
   6883 
   6884 I noticed that you used 'focus_on buf' instead of 'focus_on @buffers.last'. I assumed that if @buffers.last.force_to_top? was true, that you'd want to focus on the last buffer instead of the one just moved to @buffers[-2]. Or do you just want to make sure that the force_to_top buffer stays at the end of @buffers?
   6885 
   6886 From grant@antiflux.org  Thu Nov 29 11:22:10 2007
   6887 From: grant@antiflux.org (Grant Hollingworth)
   6888 Date: Thu, 29 Nov 2007 11:22:10 -0500
   6889 Subject: [sup-talk] mailcap for os x
   6890 Message-ID: <1196351498-sup-4803@spooky.local>
   6891 
   6892 run-mailcap(1), which sup uses to view attachments, doesn't exist on OS X.
   6893 
   6894 I used the mime-decode hook to monkey patch Attachment.view! to also use the mime-decode hook. A case statement works as a pretty good replacement for my simple .mailcap.
   6895 
   6896 view_attachment[1] uses file(1) to figure out what an attachment's extension should be, before passing it to open(1). For quicklook I went another way, converting from the MIME type to the OS X UTI[2] using mime2uti, an ugly little program I made.
   6897 
   6898 It's messy, but seems to work for my attachements.
   6899 
   6900 [1] http://filibusta.crema.unimi.it/~gufo/files/view_attachment.sh
   6901 [2] http://en.wikipedia.org/wiki/Uniform_Type_Identifier
   6902 -------------- next part --------------
   6903 A non-text attachment was scrubbed...
   6904 Name: mime-decode.rb
   6905 Type: application/octet-stream
   6906 Size: 957 bytes
   6907 Desc: not available
   6908 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071129/ab231270/attachment.obj 
   6909 -------------- next part --------------
   6910 A non-text attachment was scrubbed...
   6911 Name: mime2uti.m
   6912 Type: application/octet-stream
   6913 Size: 763 bytes
   6914 Desc: not available
   6915 Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071129/ab231270/attachment-0001.obj 
   6916 
   6917 From wmorgan-sup@masanjin.net  Thu Nov 29 13:12:39 2007
   6918 From: wmorgan-sup@masanjin.net (William Morgan)
   6919 Date: Thu, 29 Nov 2007 10:12:39 -0800
   6920 Subject: [sup-talk] New from address choosing code borked
   6921 In-Reply-To: <1196325968-sup-4654@tomsk>
   6922 References: <1196325968-sup-4654@tomsk>
   6923 Message-ID: <1196359948-sup-4655@south>
   6924 
   6925 Excerpts from Marcus Williams's message of Thu Nov 29 00:51:46 -0800 2007:
   6926 > Looks like the reply address selection code is broken in svn - most of
   6927 > the time it works but on my default account I get a reply (from)
   6928 > address of:
   6929 > 
   6930 > <Marcus Williams <Marcus Williams <marcus at .......>>>
   6931 
   6932 Should be fixed. Sorry about that.
   6933 
   6934 -- 
   6935 William <wmorgan-sup at masanjin.net>
   6936 
   6937 From wmorgan-sup@masanjin.net  Thu Nov 29 13:18:09 2007
   6938 From: wmorgan-sup@masanjin.net (William Morgan)
   6939 Date: Thu, 29 Nov 2007 10:18:09 -0800
   6940 Subject: [sup-talk] [PATCH] mode.focus not called when buffer killed
   6941 In-Reply-To: <1196351158-sup-2243@spooky.local>
   6942 References: <1196201559-sup-3731@spooky.local> <1196270440-sup-7754@south>
   6943 	<1196351158-sup-2243@spooky.local>
   6944 Message-ID: <1196360200-sup-5728@south>
   6945 
   6946 Excerpts from Grant Hollingworth's message of Thu Nov 29 07:50:36 -0800 2007:
   6947 > I noticed that you used 'focus_on buf' instead of 'focus_on
   6948 > @buffers.last'. I assumed that if @buffers.last.force_to_top? was
   6949 > true, that you'd want to focus on the last buffer instead of the one
   6950 > just moved to @buffers[-2]. Or do you just want to make sure that the
   6951 > force_to_top buffer stays at the end of @buffers?
   6952 
   6953 Nope, you're correct. Focus should stay on the force_to_top? buffer,
   6954 regardless of whether something was deleted underneath it. I had tried a
   6955 couple different variations and didn't clean up properly. Thanks again!
   6956 
   6957 -- 
   6958 William <wmorgan-sup at masanjin.net>
   6959 
   6960 From nicolas.pouillard@gmail.com  Fri Nov 30 03:34:13 2007
   6961 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   6962 Date: Fri, 30 Nov 2007 09:34:13 +0100
   6963 Subject: [sup-talk] When replying to an attachment...
   6964 Message-ID: <1196411410-sup-5575@ausone.local>
   6965 
   6966 Hi,
   6967 
   6968 Sometimes  some  (bad)  mailers wrap the entire body in an attachment, that is
   6969 considered  by  sup  as  just  an  attachment  (still opened by default). When
   6970 replying  to  this  kind  of  email the original message is not present in the
   6971 answer mode.
   6972 
   6973 That's quite annoying to copy, paste, quote manually to reply to these mails.
   6974 
   6975 TIA,
   6976 -- 
   6977 Nicolas Pouillard aka Ertai
   6978 
   6979 From marcus-sup@bar-coded.net  Fri Nov 30 07:05:27 2007
   6980 From: marcus-sup@bar-coded.net (Marcus Williams)
   6981 Date: Fri, 30 Nov 2007 12:05:27 +0000
   6982 Subject: [sup-talk] Email extensions/alternate emails
   6983 Message-ID: <1196423833-sup-2326@tomsk>
   6984 
   6985 Hi -
   6986 
   6987 I've never quite figured out why I'd add alternate emails to my
   6988 config/accounts. Last time I used them it appeared that emails coming
   6989 into an alternate address used the default email address on that
   6990 account to reply with - is this still the case?
   6991 
   6992 I ask because I'm trying to implement support for email extensions
   6993 basically an email address like name-someotherid at domain.tld where
   6994 -someotherid is the extension. I added an "extensions" config option
   6995 that allowed me to add regexes for my extensions. I then extended
   6996 account_for to return the correct account given an email that matched
   6997 one of these extensions.
   6998 
   6999 But... what I really wanted sup to do then was what I expected it to
   7000 do with alternates, is to reply to an email that came in on one of
   7001 these extensions with the same email address, not with the account
   7002 email address.
   7003 
   7004 What else do I need to do? Is it just a matter of extending the reply
   7005 mode code? To do this should I have to create a dummy account/person
   7006 object for the extension address to be able to use it (this seems to
   7007 be the case)? Is there a better way to handle extensions?
   7008 
   7009 Thanks
   7010 
   7011 Marcus
   7012 
   7013 From a.panek@brainsware.at  Thu Nov 29 01:52:22 2007
   7014 From: a.panek@brainsware.at (Alexander Panek)
   7015 Date: Thu, 29 Nov 2007 07:52:22 +0100
   7016 Subject: [sup-talk] Multiple accounts
   7017 Message-ID: <1196318883-sup-1121@panicroom>
   7018 
   7019 Hey guys,
   7020 
   7021 is it possible to somehow change the used SMTP relayhost at runtime 
   7022 (specifically: the parameters of the MTA, in my case msmtp)?
   7023 
   7024 Thanks in advance.
   7025 
   7026 P.S.: Great job with 0.3, and congratulations for the first anniversary
   7027 
   7028 -- 
   7029 Alexander Panek
   7030