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/2009-09.txt (322874B) - raw

      1 From ingmar@exherbo.org  Tue Sep  1 04:07:27 2009
      2 From: ingmar@exherbo.org (Ingmar Vanhassel)
      3 Date: Tue, 01 Sep 2009 10:07:27 +0200
      4 Subject: [sup-talk] [PATCH 0/18] Xapian-based index
      5 In-Reply-To: <1248713376-sup-5163@cannonball>
      6 References: <1245531017-9907-1-git-send-email-rlane@club.cc.cmu.edu>
      7 	<1245854803-sup-4481@entry> <1245864733-sup-1216@entry>
      8 	<loom.20090625T222159-861@post.gmane.org>
      9 	<1246022094-sup-3336@entry> <1247873980-sup-8574@wrasse>
     10 	<20090723102325.GA4291@chistera.yi.org>
     11 	<1248497184-sup-939@pion.club.cc.cmu.edu>
     12 	<1248513425-sup-2484@chistera.yi.org>
     13 	<1248550384-sup-74@pion.club.cc.cmu.edu>
     14 	<1248709681-sup-4141@entry> <1248713376-sup-5163@cannonball>
     15 Message-ID: <1251792282-sup-2057@cannonball>
     16 
     17 Excerpts from Ingmar Vanhassel's message of Mon Jul 27 18:56:28 +0200 2009:
     18 > Excerpts from William Morgan's message of Mon Jul 27 17:48:38 +0200 2009:
     19 > > Reformatted excerpts from Rich Lane's message of 2009-07-25:
     20 > > > One issue I've noticed is that removing labels from messages doesn't
     21 > > > always immediately work.
     22 > > 
     23 > > Is this true even after you sync changes to the index? What about if you
     24 > > reload the label list buffer? ('@')
     25 > 
     26 > It's true in both cases. Even after a sync, 'U' still produces read
     27 > messages (among unread), and a search for label:foo has threads without
     28 > that label. If you quit sup & restart it things work as expected for a
     29 > while.
     30 
     31 I can still reproduce this for a more specific case, with xapian 1.0.15.
     32 
     33 Searching for is:unread (hit U), works as expected. When I filter
     34 that with threads having a second label (hit |, label:foo), then it
     35 shows threads with label:foo, but it loses the is:unread constraint.
     36 
     37 Same for immediately doing is:unread label:foo, which gives me unread
     38 threads, but not always with the foo label.
     39 -- 
     40 Exherbo KDE, X.org maintainer
     41 
     42 From israel.herraiz@gmail.com  Tue Sep  1 04:51:28 2009
     43 From: israel.herraiz@gmail.com (Israel Herraiz)
     44 Date: Tue, 01 Sep 2009 10:51:28 +0200
     45 Subject: [sup-talk] [PATCH] Identify list messages by list-id if
     46 	list-post is not present
     47 In-Reply-To: <1251773879-sup-5227@masanjin.net>
     48 References: <1251192579-sup-1849@elly> <1251773879-sup-5227@masanjin.net>
     49 Message-ID: <1251794935-sup-3802@elly>
     50 
     51 Excerpts from William Morgan's message of Tue Sep 01 04:58:47 +0200 2009:
     52 > Does this patch work for you?
     53 
     54 Yes, although list-id is not an address (it does not contain the "@"
     55 symbol for instance). But I am happy with that patch :-).
     56 
     57 Cheers,
     58 Israel
     59 
     60 From wmorgan-sup@masanjin.net  Tue Sep  1 16:59:56 2009
     61 From: wmorgan-sup@masanjin.net (William Morgan)
     62 Date: Tue, 01 Sep 2009 13:59:56 -0700
     63 Subject: [sup-talk] [PATCH] add xapian-specific hack to quickly create a
     64 	Person
     65 In-Reply-To: <1251250991-sup-3593@zyrg.net>
     66 References: <1250965695-31073-1-git-send-email-rlane@club.cc.cmu.edu>
     67 	<1250967263-31292-1-git-send-email-rlane@club.cc.cmu.edu>
     68 	<1251156216-sup-5563@masanjin.net> <1251250991-sup-3593@zyrg.net>
     69 Message-ID: <1251838745-sup-376@masanjin.net>
     70 
     71 Reformatted excerpts from Rich Lane's message of 2009-08-25:
     72 > The slow part is the processing in Person#initialize, which
     73 > QuickPerson overrides. You might also be able to avoid that by moving
     74 > the initialize() code into Person.from_address.
     75 
     76 Yeah, I think that's a better approach. There's no need for the
     77 constructor to do all that work. I'll work on this when I get a chance,
     78 or feel free to beat me to it.
     79 -- 
     80 William <wmorgan-sup at masanjin.net>
     81 
     82 From rlane@club.cc.cmu.edu  Tue Sep  1 23:59:57 2009
     83 From: rlane@club.cc.cmu.edu (Rich Lane)
     84 Date: Tue, 01 Sep 2009 23:59:57 -0400
     85 Subject: [sup-talk] [PATCH 2/2] ui responsiveness tweaks
     86 In-Reply-To: <1251053171-11450-2-git-send-email-rlane@club.cc.cmu.edu>
     87 References: <1251053171-11450-1-git-send-email-rlane@club.cc.cmu.edu>
     88 	<1251053171-11450-2-git-send-email-rlane@club.cc.cmu.edu>
     89 Message-ID: <1251863327-sup-8206@zyrg.net>
     90 
     91 Just making sure these patches don't drop off your radar. I know
     92 searching is supposed to make scrolling obsolete, but some Mutt users
     93 asked for this. They'll see the light eventually.
     94 
     95 From wmorgan-sup@masanjin.net  Wed Sep  2 09:50:13 2009
     96 From: wmorgan-sup@masanjin.net (William Morgan)
     97 Date: Wed, 02 Sep 2009 06:50:13 -0700
     98 Subject: [sup-talk] Nobody told me
     99 In-Reply-To: <1e5fdab70908281401k7f0b59ectb38ce7dfe7280569@mail.gmail.com>
    100 References: <1e5fdab70908270518k3f349191jb5e780e0e0555461@mail.gmail.com>
    101 	<1251491725-sup-284@masanjin.net>
    102 	<1e5fdab70908281401k7f0b59ectb38ce7dfe7280569@mail.gmail.com>
    103 Message-ID: <1251899343-sup-1025@masanjin.net>
    104 
    105 Reformatted excerpts from Guillaume Quintard's message of 2009-08-28:
    106 > arg, when I try to restore, I get this:
    107 > ./lib/sup/crypto.rb:157:in ``': Cannot allocate memory - /usr/bin/gpg --quiet --batch --no-verbose --logger-fd 1 --use-agent --verify /tmp/31666-0-redwood.signature /tmp/31666-0-redwood.payload 2> /dev/null (Errno::ENOMEM)
    108 
    109 If anyone else has been having memory usage problems on the next branch
    110 recently (probably when sup-syncing a large mbox file), they should be
    111 fixed now. I've unmerged the after-add hook, which was the culprit.
    112 -- 
    113 William <wmorgan-sup at masanjin.net>
    114 
    115 From wmorgan-sup@masanjin.net  Wed Sep  2 09:53:17 2009
    116 From: wmorgan-sup@masanjin.net (William Morgan)
    117 Date: Wed, 02 Sep 2009 06:53:17 -0700
    118 Subject: [sup-talk] [PATCH] Add an after-add-message hook
    119 In-Reply-To: <1251153881-sup-1538@masanjin.net>
    120 References: <1250707991-sup-5429@masanjin.net>
    121 	<1250819862-4858-1-git-send-email-kevinr@free-dissociation.com>
    122 	<1251153881-sup-1538@masanjin.net>
    123 Message-ID: <1251899447-sup-1658@masanjin.net>
    124 
    125 Reformatted excerpts from William Morgan's message of 2009-08-24:
    126 > Branch after-add-message-hook, merged into next. Thanks!
    127 
    128 I've had to unmerge this, because keeping all the messages around led to
    129 memory problems with large mailboxes.
    130 
    131 What about just using the before-add hook and either backgrounding the
    132 process (if it's a separate process) or doing the processing in a Thread
    133 (if it's Ruby code)?
    134 -- 
    135 William <wmorgan-sup at masanjin.net>
    136 
    137 From marco-oweber@gmx.de  Thu Sep  3 10:24:32 2009
    138 From: marco-oweber@gmx.de (Marc Weber)
    139 Date: Thu, 03 Sep 2009 16:24:32 +0200
    140 Subject: [sup-talk] Trouble loading dump into Xapian index
    141 Message-ID: <1251987692-sup-9940@nixos>
    142 
    143 I've used this sh script to get a new SUP_BASE using xapian only:
    144 However somehow i couldn't import the tags? What have I done wrong?
    145 dump2: The dump file created from the xapian index.
    146 
    147   set -x
    148   OLD=~/.sup-old/
    149   NEW=~/.sup-new-test
    150   DUMP=/tmp/dump-file-new
    151   DUMP2=/tmp/dump-file-new2
    152   SYNC_LOG=/tmp/sup-sync-log
    153   GIT_REPO=~/managed_repos/sup_mainline
    154 
    155   rm -fr $NEW
    156 
    157   export SUP_BASE=$OLD
    158   sup-dump > $DUMP
    159 
    160   # from now on operate on the new base only
    161   export SUP_BASE=$NEW
    162   cp -r $OLD $NEW
    163   rm -fr $NEW/ferret
    164   mv $NEW/{hooks,hooks-disabled}
    165 
    166   # echo loading stuff..
    167   export SUP_INDEX=xapian
    168   cd $GIT_REPO 
    169   echo "syncing.. this will take long. use tail -f $SYNC_LOG to watch progress"
    170   ruby -Ilib bin/sup-sync --all --all-sources --restore $DUMP &> $SYNC_LOG
    171 
    172   echo "writing dump"
    173   ruby -Ilib bin/sup-dump > $DUMP2
    174 
    175 
    176 dump: (first line after sorting)
    177 000001c9fe57$346bf530$9d43df90$@com.au (unread openeeg)
    178 
    179 dump2: (first line after sorting)
    180 000001c9fe57$346bf530$9d43df90$@com.au (inbox unread)
    181 
    182 Marc Weber
    183 
    184 From amit.kucheria@gmail.com  Thu Sep  3 10:26:40 2009
    185 From: amit.kucheria@gmail.com (Amit Kucheria)
    186 Date: Thu, 3 Sep 2009 17:26:40 +0300
    187 Subject: [sup-talk] Dynamic list of maildir folders as sources
    188 Message-ID: <20090903142640.GB4465@matterhorn.verdurent.com>
    189 
    190 Hi,
    191 
    192 I've been watching sup for a while and finally decided to take the plunge
    193 today.  Apologies for the long-winded explanation before the real question,
    194 but I guess if something in my workflow could be optimised, someone might be
    195 able to point it out here.
    196 
    197 I'll be running sup on a bunch of maildir folders downloaded via offlineimap.
    198 
    199 All my mail comes as IMAP from 3 gmail accounts. When I subscribe to a new
    200 mailing list, I simply create a new filter in gmail to add a new tag to email
    201 from that list and skip the inbox. This shows up as a new maildir folder on my
    202 local machine.
    203 
    204 Mutt finds this new folder using the following folder-hook hack I have in my
    205 .muttrc:
    206 
    207 folder-hook +foo.* mailboxes `find ~/Mail/foo -type d
    208 -name cur -type d -printf '%h\n' | sort | tr '\012' ' '`
    209 
    210 , where foo is one of my mailboxes. So I have ~/Mail/bar and ~/Mail/foobar for
    211 my other accounts. Each of these have several maildir folder in them.
    212 
    213 I've run sup-config and it seems to expect that I list every maildir folder
    214 I've got. Is there a way to generate this dynamically?
    215 
    216 Regards,
    217 Amit
    218 p.s. sup-sync has been at it on my lkml folder with ~40K mail messages for
    219 30mins now.
    220 -- 
    221 ------------------------------------------------------------
    222 Amit Kucheria
    223 ------------------------------------------------------------
    224 
    225 From wmorgan-sup@masanjin.net  Thu Sep  3 11:25:50 2009
    226 From: wmorgan-sup@masanjin.net (William Morgan)
    227 Date: Thu, 03 Sep 2009 08:25:50 -0700
    228 Subject: [sup-talk] Trouble loading dump into Xapian index
    229 In-Reply-To: <1251987692-sup-9940@nixos>
    230 References: <1251987692-sup-9940@nixos>
    231 Message-ID: <1251991420-sup-3869@masanjin.net>
    232 
    233 Reformatted excerpts from Marc Weber's message of 2009-09-03:
    234 > I've used this sh script to get a new SUP_BASE using xapian only:
    235 > However somehow i couldn't import the tags? What have I done wrong?
    236 
    237 This *might* be related to a patch that Rich sent that I thought I had
    238 applied, but apparently did not. Can you try once more with the latest
    239 master? If it still doesn't work we'll take it from there. (Also, check
    240 that the number of messages sup-sync reports it has restored state on is
    241 the number of messages you'd expect, e.g. roughly the number of lines in
    242 the dumpfile.)
    243 -- 
    244 William <wmorgan-sup at masanjin.net>
    245 
    246 From wmorgan-sup@masanjin.net  Thu Sep  3 11:37:50 2009
    247 From: wmorgan-sup@masanjin.net (William Morgan)
    248 Date: Thu, 03 Sep 2009 08:37:50 -0700
    249 Subject: [sup-talk] Dynamic list of maildir folders as sources
    250 In-Reply-To: <20090903142640.GB4465@matterhorn.verdurent.com>
    251 References: <20090903142640.GB4465@matterhorn.verdurent.com>
    252 Message-ID: <1251991617-sup-9735@masanjin.net>
    253 
    254 Reformatted excerpts from Amit Kucheria's message of 2009-09-03:
    255 > I've been watching sup for a while and finally decided to take the
    256 > plunge today.
    257 
    258 Welcome!
    259 
    260 > I've run sup-config and it seems to expect that I list every maildir
    261 > folder I've got. Is there a way to generate this dynamically?
    262 
    263 If you can generate the list (e.g. with the find command you cited), you
    264 can add maildir sources with sup-add directly, instead of having to go
    265 through sup-config.
    266 
    267 If you want to automatically detect and add new folders, we could d
    268 something similar in the startup hook. Something like (completely
    269 untested):
    270 
    271   dirs = `find ~/Mail/whatever...`
    272   dirs.each do |d|
    273     uri = "maildir:#{d}"
    274     log "trying #{uri}..."
    275     unless SourceManager.source_for uri
    276       source = Maildir.new uri
    277       SourceManager.add_source source
    278       log "Added #{uri}"
    279     end
    280   end
    281 
    282 > p.s. sup-sync has been at it on my lkml folder with ~40K mail messages
    283 > for 30mins now.
    284 
    285 Yep, indexing stuff is slow. FWIW, you only have to do it once, and
    286 there are new index backends that are significantly faster. (But still
    287 far from instantaneous.)
    288 -- 
    289 William <wmorgan-sup at masanjin.net>
    290 
    291 From marco-oweber@gmx.de  Thu Sep  3 12:21:31 2009
    292 From: marco-oweber@gmx.de (Marc Weber)
    293 Date: Thu, 03 Sep 2009 18:21:31 +0200
    294 Subject: [sup-talk] Trouble loading dump into Xapian index
    295 In-Reply-To: <1251991420-sup-3869@masanjin.net>
    296 References: <1251987692-sup-9940@nixos> <1251991420-sup-3869@masanjin.net>
    297 Message-ID: <1251994802-sup-8575@nixos>
    298 
    299 Hi William.
    300 
    301 I guess it was.
    302 
    303 The second dump looks very similar to the first one now.
    304 Only the order of flags is different now which doesn't matter.
    305 
    306 However threads which have been killed do show up in inbox:
    307 http://mawercer.de/~marc/sup.png
    308 All seven mails of the first thread are labeled by
    309   killed inbox deleted
    310 
    311 So they shouldn't appear, should they?
    312 
    313 Same happens to thread where all mails are labeled by 
    314   killed, inbox
    315 
    316 Did the view behaviour change here?
    317 
    318 Sincerly
    319 Marc
    320 
    321 From mzulak@gmail.com  Thu Sep  3 12:38:53 2009
    322 From: mzulak@gmail.com (Matt Zulak)
    323 Date: Thu,  3 Sep 2009 12:38:53 -0400
    324 Subject: [sup-talk] [PATCH] decrypt returns 3 elem array if gpg is
    325 	unavailable
    326 Message-ID: <1251995933-2252-1-git-send-email-mzulak@gmail.com>
    327 
    328 CryptoManager's decrypt method returns a CryptoNotice if the GPG binary
    329 can't be found on the path; however, the Message class expects a 3
    330 element array with either a RMail::Message or nil at index 0.
    331 This patch ensures sup plays nice when importing encrypted messages from
    332 a mail-store on an environment that does not have GPG.
    333 ---
    334  lib/sup/crypto.rb |    2 +-
    335  1 files changed, 1 insertions(+), 1 deletions(-)
    336 
    337 diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb
    338 index 7f044b9..afbc445 100644
    339 --- a/lib/sup/crypto.rb
    340 +++ b/lib/sup/crypto.rb
    341 @@ -105,7 +105,7 @@ class CryptoManager
    342  
    343    ## returns decrypted_message, status, desc, lines
    344    def decrypt payload # a RubyMail::Message object
    345 -    return unknown_status(cant_find_binary) unless @cmd
    346 +    return [nil, nil, unknown_status(cant_find_binary)] unless @cmd
    347  
    348      payload_fn = Tempfile.new "redwood.payload"
    349      payload_fn.write payload.to_s
    350 -- 
    351 1.6.2.1
    352 
    353 
    354 From rlane@club.cc.cmu.edu  Thu Sep  3 12:42:55 2009
    355 From: rlane@club.cc.cmu.edu (Rich Lane)
    356 Date: Thu, 03 Sep 2009 12:42:55 -0400
    357 Subject: [sup-talk] Trouble loading dump into Xapian index
    358 In-Reply-To: <1251994802-sup-8575@nixos>
    359 References: <1251987692-sup-9940@nixos> <1251991420-sup-3869@masanjin.net>
    360 	<1251994802-sup-8575@nixos>
    361 Message-ID: <1251995984-sup-7983@zyrg.net>
    362 
    363 Excerpts from Marc Weber's message of Thu Sep 03 12:21:31 -0400 2009:
    364 > However threads which have been killed do show up in inbox:
    365 > http://mawercer.de/~marc/sup.png
    366 > All seven mails of the first thread are labeled by
    367 >   killed inbox deleted
    368 > 
    369 > So they shouldn't appear, should they?
    370 > 
    371 > Same happens to thread where all mails are labeled by 
    372 >   killed, inbox
    373 > 
    374 > Did the view behaviour change here?
    375 
    376 I added support for thread killing in 4d82ef88, which hasn't been merged
    377 to master yet. If you'd like to use the Xapian index I suggest using
    378 next for now.
    379 
    380 From rlane@club.cc.cmu.edu  Thu Sep  3 12:52:27 2009
    381 From: rlane@club.cc.cmu.edu (Rich Lane)
    382 Date: Thu, 03 Sep 2009 12:52:27 -0400
    383 Subject: [sup-talk] [PATCH 0/18] Xapian-based index
    384 In-Reply-To: <1251792282-sup-2057@cannonball>
    385 References: <1245531017-9907-1-git-send-email-rlane@club.cc.cmu.edu>
    386 	<1245854803-sup-4481@entry> <1245864733-sup-1216@entry>
    387 	<loom.20090625T222159-861@post.gmane.org>
    388 	<1246022094-sup-3336@entry> <1247873980-sup-8574@wrasse>
    389 	<20090723102325.GA4291@chistera.yi.org>
    390 	<1248497184-sup-939@pion.club.cc.cmu.edu>
    391 	<1248513425-sup-2484@chistera.yi.org>
    392 	<1248550384-sup-74@pion.club.cc.cmu.edu>
    393 	<1248709681-sup-4141@entry> <1248713376-sup-5163@cannonball>
    394 	<1251792282-sup-2057@cannonball>
    395 Message-ID: <1251996241-sup-5112@zyrg.net>
    396 
    397 Excerpts from Ingmar Vanhassel's message of Tue Sep 01 04:07:27 -0400 2009:
    398 > Excerpts from Ingmar Vanhassel's message of Mon Jul 27 18:56:28 +0200 2009:
    399 > > Excerpts from William Morgan's message of Mon Jul 27 17:48:38 +0200 2009:
    400 > > > Reformatted excerpts from Rich Lane's message of 2009-07-25:
    401 > > > > One issue I've noticed is that removing labels from messages doesn't
    402 > > > > always immediately work.
    403 > > > 
    404 > > > Is this true even after you sync changes to the index? What about if you
    405 > > > reload the label list buffer? ('@')
    406 > > 
    407 > > It's true in both cases. Even after a sync, 'U' still produces read
    408 > > messages (among unread), and a search for label:foo has threads without
    409 > > that label. If you quit sup & restart it things work as expected for a
    410 > > while.
    411 > 
    412 > I can still reproduce this for a more specific case, with xapian 1.0.15.
    413 > 
    414 > Searching for is:unread (hit U), works as expected. When I filter
    415 > that with threads having a second label (hit |, label:foo), then it
    416 > shows threads with label:foo, but it loses the is:unread constraint.
    417 > 
    418 > Same for immediately doing is:unread label:foo, which gives me unread
    419 > threads, but not always with the foo label.
    420 
    421 I've reproduced this and it looks like a query parsing problem. Multiple
    422 terms on the same field are OR'd together instead of AND [1]. Adding an
    423 explicit AND works. I'll see if Xapian::QueryParser can be convinced to
    424 do what we want here.
    425 
    426 [1] http://trac.xapian.org/ticket/157
    427 
    428 From wmorgan-sup@masanjin.net  Thu Sep  3 13:12:25 2009
    429 From: wmorgan-sup@masanjin.net (William Morgan)
    430 Date: Thu, 03 Sep 2009 10:12:25 -0700
    431 Subject: [sup-talk] [PATCH] Be less overzealous in moving text to the
    432 	left column
    433 In-Reply-To: <1251323127-sup-5162@yoom.home.cworth.org>
    434 References: <1250749447-sup-1744@yoom.home.cworth.org>
    435 	<1251050007-sup-9740@masanjin.net>
    436 	<1251323127-sup-5162@yoom.home.cworth.org>
    437 Message-ID: <1251997795-sup-8368@masanjin.net>
    438 
    439 Reformatted excerpts from Carl Worth's message of 2009-08-26:
    440 > And I still haven't figured out what loose_alignment means and which
    441 > actions will cause loose vs. non-loose layout.
    442 
    443 Yeah, it's not really clear where I was going with that. The whole thing
    444 was in need of some rethinking and additional comments. I've made a
    445 branch 'alignment-tweaks', merged into next, which I think has the
    446 behavior you were looking for: left-column movement is minimized when
    447 using 'n' and 'p' to jump between messages. You can also use 'z' to
    448 align the left column with the current message.
    449 
    450 Check it out and let me know what you think. If this bugs people, also
    451 let me know. :)
    452 -- 
    453 William <wmorgan-sup at masanjin.net>
    454 
    455 From wmorgan-sup@masanjin.net  Thu Sep  3 13:13:59 2009
    456 From: wmorgan-sup@masanjin.net (William Morgan)
    457 Date: Thu, 03 Sep 2009 10:13:59 -0700
    458 Subject: [sup-talk] sup crashed: NoMethodError
    459 In-Reply-To: <20090828225041.GA22963@gmail.com>
    460 References: <20090827200317.GA3065@gmail.com>
    461 	<1251492008-sup-6128@masanjin.net>
    462 	<20090828225041.GA22963@gmail.com>
    463 Message-ID: <1251997975-sup-8342@masanjin.net>
    464 
    465 Reformatted excerpts from Sean Escriva's message of 2009-08-28:
    466 > was my install process wrong for switching to the git -next branch?
    467 
    468 Nope, it was fine. Transitioning between master and next should
    469 generally be painless.
    470 -- 
    471 William <wmorgan-sup at masanjin.net>
    472 
    473 From wmorgan-sup@masanjin.net  Thu Sep  3 13:16:41 2009
    474 From: wmorgan-sup@masanjin.net (William Morgan)
    475 Date: Thu, 03 Sep 2009 10:16:41 -0700
    476 Subject: [sup-talk] Trouble loading dump into Xapian index
    477 In-Reply-To: <1251995984-sup-7983@zyrg.net>
    478 References: <1251987692-sup-9940@nixos> <1251991420-sup-3869@masanjin.net>
    479 	<1251994802-sup-8575@nixos> <1251995984-sup-7983@zyrg.net>
    480 Message-ID: <1251998177-sup-3432@masanjin.net>
    481 
    482 Reformatted excerpts from Rich Lane's message of 2009-09-03:
    483 > I added support for thread killing in 4d82ef88, which hasn't been
    484 > merged to master yet. If you'd like to use the Xapian index I suggest
    485 > using next for now.
    486 
    487 If you feel it's reasonably stable, I can merge it into master.
    488 -- 
    489 William <wmorgan-sup at masanjin.net>
    490 
    491 From marco-oweber@gmx.de  Thu Sep  3 13:26:59 2009
    492 From: marco-oweber@gmx.de (Marc Weber)
    493 Date: Thu, 03 Sep 2009 19:26:59 +0200
    494 Subject: [sup-talk] Trouble loading dump into Xapian index
    495 In-Reply-To: <1251995984-sup-7983@zyrg.net>
    496 References: <1251987692-sup-9940@nixos> <1251991420-sup-3869@masanjin.net>
    497 	<1251994802-sup-8575@nixos> <1251995984-sup-7983@zyrg.net>
    498 Message-ID: <1251998504-sup-6794@nixos>
    499 
    500 
    501 > I added support for thread killing in 4d82ef88, which hasn't been merged
    502 > to master yet. If you'd like to use the Xapian index I suggest using
    503 > next for now.
    504 
    505 Hi Rich, using next I get the following error:
    506 
    507 + ruby -Ilib bin/sup-sync --all --all-sources --restore /tmp/dump-file-new
    508 ./lib/sup/crypto.rb:17: warning: Insecure world writable dir /pr/webkos
    509 in PATH, mode 040777
    510 Loading state dump from /tmp/dump-file-new...
    511 Read 39048 entries from dump file.
    512 ./lib/sup/xapian_index.rb:32:in `load_index': This Sup version expects a
    513 v1 index, but you have an existing v0 index. Please downgrade to your
    514 previous version and dump your labels before upgrading to this version
    515 (then run sup-sync --restore). (RuntimeError)
    516         from ./lib/sup/index.rb:67:in `load'
    517         from bin/sup-sync:117
    518 
    519 I looked at strace to and noticed that sup only accessed the new
    520 ~/.sup-new-test direcotry which was empty. So there is no v0 at all)
    521 
    522 Marc Weber
    523 
    524 From wmorgan-sup@masanjin.net  Thu Sep  3 13:58:16 2009
    525 From: wmorgan-sup@masanjin.net (William Morgan)
    526 Date: Thu, 03 Sep 2009 10:58:16 -0700
    527 Subject: [sup-talk] [PATCH 2/2] ui responsiveness tweaks
    528 In-Reply-To: <1251053171-11450-2-git-send-email-rlane@club.cc.cmu.edu>
    529 References: <1251053171-11450-1-git-send-email-rlane@club.cc.cmu.edu>
    530 	<1251053171-11450-2-git-send-email-rlane@club.cc.cmu.edu>
    531 Message-ID: <1252000456-sup-1452@masanjin.net>
    532 
    533 Both of these patches are on the branch preemptive-loading, merged into
    534 next. Thanks! It's a nice touch.
    535 
    536 I didn't really notice any differe from thread prioritization and
    537 Thread.pass call, but maybe that's my setup. Regardless, it can't hurt.
    538 
    539 I also reworked the load-more callback mechanism to be a little more
    540 thread safe and a little less insane. Now it uses a queue and has a
    541 dedicated loader thread pulling things off of it. Message thread loading
    542 is currently configured to just drop concurrent calls, so it should work
    543 fine.
    544 
    545 Now, all we need is a faster cursor in thread-index-mode. I will grant a
    546 Sup medal to anyone who can make that happen!
    547 -- 
    548 William <wmorgan-sup at masanjin.net>
    549 
    550 From wmorgan-sup@masanjin.net  Thu Sep  3 14:06:55 2009
    551 From: wmorgan-sup@masanjin.net (William Morgan)
    552 Date: Thu, 03 Sep 2009 11:06:55 -0700
    553 Subject: [sup-talk] [PATCH] Add 'a' and 'd' keybindings to
    554 	thread-view-mode to archive/delete current thread
    555 In-Reply-To: <1251325542-sup-3105@yoom.home.cworth.org>
    556 References: <1251325542-sup-3105@yoom.home.cworth.org>
    557 Message-ID: <1252000831-sup-9922@masanjin.net>
    558 
    559 Reformatted excerpts from Carl Worth's message of 2009-08-26:
    560 > These behave identically to the existing ",a" and ",d" commands, (that
    561 > is they archive or delete the current thread and then view the next).
    562 
    563 Sorry it's taken me so long to look at this. Thanks for the patch!
    564 
    565 I'm curious what other people think about this. On the one hand, it's
    566 only additional keybindings, so it's not going to adversely affect
    567 anyone. On the other hand, there is a nice balance with the ".", ","
    568 and "]" commands which this disrupts, and it can't be extended to the
    569 other commands from thread-index-mode. And on the third hand, I'm happy
    570 to have keybinding hooks.
    571 
    572 I guess if most people primarily closes their thread-view-modes using
    573 ",a" and ",d", then I'm fine with this.
    574 -- 
    575 William <wmorgan-sup at masanjin.net>
    576 
    577 From wmorgan-sup@masanjin.net  Thu Sep  3 14:32:54 2009
    578 From: wmorgan-sup@masanjin.net (William Morgan)
    579 Date: Thu, 03 Sep 2009 11:32:54 -0700
    580 Subject: [sup-talk] On making inbox-mode and search-results-mode more
    581 	similar
    582 In-Reply-To: <1251323747-sup-1595@yoom.home.cworth.org>
    583 References: <1251323747-sup-1595@yoom.home.cworth.org>
    584 Message-ID: <1252002193-sup-3879@masanjin.net>
    585 
    586 Reformatted excerpts from Carl Worth's message of 2009-08-26:
    587 > So what I want is for anytime a message is changed such that it no
    588 > longer meets the current search criteria, it is immediately removed
    589 > from the search results. I think that means simply implementing the
    590 > is_relevant? method for SearcResultsMode
    591 
    592 is_relevant? is currently only used for determining when to add messages
    593 to a thread-index-mode (e.g. when a new message is picked up during a
    594 poll). Determining whether to drop a message is currently done
    595 "manually" by inbox-mode, and not at all by search-results-mode.
    596 
    597 > That single-message index and search sounds exactly like what I want,
    598 > and not insane at all.
    599 
    600 Hm. Well, you could certainly try it. I've assumed it would be too slow,
    601 but it's possible it'd be fast enough. I think it's the only option
    602 though, if you want this to work with arbitrary queries.
    603 
    604 > (In which case, I'll try, and I'll be glad for any pointers that
    605 > anyone can give me on how to go about creating an in-memory index and
    606 > searching on it.)
    607 
    608 Excellent, ask Rich. :)
    609 
    610 > The command I would find natural for putting a thread back into the
    611 > inbox would be to simply add the inbox label to the thread. Oddly this
    612 > is currently not allowed as "inbox" is a reserved label.
    613 
    614 Yeah, there's no good reason for this. I was just being overly
    615 protective. :)
    616 -- 
    617 William <wmorgan-sup at masanjin.net>
    618 
    619 From rlane@club.cc.cmu.edu  Thu Sep  3 14:35:05 2009
    620 From: rlane@club.cc.cmu.edu (Rich Lane)
    621 Date: Thu, 03 Sep 2009 14:35:05 -0400
    622 Subject: [sup-talk] Trouble loading dump into Xapian index
    623 In-Reply-To: <1251998504-sup-6794@nixos>
    624 References: <1251987692-sup-9940@nixos> <1251991420-sup-3869@masanjin.net>
    625 	<1251994802-sup-8575@nixos> <1251995984-sup-7983@zyrg.net>
    626 	<1251998504-sup-6794@nixos>
    627 Message-ID: <1252002797-sup-6522@zyrg.net>
    628 
    629 Excerpts from Marc Weber's message of Thu Sep 03 13:26:59 -0400 2009:
    630 > 
    631 > > I added support for thread killing in 4d82ef88, which hasn't been merged
    632 > > to master yet. If you'd like to use the Xapian index I suggest using
    633 > > next for now.
    634 > 
    635 > Hi Rich, using next I get the following error:
    636 > 
    637 > + ruby -Ilib bin/sup-sync --all --all-sources --restore /tmp/dump-file-new
    638 > ./lib/sup/crypto.rb:17: warning: Insecure world writable dir /pr/webkos
    639 > in PATH, mode 040777
    640 > Loading state dump from /tmp/dump-file-new...
    641 > Read 39048 entries from dump file.
    642 > ./lib/sup/xapian_index.rb:32:in `load_index': This Sup version expects a
    643 > v1 index, but you have an existing v0 index. Please downgrade to your
    644 > previous version and dump your labels before upgrading to this version
    645 > (then run sup-sync --restore). (RuntimeError)
    646 >         from ./lib/sup/index.rb:67:in `load'
    647 >         from bin/sup-sync:117
    648 > 
    649 > I looked at strace to and noticed that sup only accessed the new
    650 > ~/.sup-new-test direcotry which was empty. So there is no v0 at all)
    651 
    652 That's strange, because this codepath (xapian_index.rb:32) is only hit
    653 when the xapian directory already exists. Can you add a log message to
    654 output the "path" variable and see if it looks correct?
    655 
    656 From wmorgan-sup@masanjin.net  Thu Sep  3 14:36:42 2009
    657 From: wmorgan-sup@masanjin.net (William Morgan)
    658 Date: Thu, 03 Sep 2009 11:36:42 -0700
    659 Subject: [sup-talk] On making inbox-mode and search-results-mode more
    660 	similar
    661 In-Reply-To: <1251341286-sup-9400@zyrg.net>
    662 References: <1251323747-sup-1595@yoom.home.cworth.org>
    663 	<1251341286-sup-9400@zyrg.net>
    664 Message-ID: <1252002783-sup-3659@masanjin.net>
    665 
    666 Reformatted excerpts from Rich Lane's message of 2009-08-26:
    667 > We had a thread a while back about applying label changes immediately
    668 > and I think the consensus was that that's a good idea. Doing this
    669 > could simplify a great deal of thread-index-mode code because a fast
    670 > is_relevant? could be implemented using existing index operations
    671 > without the special cases for archiving/etc and without creating an
    672 > inmemory database.
    673 
    674 But it's not just a label issue. Determining whether a given message
    675 belongs in a general search buffer requires the full engine. And even if
    676 the query is just on labels, it can contain arbitrary boolean
    677 expressions, and I don't want to be the one having to parse that, and
    678 parse it in such a way that it matches what the search engine is doing.
    679 
    680 > I have a patch I plan to mail out soon that makes changing labels with
    681 > Xapian much quicker, so that should help.
    682 
    683 This is definitely good, either way.
    684 -- 
    685 William <wmorgan-sup at masanjin.net>
    686 
    687 From wmorgan-sup@masanjin.net  Thu Sep  3 14:39:58 2009
    688 From: wmorgan-sup@masanjin.net (William Morgan)
    689 Date: Thu, 03 Sep 2009 11:39:58 -0700
    690 Subject: [sup-talk] On making inbox-mode and search-results-mode more
    691 	similar
    692 In-Reply-To: <1251327030-sup-7342@yoom.home.cworth.org>
    693 References: <1251323747-sup-1595@yoom.home.cworth.org>
    694 	<1251327030-sup-7342@yoom.home.cworth.org>
    695 Message-ID: <1252003008-sup-8596@masanjin.net>
    696 
    697 Reformatted excerpts from Carl Worth's message of 2009-08-26:
    698 > Excerpts from Carl Worth's message of Wed Aug 26 15:24:36 -0700 2009:
    699 > > +    text = BufferManager.ask :search, "refine query: ", "label:inbox
    700 > > -label:spam -label:deleted -label:killed "
    701 > 
    702 > Is that even the right syntax for searching for threads with the inbox
    703 > label but excluding threades with the spam, deleted, or killed labels?
    704 
    705 Instead of -label:killed, you want to specify :skip_killed to
    706 #load_thread. Killed messages require special semantics.
    707 
    708 > I took a guess at the syntax and I thought I saw it working, but it
    709 > doesn't appear to be now. Can someone tell me the actual syntax? (Or
    710 > better, is there a writeup somewhere of the general search syntax
    711 > accepted by sup?)
    712 
    713 There is not a consistent one, though there might be something useful on
    714 the wiki. The general answer is, whatever Ferret/Xapian supports, plus
    715 the tweaks in #parse_query.
    716 -- 
    717 William <wmorgan-sup at masanjin.net>
    718 
    719 From rlane@club.cc.cmu.edu  Thu Sep  3 14:44:06 2009
    720 From: rlane@club.cc.cmu.edu (Rich Lane)
    721 Date: Thu, 03 Sep 2009 14:44:06 -0400
    722 Subject: [sup-talk] On making inbox-mode and search-results-mode more
    723 	similar
    724 In-Reply-To: <1252002783-sup-3659@masanjin.net>
    725 References: <1251323747-sup-1595@yoom.home.cworth.org>
    726 	<1251341286-sup-9400@zyrg.net> <1252002783-sup-3659@masanjin.net>
    727 Message-ID: <1252003316-sup-2379@zyrg.net>
    728 
    729 Excerpts from William Morgan's message of Thu Sep 03 14:36:42 -0400 2009:
    730 > Reformatted excerpts from Rich Lane's message of 2009-08-26:
    731 > > We had a thread a while back about applying label changes immediately
    732 > > and I think the consensus was that that's a good idea. Doing this
    733 > > could simplify a great deal of thread-index-mode code because a fast
    734 > > is_relevant? could be implemented using existing index operations
    735 > > without the special cases for archiving/etc and without creating an
    736 > > inmemory database.
    737 > 
    738 > But it's not just a label issue. Determining whether a given message
    739 > belongs in a general search buffer requires the full engine. And even if
    740 > the query is just on labels, it can contain arbitrary boolean
    741 > expressions, and I don't want to be the one having to parse that, and
    742 > parse it in such a way that it matches what the search engine is doing.
    743 
    744 You're right that it require the full engine. If we're immediately
    745 saving the label changes to the (on-disk) index, we can simply query it
    746 and get the correct answer.
    747 
    748 From marka@pobox.com  Thu Sep  3 14:37:34 2009
    749 From: marka@pobox.com (Mark Alexander)
    750 Date: Thu, 03 Sep 2009 14:37:34 -0400
    751 Subject: [sup-talk] [PATCH] Add 'a' and 'd' keybindings to
    752 	thread-view-mode to archive/delete current thread
    753 In-Reply-To: <1252000831-sup-9922@masanjin.net>
    754 References: <1251325542-sup-3105@yoom.home.cworth.org>
    755 	<1252000831-sup-9922@masanjin.net>
    756 Message-ID: <1252002852-sup-8688@r50p>
    757 
    758 Excerpts from William Morgan's message of Thu Sep 03 14:06:55 -0400 2009:
    759 > I guess if most people primarily closes their thread-view-modes using
    760 > ",a" and ",d", then I'm fine with this.
    761 
    762 Those are perhaps my most-commonly used commands in sup, so having
    763 them shortened is a very nice improvement.
    764 
    765 From wmorgan-sup@masanjin.net  Thu Sep  3 14:47:19 2009
    766 From: wmorgan-sup@masanjin.net (William Morgan)
    767 Date: Thu, 03 Sep 2009 11:47:19 -0700
    768 Subject: [sup-talk] Ignore killed messages in U screen
    769 In-Reply-To: <1251387376-sup-7180@javelin>
    770 References: <1251387376-sup-7180@javelin>
    771 Message-ID: <1252003380-sup-272@masanjin.net>
    772 
    773 I'm not sure how I feel about this patch. The semantics of being killed
    774 are very tied to the inbox. I'm reluctant to start spreading them to
    775 other types of buffers.
    776 -- 
    777 William <wmorgan-sup at masanjin.net>
    778 
    779 From wmorgan-sup@masanjin.net  Thu Sep  3 14:50:25 2009
    780 From: wmorgan-sup@masanjin.net (William Morgan)
    781 Date: Thu, 03 Sep 2009 11:50:25 -0700
    782 Subject: [sup-talk] On making inbox-mode and search-results-mode more
    783 	similar
    784 In-Reply-To: <1252003316-sup-2379@zyrg.net>
    785 References: <1251323747-sup-1595@yoom.home.cworth.org>
    786 	<1251341286-sup-9400@zyrg.net> <1252002783-sup-3659@masanjin.net>
    787 	<1252003316-sup-2379@zyrg.net>
    788 Message-ID: <1252003719-sup-1602@masanjin.net>
    789 
    790 Reformatted excerpts from Rich Lane's message of 2009-09-03:
    791 > You're right that it require the full engine. If we're immediately
    792 > saving the label changes to the (on-disk) index, we can simply query
    793 > it and get the correct answer.
    794 
    795 Oh, as opposed to a new in-memory index. Yeah.
    796 -- 
    797 William <wmorgan-sup at masanjin.net>
    798 
    799 From ezyang@MIT.EDU  Thu Sep  3 14:57:14 2009
    800 From: ezyang@MIT.EDU (Edward Z. Yang)
    801 Date: Thu, 03 Sep 2009 14:57:14 -0400
    802 Subject: [sup-talk] Ignore killed messages in U screen
    803 In-Reply-To: <1252003380-sup-272@masanjin.net>
    804 References: <1251387376-sup-7180@javelin> <1252003380-sup-272@masanjin.net>
    805 Message-ID: <1252004144-sup-6662@javelin>
    806 
    807 Excerpts from William Morgan's message of Thu Sep 03 14:47:19 -0400 2009:
    808 > I'm not sure how I feel about this patch. The semantics of being killed
    809 > are very tied to the inbox. I'm reluctant to start spreading them to
    810 > other types of buffers.
    811 
    812 The reason why I request this is because I have a distinction between
    813 unread messages in my inbox and unread messages not in my inbox and
    814 unread messages that are killed.  The 1st is for messages that I
    815 should read (or at least ack), the second is for mailing list messages
    816 and the third is for "I don't actually ever want to see this again,
    817 no really".
    818 
    819 Cheers,
    820 Edward
    821 
    822 From me@nicholasbs.net  Thu Sep  3 14:58:45 2009
    823 From: me@nicholasbs.net (Nicholas Bergson-Shilcock)
    824 Date: Thu, 03 Sep 2009 14:58:45 -0400
    825 Subject: [sup-talk] [PATCH] Add 'a' and 'd' keybindings to
    826 	thread-view-mode to archive/delete current thread
    827 In-Reply-To: <1252002852-sup-8688@r50p>
    828 References: <1251325542-sup-3105@yoom.home.cworth.org>
    829 	<1252000831-sup-9922@masanjin.net> <1252002852-sup-8688@r50p>
    830 Message-ID: <1252004295-sup-6234@twoface>
    831 
    832 Excerpts from Mark Alexander's message of Thu Sep 03 14:37:34 -0400 2009:
    833 > Excerpts from William Morgan's message of Thu Sep 03 14:06:55 -0400 2009:
    834 > > I guess if most people primarily closes their thread-view-modes using
    835 > > ",a" and ",d", then I'm fine with this.
    836 > 
    837 > Those are perhaps my most-commonly used commands in sup, so having
    838 > them shortened is a very nice improvement.
    839 
    840 +1. These would be quite helpful for me.
    841 
    842 From wmorgan-sup@masanjin.net  Thu Sep  3 14:58:55 2009
    843 From: wmorgan-sup@masanjin.net (William Morgan)
    844 Date: Thu, 03 Sep 2009 11:58:55 -0700
    845 Subject: [sup-talk] Ignore killed messages in U screen
    846 In-Reply-To: <1252004144-sup-6662@javelin>
    847 References: <1251387376-sup-7180@javelin> <1252003380-sup-272@masanjin.net>
    848 	<1252004144-sup-6662@javelin>
    849 Message-ID: <1252004285-sup-476@masanjin.net>
    850 
    851 Reformatted excerpts from Edward Z. Yang's message of 2009-09-03:
    852 > The 1st is for messages that I should read (or at least ack), the
    853 > second is for mailing list messages and the third is for "I don't
    854 > actually ever want to see this again, no really".
    855 
    856 What if you just delete messages in the the third condition?
    857 -- 
    858 William <wmorgan-sup at masanjin.net>
    859 
    860 From ezyang@MIT.EDU  Thu Sep  3 15:01:55 2009
    861 From: ezyang@MIT.EDU (Edward Z. Yang)
    862 Date: Thu, 03 Sep 2009 15:01:55 -0400
    863 Subject: [sup-talk] Ignore killed messages in U screen
    864 In-Reply-To: <1252004285-sup-476@masanjin.net>
    865 References: <1251387376-sup-7180@javelin> <1252003380-sup-272@masanjin.net>
    866 	<1252004144-sup-6662@javelin> <1252004285-sup-476@masanjin.net>
    867 Message-ID: <1252004504-sup-3189@javelin>
    868 
    869 Excerpts from William Morgan's message of Thu Sep 03 14:58:55 -0400 2009:
    870 > Reformatted excerpts from Edward Z. Yang's message of 2009-09-03:
    871 > > The 1st is for messages that I should read (or at least ack), the
    872 > > second is for mailing list messages and the third is for "I don't
    873 > > actually ever want to see this again, no really".
    874 > 
    875 > What if you just delete messages in the the third condition?
    876 
    877 Then replies show up. :-)
    878 
    879 Cheers,
    880 Edward
    881 
    882 From bwalton@artsci.utoronto.ca  Thu Sep  3 15:13:15 2009
    883 From: bwalton@artsci.utoronto.ca (Ben Walton)
    884 Date: Thu, 03 Sep 2009 15:13:15 -0400
    885 Subject: [sup-talk] Ignore killed messages in U screen
    886 In-Reply-To: <1252003380-sup-272@masanjin.net>
    887 References: <1251387376-sup-7180@javelin> <1252003380-sup-272@masanjin.net>
    888 Message-ID: <1252005121-sup-3946@ntdws12.chass.utoronto.ca>
    889 
    890 Excerpts from William Morgan's message of Thu Sep 03 14:47:19 -0400 2009:
    891 > I'm not sure how I feel about this patch. The semantics of being killed
    892 > are very tied to the inbox. I'm reluctant to start spreading them to
    893 > other types of buffers.
    894 
    895 The 'U' key binding just drives a preset search.  This wouldn't be
    896 spreading the special status of killed into other buffer types more
    897 than a manual search using the same terms.
    898 
    899 -Ben
    900 -- 
    901 Ben Walton
    902 Systems Programmer - CHASS
    903 University of Toronto
    904 C:416.407.5610 | W:416.978.4302
    905 
    906 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
    907 Contact me to arrange for a CAcert assurance meeting.
    908 -------------- next part --------------
    909 A non-text attachment was scrubbed...
    910 Name: signature.asc
    911 Type: application/pgp-signature
    912 Size: 189 bytes
    913 Desc: not available
    914 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090903/e97c30e8/attachment.bin>
    915 
    916 From rlane@club.cc.cmu.edu  Thu Sep  3 15:25:03 2009
    917 From: rlane@club.cc.cmu.edu (Rich Lane)
    918 Date: Thu, 03 Sep 2009 15:25:03 -0400
    919 Subject: [sup-talk] Ignore killed messages in U screen
    920 In-Reply-To: <1251388546-sup-7744@javelin>
    921 References: <1251387376-sup-7180@javelin> <1251388546-sup-7744@javelin>
    922 Message-ID: <1252005520-sup-9555@zyrg.net>
    923 
    924 Excerpts from Edward Z. Yang's message of Thu Aug 27 11:56:32 -0400 2009:
    925 > Excerpts from Edward Z. Yang's message of Thu Aug 27 11:36:28 -0400 2009:
    926 > > -      SearchResultsMode.spawn_from_query "is:unread"
    927 > > +      SearchResultsMode.spawn_from_query "is:unread !label:killed"
    928 > 
    929 > I might have one legitimate objection to this patch, which is
    930 > that searches should ignore killed tags unless explicitly told
    931 > not to.
    932 
    933 By default Index#load_messages_in_thread_for does skip killed threads,
    934 so you should already have the behavior you want without modifying the
    935 query (unless you're using an old xapian-index version that doesn't
    936 support killed threads). Adding a !label:killed term will actually cause
    937 threads that are "killed" (have at least one message labeled killed) but
    938 also have a message not labeled killed that matches the query to be
    939 displayed, which I don't think is the behavior you're looking for.
    940 
    941 From cworth@cworth.org  Thu Sep  3 19:06:50 2009
    942 From: cworth@cworth.org (Carl Worth)
    943 Date: Thu, 03 Sep 2009 16:06:50 -0700
    944 Subject: [sup-talk] Ignore killed messages in U screen
    945 In-Reply-To: <1252005520-sup-9555@zyrg.net>
    946 References: <1251387376-sup-7180@javelin> <1251388546-sup-7744@javelin>
    947 	<1252005520-sup-9555@zyrg.net>
    948 Message-ID: <1252010283-sup-4453@yoom.home.cworth.org>
    949 
    950 Excerpts from Rich Lane's message of Thu Sep 03 12:25:03 -0700 2009:
    951 > By default Index#load_messages_in_thread_for does skip killed threads,
    952 > so you should already have the behavior you want without modifying the
    953 > query (unless you're using an old xapian-index version that doesn't
    954 > support killed threads). Adding a !label:killed term will actually cause
    955 > threads that are "killed" (have at least one message labeled killed) but
    956 > also have a message not labeled killed that matches the query to be
    957 > displayed, which I don't think is the behavior you're looking for.
    958 
    959 Wow, that's surprising!
    960 
    961 But thanks for explaining that since that's the exact behavior I've
    962 been getting since I starting using queries with "!label:killed" in
    963 them, (I'm trying to get views that act like filtered versions of the
    964 inbox).
    965 
    966 Excerpts from William Morgan's message of Thu Sep 03:
    967 > I'm not sure how I feel about this patch. The semantics of being killed
    968 > are very tied to the inbox. I'm reluctant to start spreading them to
    969 > other types of buffers.
    970 
    971 William, perhaps you can take this chance to explain something to
    972 me. I've been trying to figure out the philosophy and the mechanics of
    973 sup labels and searching.
    974 
    975 >From the point-of-view of a naive user it has seemed to me like the
    976 philosophy is that threads are the primary objects so all labels apply
    977 to a thread as a whole, and all searches return results consisting of
    978 entire threads. And this all seems very good to me.
    979 
    980 But the above discussion of "killed" suggests that the mechanics
    981 aren't at all like that. But that instead, labels are applied to
    982 individual messages, and searches match individual messages and then
    983 construct threads from the results. Is that more or less how things
    984 work?
    985 
    986 So is there a mismatch between the philosophy and the mechanics, or
    987 did I just misunderstand the philosophy?
    988 
    989 That is, do current users of sup ever distinguish between searching
    990 for messages with specific labels as opposed to searching for threads
    991 that contain messages with specific labels?
    992 
    993 If not, it seems like it would be possible for a query like
    994 "!label:killed" to do exactly what is wanted without needing any
    995 special treatment for killed internally. And I'd like this, because I
    996 would sometimes want to do a similar negative filter based on my own
    997 custom labels.
    998 
    999 Does that make sense?
   1000 
   1001 -Carl
   1002 -------------- next part --------------
   1003 A non-text attachment was scrubbed...
   1004 Name: signature.asc
   1005 Type: application/pgp-signature
   1006 Size: 189 bytes
   1007 Desc: not available
   1008 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090903/b204c976/attachment.bin>
   1009 
   1010 From richard@infoarts.info  Thu Sep  3 19:08:11 2009
   1011 From: richard@infoarts.info (Richard Sandilands)
   1012 Date: Fri, 4 Sep 2009 09:08:11 +1000
   1013 Subject: [sup-talk] Can't add source when tracking next
   1014 Message-ID: <20090903230808.GA2983@114.73.135.126.optusnet.com.au>
   1015 
   1016 Hi there
   1017 
   1018 I'm tracking next via git and am having trouble adding a mail source.
   1019 
   1020 I've removed any existing ~/.sup directory, then run sup-config and
   1021 all is OK until sup-config runs sup-add maildir when I get this
   1022 message:
   1023 
   1024 "Ok, trying to run "/Users/richard/src/sup/bin/sup-add
   1025 maildir:/Users/richard/mail/gmail/INBOX"...
   1026 /Users/richard/src/sup/lib/sup/index.rb:177: undefined method `[]' for
   1027 false:FalseClass (NoMethodError)
   1028        from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
   1029 `gem_original_require'
   1030        from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
   1031        from /Users/richard/src/sup/lib/sup.rb:277
   1032        from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
   1033 `gem_original_require'
   1034        from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
   1035        from /Users/richard/src/sup/bin/sup-add:7
   1036 
   1037 So I'm thinking this might have something to do with my environment
   1038 setup on OS X.
   1039 
   1040 I'm running sup from ~/src/sup and am mirroring my gmail mail to
   1041 ~/mail/gmail via offlineimap - this all seems fine.
   1042 
   1043 I've  added: 'export RUBYLIB="~/src/sup/lib" ' to my .bash_profile but
   1044 it still fails on the 'require "sup"' line in sup-add
   1045 
   1046 I've checked that I have all the required gem dependencies and that
   1047 seems fine too.
   1048 
   1049 And I installed the sup-999 gems.
   1050 
   1051 What could I be missing here?
   1052 
   1053 Any clues appreciated...
   1054 
   1055 --
   1056 Richard
   1057 
   1058 From bwalton@artsci.utoronto.ca  Thu Sep  3 22:13:11 2009
   1059 From: bwalton@artsci.utoronto.ca (Ben Walton)
   1060 Date: Thu, 03 Sep 2009 22:13:11 -0400
   1061 Subject: [sup-talk] more xapian/label woes
   1062 Message-ID: <1252030139-sup-6351@ntdws12.chass.utoronto.ca>
   1063 
   1064 
   1065 Hi All,
   1066 
   1067 I've tried the xapian conversion again and am now back in ferret
   1068 land.  In this case, I don't think the issues are xapian related...it
   1069 seems to the labels that are biting me again.
   1070 
   1071 I get exceptions with non-Symbol labels being passed around again.  To
   1072 finish the import of my ferret dumpfile, I had to do the following:
   1073 
   1074 --snip--
   1075 diff --git a/lib/sup/xapian_index.rb b/lib/sup/xapian_index.rb
   1076 index 1395601..4b3b022 100644
   1077 --- a/lib/sup/xapian_index.rb
   1078 +++ b/lib/sup/xapian_index.rb
   1079 @@ -111,7 +111,7 @@ class XapianIndex < BaseIndex
   1080        :replytos => (entry[:replytos] || m.replytos),
   1081      }
   1082  
   1083 -    labels.each { |l| LabelManager << l }
   1084 +    labels.each { |l| LabelManager << l.to_sym }
   1085 --snip--
   1086 
   1087 This got me to the point where I could fire up sup with
   1088 SUP_INDEX=xapian, but the initial poll caused the attached exception.
   1089 I wonder if LabelManager should simply call .to_sym (.intern) on
   1090 everything passed to it?  That's a big hammer, I realize...maybe
   1091 .to_sym/.intern in cases where the unexpected object is a String?
   1092 
   1093 Thoughts?
   1094 
   1095 Thanks
   1096 -Ben
   1097 -- 
   1098 Ben Walton
   1099 Systems Programmer - CHASS
   1100 University of Toronto
   1101 C:416.407.5610 | W:416.978.4302
   1102 
   1103 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   1104 Contact me to arrange for a CAcert assurance meeting.
   1105 -------------- next part --------------
   1106 An embedded and charset-unspecified text was scrubbed...
   1107 Name: exception-log.txt
   1108 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090903/48d07caf/attachment.txt>
   1109 -------------- next part --------------
   1110 A non-text attachment was scrubbed...
   1111 Name: signature.asc
   1112 Type: application/pgp-signature
   1113 Size: 189 bytes
   1114 Desc: not available
   1115 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090903/48d07caf/attachment.bin>
   1116 
   1117 From wmorgan-sup@masanjin.net  Fri Sep  4 09:56:41 2009
   1118 From: wmorgan-sup@masanjin.net (William Morgan)
   1119 Date: Fri, 04 Sep 2009 06:56:41 -0700
   1120 Subject: [sup-talk] [PATCH] Identify list messages by list-id if
   1121 	list-post is not present
   1122 In-Reply-To: <1251794935-sup-3802@elly>
   1123 References: <1251192579-sup-1849@elly> <1251773879-sup-5227@masanjin.net>
   1124 	<1251794935-sup-3802@elly>
   1125 Message-ID: <1252072500-sup-8128@masanjin.net>
   1126 
   1127 Reformatted excerpts from Israel Herraiz's message of 2009-09-01:
   1128 > Yes, although list-id is not an address (it does not contain the "@"
   1129 > symbol for instance). But I am happy with that patch :-).
   1130 
   1131 Actually you're right. I think I prefer your patch. But based on the
   1132 code, it seems like reply-mode would crash if it got a message that
   1133 claims it's a list message but doesn't have a list address. Does it
   1134 actually work?
   1135 -- 
   1136 William <wmorgan-sup at masanjin.net>
   1137 
   1138 From wmorgan-sup@masanjin.net  Fri Sep  4 10:34:11 2009
   1139 From: wmorgan-sup@masanjin.net (William Morgan)
   1140 Date: Fri, 04 Sep 2009 07:34:11 -0700
   1141 Subject: [sup-talk] [PATCH] decrypt returns 3 elem array if gpg is
   1142 	unavailable
   1143 In-Reply-To: <1251995933-2252-1-git-send-email-mzulak@gmail.com>
   1144 References: <1251995933-2252-1-git-send-email-mzulak@gmail.com>
   1145 Message-ID: <1252074791-sup-9657@masanjin.net>
   1146 
   1147 Reformatted excerpts from Matt Zulak's message of 2009-09-03:
   1148 > CryptoManager's decrypt method returns a CryptoNotice if the GPG
   1149 > binary can't be found on the path; however, the Message class expects
   1150 > a 3 element array with either a RMail::Message or nil at index 0.
   1151 
   1152 Thanks. I've fixed this in a slightly different way, by returning the
   1153 notice as the first element. I think the code is a little easier to read
   1154 that way. Let me know if it doesn't work.
   1155 -- 
   1156 William <wmorgan-sup at masanjin.net>
   1157 
   1158 From wmorgan-sup@masanjin.net  Fri Sep  4 10:41:49 2009
   1159 From: wmorgan-sup@masanjin.net (William Morgan)
   1160 Date: Fri, 04 Sep 2009 07:41:49 -0700
   1161 Subject: [sup-talk] Ignore killed messages in U screen
   1162 In-Reply-To: <1252010283-sup-4453@yoom.home.cworth.org>
   1163 References: <1251387376-sup-7180@javelin> <1251388546-sup-7744@javelin>
   1164 	<1252005520-sup-9555@zyrg.net>
   1165 	<1252010283-sup-4453@yoom.home.cworth.org>
   1166 Message-ID: <1252074924-sup-1994@masanjin.net>
   1167 
   1168 Reformatted excerpts from Carl Worth's message of 2009-09-03:
   1169 > But the above discussion of "killed" suggests that the mechanics
   1170 > aren't at all like that. But that instead, labels are applied to
   1171 > individual messages, and searches match individual messages and then
   1172 > construct threads from the results. Is that more or less how things
   1173 > work?
   1174 
   1175 Yes. That's why killed is special; it requires work at threading time to
   1176 drop threads in which any message has a killed label, regardless of
   1177 whether that's the message that matched the query.
   1178 
   1179 > So is there a mismatch between the philosophy and the mechanics, or
   1180 > did I just misunderstand the philosophy?
   1181 
   1182 Not sure. Maybe both. :) The philosophy is more about the UI, IMO, than
   1183 specific implementation details (though obviosuly there's some
   1184 trickle-up).
   1185 
   1186 The other way to implement this, FWIW, is to have labels automatically
   1187 spread to all messages in a thread when they're applied. I think that is
   1188 probably a better implementation, though it increases the cost at
   1189 labeling time. I've been toying with this idea in the sup server code.
   1190 
   1191 > If not, it seems like it would be possible for a query like
   1192 > "!label:killed" to do exactly what is wanted without needing any
   1193 > special treatment for killed internally.
   1194 
   1195 I think the above implementation would allow this.
   1196 -- 
   1197 William <wmorgan-sup at masanjin.net>
   1198 
   1199 From cworth@cworth.org  Fri Sep  4 11:12:01 2009
   1200 From: cworth@cworth.org (Carl Worth)
   1201 Date: Fri, 04 Sep 2009 08:12:01 -0700
   1202 Subject: [sup-talk] Ignore killed messages in U screen
   1203 In-Reply-To: <1252074924-sup-1994@masanjin.net>
   1204 References: <1251387376-sup-7180@javelin> <1251388546-sup-7744@javelin>
   1205 	<1252005520-sup-9555@zyrg.net>
   1206 	<1252010283-sup-4453@yoom.home.cworth.org>
   1207 	<1252074924-sup-1994@masanjin.net>
   1208 Message-ID: <1252076900-sup-274@yoom.home.cworth.org>
   1209 
   1210 Excerpts from William Morgan's message of Fri Sep 04 07:41:49 -0700 2009:
   1211 > Yes. That's why killed is special; it requires work at threading time to
   1212 > drop threads in which any message has a killed label, regardless of
   1213 > whether that's the message that matched the query.
   1214 
   1215 Good. I'm glad I'm at least understanding how things work here.
   1216 
   1217 > The other way to implement this, FWIW, is to have labels automatically
   1218 > spread to all messages in a thread when they're applied. I think that is
   1219 > probably a better implementation, though it increases the cost at
   1220 > labeling time. I've been toying with this idea in the sup server code.
   1221 > 
   1222 > > If not, it seems like it would be possible for a query like
   1223 > > "!label:killed" to do exactly what is wanted without needing any
   1224 > > special treatment for killed internally.
   1225 > 
   1226 > I think the above implementation would allow this.
   1227 
   1228 Yes, that would do the trick. It would require extra work both at the
   1229 time a label is attached to a message and then again at the time a new
   1230 message is associated with an existing thread. But it would give me
   1231 the behavior I want "for free" after that.
   1232 
   1233 If such an implementation would be acceptable, then it would seem that
   1234 a better long-term solution would be to apply labels only to "thread
   1235 objects" and to index and search for those rather than individuals
   1236 messages (at least as far as label searching goes). Of course, I'm
   1237 talking from an entirely naive point-of-view with regard to the
   1238 implementation impact of such a change, but I would imagine it
   1239 wouldn't be trivial.
   1240 
   1241 -Carl
   1242 
   1243 From wmorgan-sup@masanjin.net  Fri Sep  4 11:22:21 2009
   1244 From: wmorgan-sup@masanjin.net (William Morgan)
   1245 Date: Fri, 04 Sep 2009 08:22:21 -0700
   1246 Subject: [sup-talk] Can't add source when tracking next
   1247 In-Reply-To: <20090903230808.GA2983@114.73.135.126.optusnet.com.au>
   1248 References: <20090903230808.GA2983@114.73.135.126.optusnet.com.au>
   1249 Message-ID: <1252077695-sup-9520@masanjin.net>
   1250 
   1251 Reformatted excerpts from Richard Sandilands's message of 2009-09-03:
   1252 > "Ok, trying to run "/Users/richard/src/sup/bin/sup-add
   1253 > maildir:/Users/richard/mail/gmail/INBOX"...
   1254 > /Users/richard/src/sup/lib/sup/index.rb:177: undefined method `[]' for
   1255 > false:FalseClass (NoMethodError)
   1256 
   1257 Whoops, this was a bug. I've fixed it in next, if you want to try again.
   1258 You may have to delete your ~/.sup/config.yaml file (it will yell at you
   1259 if so.)
   1260 -- 
   1261 William <wmorgan-sup at masanjin.net>
   1262 
   1263 From wmorgan-sup@masanjin.net  Fri Sep  4 11:30:11 2009
   1264 From: wmorgan-sup@masanjin.net (William Morgan)
   1265 Date: Fri, 04 Sep 2009 08:30:11 -0700
   1266 Subject: [sup-talk] more xapian/label woes
   1267 In-Reply-To: <1252030139-sup-6351@ntdws12.chass.utoronto.ca>
   1268 References: <1252030139-sup-6351@ntdws12.chass.utoronto.ca>
   1269 Message-ID: <1252077954-sup-8898@masanjin.net>
   1270 
   1271 Reformatted excerpts from Ben Walton's message of 2009-09-03:
   1272 > I get exceptions with non-Symbol labels being passed around again.  To
   1273 > finish the import of my ferret dumpfile, I had to do the following:
   1274 
   1275 Is this with a recent next, and after deleting any vestigal
   1276 ~/.sup/xapian directory and .db files? If so, there really shouldn't be
   1277 any label issues. If there are, can you attach the original exception?
   1278 Also, does your sources.yaml file have something weird for labels?
   1279 
   1280 > This got me to the point where I could fire up sup with
   1281 > SUP_INDEX=xapian, but the initial poll caused the attached exception.
   1282 > I wonder if LabelManager should simply call .to_sym (.intern) on
   1283 > everything passed to it?
   1284 
   1285 Certainly an option, but I'm hoping to keep the "fail fast" behavior for
   1286 now since it is revealing underlying problems.
   1287 -- 
   1288 William <wmorgan-sup at masanjin.net>
   1289 
   1290 From wmorgan-sup@masanjin.net  Fri Sep  4 11:53:12 2009
   1291 From: wmorgan-sup@masanjin.net (William Morgan)
   1292 Date: Fri, 04 Sep 2009 08:53:12 -0700
   1293 Subject: [sup-talk] [PATCH] handle malformed multiplart messages
   1294 In-Reply-To: <20090728165823.GA29533@solar.cslab.ece.ntua.gr>
   1295 References: <20090728165823.GA29533@solar.cslab.ece.ntua.gr>
   1296 Message-ID: <1252079569-sup-6888@masanjin.net>
   1297 
   1298 Reformatted excerpts from Kornilios Kourtis's message of 2009-07-28:
   1299 > I've tried to use sup-mail, but sup-sync blows up due to some malformed
   1300 > messages I keep in my mailbox. Below is a quick patch that seems to fix the
   1301 > above issue for me.
   1302 
   1303 Sorry for the delay. I think this is good. Applied. Thanks!
   1304 -- 
   1305 William <wmorgan-sup at masanjin.net>
   1306 
   1307 From marco-oweber@gmx.de  Fri Sep  4 12:25:39 2009
   1308 From: marco-oweber@gmx.de (Marc Weber)
   1309 Date: Fri, 04 Sep 2009 18:25:39 +0200
   1310 Subject: [sup-talk] Trouble loading dump into Xapian index
   1311 In-Reply-To: <1252002797-sup-6522@zyrg.net>
   1312 References: <1251987692-sup-9940@nixos> <1251991420-sup-3869@masanjin.net>
   1313 	<1251994802-sup-8575@nixos> <1251995984-sup-7983@zyrg.net>
   1314 	<1251998504-sup-6794@nixos> <1252002797-sup-6522@zyrg.net>
   1315 Message-ID: <1252081334-sup-213@nixos>
   1316 
   1317 Sorry.
   1318 
   1319 It was my fault. I had a ~/.sup/xapian I forgot about. That made the
   1320 trouble causing the correct error message.
   1321 
   1322 So I think it's safe to switch to Xapian. You may use this script.
   1323 It will copy the existing  ~/.sup and create a new directory $NEW with
   1324 the xapian index. You cane set SUP_BASE to run the new sup to try it
   1325 out. Next feels so much better in various ways (speed, search in threads etc.)
   1326 
   1327 Thanks for your all this work!
   1328 
   1329   set -x
   1330   set -e
   1331   OLD=~/.sup
   1332   NEW=/pr/sup-new-test
   1333   DUMP=/tmp/dump-file-new
   1334   DUMP2=/tmp/dump-file-new2
   1335   SYNC_LOG=/tmp/sup-sync-log
   1336   GIT_REPO=~/managed_repos/sup_mainline
   1337 
   1338   rm -fr $NEW
   1339 
   1340   export SUP_BASE=$OLD
   1341   sup-dump > $DUMP
   1342 
   1343   # from now on operate on the new base only
   1344   export SUP_BASE=$NEW
   1345   cp -r $OLD $NEW
   1346   rm -fr $NEW/ferret
   1347   rm -fr $NEW/xapian # remove old xapian cruft!
   1348   mv $NEW/{hooks,hooks-disabled}
   1349 
   1350   # echo loading stuff..
   1351   export SUP_INDEX=xapian
   1352   cd $GIT_REPO 
   1353   echo "syncing.. this will take long. use tail -f $SYNC_LOG to watch progress"
   1354   ruby -Ilib bin/sup-sync --all --all-sources --restore $DUMP &> $SYNC_LOG
   1355 
   1356   echo "writing dump"
   1357   ruby -Ilib bin/sup-dump # > $DUMP2
   1358 
   1359 Marc Weber
   1360 
   1361 From rlane@club.cc.cmu.edu  Fri Sep  4 13:00:57 2009
   1362 From: rlane@club.cc.cmu.edu (Rich Lane)
   1363 Date: Fri, 04 Sep 2009 13:00:57 -0400
   1364 Subject: [sup-talk] Trouble loading dump into Xapian index
   1365 In-Reply-To: <1251998177-sup-3432@masanjin.net>
   1366 References: <1251987692-sup-9940@nixos> <1251991420-sup-3869@masanjin.net>
   1367 	<1251994802-sup-8575@nixos> <1251995984-sup-7983@zyrg.net>
   1368 	<1251998177-sup-3432@masanjin.net>
   1369 Message-ID: <1252083532-sup-2011@zyrg.net>
   1370 
   1371 Excerpts from William Morgan's message of Thu Sep 03 13:16:41 -0400 2009:
   1372 > Reformatted excerpts from Rich Lane's message of 2009-09-03:
   1373 > > I added support for thread killing in 4d82ef88, which hasn't been
   1374 > > merged to master yet. If you'd like to use the Xapian index I suggest
   1375 > > using next for now.
   1376 > 
   1377 > If you feel it's reasonably stable, I can merge it into master.
   1378 
   1379 I think it's ok to merge.
   1380 
   1381 From wmorgan-sup@masanjin.net  Fri Sep  4 13:29:23 2009
   1382 From: wmorgan-sup@masanjin.net (William Morgan)
   1383 Date: Fri, 04 Sep 2009 10:29:23 -0700
   1384 Subject: [sup-talk] Trouble loading dump into Xapian index
   1385 In-Reply-To: <1252083532-sup-2011@zyrg.net>
   1386 References: <1251987692-sup-9940@nixos> <1251991420-sup-3869@masanjin.net>
   1387 	<1251994802-sup-8575@nixos> <1251995984-sup-7983@zyrg.net>
   1388 	<1251998177-sup-3432@masanjin.net> <1252083532-sup-2011@zyrg.net>
   1389 Message-ID: <1252085325-sup-2315@masanjin.net>
   1390 
   1391 Reformatted excerpts from Rich Lane's message of 2009-09-04:
   1392 > I think it's ok to merge.
   1393 
   1394 Merged!
   1395 
   1396 If you're running a Xapian from master (weird!) you will have to rebuild
   1397 your index after removing ~/.sup/{xapian,*.db}.
   1398 -- 
   1399 William <wmorgan-sup at masanjin.net>
   1400 
   1401 From sean.escriva@gmail.com  Fri Sep  4 15:13:32 2009
   1402 From: sean.escriva@gmail.com (Sean Escriva)
   1403 Date: Fri, 4 Sep 2009 12:13:32 -0700
   1404 Subject: [sup-talk] a few questions on mail handling with sup
   1405 Message-ID: <20090904191332.GA5525@gmail.com>
   1406 
   1407 I've got sup working with the exchange server at work thanks to
   1408 offlineimap, but I have a few questions I was hope to get some input
   1409 on.
   1410 
   1411 Currently I have no way to way move messages out of my inbox on the
   1412 imap server, since I'm accessing a local maildir created by
   1413 offlineimap. This is only an issue since mailboxes have a limit of
   1414 800mb in size on the server and given the volume of mail I have that
   1415 will be reached every other month. I've looked at imap filter and this
   1416 could possibly work, but anyone have experience with this sort of
   1417 sitatuation?
   1418 
   1419 Additionally, since sup doesn't actually change the
   1420 maildir, messages in the maildir do not seem be getting marked as not
   1421 new when reading them with sup and offlineimap then doesn't update the
   1422 message state on the server. Is there any way to addess this?
   1423 
   1424 thanks!
   1425 
   1426 From bwalton@artsci.utoronto.ca  Fri Sep  4 16:47:39 2009
   1427 From: bwalton@artsci.utoronto.ca (Ben Walton)
   1428 Date: Fri, 04 Sep 2009 16:47:39 -0400
   1429 Subject: [sup-talk] more xapian/label woes
   1430 In-Reply-To: <1252077954-sup-8898@masanjin.net>
   1431 References: <1252030139-sup-6351@ntdws12.chass.utoronto.ca>
   1432 	<1252077954-sup-8898@masanjin.net>
   1433 Message-ID: <1252081294-sup-4119@ntdws12.chass.utoronto.ca>
   1434 
   1435 Excerpts from William Morgan's message of Fri Sep 04 11:30:11 -0400 2009:
   1436 
   1437 > Is this with a recent next, and after deleting any vestigal
   1438 > ~/.sup/xapian directory and .db files? If so, there really shouldn't be
   1439 > any label issues. If there are, can you attach the original exception?
   1440 > Also, does your sources.yaml file have something weird for labels?
   1441 
   1442 It was with cdb1017, but I likely did have a ~/.sup/xapian directory
   1443 from previous attempts.  I'll try again tonight with that cleared out.
   1444 
   1445 > > This got me to the point where I could fire up sup with
   1446 > > SUP_INDEX=xapian, but the initial poll caused the attached exception.
   1447 > > I wonder if LabelManager should simply call .to_sym (.intern) on
   1448 > > everything passed to it?
   1449 > 
   1450 > Certainly an option, but I'm hoping to keep the "fail fast" behavior for
   1451 > now since it is revealing underlying problems.
   1452 
   1453 Ok, I think this is likely the best approach too.  Strings and symbols
   1454 have a somewhat special relationship in ruby though, so I thought it
   1455 might be ok to force a coercion in that case.  Lets make it the last
   1456 resort as you suggest.
   1457 
   1458 Thanks
   1459 -Ben
   1460 -- 
   1461 Ben Walton
   1462 Systems Programmer - CHASS
   1463 University of Toronto
   1464 C:416.407.5610 | W:416.978.4302
   1465 
   1466 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   1467 Contact me to arrange for a CAcert assurance meeting.
   1468 -------------- next part --------------
   1469 A non-text attachment was scrubbed...
   1470 Name: signature.asc
   1471 Type: application/pgp-signature
   1472 Size: 189 bytes
   1473 Desc: not available
   1474 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090904/aa7e19d8/attachment.bin>
   1475 
   1476 From bwalton@artsci.utoronto.ca  Fri Sep  4 17:01:11 2009
   1477 From: bwalton@artsci.utoronto.ca (Ben Walton)
   1478 Date: Fri, 04 Sep 2009 17:01:11 -0400
   1479 Subject: [sup-talk] a few questions on mail handling with sup
   1480 In-Reply-To: <20090904191332.GA5525@gmail.com>
   1481 References: <20090904191332.GA5525@gmail.com>
   1482 Message-ID: <1252098027-sup-4487@ntdws12.chass.utoronto.ca>
   1483 
   1484 Excerpts from Sean Escriva's message of Fri Sep 04 15:13:32 -0400 2009:
   1485 
   1486 > Currently I have no way to way move messages out of my inbox on the
   1487 > imap server, since I'm accessing a local maildir created by
   1488 > offlineimap. This is only an issue since mailboxes have a limit of
   1489 > 800mb in size on the server and given the volume of mail I have that
   1490 > will be reached every other month. I've looked at imap filter and this
   1491 > could possibly work, but anyone have experience with this sort of
   1492 > sitatuation?
   1493 
   1494 Could you pull it down with fetchmail into a local MTA setup that only
   1495 handles local delivery?  Fetchmail has the 'delete on server' option
   1496 if offlineimap doesn't.
   1497 
   1498 -Ben
   1499 
   1500 -- 
   1501 Ben Walton
   1502 Systems Programmer - CHASS
   1503 University of Toronto
   1504 C:416.407.5610 | W:416.978.4302
   1505 
   1506 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   1507 Contact me to arrange for a CAcert assurance meeting.
   1508 -------------- next part --------------
   1509 A non-text attachment was scrubbed...
   1510 Name: signature.asc
   1511 Type: application/pgp-signature
   1512 Size: 189 bytes
   1513 Desc: not available
   1514 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090904/7e4f505a/attachment.bin>
   1515 
   1516 From bwalton@artsci.utoronto.ca  Sat Sep  5 15:08:52 2009
   1517 From: bwalton@artsci.utoronto.ca (Ben Walton)
   1518 Date: Sat, 05 Sep 2009 15:08:52 -0400
   1519 Subject: [sup-talk] new exception
   1520 Message-ID: <1252177626-sup-316@ntdws12.chass.utoronto.ca>
   1521 
   1522 
   1523 This attached exception log was generated after sending a reply,
   1524 before the inbox buffer was redisplayed.
   1525 
   1526 I have the following small modifications to 99e62d55 included (still
   1527 required for importing to xapian in my case):
   1528 
   1529 --snip--
   1530 -    raise ArgumentError, "expecting a symbol" unless t.is_a? Symbol
   1531 +    t = t.intern if t.is_a? String
   1532 +
   1533 +    unless t.is_a? Symbol
   1534 +      m = "expecting a symbol, got a #{t.class} (#{t.to_s})"
   1535 +      raise ArgumentError, m
   1536 +    end
   1537 +
   1538 --snip--
   1539 
   1540 Thanks
   1541 -Ben
   1542 -- 
   1543 Ben Walton
   1544 Systems Programmer - CHASS
   1545 University of Toronto
   1546 C:416.407.5610 | W:416.978.4302
   1547 
   1548 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   1549 Contact me to arrange for a CAcert assurance meeting.
   1550 -------------- next part --------------
   1551 An embedded and charset-unspecified text was scrubbed...
   1552 Name: exception-log.txt
   1553 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090905/ef8749ed/attachment.txt>
   1554 -------------- next part --------------
   1555 A non-text attachment was scrubbed...
   1556 Name: signature.asc
   1557 Type: application/pgp-signature
   1558 Size: 189 bytes
   1559 Desc: not available
   1560 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090905/ef8749ed/attachment.bin>
   1561 
   1562 From rlane@club.cc.cmu.edu  Sat Sep  5 15:30:04 2009
   1563 From: rlane@club.cc.cmu.edu (Rich Lane)
   1564 Date: Sat, 05 Sep 2009 15:30:04 -0400
   1565 Subject: [sup-talk] new exception
   1566 In-Reply-To: <1252177626-sup-316@ntdws12.chass.utoronto.ca>
   1567 References: <1252177626-sup-316@ntdws12.chass.utoronto.ca>
   1568 Message-ID: <1252178309-sup-7297@zyrg.net>
   1569 
   1570 Excerpts from Ben Walton's message of Sat Sep 05 15:08:52 -0400 2009:
   1571 > --- RuntimeError from thread: main
   1572 > DocNotFoundError: No termlist found for document 2478134195
   1573 > /usr/lib/ruby/site_ruby/1.8/xapian.rb:239:in `doclength'
   1574 > /usr/lib/ruby/site_ruby/1.8/xapian.rb:239:in `postlist'
   1575 > /usr/lib/ruby/site_ruby/1.8/xapian.rb:59:in `_safelyIterate'
   1576 > /usr/lib/ruby/site_ruby/1.8/xapian.rb:237:in `postlist'
   1577 > ./sup/xapian_index.rb:361:in `term_docids'
   1578 
   1579 I'm guessing you're using the Chert Xapian backend. When I moved all the
   1580 index data into Xapian it started triggering this Chert bug.
   1581 Unfortunately, it's nondeterministic and very hard to reproduce in a
   1582 small testcase. I've been holding off filing a bug upstream until I had
   1583 a better failing testcase than "run sup-sync". If anyone would like to
   1584 familiarize themselves with the xapian-index internals and narrow this
   1585 bug down a bit I'd be very glad for the help.
   1586 
   1587 The Flint Xapian backend seems to work fine, so for now I suggest using that.
   1588 
   1589 From bwalton@artsci.utoronto.ca  Sat Sep  5 15:35:50 2009
   1590 From: bwalton@artsci.utoronto.ca (Ben Walton)
   1591 Date: Sat, 05 Sep 2009 15:35:50 -0400
   1592 Subject: [sup-talk] new exception
   1593 In-Reply-To: <1252178309-sup-7297@zyrg.net>
   1594 References: <1252177626-sup-316@ntdws12.chass.utoronto.ca>
   1595 	<1252178309-sup-7297@zyrg.net>
   1596 Message-ID: <1252179264-sup-8449@ntdws12.chass.utoronto.ca>
   1597 
   1598 Excerpts from Rich Lane's message of Sat Sep 05 15:30:04 -0400 2009:
   1599 > I'm guessing you're using the Chert Xapian backend. When I moved all the
   1600 > index data into Xapian it started triggering this Chert bug.
   1601 > Unfortunately, it's nondeterministic and very hard to reproduce in a
   1602 > small testcase. I've been holding off filing a bug upstream until I had
   1603 > a better failing testcase than "run sup-sync". If anyone would like to
   1604 > familiarize themselves with the xapian-index internals and narrow this
   1605 > bug down a bit I'd be very glad for the help.
   1606 
   1607 Your guess is as good as mine here...I didn't realize there were
   1608 different back ends.  How would I go about switching?
   1609 
   1610 Thanks
   1611 -Ben
   1612 
   1613 -- 
   1614 Ben Walton
   1615 Systems Programmer - CHASS
   1616 University of Toronto
   1617 C:416.407.5610 | W:416.978.4302
   1618 
   1619 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   1620 Contact me to arrange for a CAcert assurance meeting.
   1621 -------------- next part --------------
   1622 A non-text attachment was scrubbed...
   1623 Name: signature.asc
   1624 Type: application/pgp-signature
   1625 Size: 189 bytes
   1626 Desc: not available
   1627 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090905/2217f134/attachment.bin>
   1628 
   1629 From rlane@club.cc.cmu.edu  Sat Sep  5 15:55:12 2009
   1630 From: rlane@club.cc.cmu.edu (Rich Lane)
   1631 Date: Sat, 05 Sep 2009 15:55:12 -0400
   1632 Subject: [sup-talk] new exception
   1633 In-Reply-To: <1252179264-sup-8449@ntdws12.chass.utoronto.ca>
   1634 References: <1252177626-sup-316@ntdws12.chass.utoronto.ca>
   1635 	<1252178309-sup-7297@zyrg.net>
   1636 	<1252179264-sup-8449@ntdws12.chass.utoronto.ca>
   1637 Message-ID: <1252179965-sup-8043@zyrg.net>
   1638 
   1639 Excerpts from Ben Walton's message of Sat Sep 05 15:35:50 -0400 2009:
   1640 > Your guess is as good as mine here...I didn't realize there were
   1641 > different back ends.  How would I go about switching?
   1642 
   1643 Interesting, AFAIK Flint is still the default. Check for a
   1644 .sup/xapian/iamchert file to see if it's really a Chert DB. If it is
   1645 Chert, you'll have to delete the xapian directory before you can switch
   1646 to Flint. The environment variable XAPIAN_PREFER_CHERT controls which
   1647 backend is used. Set it to the empty string to make sure you're getting
   1648 Flint.
   1649 
   1650 From bwalton@artsci.utoronto.ca  Sat Sep  5 17:57:41 2009
   1651 From: bwalton@artsci.utoronto.ca (Ben Walton)
   1652 Date: Sat, 05 Sep 2009 17:57:41 -0400
   1653 Subject: [sup-talk] new exception
   1654 In-Reply-To: <1252179965-sup-8043@zyrg.net>
   1655 References: <1252177626-sup-316@ntdws12.chass.utoronto.ca>
   1656 	<1252178309-sup-7297@zyrg.net>
   1657 	<1252179264-sup-8449@ntdws12.chass.utoronto.ca>
   1658 	<1252179965-sup-8043@zyrg.net>
   1659 Message-ID: <1252187828-sup-3676@ntdws12.chass.utoronto.ca>
   1660 
   1661 Excerpts from Rich Lane's message of Sat Sep 05 15:55:12 -0400 2009:
   1662 
   1663 > Interesting, AFAIK Flint is still the default. Check for a
   1664 > .sup/xapian/iamchert file to see if it's really a Chert DB. If it is
   1665 
   1666 Nope.  I've got ~/.sup/xapian/iamflint though...
   1667 
   1668 Thanks for the info.
   1669 
   1670 -Ben
   1671 
   1672 -- 
   1673 Ben Walton
   1674 Systems Programmer - CHASS
   1675 University of Toronto
   1676 C:416.407.5610 | W:416.978.4302
   1677 
   1678 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   1679 Contact me to arrange for a CAcert assurance meeting.
   1680 -------------- next part --------------
   1681 A non-text attachment was scrubbed...
   1682 Name: signature.asc
   1683 Type: application/pgp-signature
   1684 Size: 189 bytes
   1685 Desc: not available
   1686 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090905/ef9fc4c3/attachment.bin>
   1687 
   1688 From bwalton@artsci.utoronto.ca  Sat Sep  5 20:19:06 2009
   1689 From: bwalton@artsci.utoronto.ca (Ben Walton)
   1690 Date: Sat, 05 Sep 2009 20:19:06 -0400
   1691 Subject: [sup-talk] sources.yaml labels
   1692 Message-ID: <1252196204-sup-4575@ntdws12.chass.utoronto.ca>
   1693 
   1694 
   1695 Hi All,
   1696 
   1697 After still requiring modifications to the LabelManager to manage my
   1698 xapian conversion, I'm wondering if I've done something wrong in my
   1699 sources.yaml (most of which was put together by hand instead of via
   1700 sup-add).  What format should a labels definition be using?  On of my
   1701 sources looks like:
   1702 
   1703 --snip--
   1704 - !masanjin.net,2006-10-01/Redwood/Maildir 
   1705   uri: maildir:///u/bwalton/Maildir/.systemtap/
   1706   cur_offset: 12264068440005086
   1707   usual: true
   1708   archived: false
   1709   id: 6
   1710   labels: 
   1711   - systemtap
   1712   mtimes: 
   1713     cur: 2008-10-23 13:22:54 -04:00
   1714     new: 2008-11-11 07:34:04 -05:00
   1715 --snip--
   1716 
   1717 Should the '- systemtap' be '- :systemtap'?
   1718 
   1719 Thanks
   1720 -Ben
   1721 -- 
   1722 Ben Walton
   1723 Systems Programmer - CHASS
   1724 University of Toronto
   1725 C:416.407.5610 | W:416.978.4302
   1726 
   1727 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   1728 Contact me to arrange for a CAcert assurance meeting.
   1729 -------------- next part --------------
   1730 A non-text attachment was scrubbed...
   1731 Name: signature.asc
   1732 Type: application/pgp-signature
   1733 Size: 189 bytes
   1734 Desc: not available
   1735 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090905/7dc9994f/attachment.bin>
   1736 
   1737 From richard@infoarts.info  Sun Sep  6 05:40:57 2009
   1738 From: richard@infoarts.info (Richard Sandilands)
   1739 Date: Sun, 06 Sep 2009 19:40:57 +1000
   1740 Subject: [sup-talk] Sent messages and Sent label
   1741 Message-ID: <1252230039-sup-3920@Richard-Sandilandss-MacBook-Pro.local>
   1742 
   1743 Hi there
   1744 
   1745 I've set:
   1746 
   1747 :sent_source: sup://sent
   1748 
   1749 in my config.yaml and am sending using msmtp succesfully, however I'm not
   1750 seeing my sent mail anywhere in Sup. I'm assuming that it is labelled as
   1751 'Sent' and accessible via the 'Sent' label.
   1752 
   1753 But no mail is visible under that label - should I be adding a hook to label
   1754 outgoing mail as 'Sent' or am I missing something obvious?
   1755 
   1756 -- 
   1757 Richard Sandilands
   1758 
   1759 From richard@infoarts.info  Sun Sep  6 05:42:50 2009
   1760 From: richard@infoarts.info (Richard Sandilands)
   1761 Date: Sun, 06 Sep 2009 19:42:50 +1000
   1762 Subject: [sup-talk] Change color of 'highlight' indicator in inbox view?
   1763 Message-ID: <1252230162-sup-8625@Richard-Sandilandss-MacBook-Pro.local>
   1764 
   1765 Hi there
   1766 
   1767 Am just playing with colors.yaml and was looking to change the colors of the
   1768 highlight line that indicates a selected thread in inbox view.
   1769 
   1770 Is there a setting for this element?
   1771 
   1772 -- 
   1773 Richard Sandilands
   1774 
   1775 From richard@infoarts.info  Sun Sep  6 05:40:57 2009
   1776 From: richard@infoarts.info (Richard Sandilands)
   1777 Date: Sun, 06 Sep 2009 19:40:57 +1000
   1778 Subject: [sup-talk] Sent messages and Sent label
   1779 Message-ID: <1252230039-sup-3920@Richard-Sandilandss-MacBook-Pro.local>
   1780 
   1781 Hi there
   1782 
   1783 I've set:
   1784 
   1785 :sent_source: sup://sent
   1786 
   1787 in my config.yaml and am sending using msmtp succesfully, however I'm not
   1788 seeing my sent mail anywhere in Sup. I'm assuming that it is labelled as
   1789 'Sent' and accessible via the 'Sent' label.
   1790 
   1791 But no mail is visible under that label - should I be adding a hook to label
   1792 outgoing mail as 'Sent' or am I missing something obvious?
   1793 
   1794 -- 
   1795 Richard Sandilands
   1796 
   1797 From wmorgan-sup@masanjin.net  Sun Sep  6 09:07:48 2009
   1798 From: wmorgan-sup@masanjin.net (William Morgan)
   1799 Date: Sun, 06 Sep 2009 06:07:48 -0700
   1800 Subject: [sup-talk] Change color of 'highlight' indicator in inbox view?
   1801 In-Reply-To: <1252230162-sup-8625@Richard-Sandilandss-MacBook-Pro.local>
   1802 References: <1252230162-sup-8625@Richard-Sandilandss-MacBook-Pro.local>
   1803 Message-ID: <1252241877-sup-6125@masanjin.net>
   1804 
   1805 Reformatted excerpts from Richard Sandilands's message of 2009-09-06:
   1806 > Am just playing with colors.yaml and was looking to change the colors
   1807 > of the highlight line that indicates a selected thread in inbox view.
   1808 > 
   1809 > Is there a setting for this element?
   1810 
   1811 Currently the highlight color is generated programmatically, so there's
   1812 no setting in colors.yaml. You can edit colormap.rb#highlight_for (circa
   1813 line 82) if you want.
   1814 
   1815 Ideas on how to move this configuration to colors.yaml (or some other
   1816 configuration mechanism) welcome.
   1817 -- 
   1818 William <wmorgan-sup at masanjin.net>
   1819 
   1820 From wmorgan-sup@masanjin.net  Sun Sep  6 09:22:21 2009
   1821 From: wmorgan-sup@masanjin.net (William Morgan)
   1822 Date: Sun, 06 Sep 2009 06:22:21 -0700
   1823 Subject: [sup-talk] sources.yaml labels
   1824 In-Reply-To: <1252196204-sup-4575@ntdws12.chass.utoronto.ca>
   1825 References: <1252196204-sup-4575@ntdws12.chass.utoronto.ca>
   1826 Message-ID: <1252242820-sup-1452@masanjin.net>
   1827 
   1828 Reformatted excerpts from Ben Walton's message of 2009-09-05:
   1829 > Should the '- systemtap' be '- :systemtap'?
   1830 
   1831 The former is "correct". But if you put in the latter, it should be
   1832 converted automatically, and written out as the former when you exit
   1833 Sup.
   1834 
   1835 I'm a little disturbed that you're still seeing problems with this. Can
   1836 you confirm that SerializeLabelsNicely#after_unmarshal! (source.rb circa
   1837 line 167) is being run in your sources after they're loaded from
   1838 sources.yaml? That should ensure that you end up with a Set of symbols
   1839 when Sup's running, regardless of what's in the file.
   1840 
   1841 The other source of bad labels is the serialized version of the messages
   1842 stored by Xapian, if you use Xapian. But if you've regenerated your
   1843 Xapian index recently, this shouldn't be a problem...
   1844 
   1845 It strikes me now that the other possible source of non-symbol labels is
   1846 a hook like before-add. Are you using that to call Message#add_label
   1847 with a string argument, by any chance?
   1848 
   1849 If none of the above, can you post the latest version of the exceptions
   1850 you're seeing?
   1851 -- 
   1852 William <wmorgan-sup at masanjin.net>
   1853 
   1854 From bwalton@artsci.utoronto.ca  Sun Sep  6 09:47:06 2009
   1855 From: bwalton@artsci.utoronto.ca (Ben Walton)
   1856 Date: Sun, 06 Sep 2009 09:47:06 -0400
   1857 Subject: [sup-talk] sources.yaml labels
   1858 In-Reply-To: <1252242820-sup-1452@masanjin.net>
   1859 References: <1252196204-sup-4575@ntdws12.chass.utoronto.ca>
   1860 	<1252242820-sup-1452@masanjin.net>
   1861 Message-ID: <1252244621-sup-3579@ntdws12.chass.utoronto.ca>
   1862 
   1863 Excerpts from William Morgan's message of Sun Sep 06 09:22:21 -0400 2009:
   1864 > The former is "correct". But if you put in the latter, it should be
   1865 > converted automatically, and written out as the former when you exit
   1866 > Sup.
   1867 
   1868 Ok, so my sources.yaml is 'good.'
   1869 
   1870 > I'm a little disturbed that you're still seeing problems with this. Can
   1871 > you confirm that SerializeLabelsNicely#after_unmarshal! (source.rb circa
   1872 > line 167) is being run in your sources after they're loaded from
   1873 > sources.yaml? That should ensure that you end up with a Set of symbols
   1874 > when Sup's running, regardless of what's in the file.
   1875 
   1876 Yes, I added a debug in that method and saw a message for each source.
   1877 
   1878 > The other source of bad labels is the serialized version of the messages
   1879 > stored by Xapian, if you use Xapian. But if you've regenerated your
   1880 > Xapian index recently, this shouldn't be a problem...
   1881 
   1882 I generated this about 2 days ago with a current (at the time) head of
   1883 next.
   1884 
   1885 > It strikes me now that the other possible source of non-symbol labels is
   1886 > a hook like before-add. Are you using that to call Message#add_label
   1887 > with a string argument, by any chance?
   1888 
   1889 I was doing this.  I had a hook from my very early sup days still in
   1890 play.  Since it was actually completely redundant (procmail filtering
   1891 and autolabelling via sources) now, I've simply removed it.
   1892 
   1893 > If none of the above, can you post the latest version of the exceptions
   1894 > you're seeing?
   1895 
   1896 I still can't load sup without coercing strings to symbols in the <<
   1897 method though.  The exception log is attached (from a clean startup).
   1898 
   1899 Thanks
   1900 -Ben
   1901 -- 
   1902 Ben Walton
   1903 Systems Programmer - CHASS
   1904 University of Toronto
   1905 C:416.407.5610 | W:416.978.4302
   1906 
   1907 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   1908 Contact me to arrange for a CAcert assurance meeting.
   1909 -------------- next part --------------
   1910 An embedded and charset-unspecified text was scrubbed...
   1911 Name: exception-log.txt
   1912 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090906/8e8d8383/attachment.txt>
   1913 -------------- next part --------------
   1914 A non-text attachment was scrubbed...
   1915 Name: signature.asc
   1916 Type: application/pgp-signature
   1917 Size: 189 bytes
   1918 Desc: not available
   1919 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090906/8e8d8383/attachment.bin>
   1920 
   1921 From wmorgan-sup@masanjin.net  Sun Sep  6 09:50:35 2009
   1922 From: wmorgan-sup@masanjin.net (William Morgan)
   1923 Date: Sun, 06 Sep 2009 06:50:35 -0700
   1924 Subject: [sup-talk] Sent messages and Sent label
   1925 In-Reply-To: <1252230039-sup-3920@Richard-Sandilandss-MacBook-Pro.local>
   1926 References: <1252230039-sup-3920@Richard-Sandilandss-MacBook-Pro.local>
   1927 Message-ID: <1252244925-sup-2820@masanjin.net>
   1928 
   1929 Reformatted excerpts from Richard Sandilands's message of 2009-09-06:
   1930 > But no mail is visible under that label - should I be adding a hook to
   1931 > label outgoing mail as 'Sent' or am I missing something obvious?
   1932 
   1933 Whoops, this is a bug I introduced recently. I've fixed it now. Please
   1934 git pull and try again.
   1935 
   1936 To apply the sent label to previously-sent messages, please run:
   1937   sup-tweak-labels -a sent sup://sent
   1938 
   1939 Sorry about that!
   1940 -- 
   1941 William <wmorgan-sup at masanjin.net>
   1942 
   1943 From bwalton@artsci.utoronto.ca  Sun Sep  6 10:07:55 2009
   1944 From: bwalton@artsci.utoronto.ca (Ben Walton)
   1945 Date: Sun, 06 Sep 2009 10:07:55 -0400
   1946 Subject: [sup-talk] sources.yaml labels
   1947 In-Reply-To: <1252242820-sup-1452@masanjin.net>
   1948 References: <1252196204-sup-4575@ntdws12.chass.utoronto.ca>
   1949 	<1252242820-sup-1452@masanjin.net>
   1950 Message-ID: <1252246006-sup-3945@ntdws12.chass.utoronto.ca>
   1951 
   1952 Excerpts from William Morgan's message of Sun Sep 06 09:22:21 -0400 2009:
   1953 
   1954 > The other source of bad labels is the serialized version of the messages
   1955 > stored by Xapian, if you use Xapian. But if you've regenerated your
   1956 > Xapian index recently, this shouldn't be a problem...
   1957 
   1958 Since I had a bad hook and imported to Xapian with that hook live,
   1959 should I reimport my dumpfile after having the hook removed?  I'm
   1960 thinking that I did the damage in a permanent fashion while doing the
   1961 import...
   1962 
   1963 Thanks
   1964 -Ben
   1965 -- 
   1966 Ben Walton
   1967 Systems Programmer - CHASS
   1968 University of Toronto
   1969 C:416.407.5610 | W:416.978.4302
   1970 
   1971 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   1972 Contact me to arrange for a CAcert assurance meeting.
   1973 -------------- next part --------------
   1974 A non-text attachment was scrubbed...
   1975 Name: signature.asc
   1976 Type: application/pgp-signature
   1977 Size: 189 bytes
   1978 Desc: not available
   1979 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090906/e357aff1/attachment.bin>
   1980 
   1981 From ingmar@exherbo.org  Sun Sep  6 10:16:56 2009
   1982 From: ingmar@exherbo.org (Ingmar Vanhassel)
   1983 Date: Sun, 06 Sep 2009 16:16:56 +0200
   1984 Subject: [sup-talk] sources.yaml labels
   1985 In-Reply-To: <1252244621-sup-3579@ntdws12.chass.utoronto.ca>
   1986 References: <1252196204-sup-4575@ntdws12.chass.utoronto.ca>
   1987 	<1252242820-sup-1452@masanjin.net>
   1988 	<1252244621-sup-3579@ntdws12.chass.utoronto.ca>
   1989 Message-ID: <1252246564-sup-241@cannonball>
   1990 
   1991 Excerpts from Ben Walton's message of Sun Sep 06 15:47:06 +0200 2009:
   1992 > I still can't load sup without coercing strings to symbols in the <<
   1993 > method though.  The exception log is attached (from a clean startup).
   1994 
   1995 That looks like you're using labels as strings, or at least not as
   1996 symbols, in one of your hooks.
   1997 
   1998 -- 
   1999 Exherbo KDE, X.org maintainer
   2000 
   2001 From wmorgan-sup@masanjin.net  Sun Sep  6 11:06:16 2009
   2002 From: wmorgan-sup@masanjin.net (William Morgan)
   2003 Date: Sun, 06 Sep 2009 08:06:16 -0700
   2004 Subject: [sup-talk] sources.yaml labels
   2005 In-Reply-To: <1252246006-sup-3945@ntdws12.chass.utoronto.ca>
   2006 References: <1252196204-sup-4575@ntdws12.chass.utoronto.ca>
   2007 	<1252242820-sup-1452@masanjin.net>
   2008 	<1252246006-sup-3945@ntdws12.chass.utoronto.ca>
   2009 Message-ID: <1252248461-sup-5213@masanjin.net>
   2010 
   2011 Reformatted excerpts from Ben Walton's message of 2009-09-06:
   2012 > Since I had a bad hook and imported to Xapian with that hook live,
   2013 > should I reimport my dumpfile after having the hook removed?  I'm
   2014 > thinking that I did the damage in a permanent fashion while doing the
   2015 > import...
   2016 
   2017 I suspect that would fix it. I've just pushed a change to to make
   2018 Message#add_label coerce arguments to symbols, anyways, so that writing
   2019 your hook wrong won't destroy your index for all eternity.
   2020 
   2021 Sorry about all this. The silver lining is that it's a side effect of
   2022 lots of development activity. :)
   2023 -- 
   2024 William <wmorgan-sup at masanjin.net>
   2025 
   2026 From bwalton@artsci.utoronto.ca  Sun Sep  6 11:26:26 2009
   2027 From: bwalton@artsci.utoronto.ca (Ben Walton)
   2028 Date: Sun, 06 Sep 2009 11:26:26 -0400
   2029 Subject: [sup-talk] sources.yaml labels
   2030 In-Reply-To: <1252248461-sup-5213@masanjin.net>
   2031 References: <1252196204-sup-4575@ntdws12.chass.utoronto.ca>
   2032 	<1252242820-sup-1452@masanjin.net>
   2033 	<1252246006-sup-3945@ntdws12.chass.utoronto.ca>
   2034 	<1252248461-sup-5213@masanjin.net>
   2035 Message-ID: <1252250590-sup-9666@ntdws12.chass.utoronto.ca>
   2036 
   2037 Excerpts from William Morgan's message of Sun Sep 06 11:06:16 -0400 2009:
   2038 > I suspect that would fix it. I've just pushed a change to to make
   2039 > Message#add_label coerce arguments to symbols, anyways, so that writing
   2040 > your hook wrong won't destroy your index for all eternity.
   2041 
   2042 Ok, that's cool.  I was going to write the same change but with a
   2043 'raise ArgumentError' similar to the one in << to stick with the fail
   2044 fast approach you prefer.
   2045 
   2046 > Sorry about all this. The silver lining is that it's a side effect of
   2047 > lots of development activity. :)
   2048 
   2049 Hey, it's not a problem.  I don't mind guinea pigging this stuff at
   2050 all.  Sup has steadily improved since I've been using it, so I'm a
   2051 happy camper.  [Plus, I'm running next, so I 'get what I get.']
   2052 
   2053 Thanks
   2054 -Ben
   2055 -- 
   2056 Ben Walton
   2057 Systems Programmer - CHASS
   2058 University of Toronto
   2059 C:416.407.5610 | W:416.978.4302
   2060 
   2061 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   2062 Contact me to arrange for a CAcert assurance meeting.
   2063 -------------- next part --------------
   2064 A non-text attachment was scrubbed...
   2065 Name: signature.asc
   2066 Type: application/pgp-signature
   2067 Size: 189 bytes
   2068 Desc: not available
   2069 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090906/26890640/attachment.bin>
   2070 
   2071 From bwalton@artsci.utoronto.ca  Sun Sep  6 12:41:48 2009
   2072 From: bwalton@artsci.utoronto.ca (Ben Walton)
   2073 Date: Sun, 06 Sep 2009 12:41:48 -0400
   2074 Subject: [sup-talk] sources.yaml labels
   2075 In-Reply-To: <1252248461-sup-5213@masanjin.net>
   2076 References: <1252196204-sup-4575@ntdws12.chass.utoronto.ca>
   2077 	<1252242820-sup-1452@masanjin.net>
   2078 	<1252246006-sup-3945@ntdws12.chass.utoronto.ca>
   2079 	<1252248461-sup-5213@masanjin.net>
   2080 Message-ID: <1252255225-sup-9921@ntdws12.chass.utoronto.ca>
   2081 
   2082 Excerpts from William Morgan's message of Sun Sep 06 11:06:16 -0400 2009:
   2083 
   2084 > I suspect that would fix it. I've just pushed a change to to make
   2085 > Message#add_label coerce arguments to symbols, anyways, so that writing
   2086 > your hook wrong won't destroy your index for all eternity.
   2087 
   2088 Verified.  I've re-imported my dump file after removing my hook.  The
   2089 import ran successfully with an unmodified sup.
   2090 
   2091 I think this makes me a full-time xapian convert.
   2092 
   2093 Thanks for all your effort on this William and Rich!
   2094 -Ben
   2095 
   2096 -- 
   2097 Ben Walton
   2098 Systems Programmer - CHASS
   2099 University of Toronto
   2100 C:416.407.5610 | W:416.978.4302
   2101 
   2102 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   2103 Contact me to arrange for a CAcert assurance meeting.
   2104 -------------- next part --------------
   2105 A non-text attachment was scrubbed...
   2106 Name: signature.asc
   2107 Type: application/pgp-signature
   2108 Size: 189 bytes
   2109 Desc: not available
   2110 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090906/6eddaa77/attachment.bin>
   2111 
   2112 From rlane@club.cc.cmu.edu  Sun Sep  6 13:02:19 2009
   2113 From: rlane@club.cc.cmu.edu (Rich Lane)
   2114 Date: Sun, 06 Sep 2009 13:02:19 -0400
   2115 Subject: [sup-talk] new exception
   2116 In-Reply-To: <1252187828-sup-3676@ntdws12.chass.utoronto.ca>
   2117 References: <1252177626-sup-316@ntdws12.chass.utoronto.ca>
   2118 	<1252178309-sup-7297@zyrg.net>
   2119 	<1252179264-sup-8449@ntdws12.chass.utoronto.ca>
   2120 	<1252179965-sup-8043@zyrg.net>
   2121 	<1252187828-sup-3676@ntdws12.chass.utoronto.ca>
   2122 Message-ID: <1252255655-sup-2460@zyrg.net>
   2123 
   2124 Excerpts from Ben Walton's message of Sat Sep 05 17:57:41 -0400 2009:
   2125 > Excerpts from Rich Lane's message of Sat Sep 05 15:55:12 -0400 2009:
   2126 > 
   2127 > > Interesting, AFAIK Flint is still the default. Check for a
   2128 > > .sup/xapian/iamchert file to see if it's really a Chert DB. If it is
   2129 > 
   2130 > Nope.  I've got ~/.sup/xapian/iamflint though...
   2131 
   2132 Well, that's not good. How often does this bug occur? What version of
   2133 Xapian are you running? How many messages are in your index?
   2134 
   2135 From bwalton@artsci.utoronto.ca  Sun Sep  6 13:22:39 2009
   2136 From: bwalton@artsci.utoronto.ca (Ben Walton)
   2137 Date: Sun, 06 Sep 2009 13:22:39 -0400
   2138 Subject: [sup-talk] new exception
   2139 In-Reply-To: <1252255655-sup-2460@zyrg.net>
   2140 References: <1252177626-sup-316@ntdws12.chass.utoronto.ca>
   2141 	<1252178309-sup-7297@zyrg.net>
   2142 	<1252179264-sup-8449@ntdws12.chass.utoronto.ca>
   2143 	<1252179965-sup-8043@zyrg.net>
   2144 	<1252187828-sup-3676@ntdws12.chass.utoronto.ca>
   2145 	<1252255655-sup-2460@zyrg.net>
   2146 Message-ID: <1252257711-sup-2477@ntdws12.chass.utoronto.ca>
   2147 
   2148 Excerpts from Rich Lane's message of Sun Sep 06 13:02:19 -0400 2009:
   2149 > Well, that's not good. How often does this bug occur? What version of
   2150 > Xapian are you running? How many messages are in your index?
   2151 
   2152 It's only occurred twice, but both were with my polluted index of ~77k
   2153 messages.  Let me run for a bit now that I've cleaned out my string
   2154 labels and see what happens.
   2155 
   2156 Thanks
   2157 -Ben
   2158 -- 
   2159 Ben Walton
   2160 Systems Programmer - CHASS
   2161 University of Toronto
   2162 C:416.407.5610 | W:416.978.4302
   2163 
   2164 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   2165 Contact me to arrange for a CAcert assurance meeting.
   2166 -------------- next part --------------
   2167 A non-text attachment was scrubbed...
   2168 Name: signature.asc
   2169 Type: application/pgp-signature
   2170 Size: 189 bytes
   2171 Desc: not available
   2172 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090906/5f1cedfa/attachment.bin>
   2173 
   2174 From bwalton@artsci.utoronto.ca  Sun Sep  6 14:08:42 2009
   2175 From: bwalton@artsci.utoronto.ca (Ben Walton)
   2176 Date: Sun, 06 Sep 2009 14:08:42 -0400
   2177 Subject: [sup-talk] [PATCH] small sent labels fixup
   2178 Message-ID: <1252260470-sup-6960@ntdws12.chass.utoronto.ca>
   2179 
   2180 Hi William,
   2181 
   2182 I still wasn't seeing the sent label applied to things in my maildir.
   2183 The attached patch restores the behaviour for non sup://sent sent
   2184 sources.
   2185 
   2186 Thanks
   2187 -Ben
   2188 -- 
   2189 Ben Walton
   2190 Systems Programmer - CHASS
   2191 University of Toronto
   2192 C:416.407.5610 | W:416.978.4302
   2193 
   2194 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   2195 Contact me to arrange for a CAcert assurance meeting.
   2196 -------------- next part --------------
   2197 A non-text attachment was scrubbed...
   2198 Name: 0001-always-apply-label-sent-to-messages-in-sentmanager.patch
   2199 Type: application/octet-stream
   2200 Size: 689 bytes
   2201 Desc: not available
   2202 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090906/2f2c39fa/attachment.obj>
   2203 -------------- next part --------------
   2204 A non-text attachment was scrubbed...
   2205 Name: signature.asc
   2206 Type: application/pgp-signature
   2207 Size: 189 bytes
   2208 Desc: not available
   2209 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090906/2f2c39fa/attachment.bin>
   2210 
   2211 From nicolas.pouillard@gmail.com  Sun Sep  6 15:43:06 2009
   2212 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   2213 Date: Sun, 06 Sep 2009 21:43:06 +0200
   2214 Subject: [sup-talk] [PATCH] Add 'a' and 'd' keybindings to
   2215 	thread-view-mode to archive/delete current thread
   2216 In-Reply-To: <1252000831-sup-9922@masanjin.net>
   2217 References: <1251325542-sup-3105@yoom.home.cworth.org>
   2218 	<1252000831-sup-9922@masanjin.net>
   2219 Message-ID: <1252266137-sup-4139@peray>
   2220 
   2221 Excerpts from William Morgan's message of Thu Sep 03 20:06:55 +0200 2009:
   2222 > Reformatted excerpts from Carl Worth's message of 2009-08-26:
   2223 > > These behave identically to the existing ",a" and ",d" commands, (that
   2224 > > is they archive or delete the current thread and then view the next).
   2225 > 
   2226 > Sorry it's taken me so long to look at this. Thanks for the patch!
   2227 > 
   2228 > I'm curious what other people think about this. On the one hand, it's
   2229 > only additional keybindings, so it's not going to adversely affect
   2230 > anyone. On the other hand, there is a nice balance with the ".", ","
   2231 > and "]" commands which this disrupts, and it can't be extended to the
   2232 > other commands from thread-index-mode. And on the third hand, I'm happy
   2233 > to have keybinding hooks.
   2234 > 
   2235 > I guess if most people primarily closes their thread-view-modes using
   2236 > ",a" and ",d", then I'm fine with this.
   2237 
   2238 I personally do prefer ]a and ]d, to read mail in the chronological order.
   2239 
   2240 -- 
   2241 Nicolas Pouillard
   2242 http://nicolaspouillard.fr
   2243 
   2244 From michael@content-space.de  Sun Sep  6 17:04:22 2009
   2245 From: michael@content-space.de (Michael Hamann)
   2246 Date: Sun,  6 Sep 2009 23:04:22 +0200
   2247 Subject: [sup-talk] [PATCH] sort labels in the dump
   2248 Message-ID: <1252271062-8775-1-git-send-email-michael@content-space.de>
   2249 
   2250 Sorting labels in the dump is useful when you e.g. want to keep track of
   2251 your dump using an incremental backup system that records diffs, with
   2252 this patch lines in the dump will only change when there is a real
   2253 change and no longer just because the random order of the labels
   2254 changes.
   2255 ---
   2256  bin/sup-dump |    2 +-
   2257  1 files changed, 1 insertions(+), 1 deletions(-)
   2258 
   2259 diff --git a/bin/sup-dump b/bin/sup-dump
   2260 index 8b5bf07..7b33be5 100755
   2261 --- a/bin/sup-dump
   2262 +++ b/bin/sup-dump
   2263 @@ -26,5 +26,5 @@ Redwood::SourceManager.init
   2264  index.load
   2265  
   2266  index.each_message :load_spam => true, :load_deleted => true, :load_killed => true do |m|
   2267 -  puts "#{m.id} (#{m.labels.to_a * ' '})"
   2268 +  puts "#{m.id} (#{m.labels.to_a.sort_by { |l| l.to_s } * ' '})"
   2269  end
   2270 -- 
   2271 1.6.4.2
   2272 
   2273 
   2274 From nicolas.pouillard@gmail.com  Mon Sep  7 07:03:43 2009
   2275 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   2276 Date: Mon, 07 Sep 2009 13:03:43 +0200
   2277 Subject: [sup-talk] [PATCH] sort labels in the dump
   2278 In-Reply-To: <1252271062-8775-1-git-send-email-michael@content-space.de>
   2279 References: <1252271062-8775-1-git-send-email-michael@content-space.de>
   2280 Message-ID: <1252321409-sup-2683@peray>
   2281 
   2282 Excerpts from Michael Hamann's message of Sun Sep 06 23:04:22 +0200 2009:
   2283 > Sorting labels in the dump is useful when you e.g. want to keep track of
   2284 > your dump using an incremental backup system that records diffs, with
   2285 > this patch lines in the dump will only change when there is a real
   2286 > change and no longer just because the random order of the labels
   2287 > changes.
   2288 
   2289 +1 for this change.
   2290 
   2291 -- 
   2292 Nicolas Pouillard
   2293 http://nicolaspouillard.fr
   2294 
   2295 From richard@infoarts.info  Mon Sep  7 07:47:53 2009
   2296 From: richard@infoarts.info (Richard Sandilands)
   2297 Date: Mon, 7 Sep 2009 21:47:53 +1000
   2298 Subject: [sup-talk] ArgumentError from thread: poll after loading inbox
   2299 Message-ID: <2e8d08f0909070447u73d6d2efq8eca89f229f890ed@mail.gmail.com>
   2300 
   2301 Am tracking 'next' branch and moved to Xapian earlier today.
   2302 
   2303 I had Sup running when I slept my OS X laptop by shutting the lid.
   2304 Upon awakening, Sup raised the following error. Upon trying to run Sup
   2305 again from the prompt, the same error re-occurs:
   2306 
   2307 I'm populating my local Maildirs using getmail from Gmail via POP.
   2308 
   2309 ===========
   2310 --- ArgumentError from thread: poll after loading inbox
   2311 expecting a symbol
   2312 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/label.rb:64:in `<<'
   2313 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/util.rb:520:in `send'
   2314 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/util.rb:520:in `method_missing'
   2315 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/xapian_index.rb:114:in
   2316 `sync_message'
   2317 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:in
   2318 `each'
   2319 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:in
   2320 `each_key'
   2321 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:in
   2322 `each'
   2323 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/xapian_index.rb:114:in
   2324 `sync_message'
   2325 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/xapian_index.rb:87:in `add_message'
   2326 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/util.rb:520:in `send'
   2327 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/util.rb:520:in `method_missing'
   2328 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/poll.rb:166:in `add_new_message'
   2329 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/poll.rb:110:in `do_poll'
   2330 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/poll.rb:152:in `each_message_from'
   2331 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/maildir.rb:160:in `each'
   2332 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/maildir.rb:157:in `upto'
   2333 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/maildir.rb:157:in `each'
   2334 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/util.rb:560:in `send'
   2335 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/util.rb:560:in `__pass'
   2336 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/util.rb:547:in `method_missing'
   2337 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/poll.rb:140:in `each_message_from'
   2338 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/poll.rb:93:in `do_poll'
   2339 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/poll.rb:81:in `each'
   2340 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/poll.rb:81:in `do_poll'
   2341 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/poll.rb:80:in `synchronize'
   2342 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/poll.rb:80:in `do_poll'
   2343 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/util.rb:520:in `send'
   2344 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/util.rb:520:in `method_missing'
   2345 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/modes/poll-mode.rb:15:in `poll'
   2346 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/poll.rb:48:in `poll'
   2347 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/util.rb:520:in `send'
   2348 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/util.rb:520:in `method_missing'
   2349 /Users/richard/src/mainline/bin/sup:196
   2350 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup.rb:77:in `reporting_thread'
   2351 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup.rb:75:in `initialize'
   2352 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup.rb:75:in `new'
   2353 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup.rb:75:in `reporting_thread'
   2354 /Users/richard/src/mainline/bin/sup:196
   2355 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:669:in
   2356 `call'
   2357 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:669:in
   2358 `__unprotected_load_threads'
   2359 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:610:in
   2360 `call'
   2361 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:610:in
   2362 `load_n_threads_background'
   2363 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup.rb:77:in `reporting_thread'
   2364 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup.rb:75:in `initialize'
   2365 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup.rb:75:in `new'
   2366 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup.rb:75:in `reporting_thread'
   2367 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:608:in
   2368 `load_n_threads_background'
   2369 /Library/Ruby/Gems/1.8/gems/sup-999/lib/sup/modes/thread-index-mode.rb:679:in
   2370 `__unprotected_load_threads'
   2371 (eval):12:in `load_threads'
   2372 /Users/richard/src/mainline/bin/sup:196
   2373 ==============
   2374 
   2375 -- 
   2376 Richard
   2377 
   2378 From andrew@pimlott.net  Mon Sep  7 13:04:50 2009
   2379 From: andrew@pimlott.net (Andrew Pimlott)
   2380 Date: Mon, 7 Sep 2009 10:04:50 -0700
   2381 Subject: [sup-talk] sup-sync and xapian memory usage
   2382 Message-ID: <20090907170450.GO14010@pimlott.net>
   2383 
   2384 Last time I tried to use sup[1], I posted about sup-sync crashing with
   2385 various symptoms of memory exhaustion[2].  I've tried again (using git
   2386 mainline), with similar results, but now I have a bit more to say about
   2387 it.
   2388 
   2389 I am running on a fairly low-memory virtual machine.  I think some of
   2390 the variability in what I was seeing before had to do with what other
   2391 things were running.  Sorry about not being aware of this before.  In
   2392 the following, I have pretty well controlled for other system memory
   2393 use.  All of these tests are done on the same mbox with all indices
   2394 cleared.
   2395 
   2396 Some of the failures I see are out of memory when running gpg
   2397 ("Errno::ENOMEM Exception: Cannot allocate memory - /usr/bin/gpg" ...).
   2398 I stopped at that point in the debugger and found that at this point,
   2399 the ruby backtick operator fails the same way on any command.  Using
   2400 strace, I saw a failure in clone:
   2401 
   2402 20528 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7cb3908) = -1 ENOMEM (Cannot allocate memory)
   2403 
   2404 top reports 2.5M of physical and 30M of swap free, so I don't really
   2405 know why clone fails, but I guess there's not much you can do about
   2406 that.
   2407 
   2408 Other failures were the result of sup blowing up on messages with large
   2409 attachments.  sup's memory use is many times the attachment size.
   2410 Testing on an mbox with a single message with 4 ~5M (encoded size)
   2411 attachments (total file size ~21M), sup goes up to ~150M.  Accounting
   2412 for baseline, that's about 6 times the file size.  I hope that can be
   2413 improved.  FWIW, mutt never seems to try to load a whole attachment into
   2414 memory.
   2415 
   2416 Using the ferret index, the memory (virtual as reported by Linux)
   2417 behaviour of sup-sync is pretty good.  It starts out 25M and levels out
   2418 around 31M.  It spikes from time to time, presumably because of large
   2419 messages, but it comes right back.  After processing the last message,
   2420 it uses another 10M to finish up.
   2421 
   2422 Using the xapian index, things are different.  It starts at 32M and
   2423 steadily climbs to 77M after ~3500 messages, or around 1M every 100
   2424 messages.  It does seem to climb faster at first and then more slowly.
   2425 Either xapian is keeping a cache (but some searches suggest it doesn't),
   2426 it's leaking memory, or it's allocating memory in a way that the the
   2427 allocator can't reclaim the VM space.  Any ideas?
   2428 
   2429 BTW, is there really no way to ask for ruby's heap size with (unpatched)
   2430 ruby 1.8?
   2431 
   2432 Andrew
   2433 
   2434 [1] This is about the fourth time.  I seem to be easily discouraged.
   2435 [2] http://rubyforge.org/pipermail/sup-talk/2009-May/002171.html
   2436 
   2437 From bwalton@artsci.utoronto.ca  Mon Sep  7 14:14:41 2009
   2438 From: bwalton@artsci.utoronto.ca (Ben Walton)
   2439 Date: Mon, 07 Sep 2009 14:14:41 -0400
   2440 Subject: [sup-talk] sup-sync and xapian memory usage
   2441 In-Reply-To: <20090907170450.GO14010@pimlott.net>
   2442 References: <20090907170450.GO14010@pimlott.net>
   2443 Message-ID: <1252347051-sup-135@ntdws12.chass.utoronto.ca>
   2444 
   2445 Excerpts from Andrew Pimlott's message of Mon Sep 07 13:04:50 -0400 2009:
   2446 
   2447 > I am running on a fairly low-memory virtual machine.  I think some of
   2448 > the variability in what I was seeing before had to do with what
   2449 > other
   2450 
   2451 I'm running sup on real hardware w/1GB physical ram.
   2452 
   2453 > things were running.  Sorry about not being aware of this before.  In
   2454 > the following, I have pretty well controlled for other system memory
   2455 > use.  All of these tests are done on the same mbox with all indices
   2456 > cleared.
   2457 > 
   2458 > Some of the failures I see are out of memory when running gpg
   2459 > ("Errno::ENOMEM Exception: Cannot allocate memory - /usr/bin/gpg" ...).
   2460 > I stopped at that point in the debugger and found that at this point,
   2461 > the ruby backtick operator fails the same way on any command.  Using
   2462 > strace, I saw a failure in clone:
   2463 
   2464 I found sup crashed this morning too with an ENOMEM on a gpg
   2465 operation.  I thought I may actually have been at the memory
   2466 exhaustion point normally though as I run screen and tend to leave
   2467 lots of sessions going all the time.
   2468 
   2469 > Using the xapian index, things are different.  It starts at 32M and
   2470 > steadily climbs to 77M after ~3500 messages, or around 1M every 100
   2471 > messages.  It does seem to climb faster at first and then more
   2472 > slowly.
   2473 
   2474 I've never paid attention to this before, but currently, my sup
   2475 process (running for about 6 hours now) looks like it's using ~77M
   2476 virtual with 59 of that resident.
   2477 
   2478 This has only happened to me once, but since you reported it, I
   2479 thought I'd chime in with some extra data.
   2480 
   2481 HTH.
   2482 -Ben
   2483 -- 
   2484 Ben Walton
   2485 Systems Programmer - CHASS
   2486 University of Toronto
   2487 C:416.407.5610 | W:416.978.4302
   2488 
   2489 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   2490 Contact me to arrange for a CAcert assurance meeting.
   2491 -------------- next part --------------
   2492 A non-text attachment was scrubbed...
   2493 Name: signature.asc
   2494 Type: application/pgp-signature
   2495 Size: 189 bytes
   2496 Desc: not available
   2497 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090907/4318eb38/attachment.bin>
   2498 
   2499 From rlane@club.cc.cmu.edu  Mon Sep  7 14:33:06 2009
   2500 From: rlane@club.cc.cmu.edu (Rich Lane)
   2501 Date: Mon, 07 Sep 2009 14:33:06 -0400
   2502 Subject: [sup-talk] sup-sync and xapian memory usage
   2503 In-Reply-To: <20090907170450.GO14010@pimlott.net>
   2504 References: <20090907170450.GO14010@pimlott.net>
   2505 Message-ID: <1252348258-sup-415@zyrg.net>
   2506 
   2507 Excerpts from Andrew Pimlott's message of Mon Sep 07 13:04:50 -0400 2009:
   2508 > Using the xapian index, things are different.  It starts at 32M and
   2509 > steadily climbs to 77M after ~3500 messages, or around 1M every 100
   2510 > messages.  It does seem to climb faster at first and then more slowly.
   2511 > Either xapian is keeping a cache (but some searches suggest it doesn't),
   2512 > it's leaking memory, or it's allocating memory in a way that the the
   2513 > allocator can't reclaim the VM space.  Any ideas?
   2514 
   2515 Xapian keeps writes buffered in memory. Try setting the environment
   2516 variable XAPIAN_FLUSH_THRESHOLD to a smaller value (the default is 10000
   2517 documents) and see if that helps.
   2518 
   2519 From bwalton@artsci.utoronto.ca  Mon Sep  7 15:11:58 2009
   2520 From: bwalton@artsci.utoronto.ca (Ben Walton)
   2521 Date: Mon, 07 Sep 2009 15:11:58 -0400
   2522 Subject: [sup-talk] sup-sync and xapian memory usage
   2523 In-Reply-To: <1252348258-sup-415@zyrg.net>
   2524 References: <20090907170450.GO14010@pimlott.net> <1252348258-sup-415@zyrg.net>
   2525 Message-ID: <1252350686-sup-8800@ntdws12.chass.utoronto.ca>
   2526 
   2527 Excerpts from Rich Lane's message of Mon Sep 07 14:33:06 -0400 2009:
   2528 > Xapian keeps writes buffered in memory. Try setting the environment
   2529 > variable XAPIAN_FLUSH_THRESHOLD to a smaller value (the default is 10000
   2530 > documents) and see if that helps.
   2531 
   2532 Does this explain the lag at shutdown?  Xapian is flushing writes to
   2533 disk?
   2534 
   2535 -Ben
   2536 -- 
   2537 Ben Walton
   2538 Systems Programmer - CHASS
   2539 University of Toronto
   2540 C:416.407.5610 | W:416.978.4302
   2541 
   2542 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   2543 Contact me to arrange for a CAcert assurance meeting.
   2544 -------------- next part --------------
   2545 A non-text attachment was scrubbed...
   2546 Name: signature.asc
   2547 Type: application/pgp-signature
   2548 Size: 189 bytes
   2549 Desc: not available
   2550 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090907/b8fec298/attachment.bin>
   2551 
   2552 From rlane@club.cc.cmu.edu  Mon Sep  7 15:15:08 2009
   2553 From: rlane@club.cc.cmu.edu (Rich Lane)
   2554 Date: Mon, 07 Sep 2009 15:15:08 -0400
   2555 Subject: [sup-talk] sup-sync and xapian memory usage
   2556 In-Reply-To: <1252350686-sup-8800@ntdws12.chass.utoronto.ca>
   2557 References: <20090907170450.GO14010@pimlott.net> <1252348258-sup-415@zyrg.net>
   2558 	<1252350686-sup-8800@ntdws12.chass.utoronto.ca>
   2559 Message-ID: <1252350896-sup-5026@zyrg.net>
   2560 
   2561 Excerpts from Ben Walton's message of Mon Sep 07 15:11:58 -0400 2009:
   2562 > Excerpts from Rich Lane's message of Mon Sep 07 14:33:06 -0400 2009:
   2563 > > Xapian keeps writes buffered in memory. Try setting the environment
   2564 > > variable XAPIAN_FLUSH_THRESHOLD to a smaller value (the default is 10000
   2565 > > documents) and see if that helps.
   2566 > 
   2567 > Does this explain the lag at shutdown?  Xapian is flushing writes to
   2568 > disk?
   2569 
   2570 Yep.
   2571 
   2572 From andrew@pimlott.net  Mon Sep  7 15:26:11 2009
   2573 From: andrew@pimlott.net (Andrew Pimlott)
   2574 Date: Mon, 7 Sep 2009 12:26:11 -0700
   2575 Subject: [sup-talk] sup-sync and xapian memory usage
   2576 In-Reply-To: <1252348258-sup-415@zyrg.net>
   2577 References: <20090907170450.GO14010@pimlott.net> <1252348258-sup-415@zyrg.net>
   2578 Message-ID: <20090907192611.GQ14010@pimlott.net>
   2579 
   2580 On Mon, Sep 07, 2009 at 02:33:06PM -0400, Rich Lane wrote:
   2581 > Xapian keeps writes buffered in memory. Try setting the environment
   2582 > variable XAPIAN_FLUSH_THRESHOLD to a smaller value (the default is 10000
   2583 > documents) and see if that helps.
   2584 
   2585 Thanks--it was hard for me to find that kind of information.  I first
   2586 tried setting XAPIAN_FLUSH_THRESHOLD to 1, and sup-sync ran slowly and
   2587 just kept getting slower:
   2588 
   2589 ## read 139m (about 7%) @ 9.2m/s. 0:00:15 elapsed, about 0:03:21 remaining
   2590 ...
   2591 ## read 1238m (about 35%) @ 3.1m/s. 0:06:36 elapsed, about 0:12:08 remaining
   2592 
   2593 I stopped at this point because it was taking too long.  The memory use
   2594 seemed stable, but that could have been because it was making such slow
   2595 progress.  I guess xapian gets a lot slower writing as the db grows?
   2596 That's a bit discouraging.  Using ferret, sup-sync only dropped from
   2597 28.1m/s to 27.3m/s during its run.  For reference, when I didn't set
   2598 XAPIAN_FLUSH_THRESHOLD, I was getting 35-36m/s until it ran out of
   2599 memory.
   2600 
   2601 I then set XAPIAN_FLUSH_THRESHOLD to 100 and got more reasonable
   2602 results.  It started at 25.6m/s and slowed to 17.8m/s.  It stabilized at
   2603 around 41M virtual memory used and finished successfuly.  I also note
   2604 that the memory use didn't jump during the finish-up phase ("Deleting
   2605 missing messages") as it had with ferret.
   2606 
   2607 Finally, I set XAPIAN_FLUSH_THRESHOLD to 1000.  It started at 34.6m/s
   2608 and dropped to 29.8m/s., stabilized at around 51M virtual memory, and
   2609 finished successfully.  In this case, it stays faster than ferret, but
   2610 it sill bugs me that xapian still slows down while ferret doesn't.
   2611 
   2612 So I conclude... I don't know what I conclude.  Letting xapian use a lot
   2613 of memory sure helps its performance.  And a big sup-sync should only
   2614 have to be done rarely.  So maybe just document that those on low-memory
   2615 systems should consider using XAPIAN_FLUSH_THRESHOLD during sup-sync.
   2616 
   2617 Thanks again for your help!
   2618 
   2619 Andrew
   2620 
   2621 From infoarts@gmail.com  Thu Sep  3 19:02:12 2009
   2622 From: infoarts@gmail.com (infoarts at gmail.com)
   2623 Date: Fri, 4 Sep 2009 09:02:12 +1000
   2624 Subject: [sup-talk] Can't add a local maildir source
   2625 Message-ID: <2e8d08f0909031602r37472cdcjcf4826f7cd2b48c7@mail.gmail.com>
   2626 
   2627 Hi there
   2628 
   2629 I'm tracking next via git and am having trouble adding a mail source.
   2630 
   2631 I've removed any existing ~/.sup directory, then run sup-config and
   2632 all is OK until sup-config runs sup-add maildir when I get this
   2633 message:
   2634 
   2635 "Ok, trying to run "/Users/richard/src/sup/bin/sup-add
   2636 maildir:/Users/richard/mail/gmail/INBOX"...
   2637 /Users/richard/src/sup/lib/sup/index.rb:177: undefined method `[]' for
   2638 false:FalseClass (NoMethodError)
   2639 	from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
   2640 `gem_original_require'
   2641 	from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
   2642 	from /Users/richard/src/sup/lib/sup.rb:277
   2643 	from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
   2644 `gem_original_require'
   2645 	from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
   2646 	from /Users/richard/src/sup/bin/sup-add:7
   2647 
   2648 So I'm thinking this might have something to do with my environment
   2649 setup on OS X.
   2650 
   2651 I'm running sup from ~/src/sup and am mirroring my gmail mail to
   2652 ~/mail/gmail via offlineimap - this all seems fine.
   2653 
   2654 I've  added: 'export RUBYLIB="~/src/sup/lib" ' to my .bash_profile but
   2655 it still fails on the 'require "sup"' line in sup-add
   2656 
   2657 I've checked that I have all the required gem dependencies and that
   2658 seems fine too.
   2659 
   2660 And I installed the sup-999 gems.
   2661 
   2662 What could I be missing here?
   2663 
   2664 Any clues appreciated...
   2665 
   2666 -- 
   2667 Richard
   2668 
   2669 From eg@gaute.vetsj.com  Mon Sep  7 12:21:35 2009
   2670 From: eg@gaute.vetsj.com (Gaute Hope)
   2671 Date: Mon, 07 Sep 2009 18:21:35 +0200
   2672 Subject: [sup-talk] lbdb module for sup
   2673 Message-ID: <1252340369-sup-9611@qwerzila>
   2674 
   2675 Greetings,
   2676 
   2677 attached is a lbdb (http://sup.rubyforge.org/wiki/wiki.pl?LbdbIntegration)
   2678 module for the sup contact list. Useful if you want access to the sup
   2679 contact list from Vim.
   2680 
   2681 put in .lbdb/modules and add .lbdb/modules to your MODULES_PATH in
   2682 .lbdbrc aswell as adding the m_sup module to the modules list.
   2683 
   2684 - gaute
   2685 -------------- next part --------------
   2686 A non-text attachment was scrubbed...
   2687 Name: m_sup
   2688 Type: application/octet-stream
   2689 Size: 289 bytes
   2690 Desc: not available
   2691 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090907/8dd9e60d/attachment.obj>
   2692 -------------- next part --------------
   2693 A non-text attachment was scrubbed...
   2694 Name: signature.asc
   2695 Type: application/pgp-signature
   2696 Size: 198 bytes
   2697 Desc: not available
   2698 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090907/8dd9e60d/attachment.bin>
   2699 
   2700 From isra@herraiz.org  Mon Sep  7 18:46:50 2009
   2701 From: isra@herraiz.org (Israel Herraiz)
   2702 Date: Tue, 08 Sep 2009 00:46:50 +0200
   2703 Subject: [sup-talk] [PATCH] Identify list messages by list-id if
   2704 	list-post is not present
   2705 In-Reply-To: <1252072500-sup-8128@masanjin.net>
   2706 References: <1251192579-sup-1849@elly> <1251773879-sup-5227@masanjin.net>
   2707 	<1251794935-sup-3802@elly> <1252072500-sup-8128@masanjin.net>
   2708 Message-ID: <1252363563-sup-1774@elly>
   2709 
   2710 Excerpts from William Morgan's message of Fri Sep 04 15:56:41 +0200 2009:
   2711 > Actually you're right. I think I prefer your patch. But based on the
   2712 > code, it seems like reply-mode would crash if it got a message that
   2713 > claims it's a list message but doesn't have a list address. Does it
   2714 > actually work?
   2715 
   2716 Umm. Yes, you are right. It fails because there is no list
   2717 address. Let me figure out another solution for this, I will send
   2718 another patch to the list.
   2719 
   2720 Cheers,
   2721 Israel
   2722 
   2723 From wmorgan-sup@masanjin.net  Tue Sep  8 08:25:50 2009
   2724 From: wmorgan-sup@masanjin.net (William Morgan)
   2725 Date: Tue, 08 Sep 2009 05:25:50 -0700
   2726 Subject: [sup-talk] [PATCH] Identify list messages by list-id if
   2727 	list-post is not present
   2728 In-Reply-To: <1252363563-sup-1774@elly>
   2729 References: <1251192579-sup-1849@elly> <1251773879-sup-5227@masanjin.net>
   2730 	<1251794935-sup-3802@elly> <1252072500-sup-8128@masanjin.net>
   2731 	<1252363563-sup-1774@elly>
   2732 Message-ID: <1252412603-sup-9617@masanjin.net>
   2733 
   2734 Reformatted excerpts from Israel Herraiz's message of 2009-09-07:
   2735 > Umm. Yes, you are right. It fails because there is no list
   2736 > address. Let me figure out another solution for this, I will send
   2737 > another patch to the list.
   2738 
   2739 We need to figure out what the right behavior should be when replying to
   2740 a message that you know is a list message, but where you don't know the
   2741 list address. If there's a reliable way of extracting the list address
   2742 from another header (From?), we can use that, but I suspect there isn't.
   2743 If there isn't a reliable wa, then maybe the original behavior is fine
   2744 (don't treat it specially at all).
   2745 -- 
   2746 William <wmorgan-sup at masanjin.net>
   2747 
   2748 From isra@herraiz.org  Tue Sep  8 08:41:51 2009
   2749 From: isra@herraiz.org (Israel Herraiz)
   2750 Date: Tue, 08 Sep 2009 14:41:51 +0200
   2751 Subject: [sup-talk] [PATCH] Identify list messages by list-id if
   2752 	list-post is not present
   2753 In-Reply-To: <1252412603-sup-9617@masanjin.net>
   2754 References: <1251192579-sup-1849@elly> <1251773879-sup-5227@masanjin.net>
   2755 	<1251794935-sup-3802@elly> <1252072500-sup-8128@masanjin.net>
   2756 	<1252363563-sup-1774@elly> <1252412603-sup-9617@masanjin.net>
   2757 Message-ID: <1252413599-sup-7371@elly>
   2758 
   2759 Excerpts from William Morgan's message of Tue Sep 08 14:25:50 +0200 2009:
   2760 > We need to figure out what the right behavior should be when replying to
   2761 > a message that you know is a list message, but where you don't know the
   2762 > list address. If there's a reliable way of extracting the list address
   2763 > from another header (From?), we can use that, but I suspect there isn't.
   2764 > If there isn't a reliable wa, then maybe the original behavior is fine
   2765 > (don't treat it specially at all).
   2766 
   2767 Well, yes, after all, the broken thing here is the list, that does not
   2768 have a list-post header. So I guess that what should be fixed is that
   2769 list, not Sup :-).
   2770 
   2771 I did not realize about the list address bug before sending the patch,
   2772 that's why I asked it to be merged. However, I am afraid you are
   2773 right, and I think it is worthless to implement this behavior.
   2774 
   2775 Cheers,
   2776 Israel
   2777 
   2778 From wmorgan-sup@masanjin.net  Tue Sep  8 09:15:49 2009
   2779 From: wmorgan-sup@masanjin.net (William Morgan)
   2780 Date: Tue, 08 Sep 2009 06:15:49 -0700
   2781 Subject: [sup-talk] sup-sync and xapian memory usage
   2782 In-Reply-To: <20090907170450.GO14010@pimlott.net>
   2783 References: <20090907170450.GO14010@pimlott.net>
   2784 Message-ID: <1252415545-sup-3158@masanjin.net>
   2785 
   2786 Reformatted excerpts from Andrew Pimlott's message of 2009-09-07:
   2787 > Last time I tried to use sup[1], I posted about sup-sync crashing with
   2788 > various symptoms of memory exhaustion[2].
   2789 
   2790 Excellent resolution to that thread.
   2791 
   2792 > sup's memory use is many times the attachment size.  Testing on an
   2793 > mbox with a single message with 4 ~5M (encoded size) attachments
   2794 > (total file size ~21M), sup goes up to ~150M.  Accounting for
   2795 > baseline, that's about 6 times the file size.  I hope that can be
   2796 > improved.
   2797 
   2798 Sup uses the unmaintained RubyMail for MIME handling. I'm sure this
   2799 behavior can be improved if you can find someone who wants to write some
   2800 MIME handling code. Personally that's near the bottom of my list.
   2801 -- 
   2802 William <wmorgan-sup at masanjin.net>
   2803 
   2804 From wmorgan-sup@masanjin.net  Tue Sep  8 09:39:12 2009
   2805 From: wmorgan-sup@masanjin.net (William Morgan)
   2806 Date: Tue, 08 Sep 2009 06:39:12 -0700
   2807 Subject: [sup-talk] sup-sync and xapian memory usage
   2808 In-Reply-To: <1252350896-sup-5026@zyrg.net>
   2809 References: <20090907170450.GO14010@pimlott.net> <1252348258-sup-415@zyrg.net>
   2810 	<1252350686-sup-8800@ntdws12.chass.utoronto.ca>
   2811 	<1252350896-sup-5026@zyrg.net>
   2812 Message-ID: <1252415772-sup-7288@masanjin.net>
   2813 
   2814 Reformatted excerpts from Rich Lane's message of 2009-09-07:
   2815 > Excerpts from Ben Walton's message of Mon Sep 07 15:11:58 -0400 2009:
   2816 > > Excerpts from Rich Lane's message of Mon Sep 07 14:33:06 -0400 2009:
   2817 > > > Xapian keeps writes buffered in memory. Try setting the
   2818 > > > environment variable XAPIAN_FLUSH_THRESHOLD to a smaller value
   2819 > > > (the default is 10000 documents) and see if that helps.
   2820 > > 
   2821 > > Does this explain the lag at shutdown?  Xapian is flushing writes to
   2822 > > disk?
   2823 > 
   2824 > Yep.
   2825 
   2826 Good to know. Is there a way to force a flush in Xapian? Just curious.
   2827 The delay is a little scary sometimes. Maybe it just needs an
   2828 appropriate message somewhere.
   2829 -- 
   2830 William <wmorgan-sup at masanjin.net>
   2831 
   2832 From bwalton@artsci.utoronto.ca  Tue Sep  8 09:58:15 2009
   2833 From: bwalton@artsci.utoronto.ca (Ben Walton)
   2834 Date: Tue, 08 Sep 2009 09:58:15 -0400
   2835 Subject: [sup-talk] sup-sync and xapian memory usage
   2836 In-Reply-To: <1252415772-sup-7288@masanjin.net>
   2837 References: <20090907170450.GO14010@pimlott.net> <1252348258-sup-415@zyrg.net>
   2838 	<1252350686-sup-8800@ntdws12.chass.utoronto.ca>
   2839 	<1252350896-sup-5026@zyrg.net> <1252415772-sup-7288@masanjin.net>
   2840 Message-ID: <1252418267-sup-8800@ntdws12.chass.utoronto.ca>
   2841 
   2842 Excerpts from William Morgan's message of Tue Sep 08 09:39:12 -0400 2009:
   2843 > Good to know. Is there a way to force a flush in Xapian? Just curious.
   2844 > The delay is a little scary sometimes. Maybe it just needs an
   2845 > appropriate message somewhere.
   2846 
   2847 ...even just a message indicating that xapian is flushing the buffered
   2848 writes would be a good thing.
   2849 
   2850 -Ben
   2851 -- 
   2852 Ben Walton
   2853 Systems Programmer - CHASS
   2854 University of Toronto
   2855 C:416.407.5610 | W:416.978.4302
   2856 
   2857 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   2858 Contact me to arrange for a CAcert assurance meeting.
   2859 -------------- next part --------------
   2860 A non-text attachment was scrubbed...
   2861 Name: signature.asc
   2862 Type: application/pgp-signature
   2863 Size: 189 bytes
   2864 Desc: not available
   2865 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090908/fa461b0e/attachment.bin>
   2866 
   2867 From rgh@roughage.com.au  Tue Sep  8 10:27:10 2009
   2868 From: rgh@roughage.com.au (Richard Heycock)
   2869 Date: Wed, 09 Sep 2009 00:27:10 +1000
   2870 Subject: [sup-talk] sup-sync and xapian memory usage
   2871 In-Reply-To: <1252415772-sup-7288@masanjin.net>
   2872 References: <20090907170450.GO14010@pimlott.net> <1252348258-sup-415@zyrg.net>
   2873 	<1252350686-sup-8800@ntdws12.chass.utoronto.ca>
   2874 	<1252350896-sup-5026@zyrg.net> <1252415772-sup-7288@masanjin.net>
   2875 Message-ID: <1252419716-sup-3031@roughage.com.au>
   2876 
   2877 Excerpts from William Morgan's message of Tue Sep 08 23:39:12 +1000 2009:
   2878 > Reformatted excerpts from Rich Lane's message of 2009-09-07:
   2879 > > Excerpts from Ben Walton's message of Mon Sep 07 15:11:58 -0400 2009:
   2880 > > > Excerpts from Rich Lane's message of Mon Sep 07 14:33:06 -0400 2009:
   2881 > > > > Xapian keeps writes buffered in memory. Try setting the
   2882 > > > > environment variable XAPIAN_FLUSH_THRESHOLD to a smaller value
   2883 > > > > (the default is 10000 documents) and see if that helps.
   2884 > > > 
   2885 > > > Does this explain the lag at shutdown?  Xapian is flushing writes to
   2886 > > > disk?
   2887 > > 
   2888 > > Yep.
   2889 > 
   2890 > Good to know. Is there a way to force a flush in Xapian? Just curious.
   2891 > The delay is a little scary sometimes. Maybe it just needs an
   2892 > appropriate message somewhere.
   2893 
   2894 Xapian, by default, flushes every 10 000 documents which in email terms
   2895 is a pretty long time! You can force a flush but it does increase your
   2896 IO significantly. Having said that emails are fairly small so flushing
   2897 every 10 or 20 emails might not be too bad.
   2898 
   2899 Maybe it could be dynamic, if there is a high volume of incoming emails
   2900 flushing could be done after 50 or 100 emails or a timer based flush
   2901 might be easier.
   2902 
   2903 rgh
   2904 
   2905 From nicolas.pouillard@gmail.com  Tue Sep  8 11:14:22 2009
   2906 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   2907 Date: Tue, 08 Sep 2009 17:14:22 +0200
   2908 Subject: [sup-talk] sup-sync and xapian memory usage
   2909 In-Reply-To: <1252419716-sup-3031@roughage.com.au>
   2910 References: <20090907170450.GO14010@pimlott.net> <1252348258-sup-415@zyrg.net>
   2911 	<1252350686-sup-8800@ntdws12.chass.utoronto.ca>
   2912 	<1252350896-sup-5026@zyrg.net> <1252415772-sup-7288@masanjin.net>
   2913 	<1252419716-sup-3031@roughage.com.au>
   2914 Message-ID: <1252422827-sup-805@peray>
   2915 
   2916 Excerpts from Richard Heycock's message of Tue Sep 08 16:27:10 +0200 2009:
   2917 > Excerpts from William Morgan's message of Tue Sep 08 23:39:12 +1000 2009:
   2918 > > Reformatted excerpts from Rich Lane's message of 2009-09-07:
   2919 > > > Excerpts from Ben Walton's message of Mon Sep 07 15:11:58 -0400 2009:
   2920 > > > > Excerpts from Rich Lane's message of Mon Sep 07 14:33:06 -0400 2009:
   2921 > > > > > Xapian keeps writes buffered in memory. Try setting the
   2922 > > > > > environment variable XAPIAN_FLUSH_THRESHOLD to a smaller value
   2923 > > > > > (the default is 10000 documents) and see if that helps.
   2924 > > > > 
   2925 > > > > Does this explain the lag at shutdown?  Xapian is flushing writes to
   2926 > > > > disk?
   2927 > > > 
   2928 > > > Yep.
   2929 > > 
   2930 > > Good to know. Is there a way to force a flush in Xapian? Just curious.
   2931 > > The delay is a little scary sometimes. Maybe it just needs an
   2932 > > appropriate message somewhere.
   2933 > 
   2934 > Xapian, by default, flushes every 10 000 documents which in email terms
   2935 > is a pretty long time! You can force a flush but it does increase your
   2936 > IO significantly. Having said that emails are fairly small so flushing
   2937 > every 10 or 20 emails might not be too bad.
   2938 > 
   2939 > Maybe it could be dynamic, if there is a high volume of incoming emails
   2940 > flushing could be done after 50 or 100 emails or a timer based flush
   2941 > might be easier.
   2942 
   2943 Should the '$' command, force a write of the Xapian database?
   2944 
   2945 -- 
   2946 Nicolas Pouillard
   2947 http://nicolaspouillard.fr
   2948 
   2949 From wirtwolff@gmail.com  Tue Sep  8 11:17:18 2009
   2950 From: wirtwolff@gmail.com (Wirt Wolff)
   2951 Date: Tue, 08 Sep 2009 09:17:18 -0600
   2952 Subject: [sup-talk] [PATCH] Add 'a' and 'd' keybindings to
   2953 	thread-view-mode to archive/delete current thread
   2954 In-Reply-To: <1252000831-sup-9922@masanjin.net>
   2955 References: <1251325542-sup-3105@yoom.home.cworth.org>
   2956 	<1252000831-sup-9922@masanjin.net>
   2957 Message-ID: <1252422961-sup-9843@chigamba>
   2958 
   2959 Excerpts from William Morgan's message of Thu Sep 03 12:06:55 -0600 2009:
   2960 > Reformatted excerpts from Carl Worth's message of 2009-08-26:
   2961 > > These behave identically to the existing ",a" and ",d" commands, (that
   2962 > > is they archive or delete the current thread and then view the next).
   2963 >
   2964 > Sorry it's taken me so long to look at this. Thanks for the patch!
   2965 >
   2966 > I'm curious what other people think about this. On the one hand, it's
   2967 > only additional keybindings, so it's not going to adversely affect
   2968 > anyone. On the other hand, there is a nice balance with the ".", ","
   2969 > and "]" commands which this disrupts, and it can't be extended to the
   2970 > other commands from thread-index-mode. And on the third hand, I'm happy
   2971 > to have keybinding hooks.
   2972 >
   2973 > I guess if most people primarily closes their thread-view-modes using
   2974 > ",a" and ",d", then I'm fine with this.
   2975 
   2976 Don't mind having 'a' and 'd' around, but likely won't use them.
   2977 Generally I pass down index with &, A, S, etc. occaisionally reading
   2978 high priority thread, then ]n, ]a etc. back up in thread view.
   2979 
   2980 --
   2981 wmw
   2982 
   2983 From wmorgan-sup@masanjin.net  Tue Sep  8 15:21:47 2009
   2984 From: wmorgan-sup@masanjin.net (William Morgan)
   2985 Date: Tue, 08 Sep 2009 12:21:47 -0700
   2986 Subject: [sup-talk] [PATCH] small sent labels fixup
   2987 In-Reply-To: <1252260470-sup-6960@ntdws12.chass.utoronto.ca>
   2988 References: <1252260470-sup-6960@ntdws12.chass.utoronto.ca>
   2989 Message-ID: <1252437698-sup-9601@masanjin.net>
   2990 
   2991 Reformatted excerpts from Ben Walton's message of 2009-09-06:
   2992 > I still wasn't seeing the sent label applied to things in my maildir.
   2993 > The attached patch restores the behaviour for non sup://sent sent
   2994 > sources.
   2995 
   2996 Applied, thanks!
   2997 -- 
   2998 William <wmorgan-sup at masanjin.net>
   2999 
   3000 From wmorgan-sup@masanjin.net  Tue Sep  8 15:45:32 2009
   3001 From: wmorgan-sup@masanjin.net (William Morgan)
   3002 Date: Tue, 08 Sep 2009 12:45:32 -0700
   3003 Subject: [sup-talk] master branch merge report
   3004 Message-ID: <1252438950-sup-3895@masanjin.net>
   3005 
   3006 On preparation for an 0.9 release, I've merged the following branches
   3007 into master (in case anyone's keeping track!): console-mode,
   3008 reply-all-keybindings, restore-state, logging-tweaks,
   3009 enclosed-message-display-tweaks, hook-local-vars.
   3010 
   3011 If anyone's running master, keep an eye out for changes and problems.
   3012 -- 
   3013 William <wmorgan-sup at masanjin.net>
   3014 
   3015 From nicolas.pouillard@gmail.com  Tue Sep  8 15:51:56 2009
   3016 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   3017 Date: Tue, 08 Sep 2009 21:51:56 +0200
   3018 Subject: [sup-talk] master branch merge report
   3019 In-Reply-To: <1252438950-sup-3895@masanjin.net>
   3020 References: <1252438950-sup-3895@masanjin.net>
   3021 Message-ID: <1252439403-sup-6192@peray>
   3022 
   3023 Excerpts from William Morgan's message of Tue Sep 08 21:45:32 +0200 2009:
   3024 > On preparation for an 0.9 release, I've merged the following branches
   3025 > into master (in case anyone's keeping track!): console-mode,
   3026 > reply-all-keybindings, restore-state, logging-tweaks,
   3027 > enclosed-message-display-tweaks, hook-local-vars.
   3028 > 
   3029 > If anyone's running master, keep an eye out for changes and problems.
   3030 
   3031 Thanks for these reports on the status of branches. They are really precious.
   3032 May ask for more? :) I would like you to also report on the status of what is
   3033 merged in next (or not yet merged in master).
   3034 
   3035 -- 
   3036 Nicolas Pouillard
   3037 http://nicolaspouillard.fr
   3038 
   3039 From wmorgan-sup@masanjin.net  Tue Sep  8 16:05:14 2009
   3040 From: wmorgan-sup@masanjin.net (William Morgan)
   3041 Date: Tue, 08 Sep 2009 13:05:14 -0700
   3042 Subject: [sup-talk] master branch merge report
   3043 In-Reply-To: <1252439403-sup-6192@peray>
   3044 References: <1252438950-sup-3895@masanjin.net> <1252439403-sup-6192@peray>
   3045 Message-ID: <1252440062-sup-8543@masanjin.net>
   3046 
   3047 Reformatted excerpts from Nicolas Pouillard's message of 2009-09-08:
   3048 > Thanks for these reports on the status of branches. They are really
   3049 > precious.  May ask for more? :) I would like you to also report on the
   3050 > status of what is merged in next (or not yet merged in master).
   3051 
   3052 The only branches not merged into master at this point are
   3053 preemptive-loading and alignment-tweaks. This is based on a gut estimate
   3054 of whether they need to bake a little longer.
   3055 
   3056 You can always get a complete report by using git wtf
   3057 (http://git-wt-commit.rubyforge.org/git-wtf). `git wtf -r -s master` and
   3058 `git wtf -r -s next` will show you what's merged into master and next
   3059 respectively.
   3060 
   3061 I've also just merged custom-search-hook into master, with some effort.
   3062 -- 
   3063 William <wmorgan-sup at masanjin.net>
   3064 
   3065 From wmorgan-sup@masanjin.net  Tue Sep  8 16:08:03 2009
   3066 From: wmorgan-sup@masanjin.net (William Morgan)
   3067 Date: Tue, 08 Sep 2009 13:08:03 -0700
   3068 Subject: [sup-talk] [PATCH] Add 'a' and 'd' keybindings to
   3069 	thread-view-mode to archive/delete current thread
   3070 In-Reply-To: <1252422961-sup-9843@chigamba>
   3071 References: <1251325542-sup-3105@yoom.home.cworth.org>
   3072 	<1252000831-sup-9922@masanjin.net> <1252422961-sup-9843@chigamba>
   3073 Message-ID: <1252440374-sup-9813@masanjin.net>
   3074 
   3075 Reformatted excerpts from Wirt Wolff's message of 2009-09-08:
   3076 > Don't mind having 'a' and 'd' around, but likely won't use them.
   3077 
   3078 So far I'm counting 3 yes votes (including patch submitter), 3 "won't
   3079 use them" votes (including me), and no one being offended. I think I'm
   3080 going to apply this.
   3081 -- 
   3082 William <wmorgan-sup at masanjin.net>
   3083 
   3084 From cworth@cworth.org  Tue Sep  8 16:26:45 2009
   3085 From: cworth@cworth.org (Carl Worth)
   3086 Date: Tue, 08 Sep 2009 13:26:45 -0700
   3087 Subject: [sup-talk] [PATCH] Add 'a' and 'd' keybindings to
   3088 	thread-view-mode to archive/delete current thread
   3089 In-Reply-To: <1252266137-sup-4139@peray>
   3090 References: <1251325542-sup-3105@yoom.home.cworth.org>
   3091 	<1252000831-sup-9922@masanjin.net> <1252266137-sup-4139@peray>
   3092 Message-ID: <1252441461-sup-5330@yoom.home.cworth.org>
   3093 
   3094 Excerpts from Nicolas Pouillard's message of Sun Sep 06 12:43:06 -0700 2009:
   3095 > I personally do prefer ]a and ]d, to read mail in the chronological order.
   3096 
   3097 What if there were a way to reverse the sort order for the index view?
   3098 That would then change the meaning of "next" and "previous" and then
   3099 you could use the single letter 'a' and 'd' commands to read your mail
   3100 in chronological order.
   3101 
   3102 Would that make sense? Because that is something I would like to do on
   3103 occasion.
   3104 
   3105 -Carl
   3106 -------------- next part --------------
   3107 A non-text attachment was scrubbed...
   3108 Name: signature.asc
   3109 Type: application/pgp-signature
   3110 Size: 189 bytes
   3111 Desc: not available
   3112 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090908/01fd44fe/attachment.bin>
   3113 
   3114 From nicolas.pouillard@gmail.com  Tue Sep  8 16:28:56 2009
   3115 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   3116 Date: Tue, 08 Sep 2009 22:28:56 +0200
   3117 Subject: [sup-talk] master branch merge report
   3118 In-Reply-To: <1252440062-sup-8543@masanjin.net>
   3119 References: <1252438950-sup-3895@masanjin.net> <1252439403-sup-6192@peray>
   3120 	<1252440062-sup-8543@masanjin.net>
   3121 Message-ID: <1252441390-sup-9847@peray>
   3122 
   3123 Excerpts from William Morgan's message of Tue Sep 08 22:05:14 +0200 2009:
   3124 > Reformatted excerpts from Nicolas Pouillard's message of 2009-09-08:
   3125 > > Thanks for these reports on the status of branches. They are really
   3126 > > precious.  May ask for more? :) I would like you to also report on the
   3127 > > status of what is merged in next (or not yet merged in master).
   3128 > 
   3129 > The only branches not merged into master at this point are
   3130 > preemptive-loading and alignment-tweaks. This is based on a gut estimate
   3131 > of whether they need to bake a little longer.
   3132 
   3133 OK nice.
   3134 
   3135 > You can always get a complete report by using git wtf
   3136 > (http://git-wt-commit.rubyforge.org/git-wtf). `git wtf -r -s master` and
   3137 > `git wtf -r -s next` will show you what's merged into master and next
   3138 > respectively.
   3139 
   3140 I already use git-wtf (thanks for this tool BTW), with still some pain though.
   3141 
   3142 These two commands outputs ~60 lines about dozen of branches. However that's
   3143 mainly due to the fact that I do have private branches.
   3144 
   3145 It would be nice to simply ask differences between to branches in terms of
   3146 merged branches: git wtf mainline/master..mainline/next
   3147 
   3148 > I've also just merged custom-search-hook into master, with some effort.
   3149 
   3150 Thanks
   3151 
   3152 -- 
   3153 Nicolas Pouillard
   3154 http://nicolaspouillard.fr
   3155 
   3156 From nicolas.pouillard@gmail.com  Tue Sep  8 16:33:13 2009
   3157 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   3158 Date: Tue, 08 Sep 2009 22:33:13 +0200
   3159 Subject: [sup-talk] [PATCH] Add 'a' and 'd' keybindings to
   3160 	thread-view-mode to archive/delete current thread
   3161 In-Reply-To: <1252441461-sup-5330@yoom.home.cworth.org>
   3162 References: <1251325542-sup-3105@yoom.home.cworth.org>
   3163 	<1252000831-sup-9922@masanjin.net> <1252266137-sup-4139@peray>
   3164 	<1252441461-sup-5330@yoom.home.cworth.org>
   3165 Message-ID: <1252441854-sup-203@peray>
   3166 
   3167 Excerpts from Carl Worth's message of Tue Sep 08 22:26:45 +0200 2009:
   3168 > Excerpts from Nicolas Pouillard's message of Sun Sep 06 12:43:06 -0700 2009:
   3169 > > I personally do prefer ]a and ]d, to read mail in the chronological order.
   3170 > 
   3171 > What if there were a way to reverse the sort order for the index view?
   3172 > That would then change the meaning of "next" and "previous" and then
   3173 > you could use the single letter 'a' and 'd' commands to read your mail
   3174 > in chronological order.
   3175 > 
   3176 > Would that make sense? Because that is something I would like to do on
   3177 > occasion.
   3178 
   3179 Yes it does make sense. This change would both improve this feature and
   3180 will reduce the default enforcement.
   3181 
   3182 Regards,
   3183 
   3184 -- 
   3185 Nicolas Pouillard
   3186 http://nicolaspouillard.fr
   3187 
   3188 From wmorgan-sup@masanjin.net  Tue Sep  8 16:38:35 2009
   3189 From: wmorgan-sup@masanjin.net (William Morgan)
   3190 Date: Tue, 08 Sep 2009 13:38:35 -0700
   3191 Subject: [sup-talk] ArgumentError from thread: poll after loading inbox
   3192 In-Reply-To: <2e8d08f0909070447u73d6d2efq8eca89f229f890ed@mail.gmail.com>
   3193 References: <2e8d08f0909070447u73d6d2efq8eca89f229f890ed@mail.gmail.com>
   3194 Message-ID: <1252442225-sup-154@masanjin.net>
   3195 
   3196 Reformatted excerpts from Richard Sandilands's message of 2009-09-07:
   3197 > Am tracking 'next' branch and moved to Xapian earlier today.
   3198 
   3199 Do you have a before-add-message hook? If so, I'm sorry to say that you
   3200 will have to regenerate your index to fix this. There was a problem with
   3201 next for a while that allowed that hook to add non-symbol labels to
   3202 messages, and those got serialized into Xapian's index.
   3203 
   3204 If not, regenerating it will probably help, but it would be good to find
   3205 the source of the non-symbol labels.
   3206 -- 
   3207 William <wmorgan-sup at masanjin.net>
   3208 
   3209 From wmorgan-sup@masanjin.net  Tue Sep  8 16:45:08 2009
   3210 From: wmorgan-sup@masanjin.net (William Morgan)
   3211 Date: Tue, 08 Sep 2009 13:45:08 -0700
   3212 Subject: [sup-talk] lbdb module for sup
   3213 In-Reply-To: <1252340369-sup-9611@qwerzila>
   3214 References: <1252340369-sup-9611@qwerzila>
   3215 Message-ID: <1252442690-sup-9709@masanjin.net>
   3216 
   3217 Reformatted excerpts from Gaute Hope's message of 2009-09-07:
   3218 > attached is a lbdb (http://sup.rubyforge.org/wiki/wiki.pl?LbdbIntegration)
   3219 > module for the sup contact list. Useful if you want access to the sup
   3220 > contact list from Vim.
   3221 
   3222 Thanks!
   3223 -- 
   3224 William <wmorgan-sup at masanjin.net>
   3225 
   3226 From wmorgan-sup@masanjin.net  Tue Sep  8 16:47:18 2009
   3227 From: wmorgan-sup@masanjin.net (William Morgan)
   3228 Date: Tue, 08 Sep 2009 13:47:18 -0700
   3229 Subject: [sup-talk] Can't add a local maildir source
   3230 In-Reply-To: <2e8d08f0909031602r37472cdcjcf4826f7cd2b48c7@mail.gmail.com>
   3231 References: <2e8d08f0909031602r37472cdcjcf4826f7cd2b48c7@mail.gmail.com>
   3232 Message-ID: <1252442749-sup-842@masanjin.net>
   3233 
   3234 Reformatted excerpts from infoarts's message of 2009-09-03:
   3235 > I'm tracking next via git and am having trouble adding a mail source.
   3236 
   3237 This should be fixed in the latest next. Sorry about that!
   3238 -- 
   3239 William <wmorgan-sup at masanjin.net>
   3240 
   3241 From cworth@cworth.org  Tue Sep  8 16:50:52 2009
   3242 From: cworth@cworth.org (Carl Worth)
   3243 Date: Tue, 08 Sep 2009 13:50:52 -0700
   3244 Subject: [sup-talk] Change color of 'highlight' indicator in inbox view?
   3245 In-Reply-To: <1252241877-sup-6125@masanjin.net>
   3246 References: <1252230162-sup-8625@Richard-Sandilandss-MacBook-Pro.local>
   3247 	<1252241877-sup-6125@masanjin.net>
   3248 Message-ID: <1252442174-sup-1472@yoom.home.cworth.org>
   3249 
   3250 Excerpts from William Morgan's message of Sun Sep 06 06:07:48 -0700 2009:
   3251 > Reformatted excerpts from Richard Sandilands's message of 2009-09-06:
   3252 > > Is there a setting for this element?
   3253 > 
   3254 > Currently the highlight color is generated programmatically, so there's
   3255 > no setting in colors.yaml. You can edit colormap.rb#highlight_for (circa
   3256 > line 82) if you want.
   3257 
   3258 Thanks for pointing this out. The highlight color has been one of the
   3259 last color annoyances for me, but I hadn't done the effort to find
   3260 this in the code yet.
   3261 
   3262 > Ideas on how to move this configuration to colors.yaml (or some other
   3263 > configuration mechanism) welcome.
   3264 
   3265 What I think I would really like is a mode where none of the
   3266 foreground colors/attributes change at all, (it seems distracting to
   3267 have the text invert while trying to process mail quickly).
   3268 
   3269 Instead, I'd like the highlight to be a subtle change in the
   3270 background color, (but still light or dark like the background so that
   3271 the foreground colors are all still readable).
   3272 
   3273 I poked around at this, and my terminal does have two variants of each
   3274 of 8 colors available (one brighter than the other), so it seemed like
   3275 I should be able to use one as the normal background and one as the
   3276 highlight background. But on looking closer, it appears that the
   3277 terminal color support here is to name the 8 different colors and to
   3278 select the variant for each with the bold attribute. So if I'm
   3279 understanding that correctly, that's 16 colors available for the
   3280 foreground, but only 8 for the background. That's frustrating.
   3281 
   3282 Such a limited color selection is almost unimaginable with hardware
   3283 capability today. (I do see references to "xterm-256color"[*] terminal
   3284 definitions. Could sup start depending on things like that? Are there
   3285 users of sup using the Linux console or so, and does that support
   3286 256-color escape codes?).
   3287 
   3288 Anyway, I gave up for now and decided not to use color for highlight
   3289 at all. Instead, I did:
   3290 
   3291   def highlight_for fg, bg, attrs
   3292     [fg, bg, attrs + [Curses::A_UNDERLINE]]
   3293 
   3294 I should figure out how to make the underline vs. color choice for
   3295 highlighting to be a configuration option in order to propose this as
   3296 a proper patch. But I still would prefer a subtle change in the
   3297 background color instead of an underline if anyone can figure out how
   3298 to give me that[**].
   3299 
   3300 -Car
   3301 
   3302 [*] And even 256 colors is antiquated. Anything requiring a fixed
   3303 palette is very constraining on an application author today.
   3304 
   3305 [**] Of course, one way is to go away from a curses-based
   3306 interface. That might very well make sense in the future where sup is
   3307 implemented as a protocol and we can easily have multiple clients. For
   3308 me, a graphical client won't be of any interest unless it allows full
   3309 keyboard control exactly as sup does, but if it does that and renders
   3310 text as well as my terminal, I could imagine using it.
   3311 
   3312 From richard@infoarts.info  Tue Sep  8 17:13:07 2009
   3313 From: richard@infoarts.info (Richard Sandilands)
   3314 Date: Wed, 9 Sep 2009 07:13:07 +1000
   3315 Subject: [sup-talk] ArgumentError from thread: poll after loading inbox
   3316 In-Reply-To: <1252442225-sup-154@masanjin.net>
   3317 References: <2e8d08f0909070447u73d6d2efq8eca89f229f890ed@mail.gmail.com>
   3318 	<1252442225-sup-154@masanjin.net>
   3319 Message-ID: <2e8d08f0909081413i402cbb71sfbff3b1fb5e59a2f@mail.gmail.com>
   3320 
   3321 On Wed, Sep 9, 2009 at 6:38 AM, William Morgan<wmorgan-sup at masanjin.net> wrote:
   3322 
   3323 > Do you have a before-add-message hook? If so, I'm sorry to say that you
   3324 > will have to regenerate your index to fix this. There was a problem with
   3325 > next for a while that allowed that hook to add non-symbol labels to
   3326 > messages, and those got serialized into Xapian's index.
   3327 
   3328 I do indeed, as follows:
   3329 
   3330    if message.subj =~ /\[sup-talk\]/
   3331     message.add_label "sup"
   3332     message.add_label "list"
   3333   end
   3334 
   3335 
   3336 > If not, regenerating it will probably help, but it would be good to find
   3337 > the source of the non-symbol labels.
   3338 
   3339 I do have some labels prepended with an ! to force them to sort to the
   3340 top of the 'L' list - such as '!followup', '!hold' etc. Could that be
   3341 an issue?
   3342 
   3343 -- 
   3344 Richard
   3345 
   3346 From sean.escriva@gmail.com  Tue Sep  8 17:50:23 2009
   3347 From: sean.escriva@gmail.com (Sean Escriva)
   3348 Date: Tue, 8 Sep 2009 14:50:23 -0700
   3349 Subject: [sup-talk] a few questions on mail handling with sup
   3350 In-Reply-To: <1252098027-sup-4487@ntdws12.chass.utoronto.ca>
   3351 References: <20090904191332.GA5525@gmail.com>
   3352 	<1252098027-sup-4487@ntdws12.chass.utoronto.ca>
   3353 Message-ID: <20090908215023.GA7134@gmail.com>
   3354 
   3355 Excerpts from Ben Walton's message of Fri Sep 04 05:01:11 -0400 2009:
   3356 > Excerpts from Sean Escriva's message of Fri Sep 04 15:13:32 -0400 2009:
   3357 > 
   3358 > > Currently I have no way to way move messages out of my inbox on the
   3359 > > imap server, since I'm accessing a local maildir created by
   3360 > > offlineimap. This is only an issue since mailboxes have a limit of
   3361 > > 800mb in size on the server and given the volume of mail I have that
   3362 > > will be reached every other month. I've looked at imap filter and this
   3363 > > could possibly work, but anyone have experience with this sort of
   3364 > > sitatuation?
   3365 > 
   3366 > Could you pull it down with fetchmail into a local MTA setup that only
   3367 > handles local delivery?  Fetchmail has the 'delete on server' option
   3368 > if offlineimap doesn't.
   3369 
   3370 thanks for the reply. fetchmail/procmail is a better option in this
   3371 case than offlineimap. No need to setup a whole different MTA since I
   3372 am already using msmtp for sending...
   3373 
   3374 thanks again.
   3375 
   3376 -sme
   3377 
   3378 From rlane@club.cc.cmu.edu  Wed Sep  9 02:18:09 2009
   3379 From: rlane@club.cc.cmu.edu (Rich Lane)
   3380 Date: Wed, 09 Sep 2009 02:18:09 -0400
   3381 Subject: [sup-talk] sup-sync and xapian memory usage
   3382 In-Reply-To: <1252422827-sup-805@peray>
   3383 References: <20090907170450.GO14010@pimlott.net> <1252348258-sup-415@zyrg.net>
   3384 	<1252350686-sup-8800@ntdws12.chass.utoronto.ca>
   3385 	<1252350896-sup-5026@zyrg.net> <1252415772-sup-7288@masanjin.net>
   3386 	<1252419716-sup-3031@roughage.com.au> <1252422827-sup-805@peray>
   3387 Message-ID: <1252427486-sup-8093@zyrg.net>
   3388 
   3389 Excerpts from Nicolas Pouillard's message of Tue Sep 08 11:14:22 -0400 2009:
   3390 > Excerpts from Richard Heycock's message of Tue Sep 08 16:27:10 +0200 2009:
   3391 > > Excerpts from William Morgan's message of Tue Sep 08 23:39:12 +1000 2009:
   3392 > > > Reformatted excerpts from Rich Lane's message of 2009-09-07:
   3393 > > > > Excerpts from Ben Walton's message of Mon Sep 07 15:11:58 -0400 2009:
   3394 > > > > > Excerpts from Rich Lane's message of Mon Sep 07 14:33:06 -0400 2009:
   3395 > > > > > > Xapian keeps writes buffered in memory. Try setting the
   3396 > > > > > > environment variable XAPIAN_FLUSH_THRESHOLD to a smaller value
   3397 > > > > > > (the default is 10000 documents) and see if that helps.
   3398 > > > > > 
   3399 > > > > > Does this explain the lag at shutdown?  Xapian is flushing writes to
   3400 > > > > > disk?
   3401 > > > > 
   3402 > > > > Yep.
   3403 > > > 
   3404 > > > Good to know. Is there a way to force a flush in Xapian? Just curious.
   3405 > > > The delay is a little scary sometimes. Maybe it just needs an
   3406 > > > appropriate message somewhere.
   3407 > > 
   3408 > > Xapian, by default, flushes every 10 000 documents which in email terms
   3409 > > is a pretty long time! You can force a flush but it does increase your
   3410 > > IO significantly. Having said that emails are fairly small so flushing
   3411 > > every 10 or 20 emails might not be too bad.
   3412 > > 
   3413 > > Maybe it could be dynamic, if there is a high volume of incoming emails
   3414 > > flushing could be done after 50 or 100 emails or a timer based flush
   3415 > > might be easier.
   3416 > 
   3417 > Should the '$' command, force a write of the Xapian database?
   3418 
   3419 I think once we're saving label changes to the index immediately we
   3420 could re-purpose '$' for this. I've also been considering a timer, as
   3421 Richard suggests, which would trigger a flush once the user has been
   3422 idle for some time.
   3423 
   3424 A fatal exception in Sup is still a clean exit as far as SWIG is
   3425 concerned and the Xapian database destructor will do the flush for us in
   3426 that case, so don't worry about random Sup exceptions causing data loss.
   3427 
   3428 From eg@gaute.vetsj.com  Wed Sep  9 03:54:53 2009
   3429 From: eg@gaute.vetsj.com (Gaute Hope)
   3430 Date: Wed, 09 Sep 2009 09:54:53 +0200
   3431 Subject: [sup-talk] Exception when trying to open console view
   3432 Message-ID: <1252482842-sup-4833@qwerzila>
   3433 
   3434 Greetings,
   3435 
   3436 I get this exception when pressing '~' in the main view:
   3437 
   3438 --- ArgumentError from thread: main
   3439 wrong number of arguments (0 for 1)
   3440 /home/gaute/.gem/ruby/1.8/gems/sup-999/lib/sup/modes/console-mode.rb:67:in `initialize'
   3441 /home/gaute/.gem/ruby/1.8/gems/sup-999/lib/sup/modes/console-mode.rb:67:in `initialize'
   3442 /home/gaute/.gem/ruby/1.8/gems/sup-999/bin/sup:302:in `new'
   3443 /home/gaute/.gem/ruby/1.8/gems/sup-999/bin/sup:302
   3444 /home/gaute/.gem/ruby/1.8/gems/sup-999/lib/sup/buffer.rb:341:in `spawn_unless_exists'
   3445 /home/gaute/.gem/ruby/1.8/gems/sup-999/bin/sup:302
   3446 /home/gaute/.gem/ruby/1.8/bin/sup:19:in `load'
   3447 /home/gaute/.gem/ruby/1.8/bin/sup:19
   3448 
   3449 Cheers, Gaute
   3450 -------------- next part --------------
   3451 A non-text attachment was scrubbed...
   3452 Name: signature.asc
   3453 Type: application/pgp-signature
   3454 Size: 198 bytes
   3455 Desc: not available
   3456 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090909/b3e999f6/attachment.bin>
   3457 
   3458 From eg@gaute.vetsj.com  Wed Sep  9 04:49:21 2009
   3459 From: eg@gaute.vetsj.com (Gaute Hope)
   3460 Date: Wed, 09 Sep 2009 10:49:21 +0200
   3461 Subject: [sup-talk] updated before-poll hook for offlineimap
   3462 Message-ID: <1252485986-sup-4958@qwerzila>
   3463 
   3464 Greetings,
   3465 
   3466 Here's an updated before-poll.rb hook for offlineimap working with
   3467 latest git. I'm suppressing some nasty python deprecation errors as
   3468 well.
   3469 
   3470 before-poll.rb:
   3471 def offlineimap(*folders)
   3472   cmd = "offlineimap -u Noninteractive.Basic 2>&1"
   3473   cmd << " -f #{folders * ','}" unless folders.compact.empty?
   3474   `#{cmd}`
   3475 end
   3476 
   3477 def folder_names(sources)
   3478   sources.map { |s| s.uri.split('/').last }
   3479 end
   3480 
   3481 def inbox_sources(sources = SourceManager.sources)
   3482   sources.find_all { |s| !s.archived? }.sort_by {|s| s.id }
   3483 end
   3484 
   3485 if (@last_fetch || Time.at(0)) < Time.now - 120
   3486   say "Running offlineimap..."
   3487   # only check non-auto-archived sources on the first run
   3488   log offlineimap(@last_fetch ? nil : folder_names(inbox_sources))
   3489   say "Finished offlineimap."
   3490 end
   3491 @last_fetch = Time.now
   3492 
   3493 Cheers, Gaute
   3494 -------------- next part --------------
   3495 A non-text attachment was scrubbed...
   3496 Name: signature.asc
   3497 Type: application/pgp-signature
   3498 Size: 198 bytes
   3499 Desc: not available
   3500 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090909/1b71019d/attachment.bin>
   3501 
   3502 From bwalton@artsci.utoronto.ca  Wed Sep  9 09:54:55 2009
   3503 From: bwalton@artsci.utoronto.ca (Ben Walton)
   3504 Date: Wed, 09 Sep 2009 09:54:55 -0400
   3505 Subject: [sup-talk] U (unread) search is off
   3506 Message-ID: <1252504368-sup-9406@ntdws12.chass.utoronto.ca>
   3507 
   3508 
   3509 Since my update to Xapian, my U searches to display on unread mail
   3510 aren't working correctly any more.  I get lots of mail that is
   3511 definitely read (doesn't show as new in the search buffer).  Is anyone
   3512 else seeing this?  I'm hoping to dig into it later today, but wanted
   3513 to fire of the query first.
   3514 
   3515 Thanks
   3516 -Ben
   3517 -- 
   3518 Ben Walton
   3519 Systems Programmer - CHASS
   3520 University of Toronto
   3521 C:416.407.5610 | W:416.978.4302
   3522 
   3523 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   3524 Contact me to arrange for a CAcert assurance meeting.
   3525 -------------- next part --------------
   3526 A non-text attachment was scrubbed...
   3527 Name: signature.asc
   3528 Type: application/pgp-signature
   3529 Size: 189 bytes
   3530 Desc: not available
   3531 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090909/f80057be/attachment.bin>
   3532 
   3533 From wmorgan-sup@masanjin.net  Wed Sep  9 10:14:16 2009
   3534 From: wmorgan-sup@masanjin.net (William Morgan)
   3535 Date: Wed, 09 Sep 2009 07:14:16 -0700
   3536 Subject: [sup-talk] Exception when trying to open console view
   3537 In-Reply-To: <1252482842-sup-4833@qwerzila>
   3538 References: <1252482842-sup-4833@qwerzila>
   3539 Message-ID: <1252505638-sup-6887@masanjin.net>
   3540 
   3541 Reformatted excerpts from Gaute Hope's message of 2009-09-09:
   3542 > --- ArgumentError from thread: main
   3543 > wrong number of arguments (0 for 1)
   3544 > /home/gaute/.gem/ruby/1.8/gems/sup-999/lib/sup/modes/console-mode.rb:67:in `initialize'
   3545 
   3546 Fixed in master and next. Sorry about that.
   3547 -- 
   3548 William <wmorgan-sup at masanjin.net>
   3549 
   3550 From wmorgan-sup@masanjin.net  Wed Sep  9 10:20:03 2009
   3551 From: wmorgan-sup@masanjin.net (William Morgan)
   3552 Date: Wed, 09 Sep 2009 07:20:03 -0700
   3553 Subject: [sup-talk] ArgumentError from thread: poll after loading inbox
   3554 In-Reply-To: <2e8d08f0909081413i402cbb71sfbff3b1fb5e59a2f@mail.gmail.com>
   3555 References: <2e8d08f0909070447u73d6d2efq8eca89f229f890ed@mail.gmail.com>
   3556 	<1252442225-sup-154@masanjin.net>
   3557 	<2e8d08f0909081413i402cbb71sfbff3b1fb5e59a2f@mail.gmail.com>
   3558 Message-ID: <1252505721-sup-2684@masanjin.net>
   3559 
   3560 Reformatted excerpts from Richard Sandilands's message of 2009-09-08:
   3561 > I do indeed, as follows:
   3562 
   3563 Excellent.
   3564 
   3565 > I do have some labels prepended with an ! to force them to sort to the
   3566 > top of the 'L' list - such as '!followup', '!hold' etc. Could that be
   3567 > an issue?
   3568 
   3569 Nope, it was the hook above. (Which is fine, btw, it just triggered
   3570 something bad.) You will need to regenerate the index and everything
   3571 should be fine. Sorry about that.
   3572 
   3573 If you don't have a recent dumpfile, you may have to apply the following
   3574 patch to get sup-dump to work. Then you should be able to git fetch,
   3575 reset the head to origin/next, and run `sup-sync --restored --restore
   3576 <dumpfile> --all-sources`.
   3577 
   3578 Let me know if you run into problems.
   3579 
   3580 diff --git a/lib/sup/label.rb b/lib/sup/label.rb
   3581 index 67474c2..b94474d 100644
   3582 --- a/lib/sup/label.rb
   3583 +++ b/lib/sup/label.rb
   3584 @@ -61,7 +61,7 @@ class LabelManager
   3585    end
   3586  
   3587    def << t
   3588 -    raise ArgumentError, "expecting a symbol" unless t.is_a? Symbol
   3589 +    t = t.to_sym
   3590      unless @labels.member?(t) || RESERVED_LABELS.member?(t)
   3591        @labels[t] = true
   3592 -- 
   3593 William <wmorgan-sup at masanjin.net>
   3594 
   3595 From wmorgan-sup@masanjin.net  Wed Sep  9 10:30:43 2009
   3596 From: wmorgan-sup@masanjin.net (William Morgan)
   3597 Date: Wed, 09 Sep 2009 07:30:43 -0700
   3598 Subject: [sup-talk] Change color of 'highlight' indicator in inbox view?
   3599 In-Reply-To: <1252442174-sup-1472@yoom.home.cworth.org>
   3600 References: <1252230162-sup-8625@Richard-Sandilandss-MacBook-Pro.local>
   3601 	<1252241877-sup-6125@masanjin.net>
   3602 	<1252442174-sup-1472@yoom.home.cworth.org>
   3603 Message-ID: <1252506333-sup-9244@masanjin.net>
   3604 
   3605 Reformatted excerpts from Carl Worth's message of 2009-09-08:
   3606 > So if I'm understanding that correctly, that's 16 colors available for
   3607 > the foreground, but only 8 for the background. That's frustrating.
   3608 
   3609 Yup. Curses is happy to welcome you to 1982!
   3610 
   3611 > Such a limited color selection is almost unimaginable with hardware
   3612 > capability today.
   3613 
   3614 FWIW, most terminal emulators allow you to tweak the actual colors that
   3615 the curses colors refer to. So you have some flexibility about the
   3616 actual colors, just a small palette.
   3617 
   3618 > (I do see references to "xterm-256color"[*] terminal definitions.
   3619 > Could sup start depending on things like that? Are there users of sup
   3620 > using the Linux console or so, and does that support 256-color escape
   3621 > codes?).
   3622 
   3623 I'm not sure. I suspect no, but I would be interested in learning more.
   3624 
   3625 > I should figure out how to make the underline vs. color choice for
   3626 > highlighting to be a configuration option in order to propose this as
   3627 > a proper patch.
   3628 
   3629 I think the only patch I would accept at this point for tweaking the
   3630 highlight would be a new hook.
   3631 
   3632 > Of course, one way is to go away from a curses-based interface. That
   3633 > might very well make sense in the future where sup is implemented as a
   3634 > protocol and we can easily have multiple clients.
   3635 
   3636 That is one of the goals.
   3637 
   3638 > For me, a graphical client won't be of any interest unless it allows
   3639 > full keyboard control exactly as sup does, but if it does that and
   3640 > renders text as well as my terminal, I could imagine using it.
   3641 
   3642 I agree completely.
   3643 -- 
   3644 William <wmorgan-sup at masanjin.net>
   3645 
   3646 From wmorgan-sup@masanjin.net  Wed Sep  9 10:37:16 2009
   3647 From: wmorgan-sup@masanjin.net (William Morgan)
   3648 Date: Wed, 09 Sep 2009 07:37:16 -0700
   3649 Subject: [sup-talk] [PATCH] Add 'a' and 'd' keybindings to
   3650 	thread-view-mode to archive/delete current thread
   3651 In-Reply-To: <1252440374-sup-9813@masanjin.net>
   3652 References: <1251325542-sup-3105@yoom.home.cworth.org>
   3653 	<1252000831-sup-9922@masanjin.net> <1252422961-sup-9843@chigamba>
   3654 	<1252440374-sup-9813@masanjin.net>
   3655 Message-ID: <1252507021-sup-715@masanjin.net>
   3656 
   3657 Reformatted excerpts from William Morgan's message of 2009-09-08:
   3658 > So far I'm counting 3 yes votes (including patch submitter), 3 "won't
   3659 > use them" votes (including me), and no one being offended. I think I'm
   3660 > going to apply this.
   3661 
   3662 Applied to master. Thanks!
   3663 -- 
   3664 William <wmorgan-sup at masanjin.net>
   3665 
   3666 From wmorgan-sup@masanjin.net  Wed Sep  9 10:38:59 2009
   3667 From: wmorgan-sup@masanjin.net (William Morgan)
   3668 Date: Wed, 09 Sep 2009 07:38:59 -0700
   3669 Subject: [sup-talk] [PATCH] sort labels in the dump
   3670 In-Reply-To: <1252271062-8775-1-git-send-email-michael@content-space.de>
   3671 References: <1252271062-8775-1-git-send-email-michael@content-space.de>
   3672 Message-ID: <1252507122-sup-5429@masanjin.net>
   3673 
   3674 Applied to master. Thanks!
   3675 -- 
   3676 William <wmorgan-sup at masanjin.net>
   3677 
   3678 From cworth@cworth.org  Wed Sep  9 13:24:13 2009
   3679 From: cworth@cworth.org (Carl Worth)
   3680 Date: Wed, 09 Sep 2009 10:24:13 -0700
   3681 Subject: [sup-talk] Thoughts on simplifying thread-view-mode keybindings
   3682 Message-ID: <1252516237-sup-9414@yoom.home.cworth.org>
   3683 
   3684 I only just barely got my proposal for new 'a' and 'd' keybindings
   3685 into master, and now I'm rethinking them to some extent.
   3686 
   3687 Take a look at the existing keybindings for navigating away from the
   3688 current thread:
   3689 
   3690       .a : Archive this thread and kill buffer
   3691       .d : Delete this thread and kill buffer
   3692       .s : Mark this thread as spam and kill buffer
   3693       .N : Mark this thread as unread and kill buffer
   3694       ,a : Archive this thread, kill buffer, and view next
   3695       ,d : Delete this thread, kill buffer, and view next
   3696       ,s : Mark this thread as spam, kill buffer, and view next
   3697       ,N : Mark this thread as unread, kill buffer, and view next
   3698       ,n : Kill buffer, and view next
   3699       ]a : Archive this thread, kill buffer, and view previous
   3700       ]d : Delete this thread, kill buffer, and view previous
   3701       ]s : Mark this thread as spam, kill buffer, and view previous
   3702       ]N : Mark this thread as unread, kill buffer, and view previous
   3703       ]n : Kill buffer, and view previous
   3704 
   3705 Each of these keybindings involve two keys, and each command involves
   3706 two actions. But the order of the keybindings and actions are reversed.
   3707 
   3708 Imagine, for a moment, what would happen if the keybinding order was
   3709 "fixed" to match the order of the commands, (that is, things like "a,"
   3710 for archive, then view next). With that change, we would no longer
   3711 need dual-key bindings as the single-key actions could be easily
   3712 combined with the same effect.
   3713 
   3714 That is, we could have just:
   3715 
   3716       a : Archive this thread
   3717       d : Delete this thread
   3718       s : Mark this thread as spam
   3719       N : Mark this thread as unread
   3720       ., x : Kill this buffer
   3721       , : View next thread
   3722       ] : View previous thread
   3723 
   3724 That's definitely a simpler amount of documentation to have to grasp,
   3725 and shouldn't be any less work to actually use, (other than the pain
   3726 of having to retrain muscle memory to do things like "a," instead of
   3727 ",a").
   3728 
   3729 The next tweak I'd make is to choose keybdindings for 'next' and
   3730 'previous' that more obviously go together. (Such as '[' and ']', but
   3731 then I think I'd also expect '[' to mean previous and ']' to mean next
   3732 which might wreak havoc on muscle memory).
   3733 
   3734 Finally, I'd personally still want a single-key keybinding to do my
   3735 most frequent combination, (such as archive-and-view-next as with the
   3736 current 'a' that just landed in master), but maybe that makes more
   3737 sense to happen only in a hook.
   3738 
   3739 What do you all think?
   3740 
   3741 Me, I'm pretty new to sup, so the muscle-memory thing isn't *too* big
   3742 an issue. Is sup still young enough as a tool to be able to accept
   3743 interface changes like this?
   3744 
   3745 -Carl
   3746 
   3747 From cworth@cworth.org  Wed Sep  9 13:32:30 2009
   3748 From: cworth@cworth.org (Carl Worth)
   3749 Date: Wed, 09 Sep 2009 10:32:30 -0700
   3750 Subject: [sup-talk] How hard would a universal undo be?
   3751 Message-ID: <1252517083-sup-58@yoom.home.cworth.org>
   3752 
   3753 Being a ruthless mail-processor, I sometimes archive or delete a
   3754 message hastily and realize a moment later that I actually want to
   3755 look at the message again.
   3756 
   3757 Of course, if that happens when I'm in a thread-index-mode, then I can
   3758 just hit 'u' to undo and all is fine.
   3759 
   3760 But if I make the same mistake in thread-view-mode then I'm currently
   3761 out of luck.
   3762 
   3763 Would it be a small change to move the undo keybinding to somewhere
   3764 more universal?
   3765 
   3766 As a first cut, I'd be happy if it just undid the changes to the
   3767 index, even without undoing any interface changes. That is, if my
   3768 previous command was archive-thread-and-view-next-thread, it would be
   3769 OK if it just undid the archiving part. Bonus points if it also undoes
   3770 the view-next part, but I can imagine that being more work.
   3771 
   3772 Again, this is a feature I'd be happy to spend some time investigating
   3773 myself when I get the chance. I'd just be happy to hear any thoughts
   3774 on feasibility. And I'm trying to get in the habit of mentioning
   3775 issues as I run into them rather than waiting until I have the chance
   3776 to actually work on them, (at which point I may have forgotten the
   3777 issues).
   3778 
   3779 -Carl
   3780 -------------- next part --------------
   3781 A non-text attachment was scrubbed...
   3782 Name: signature.asc
   3783 Type: application/pgp-signature
   3784 Size: 189 bytes
   3785 Desc: not available
   3786 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090909/28acedf6/attachment.bin>
   3787 
   3788 From eg@gaute.vetsj.com  Wed Sep  9 13:37:29 2009
   3789 From: eg@gaute.vetsj.com (Gaute Hope)
   3790 Date: Wed, 09 Sep 2009 19:37:29 +0200
   3791 Subject: [sup-talk] updated before-poll hook for offlineimap
   3792 In-Reply-To: <1252485986-sup-4958@qwerzila>
   3793 References: <1252485986-sup-4958@qwerzila>
   3794 Message-ID: <1252517773-sup-6259@qwerzila>
   3795 
   3796 Greetings,
   3797 
   3798 It seems like the before-poll.rb hooks is not run when i manually poll
   3799 for messages; pressing P. Could this be correct?
   3800 
   3801 Running 8903cdedc81
   3802 
   3803 - gaute
   3804 
   3805 Excerpts from Gaute Hope's message of on. sep. 09 10:49:21 +0200 2009:
   3806 > Greetings,
   3807 > 
   3808 > Here's an updated before-poll.rb hook for offlineimap working with
   3809 > latest git. I'm suppressing some nasty python deprecation errors as
   3810 > well.
   3811 > 
   3812 > before-poll.rb:
   3813 > def offlineimap(*folders)
   3814 >   cmd = "offlineimap -u Noninteractive.Basic 2>&1"
   3815 >   cmd << " -f #{folders * ','}" unless folders.compact.empty?
   3816 >   `#{cmd}`
   3817 > end
   3818 > 
   3819 > def folder_names(sources)
   3820 >   sources.map { |s| s.uri.split('/').last }
   3821 > end
   3822 > 
   3823 > def inbox_sources(sources = SourceManager.sources)
   3824 >   sources.find_all { |s| !s.archived? }.sort_by {|s| s.id }
   3825 > end
   3826 > 
   3827 > if (@last_fetch || Time.at(0)) < Time.now - 120
   3828 >   say "Running offlineimap..."
   3829 >   # only check non-auto-archived sources on the first run
   3830 >   log offlineimap(@last_fetch ? nil : folder_names(inbox_sources))
   3831 >   say "Finished offlineimap."
   3832 > end
   3833 > @last_fetch = Time.now
   3834 > 
   3835 > Cheers, Gaute
   3836 -------------- next part --------------
   3837 A non-text attachment was scrubbed...
   3838 Name: signature.asc
   3839 Type: application/pgp-signature
   3840 Size: 198 bytes
   3841 Desc: not available
   3842 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090909/ea954818/attachment.bin>
   3843 
   3844 From ingmar@exherbo.org  Thu Sep 10 07:22:30 2009
   3845 From: ingmar@exherbo.org (Ingmar Vanhassel)
   3846 Date: Thu, 10 Sep 2009 13:22:30 +0200
   3847 Subject: [sup-talk] U (unread) search is off
   3848 In-Reply-To: <1252504368-sup-9406@ntdws12.chass.utoronto.ca>
   3849 References: <1252504368-sup-9406@ntdws12.chass.utoronto.ca>
   3850 Message-ID: <1252581713-sup-9701@cannonball>
   3851 
   3852 Excerpts from Ben Walton's message of Wed Sep 09 15:54:55 +0200 2009:
   3853 > 
   3854 > Since my update to Xapian, my U searches to display on unread mail
   3855 > aren't working correctly any more.  I get lots of mail that is
   3856 > definitely read (doesn't show as new in the search buffer).  Is anyone
   3857 > else seeing this?  I'm hoping to dig into it later today, but wanted
   3858 > to fire of the query first.
   3859 > 
   3860 > Thanks
   3861 > -Ben
   3862 
   3863 Known issue, see http://mid.gmane.org/1251792282-sup-2057 at cannonball and
   3864 Rich's answer to my mail.
   3865 
   3866 -- 
   3867 Exherbo KDE, X.org maintainer
   3868 
   3869 From wmorgan-sup@masanjin.net  Thu Sep 10 09:59:13 2009
   3870 From: wmorgan-sup@masanjin.net (William Morgan)
   3871 Date: Thu, 10 Sep 2009 06:59:13 -0700
   3872 Subject: [sup-talk] U (unread) search is off
   3873 In-Reply-To: <1252581713-sup-9701@cannonball>
   3874 References: <1252504368-sup-9406@ntdws12.chass.utoronto.ca>
   3875 	<1252581713-sup-9701@cannonball>
   3876 Message-ID: <1252590993-sup-3885@masanjin.net>
   3877 
   3878 Reformatted excerpts from Ingmar Vanhassel's message of 2009-09-10:
   3879 > Known issue, see http://mid.gmane.org/1251792282-sup-2057 at cannonball and
   3880 > Rich's answer to my mail.
   3881 
   3882 Actually, I haven't been following this too closely, but what is the status?
   3883 I noticed we have this in xapian_index.rb:
   3884     qp.default_op = Xapian::Query::OP_AND
   3885 
   3886 Is that not sufficient (combined with a newish Xapian, I guess?) to fix
   3887 the problem?
   3888 -- 
   3889 William <wmorgan-sup at masanjin.net>
   3890 
   3891 From michael+sup@stapelberg.de  Thu Sep 10 09:57:42 2009
   3892 From: michael+sup@stapelberg.de (Michael Stapelberg)
   3893 Date: Thu, 10 Sep 2009 15:57:42 +0200
   3894 Subject: [sup-talk] GPG: Sending mail to people without a trust-path
   3895 Message-ID: <1252590996-sup-4087@midna>
   3896 
   3897 Hi,
   3898 
   3899 occasionally, I receive E-Mail by people who do not have any signatures or
   3900 at least no trust-path to me. sup (or GPG?) rejects to encrypt mail for such
   3901 people, just stating:
   3902 
   3903 There is no indication that the key belongs to this user
   3904 
   3905 It would be good if we can fix this somehow.
   3906 
   3907 Best regards,
   3908 Michael
   3909 
   3910 From bwalton@artsci.utoronto.ca  Thu Sep 10 10:04:02 2009
   3911 From: bwalton@artsci.utoronto.ca (Ben Walton)
   3912 Date: Thu, 10 Sep 2009 10:04:02 -0400
   3913 Subject: [sup-talk] U (unread) search is off
   3914 In-Reply-To: <1252590993-sup-3885@masanjin.net>
   3915 References: <1252504368-sup-9406@ntdws12.chass.utoronto.ca>
   3916 	<1252581713-sup-9701@cannonball> <1252590993-sup-3885@masanjin.net>
   3917 Message-ID: <1252591407-sup-1747@ntdws12.chass.utoronto.ca>
   3918 
   3919 Excerpts from William Morgan's message of Thu Sep 10 09:59:13 -0400 2009:
   3920 
   3921 > Is that not sufficient (combined with a newish Xapian, I guess?) to fix
   3922 > the problem?
   3923 
   3924 I'm running 1.0.14.  Maybe I need to update to 1.0.15 then?
   3925 
   3926 Thanks
   3927 -Ben
   3928 -- 
   3929 Ben Walton
   3930 Systems Programmer - CHASS
   3931 University of Toronto
   3932 C:416.407.5610 | W:416.978.4302
   3933 
   3934 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   3935 Contact me to arrange for a CAcert assurance meeting.
   3936 -------------- next part --------------
   3937 A non-text attachment was scrubbed...
   3938 Name: signature.asc
   3939 Type: application/pgp-signature
   3940 Size: 189 bytes
   3941 Desc: not available
   3942 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090910/d6b22755/attachment.bin>
   3943 
   3944 From ingmar@exherbo.org  Thu Sep 10 10:08:15 2009
   3945 From: ingmar@exherbo.org (Ingmar Vanhassel)
   3946 Date: Thu, 10 Sep 2009 16:08:15 +0200
   3947 Subject: [sup-talk] U (unread) search is off
   3948 In-Reply-To: <1252590993-sup-3885@masanjin.net>
   3949 References: <1252504368-sup-9406@ntdws12.chass.utoronto.ca>
   3950 	<1252581713-sup-9701@cannonball> <1252590993-sup-3885@masanjin.net>
   3951 Message-ID: <1252591597-sup-1906@cannonball>
   3952 
   3953 Excerpts from William Morgan's message of Thu Sep 10 15:59:13 +0200 2009:
   3954 > Reformatted excerpts from Ingmar Vanhassel's message of 2009-09-10:
   3955 > > Known issue, see http://mid.gmane.org/1251792282-sup-2057 at cannonball and
   3956 > > Rich's answer to my mail.
   3957 > 
   3958 > Actually, I haven't been following this too closely, but what is the status?
   3959 > I noticed we have this in xapian_index.rb:
   3960 >     qp.default_op = Xapian::Query::OP_AND
   3961 > 
   3962 > Is that not sufficient (combined with a newish Xapian, I guess?) to fix
   3963 > the problem?
   3964 
   3965 Refining a query still doesn't work: Searching for label:foo, then
   3966 piping through label:bar gives messages that even have neither label.
   3967 
   3968 This is on xapian 1.0.15
   3969 -- 
   3970 Exherbo KDE, X.org maintainer
   3971 
   3972 From wmorgan-sup@masanjin.net  Thu Sep 10 10:13:50 2009
   3973 From: wmorgan-sup@masanjin.net (William Morgan)
   3974 Date: Thu, 10 Sep 2009 07:13:50 -0700
   3975 Subject: [sup-talk] How hard would a universal undo be?
   3976 In-Reply-To: <1252517083-sup-58@yoom.home.cworth.org>
   3977 References: <1252517083-sup-58@yoom.home.cworth.org>
   3978 Message-ID: <1252591706-sup-7219@masanjin.net>
   3979 
   3980 Reformatted excerpts from Carl Worth's message of 2009-09-09:
   3981 > Would it be a small change to move the undo keybinding to somewhere
   3982 > more universal?
   3983 
   3984 The undo keybinding could definitely be moved from thread-index-mode to
   3985 the main event loop. That's a small change. The bigger amount of work is
   3986 writing undo lambdas for every operation you want to be able to undo,
   3987 e.g. every command in thread-view-mode. It's not complicated, just a
   3988 little tedious, IMO.
   3989 -- 
   3990 William <wmorgan-sup at masanjin.net>
   3991 
   3992 From wmorgan-sup@masanjin.net  Thu Sep 10 10:34:01 2009
   3993 From: wmorgan-sup@masanjin.net (William Morgan)
   3994 Date: Thu, 10 Sep 2009 07:34:01 -0700
   3995 Subject: [sup-talk] updated before-poll hook for offlineimap
   3996 In-Reply-To: <1252517773-sup-6259@qwerzila>
   3997 References: <1252485986-sup-4958@qwerzila> <1252517773-sup-6259@qwerzila>
   3998 Message-ID: <1252592969-sup-418@masanjin.net>
   3999 
   4000 Reformatted excerpts from Gaute Hope's message of 2009-09-09:
   4001 > It seems like the before-poll.rb hooks is not run when i manually poll
   4002 > for messages; pressing P. Could this be correct?
   4003 
   4004 It should be. Are you sure the before-poll hook isn't dying the first
   4005 time it's run (automatically), causing Sup to skip it the second time
   4006 (when you press P)? You can look in the log buffer.
   4007 
   4008 If that's not the case, can you confirm that PollManager#poll gets
   4009 invoked in both cases?
   4010 -- 
   4011 William <wmorgan-sup at masanjin.net>
   4012 
   4013 From marco-oweber@gmx.de  Thu Sep 10 10:35:46 2009
   4014 From: marco-oweber@gmx.de (Marc Weber)
   4015 Date: Thu, 10 Sep 2009 16:35:46 +0200
   4016 Subject: [sup-talk] How hard would a universal undo be?
   4017 In-Reply-To: <1252517083-sup-58@yoom.home.cworth.org>
   4018 References: <1252517083-sup-58@yoom.home.cworth.org>
   4019 Message-ID: <1252592875-sup-5649@nixos>
   4020 
   4021 Excerpts from Carl Worth's message of Wed Sep 09 19:32:30 +0200 2009:
   4022 > Being a ruthless mail-processor, I sometimes archive or delete a
   4023 > message hastily and realize a moment later that I actually want to
   4024 > look at the message again.
   4025 
   4026 What about a "last viewed history" list?
   4027 Then you could use that to review the threads?
   4028 
   4029 Maybe its best to add a property:
   4030 last-viewed-on: timestamp.
   4031 
   4032 Then you can even use the existing search engine to view those threads ?
   4033 
   4034 Marc Weber
   4035 
   4036 From wmorgan-sup@masanjin.net  Thu Sep 10 10:36:22 2009
   4037 From: wmorgan-sup@masanjin.net (William Morgan)
   4038 Date: Thu, 10 Sep 2009 07:36:22 -0700
   4039 Subject: [sup-talk] GPG: Sending mail to people without a trust-path
   4040 In-Reply-To: <1252590996-sup-4087@midna>
   4041 References: <1252590996-sup-4087@midna>
   4042 Message-ID: <1252593258-sup-7506@masanjin.net>
   4043 
   4044 Reformatted excerpts from Michael Stapelberg's message of 2009-09-10:
   4045 > occasionally, I receive E-Mail by people who do not have any signatures or
   4046 > at least no trust-path to me. sup (or GPG?) rejects to encrypt mail for such
   4047 > people, just stating:
   4048 > 
   4049 > There is no indication that the key belongs to this user
   4050 > 
   4051 > It would be good if we can fix this somehow.
   4052 
   4053 It's a GPG behavior, which we can work around by adding --always-trust
   4054 to the GPG commandline, but I'm pretty sure someone will object to that.
   4055 Patches for a hook to run gpg in a user-defined matter will be accepted.
   4056 -- 
   4057 William <wmorgan-sup at masanjin.net>
   4058 
   4059 From rlane@club.cc.cmu.edu  Thu Sep 10 12:16:35 2009
   4060 From: rlane@club.cc.cmu.edu (Rich Lane)
   4061 Date: Thu, 10 Sep 2009 12:16:35 -0400
   4062 Subject: [sup-talk] U (unread) search is off
   4063 In-Reply-To: <1252590993-sup-3885@masanjin.net>
   4064 References: <1252504368-sup-9406@ntdws12.chass.utoronto.ca>
   4065 	<1252581713-sup-9701@cannonball> <1252590993-sup-3885@masanjin.net>
   4066 Message-ID: <1252595946-sup-171@zyrg.net>
   4067 
   4068 There are actually 2 bugs in this thread. Ben is still using Xapian
   4069 1.0.14 which doesn't have my fix for the phantom labels problem.
   4070 Ingmar's message was about the surprise Xapian::QueryParser feature.
   4071 
   4072 Excerpts from William Morgan's message of Thu Sep 10 09:59:13 -0400 2009:
   4073 > Reformatted excerpts from Ingmar Vanhassel's message of 2009-09-10:
   4074 > > Known issue, see http://mid.gmane.org/1251792282-sup-2057 at cannonball and
   4075 > > Rich's answer to my mail.
   4076 > 
   4077 > Actually, I haven't been following this too closely, but what is the status?
   4078 > I noticed we have this in xapian_index.rb:
   4079 >     qp.default_op = Xapian::Query::OP_AND
   4080 > 
   4081 > Is that not sufficient (combined with a newish Xapian, I guess?) to fix
   4082 > the problem?
   4083 
   4084 I thought it was, but it turns out that unless you explicitly add AND
   4085 operators Xapian will OR terms over the same field such that
   4086 "label:foo label:bar" gives you the union instead of the intersection.
   4087 
   4088 We could fix this by patching Xapian to make this behavior configurable,
   4089 or we could come up with an index-agnostic simple query language that
   4090 doesn't support boolean operators. The native query language would still
   4091 be available, of course, but the simple one would suffice for most usage
   4092 and potentially have Sup-specific features.
   4093 
   4094 From rlane@club.cc.cmu.edu  Thu Sep 10 12:17:11 2009
   4095 From: rlane@club.cc.cmu.edu (Rich Lane)
   4096 Date: Thu, 10 Sep 2009 12:17:11 -0400
   4097 Subject: [sup-talk] U (unread) search is off
   4098 In-Reply-To: <1252591407-sup-1747@ntdws12.chass.utoronto.ca>
   4099 References: <1252504368-sup-9406@ntdws12.chass.utoronto.ca>
   4100 	<1252581713-sup-9701@cannonball> <1252590993-sup-3885@masanjin.net>
   4101 	<1252591407-sup-1747@ntdws12.chass.utoronto.ca>
   4102 Message-ID: <1252599402-sup-3970@zyrg.net>
   4103 
   4104 Excerpts from Ben Walton's message of Thu Sep 10 10:04:02 -0400 2009:
   4105 > Excerpts from William Morgan's message of Thu Sep 10 09:59:13 -0400 2009:
   4106 > 
   4107 > > Is that not sufficient (combined with a newish Xapian, I guess?) to fix
   4108 > > the problem?
   4109 > 
   4110 > I'm running 1.0.14.  Maybe I need to update to 1.0.15 then?
   4111 
   4112 Yes, upgrading to 1.0.15 will fix this problem.
   4113 
   4114 From bwalton@artsci.utoronto.ca  Thu Sep 10 13:13:32 2009
   4115 From: bwalton@artsci.utoronto.ca (Ben Walton)
   4116 Date: Thu, 10 Sep 2009 13:13:32 -0400
   4117 Subject: [sup-talk] U (unread) search is off
   4118 In-Reply-To: <1252599402-sup-3970@zyrg.net>
   4119 References: <1252504368-sup-9406@ntdws12.chass.utoronto.ca>
   4120 	<1252581713-sup-9701@cannonball> <1252590993-sup-3885@masanjin.net>
   4121 	<1252591407-sup-1747@ntdws12.chass.utoronto.ca>
   4122 	<1252599402-sup-3970@zyrg.net>
   4123 Message-ID: <1252602768-sup-3245@ntdws12.chass.utoronto.ca>
   4124 
   4125 Excerpts from Rich Lane's message of Thu Sep 10 12:17:11 -0400 2009:
   4126 
   4127 > Yes, upgrading to 1.0.15 will fix this problem.
   4128 
   4129 Ok, I rolled rpms for 1.0.16 (available to anyone else if they
   4130 want/need them) and updated.  This has resolved the issue for me.
   4131 
   4132 Thanks Rich! :)
   4133 -Ben
   4134 -- 
   4135 Ben Walton
   4136 Systems Programmer - CHASS
   4137 University of Toronto
   4138 C:416.407.5610 | W:416.978.4302
   4139 
   4140 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   4141 Contact me to arrange for a CAcert assurance meeting.
   4142 -------------- next part --------------
   4143 A non-text attachment was scrubbed...
   4144 Name: signature.asc
   4145 Type: application/pgp-signature
   4146 Size: 189 bytes
   4147 Desc: not available
   4148 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090910/ec4dc234/attachment.bin>
   4149 
   4150 From rlane@club.cc.cmu.edu  Thu Sep 10 18:45:20 2009
   4151 From: rlane@club.cc.cmu.edu (Rich Lane)
   4152 Date: Thu, 10 Sep 2009 18:45:20 -0400
   4153 Subject: [sup-talk] How hard would a universal undo be?
   4154 In-Reply-To: <1252517083-sup-58@yoom.home.cworth.org>
   4155 References: <1252517083-sup-58@yoom.home.cworth.org>
   4156 Message-ID: <1252599828-sup-7368@zyrg.net>
   4157 
   4158 Excerpts from Carl Worth's message of Wed Sep 09 13:32:30 -0400 2009:
   4159 > Would it be a small change to move the undo keybinding to somewhere
   4160 > more universal?
   4161 
   4162 No :(
   4163 
   4164 > As a first cut, I'd be happy if it just undid the changes to the
   4165 > index, even without undoing any interface changes. That is, if my
   4166 > previous command was archive-thread-and-view-next-thread, it would be
   4167 > OK if it just undid the archiving part. Bonus points if it also undoes
   4168 > the view-next part, but I can imagine that being more work.
   4169 
   4170 I know I sound a bit like a broken record here, but immediate
   4171 label changes will solve this problem. Then, the undo system would just
   4172 need to keep a global stack of (msgid, previous_labels). I'm just hoping
   4173 somebody will volunteer for this - it will be a big patch.
   4174 
   4175 From nicolas.pouillard@gmail.com  Fri Sep 11 05:16:49 2009
   4176 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   4177 Date: Fri, 11 Sep 2009 11:16:49 +0200
   4178 Subject: [sup-talk] How hard would a universal undo be?
   4179 In-Reply-To: <1252599828-sup-7368@zyrg.net>
   4180 References: <1252517083-sup-58@yoom.home.cworth.org>
   4181 	<1252599828-sup-7368@zyrg.net>
   4182 Message-ID: <1252660564-sup-4253@peray>
   4183 
   4184 Excerpts from Rich Lane's message of Fri Sep 11 00:45:20 +0200 2009:
   4185 > Excerpts from Carl Worth's message of Wed Sep 09 13:32:30 -0400 2009:
   4186 > > Would it be a small change to move the undo keybinding to somewhere
   4187 > > more universal?
   4188 > 
   4189 > No :(
   4190 > 
   4191 > > As a first cut, I'd be happy if it just undid the changes to the
   4192 > > index, even without undoing any interface changes. That is, if my
   4193 > > previous command was archive-thread-and-view-next-thread, it would be
   4194 > > OK if it just undid the archiving part. Bonus points if it also undoes
   4195 > > the view-next part, but I can imagine that being more work.
   4196 > 
   4197 > I know I sound a bit like a broken record here, but immediate
   4198 > label changes will solve this problem. Then, the undo system would just
   4199 > need to keep a global stack of (msgid, previous_labels). I'm just hoping
   4200 > somebody will volunteer for this - it will be a big patch.
   4201 
   4202 What prevent us from having a global stack of (msgid, previous_labels) in
   4203 the actual settings?
   4204 
   4205 -- 
   4206 Nicolas Pouillard
   4207 http://nicolaspouillard.fr
   4208 
   4209 From bgamari.foss@gmail.com  Fri Sep 11 12:58:31 2009
   4210 From: bgamari.foss@gmail.com (Ben Gamari)
   4211 Date: Fri, 11 Sep 2009 12:58:31 -0400
   4212 Subject: [sup-talk] Crash while scrolling
   4213 Message-ID: <20090911165830.GA11260@ben-laptop>
   4214 
   4215 Recently I've been seeing this crash[1] pretty consistently on the next
   4216 branch with the Xapian backend. All I need to do to reproduce the crash
   4217 is move to the last thread in the thread-index-mode and attempt to move
   4218 to the next thread.
   4219 
   4220 I can also produce a very similar crash[2] by attempting to load all
   4221 threads. Thanks,
   4222 
   4223 - Ben
   4224 
   4225 
   4226 [1] Crash while scrolling:
   4227 
   4228 --- RuntimeError from thread: load threads for thread-index-mode
   4229 wrong id called on nil
   4230 /opt/exp/sup/lib/sup.rb:17:in `id'
   4231 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:225:in `update'
   4232 /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `sort_by'
   4233 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:225:in `each'
   4234 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:225:in `sort_by'
   4235 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:225:in `update'
   4236 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:223:in `synchronize'
   4237 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:223:in `update'
   4238 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:637:in `__unprotected_load_n_threads'
   4239 (eval):12:in `load_n_threads'
   4240 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:609:in `load_n_threads_background'
   4241 /opt/exp/sup/lib/sup.rb:77:in `reporting_thread'
   4242 /opt/exp/sup/lib/sup.rb:75:in `initialize'
   4243 /opt/exp/sup/lib/sup.rb:75:in `new'
   4244 /opt/exp/sup/lib/sup.rb:75:in `reporting_thread'
   4245 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:608:in `load_n_threads_background'
   4246 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:679:in `__unprotected_load_threads'
   4247 (eval):12:in `load_threads'
   4248 /opt/exp/sup/lib/sup/mode.rb:51:in `send'
   4249 /opt/exp/sup/lib/sup/mode.rb:51:in `handle_input'
   4250 /opt/exp/sup/lib/sup/buffer.rb:267:in `handle_input'
   4251 /usr/bin/sup:238
   4252 
   4253 
   4254 [2] Crash after attempting to load all threads
   4255 --- RuntimeError from thread: load threads for thread-index-mode
   4256 wrong id called on nil
   4257 /opt/exp/sup/lib/sup.rb:17:in `id'
   4258 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:225:in `update'
   4259 /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `sort_by'
   4260 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:225:in `each'
   4261 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:225:in `sort_by'
   4262 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:225:in `update'
   4263 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:223:in `synchronize'
   4264 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:223:in `update'
   4265 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:628:in `__unprotected_load_n_threads'
   4266 /opt/exp/sup/lib/sup/thread.rb:334:in `load_n_threads'
   4267 /opt/exp/sup/lib/sup/xapian_index.rb:151:in `each_id_by_date'
   4268 /opt/exp/sup/lib/sup/xapian_index.rb:144:in `each_id'
   4269 /opt/exp/sup/lib/sup/xapian_index.rb:144:in `each'
   4270 /opt/exp/sup/lib/sup/xapian_index.rb:144:in `each_id'
   4271 /opt/exp/sup/lib/sup/xapian_index.rb:151:in `each_id_by_date'
   4272 /opt/exp/sup/lib/sup/thread.rb:328:in `load_n_threads'
   4273 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:625:in `__unprotected_load_n_threads'
   4274 (eval):12:in `load_n_threads'
   4275 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:609:in `load_n_threads_background'
   4276 /opt/exp/sup/lib/sup.rb:77:in `reporting_thread'
   4277 /opt/exp/sup/lib/sup.rb:75:in `initialize'
   4278 /opt/exp/sup/lib/sup.rb:75:in `new'
   4279 /opt/exp/sup/lib/sup.rb:75:in `reporting_thread'
   4280 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:608:in `load_n_threads_background'
   4281 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:679:in `__unprotected_load_threads'
   4282 (eval):12:in `load_threads'
   4283 /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:658:in `load_all_threads'
   4284 /opt/exp/sup/lib/sup/mode.rb:51:in `send'
   4285 /opt/exp/sup/lib/sup/mode.rb:51:in `handle_input'
   4286 /opt/exp/sup/lib/sup/buffer.rb:267:in `handle_input'
   4287 /usr/bin/sup:238
   4288 
   4289 From rlane@club.cc.cmu.edu  Fri Sep 11 15:52:24 2009
   4290 From: rlane@club.cc.cmu.edu (Rich Lane)
   4291 Date: Fri, 11 Sep 2009 15:52:24 -0400
   4292 Subject: [sup-talk] How hard would a universal undo be?
   4293 In-Reply-To: <1252660564-sup-4253@peray>
   4294 References: <1252517083-sup-58@yoom.home.cworth.org>
   4295 	<1252599828-sup-7368@zyrg.net> <1252660564-sup-4253@peray>
   4296 Message-ID: <1252685502-sup-8928@zyrg.net>
   4297 
   4298 Excerpts from Nicolas Pouillard's message of Fri Sep 11 05:16:49 -0400 2009:
   4299 > Excerpts from Rich Lane's message of Fri Sep 11 00:45:20 +0200 2009:
   4300 > > Excerpts from Carl Worth's message of Wed Sep 09 13:32:30 -0400 2009:
   4301 > > > Would it be a small change to move the undo keybinding to somewhere
   4302 > > > more universal?
   4303 > > 
   4304 > > No :(
   4305 > > 
   4306 > > > As a first cut, I'd be happy if it just undid the changes to the
   4307 > > > index, even without undoing any interface changes. That is, if my
   4308 > > > previous command was archive-thread-and-view-next-thread, it would be
   4309 > > > OK if it just undid the archiving part. Bonus points if it also undoes
   4310 > > > the view-next part, but I can imagine that being more work.
   4311 > > 
   4312 > > I know I sound a bit like a broken record here, but immediate
   4313 > > label changes will solve this problem. Then, the undo system would just
   4314 > > need to keep a global stack of (msgid, previous_labels). I'm just hoping
   4315 > > somebody will volunteer for this - it will be a big patch.
   4316 > 
   4317 > What prevent us from having a global stack of (msgid, previous_labels) in
   4318 > the actual settings?
   4319 
   4320 Hmm, you may be right. I was thinking that changes weren't propagated
   4321 between buffers except on save, but that's wrong because UpdateManager
   4322 is called in the keybinding. In that case, the user sees a mostly*
   4323 linear series of label changes, so it's safe to have a global undo
   4324 stack.
   4325 
   4326 *
   4327  User opens thread-index-mode A containing message M with labels L1
   4328  User changes labels on A.M to L2
   4329  User opens thread-index-mode B containing message M with labels L1
   4330  User changes labels on B.M to L3
   4331  UpdateManager changes labels on A.M to L3
   4332  User hits 'u' - now A.M and B.M have labels L1
   4333 
   4334 From nicolas.pouillard@gmail.com  Fri Sep 11 17:25:06 2009
   4335 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   4336 Date: Fri, 11 Sep 2009 23:25:06 +0200
   4337 Subject: [sup-talk] How hard would a universal undo be?
   4338 In-Reply-To: <1252685502-sup-8928@zyrg.net>
   4339 References: <1252517083-sup-58@yoom.home.cworth.org>
   4340 	<1252599828-sup-7368@zyrg.net> <1252660564-sup-4253@peray>
   4341 	<1252685502-sup-8928@zyrg.net>
   4342 Message-ID: <cd67f63a0909111425q7d04332fvd7e23b48e6dab06a@mail.gmail.com>
   4343 
   4344 On Fri, Sep 11, 2009 at 9:52 PM, Rich Lane<rlane at club.cc.cmu.edu> wrote:
   4345 > Excerpts from Nicolas Pouillard's message of Fri Sep 11 05:16:49 -0400 2009:
   4346 >> Excerpts from Rich Lane's message of Fri Sep 11 00:45:20 +0200 2009:
   4347 >> > Excerpts from Carl Worth's message of Wed Sep 09 13:32:30 -0400 2009:
   4348 >> > > Would it be a small change to move the undo keybinding to somewhere
   4349 >> > > more universal?
   4350 >> >
   4351 >> > No :(
   4352 >> >
   4353 >> > > As a first cut, I'd be happy if it just undid the changes to the
   4354 >> > > index, even without undoing any interface changes. That is, if my
   4355 >> > > previous command was archive-thread-and-view-next-thread, it would be
   4356 >> > > OK if it just undid the archiving part. Bonus points if it also undoes
   4357 >> > > the view-next part, but I can imagine that being more work.
   4358 >> >
   4359 >> > I know I sound a bit like a broken record here, but immediate
   4360 >> > label changes will solve this problem. Then, the undo system would just
   4361 >> > need to keep a global stack of (msgid, previous_labels). I'm just hoping
   4362 >> > somebody will volunteer for this - it will be a big patch.
   4363 >>
   4364 >> What prevent us from having a global stack of (msgid, previous_labels) in
   4365 >> the actual settings?
   4366 >
   4367 > Hmm, you may be right. I was thinking that changes weren't propagated
   4368 > between buffers except on save, but that's wrong because UpdateManager
   4369 > is called in the keybinding. In that case, the user sees a mostly*
   4370 > linear series of label changes, so it's safe to have a global undo
   4371 > stack.
   4372 
   4373 he next question is, what else is needed on this undo stack?
   4374 
   4375 Are labels the only interaction we have? Here is what come to my mind:
   4376 
   4377 * contacts (I more and more think that contacts should not be handled by
   4378   sup directly, but that's another topic)
   4379 * drafts
   4380 
   4381 -- 
   4382 Nicolas Pouillard
   4383 
   4384 From wmorgan-sup@masanjin.net  Sat Sep 12 12:35:21 2009
   4385 From: wmorgan-sup@masanjin.net (William Morgan)
   4386 Date: Sat, 12 Sep 2009 09:35:21 -0700
   4387 Subject: [sup-talk] Crash while scrolling
   4388 In-Reply-To: <20090911165830.GA11260@ben-laptop>
   4389 References: <20090911165830.GA11260@ben-laptop>
   4390 Message-ID: <1252773189-sup-246@masanjin.net>
   4391 
   4392 Reformatted excerpts from Ben Gamari's message of 2009-09-11:
   4393 > Recently I've been seeing this crash[1] pretty consistently on the next
   4394 > branch with the Xapian backend.
   4395 
   4396 Is your Xapian index somewhat old? There have been index format changes
   4397 that have caused this type of thing recently. You might try rebuilding
   4398 it.
   4399 -- 
   4400 William <wmorgan-sup at masanjin.net>
   4401 
   4402 From wmorgan-sup@masanjin.net  Sat Sep 12 12:47:14 2009
   4403 From: wmorgan-sup@masanjin.net (William Morgan)
   4404 Date: Sat, 12 Sep 2009 09:47:14 -0700
   4405 Subject: [sup-talk] U (unread) search is off
   4406 In-Reply-To: <1252595946-sup-171@zyrg.net>
   4407 References: <1252504368-sup-9406@ntdws12.chass.utoronto.ca>
   4408 	<1252581713-sup-9701@cannonball> <1252590993-sup-3885@masanjin.net>
   4409 	<1252595946-sup-171@zyrg.net>
   4410 Message-ID: <1252773806-sup-11@masanjin.net>
   4411 
   4412 Reformatted excerpts from Rich Lane's message of 2009-09-10:
   4413 > I thought it was, but it turns out that unless you explicitly add AND
   4414 > operators Xapian will OR terms over the same field such that
   4415 > "label:foo label:bar" gives you the union instead of the intersection.
   4416 
   4417 Ok. I only ask because I'm considering how to present the Xapian index
   4418 option in 0.9---the options are to not say anything about it, to force
   4419 everyone to switch to it, or anywhere in between. 
   4420 
   4421 > We could fix this by patching Xapian to make this behavior
   4422 > configurable, or we could come up with an index-agnostic simple query
   4423 > language that doesn't support boolean operators.
   4424 
   4425 The former sounds easier to me. Especially since it seems like this is
   4426 something Xapian should have...
   4427 -- 
   4428 William <wmorgan-sup at masanjin.net>
   4429 
   4430 From wmorgan-sup@masanjin.net  Sat Sep 12 13:08:50 2009
   4431 From: wmorgan-sup@masanjin.net (William Morgan)
   4432 Date: Sat, 12 Sep 2009 10:08:50 -0700
   4433 Subject: [sup-talk] [PATCH] Fix parsing of encrypted messages that
   4434 	contain further multipart elements
   4435 In-Reply-To: <6fd87965a2e243b190678edb6c4b9cefbde9ae66.1248369563.git.dato@net.com.org.es>
   4436 References: <ff7df0405d003a8f4e88f0dd191d8bf4875f73f3.1248368899.git.dato@net.com.org.es>
   4437 	<6fd87965a2e243b190678edb6c4b9cefbde9ae66.1248369563.git.dato@net.com.org.es>
   4438 Message-ID: <1252775304-sup-291@masanjin.net>
   4439 
   4440 Reformatted excerpts from Adeodato Sim?'s message of 2009-07-23:
   4441 > Amended patch follows, with a better wording that I had seemingly not
   4442 > committed. Sorry for the noise.
   4443 
   4444 Not sure why I missed this. Branch crypto-mime-fix, merged into next.
   4445 Thanks!
   4446 -- 
   4447 William <wmorgan-sup at masanjin.net>
   4448 
   4449 From kevinr@free-dissociation.com  Sat Sep 12 15:10:03 2009
   4450 From: kevinr@free-dissociation.com (Kevin Riggle)
   4451 Date: Sat, 12 Sep 2009 15:10:03 -0400
   4452 Subject: [sup-talk] Case-sensitivity of Content-Type: more RubyMail
   4453 	stupidity?
   4454 Message-ID: <1252781841-sup-6303@black-opal.mit.edu>
   4455 
   4456 Several people from whom I receive e-mail regularly use a MUA which 
   4457 generates Content-Type: headers of the form
   4458 > Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
   4459 
   4460 The symptoms I see are that I don't get any preview text, and Sup shows
   4461 the message as consisting only of a spurious attachment of the form: 
   4462 > - Attachment: sup-attachment-1252774311-2202. (8 lines) 
   4463 (Note no file-type suffix.)
   4464 
   4465 RFC 2045 (the MIME specification) section 5.1 says in part
   4466 > The type, subtype, and parameter names are not case sensitive.  For
   4467 > example, TEXT, Text, and TeXt are all equivalent top-level media
   4468 > types.
   4469 So the above should be handled just like the many mails with headers of
   4470 the form
   4471 > Content-Type: text/plain; charset="us-ascii"; format=flowed
   4472 I get, which Sup handles perfectly.
   4473 
   4474 I theorize that RubyMail is being case-sensitive where it shouldn't.
   4475 
   4476 Given the number of work-arounds Sup has had to implement to compensate
   4477 for RubyMail's stupidity, and that RubyMail is currently unmaintained,
   4478 has any thought been given to switching Sup to eg. TMail 
   4479 (http://tmail.rubyforge.org), which is maintained?
   4480 
   4481 Failing that, thoughts on how best to work around this problem in Sup?
   4482 
   4483 - Kevin
   4484 -- 
   4485 Kevin Riggle (kevinr at free-dissociation.com) 
   4486 http://free-dissociation.com
   4487 
   4488 From gigabo@gmail.com  Sat Sep 12 17:01:17 2009
   4489 From: gigabo@gmail.com (Bo Borgerson)
   4490 Date: Sat, 12 Sep 2009 17:01:17 -0400
   4491 Subject: [sup-talk] Hello and thanks
   4492 Message-ID: <1252787425-sup-4073@longword>
   4493 
   4494 Hi,
   4495 
   4496 I just started using sup yesterday.  I'm really impressed by it.
   4497 
   4498 As I've been using it I've been thinking of little tweaks to get it working
   4499 exactly how I like.  Some of these will work with hooks (that's a nice system),
   4500 but some seem better suited to small patches.
   4501 
   4502 I'm going to submit some of these patches to see if they're useful enough to
   4503 include upstream.  A git-send-email out of the blue isn't necessarily the
   4504 friendliest of introductions, though, so I just wanted to write first and say
   4505 thanks to William and everyone who has contributed to sup.  It's pretty
   4506 awesome.
   4507 
   4508 Thanks.
   4509 
   4510 Bo
   4511 
   4512 From gigabo@gmail.com  Sat Sep 12 17:04:05 2009
   4513 From: gigabo@gmail.com (Bo Borgerson)
   4514 Date: Sat, 12 Sep 2009 17:04:05 -0400
   4515 Subject: [sup-talk] [PATCH] Handle added messages in label-list-mode
   4516 Message-ID: <1252789445-30193-1-git-send-email-gigabo@gmail.com>
   4517 
   4518 Register label-list-mode with the UpdateManager and handle added
   4519 updates with a reload to keep unread message counts up to date
   4520 ---
   4521  lib/sup/modes/label-list-mode.rb |   10 ++++++++++
   4522  1 files changed, 10 insertions(+), 0 deletions(-)
   4523 
   4524 diff --git a/lib/sup/modes/label-list-mode.rb b/lib/sup/modes/label-list-mode.rb
   4525 index d94f56f..f0084a9 100644
   4526 --- a/lib/sup/modes/label-list-mode.rb
   4527 +++ b/lib/sup/modes/label-list-mode.rb
   4528 @@ -31,9 +31,15 @@ EOS
   4529      @text = []
   4530      @unread_only = false
   4531      super
   4532 +    UpdateManager.register self
   4533      regen_text
   4534    end
   4535  
   4536 +  def cleanup
   4537 +    UpdateManager.unregister self
   4538 +    super
   4539 +  end
   4540 +
   4541    def lines; @text.length end
   4542    def [] i; @text[i] end
   4543  
   4544 @@ -52,6 +58,10 @@ EOS
   4545      reload # make sure unread message counts are up-to-date
   4546    end
   4547  
   4548 +  def handle_added_update sender, m
   4549 +    reload
   4550 +  end
   4551 +
   4552  protected
   4553  
   4554    def toggle_show_unread_only
   4555 -- 
   4556 1.6.0.4
   4557 
   4558 
   4559 From gigabo@gmail.com  Sun Sep 13 10:38:35 2009
   4560 From: gigabo@gmail.com (Bo Borgerson)
   4561 Date: Sun, 13 Sep 2009 10:38:35 -0400
   4562 Subject: [sup-talk] [PATCH] Add command for polling unusual sources
   4563 Message-ID: <1252852715-9601-1-git-send-email-gigabo@gmail.com>
   4564 
   4565 bin/sup: Add new global key binding, '{', to poll unusual sources
   4566 (requires confirmation).  This allows update of unusual sources
   4567 without having to leave sup to run a sync.
   4568 
   4569 lib/sup/poll.rb: Add new method, poll_unusual.  Both the pre-existing
   4570 poll method and the new poll_unusual method are now wrappers around
   4571 new poll_with_sources method that contains the bulk of functionality
   4572 previously in poll.
   4573 
   4574 lib/sup/source.rb: Add new accessor for unusual_sources
   4575 ---
   4576  bin/sup           |    5 +++++
   4577  lib/sup/poll.rb   |   23 +++++++++++++++++++----
   4578  lib/sup/source.rb |    1 +
   4579  3 files changed, 25 insertions(+), 4 deletions(-)
   4580 
   4581 diff --git a/bin/sup b/bin/sup
   4582 index 76a0438..996c99e 100755
   4583 --- a/bin/sup
   4584 +++ b/bin/sup
   4585 @@ -75,6 +75,7 @@ global_keymap = Keymap.new do |k|
   4586    k.add :search_unread, "Show all unread messages", 'U'
   4587    k.add :list_labels, "List labels", 'L'
   4588    k.add :poll, "Poll for new messages", 'P'
   4589 +  k.add :poll_unusual, "Poll for new messages from unusual sources", '{'
   4590    k.add :compose, "Compose new message", 'm', 'c'
   4591    k.add :nothing, "Do nothing", :ctrl_g
   4592    k.add :recall_draft, "Edit most recent draft message", 'R'
   4593 @@ -282,6 +283,10 @@ begin
   4594        ComposeMode.spawn_nicely
   4595      when :poll
   4596        reporting_thread("user-invoked poll") { PollManager.poll }
   4597 +    when :poll_unusual
   4598 +      if BufferManager.ask_yes_or_no "Really poll unusual sources?"
   4599 +        reporting_thread("user-invoked unusual poll") { PollManager.poll_unusual }
   4600 +      end
   4601      when :recall_draft
   4602        case Index.num_results_for :label => :draft
   4603        when 0
   4604 diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb
   4605 index b59237f..ec51dec 100644
   4606 --- a/lib/sup/poll.rb
   4607 +++ b/lib/sup/poll.rb
   4608 @@ -35,12 +35,11 @@ EOS
   4609      @thread = nil
   4610      @last_poll = nil
   4611      @polling = false
   4612 +    @poll_sources = nil
   4613      @mode = nil
   4614    end
   4615  
   4616 -  def poll
   4617 -    return if @polling
   4618 -    @polling = true
   4619 +  def poll_with_sources
   4620      @mode ||= PollMode.new
   4621      HookManager.run "before-poll"
   4622  
   4623 @@ -54,6 +53,22 @@ EOS
   4624  
   4625      HookManager.run "after-poll", :num => num, :num_inbox => numi, :from_and_subj => from_and_subj, :from_and_subj_inbox => from_and_subj_inbox, :num_inbox_total_unread => lambda { Index.num_results_for :labels => [:inbox, :unread] }
   4626  
   4627 +  end
   4628 +
   4629 +  def poll
   4630 +    return if @polling
   4631 +    @polling = true
   4632 +    @poll_sources = SourceManager.usual_sources
   4633 +    num, numi = poll_with_sources
   4634 +    @polling = false
   4635 +    [num, numi]
   4636 +  end
   4637 +
   4638 +  def poll_unusual
   4639 +    return if @polling
   4640 +    @polling = true
   4641 +    @poll_sources = SourceManager.unusual_sources
   4642 +    num, numi = poll_with_sources
   4643      @polling = false
   4644      [num, numi]
   4645    end
   4646 @@ -78,7 +93,7 @@ EOS
   4647      from_and_subj_inbox = []
   4648  
   4649      @mutex.synchronize do
   4650 -      SourceManager.usual_sources.each do |source|
   4651 +      @poll_sources.each do |source|
   4652  #        yield "source #{source} is done? #{source.done?} (cur_offset #{source.cur_offset} >= #{source.end_offset})"
   4653          begin
   4654            yield "Loading from #{source}... " unless source.done? || (source.respond_to?(:has_errors?) && source.has_errors?)
   4655 diff --git a/lib/sup/source.rb b/lib/sup/source.rb
   4656 index 78386ff..6fe7bfb 100644
   4657 --- a/lib/sup/source.rb
   4658 +++ b/lib/sup/source.rb
   4659 @@ -207,6 +207,7 @@ class SourceManager
   4660  
   4661    def source_for uri; sources.find { |s| s.is_source_for? uri }; end
   4662    def usual_sources; sources.find_all { |s| s.usual? }; end
   4663 +  def unusual_sources; sources.find_all { |s| !s.usual? }; end
   4664  
   4665    def load_sources fn=Redwood::SOURCE_FN
   4666      source_array = (Redwood::load_yaml_obj(fn) || []).map { |o| Recoverable.new o }
   4667 -- 
   4668 1.6.0.4
   4669 
   4670 
   4671 From bgamari.foss@gmail.com  Sun Sep 13 11:02:32 2009
   4672 From: bgamari.foss@gmail.com (Ben Gamari)
   4673 Date: Sun, 13 Sep 2009 11:02:32 -0400
   4674 Subject: [sup-talk] Crash while scrolling
   4675 In-Reply-To: <1252773189-sup-246@masanjin.net>
   4676 References: <20090911165830.GA11260@ben-laptop>
   4677 	<1252773189-sup-246@masanjin.net>
   4678 Message-ID: <20090913150232.GB10024@ben-laptop>
   4679 
   4680 On Sat, Sep 12, 2009 at 09:35:21AM -0700, William Morgan wrote:
   4681 > Reformatted excerpts from Ben Gamari's message of 2009-09-11:
   4682 > > Recently I've been seeing this crash[1] pretty consistently on the next
   4683 > > branch with the Xapian backend.
   4684 > 
   4685 > Is your Xapian index somewhat old? There have been index format changes
   4686 > that have caused this type of thing recently. You might try rebuilding
   4687 > it.
   4688 
   4689 I wish I could say it was unfortunately I just rebuilt it two days ago,
   4690 suspecting that might be part of the issue. I'll try again, just to make
   4691 sure but I'm fairly certain the index is up-to-date.
   4692 
   4693 - Ben
   4694 
   4695 
   4696 From rlane@club.cc.cmu.edu  Sun Sep 13 14:44:09 2009
   4697 From: rlane@club.cc.cmu.edu (Rich Lane)
   4698 Date: Sun, 13 Sep 2009 11:44:09 -0700
   4699 Subject: [sup-talk] [PATCH] xapian: do less work for update_message_state
   4700 Message-ID: <1252867449-30734-1-git-send-email-rlane@club.cc.cmu.edu>
   4701 
   4702 Refactor index_message so that we do the minimal amount of work based on what
   4703 state the user has modified.
   4704 ---
   4705  lib/sup/xapian_index.rb |  241 +++++++++++++++++++++++++++--------------------
   4706  1 files changed, 137 insertions(+), 104 deletions(-)
   4707 
   4708 diff --git a/lib/sup/xapian_index.rb b/lib/sup/xapian_index.rb
   4709 index e1cfe65..ad45b0e 100644
   4710 --- a/lib/sup/xapian_index.rb
   4711 +++ b/lib/sup/xapian_index.rb
   4712 @@ -42,8 +42,6 @@ EOS
   4713        @xapian = Xapian::WritableDatabase.new(path, Xapian::DB_CREATE)
   4714        @xapian.set_metadata 'version', INDEX_VERSION
   4715      end
   4716 -    @term_generator = Xapian::TermGenerator.new()
   4717 -    @term_generator.stemmer = Xapian::Stem.new(STEM_LANGUAGE)
   4718      @enquire = Xapian::Enquire.new @xapian
   4719      @enquire.weighting_scheme = Xapian::BoolWeight.new
   4720      @enquire.docid_order = Xapian::Enquire::ASCENDING
   4721 @@ -91,41 +89,9 @@ EOS
   4722      m
   4723    end
   4724  
   4725 -  def add_message m; sync_message m end
   4726 -  def update_message m; sync_message m end
   4727 -  def update_message_state m; sync_message m end
   4728 -
   4729 -  def sync_message m, opts={}
   4730 -    entry = synchronize { get_entry m.id }
   4731 -    snippet = m.snippet
   4732 -    entry ||= {}
   4733 -    labels = m.labels
   4734 -    entry = {} if opts[:force_overwrite]
   4735 -
   4736 -    d = {
   4737 -      :message_id => m.id,
   4738 -      :source_id => m.source.id,
   4739 -      :source_info => m.source_info,
   4740 -      :date => (entry[:date] || m.date),
   4741 -      :snippet => snippet,
   4742 -      :labels => labels,
   4743 -      :from => (entry[:from] || [m.from.email, m.from.name]),
   4744 -      :to => (entry[:to] || m.to.map { |p| [p.email, p.name] }),
   4745 -      :cc => (entry[:cc] || m.cc.map { |p| [p.email, p.name] }),
   4746 -      :bcc => (entry[:bcc] || m.bcc.map { |p| [p.email, p.name] }),
   4747 -      :subject => m.subj,
   4748 -      :refs => (entry[:refs] || m.refs),
   4749 -      :replytos => (entry[:replytos] || m.replytos),
   4750 -    }
   4751 -
   4752 -    labels.each { |l| LabelManager << l }
   4753 -
   4754 -    synchronize do
   4755 -      index_message m, d, opts
   4756 -    end
   4757 -    true
   4758 -  end
   4759 -  private :sync_message
   4760 +  def add_message m; sync_message m, true end
   4761 +  def update_message m; sync_message m, true end
   4762 +  def update_message_state m; sync_message m, false end
   4763  
   4764    def num_results_for query={}
   4765      xapian_query = build_xapian_query query
   4766 @@ -153,7 +119,6 @@ EOS
   4767  
   4768    def each_message_in_thread_for m, opts={}
   4769      # TODO thread by subject
   4770 -    # TODO handle killed threads
   4771      return unless doc = find_doc(m.id)
   4772      queue = doc.value(THREAD_VALUENO).split(',')
   4773      msgids = [m.id]
   4774 @@ -438,100 +403,140 @@ EOS
   4775      end
   4776    end
   4777  
   4778 -  def index_message m, entry, opts
   4779 -    terms = []
   4780 -    text = []
   4781 +  def sync_message m, overwrite
   4782 +    doc = synchronize { find_doc(m.id) }
   4783 +    existed = doc != nil
   4784 +    doc ||= Xapian::Document.new
   4785 +    do_index_static = overwrite || !existed
   4786 +    old_entry = !do_index_static && doc.entry
   4787 +    snippet = do_index_static ? m.snippet : old_entry[:snippet]
   4788  
   4789 -    subject_text = m.indexable_subject
   4790 -    body_text = m.indexable_body
   4791 +    entry = {
   4792 +      :message_id => m.id,
   4793 +      :source_id => m.source.id,
   4794 +      :source_info => m.source_info,
   4795 +      :date => m.date,
   4796 +      :snippet => snippet,
   4797 +      :labels => m.labels.to_a,
   4798 +      :from => [m.from.email, m.from.name],
   4799 +      :to => m.to.map { |p| [p.email, p.name] },
   4800 +      :cc => m.cc.map { |p| [p.email, p.name] },
   4801 +      :bcc => m.bcc.map { |p| [p.email, p.name] },
   4802 +      :subject => m.subj,
   4803 +      :refs => m.refs.to_a,
   4804 +      :replytos => m.replytos.to_a,
   4805 +    }
   4806  
   4807 +    if do_index_static
   4808 +      doc.clear_terms
   4809 +      doc.clear_values
   4810 +      index_message_static m, doc, entry
   4811 +    end
   4812 +
   4813 +    index_message_threading doc, entry, old_entry
   4814 +    index_message_labels doc, entry[:labels], (do_index_static ? [] : old_entry[:labels])
   4815 +    doc.entry = entry
   4816 +
   4817 +    synchronize do
   4818 +      unless docid = existed ? doc.docid : assign_docid(m, truncate_date(m.date))
   4819 +        # Could be triggered by spam
   4820 +        warn "docid underflow, dropping #{m.id.inspect}"
   4821 +        return
   4822 +      end
   4823 +      @xapian.replace_document docid, doc
   4824 +    end
   4825 +
   4826 +    m.labels.each { |l| LabelManager << l }
   4827 +    true
   4828 +  end
   4829 +
   4830 +  ## Index content that can't be changed by the user
   4831 +  def index_message_static m, doc, entry
   4832      # Person names are indexed with several prefixes
   4833      person_termer = lambda do |d|
   4834        lambda do |p|
   4835          ["#{d}_name", "name", "body"].each do |x|
   4836 -          text << [p.name, PREFIX[x]]
   4837 +          doc.index_text p.name, PREFIX[x]
   4838          end if p.name
   4839 -        [d, :any].each { |x| terms << mkterm(:email, x, p.email) }
   4840 +        [d, :any].each { |x| doc.add_term mkterm(:email, x, p.email) }
   4841        end
   4842      end
   4843  
   4844      person_termer[:from][m.from] if m.from
   4845      (m.to+m.cc+m.bcc).each(&(person_termer[:to]))
   4846  
   4847 -    terms << mkterm(:date,m.date) if m.date
   4848 -    m.labels.each { |t| terms << mkterm(:label,t) }
   4849 -    terms << mkterm(:type, 'mail')
   4850 -    terms << mkterm(:msgid, m.id)
   4851 -    terms << mkterm(:source_id, m.source.id)
   4852 +    # Full text search content
   4853 +    subject_text = m.indexable_subject
   4854 +    body_text = m.indexable_body
   4855 +    doc.index_text subject_text, PREFIX['subject']
   4856 +    doc.index_text subject_text, PREFIX['body']
   4857 +    doc.index_text body_text, PREFIX['body']
   4858 +    m.attachments.each { |a| doc.index_text a, PREFIX['attachment'] }
   4859 +
   4860 +    # Miscellaneous terms
   4861 +    doc.add_term mkterm(:date, m.date) if m.date
   4862 +    doc.add_term mkterm(:type, 'mail')
   4863 +    doc.add_term mkterm(:msgid, m.id)
   4864 +    doc.add_term mkterm(:source_id, m.source.id)
   4865      m.attachments.each do |a|
   4866        a =~ /\.(\w+)$/ or next
   4867 -      t = mkterm(:attachment_extension, $1)
   4868 -      terms << t
   4869 +      doc.add_term mkterm(:attachment_extension, $1)
   4870 +    end
   4871 +
   4872 +    # Date value for range queries
   4873 +    date_value = begin
   4874 +      Xapian.sortable_serialise m.date.to_i
   4875 +    rescue TypeError
   4876 +      Xapian.sortable_serialise 0
   4877      end
   4878  
   4879 -    ## Thread membership
   4880 -    children = term_docids(mkterm(:ref, m.id)).map { |docid| @xapian.document docid }
   4881 -    parent_ids = m.refs + m.replytos
   4882 +    doc.add_value MSGID_VALUENO, m.id
   4883 +    doc.add_value DATE_VALUENO, date_value
   4884 +  end
   4885 +
   4886 +  def index_message_labels doc, new_labels, old_labels
   4887 +    return if new_labels == old_labels
   4888 +    added = new_labels.to_a - old_labels.to_a
   4889 +    removed = old_labels.to_a - new_labels.to_a
   4890 +    added.each { |t| doc.add_term mkterm(:label,t) }
   4891 +    removed.each { |t| doc.remove_term mkterm(:label,t) }
   4892 +  end
   4893 +
   4894 +  ## Assign a set of thread ids to the document. This is a hybrid of the runtime
   4895 +  ## search done by the Ferret index and the index-time union done by previous
   4896 +  ## versions of the Xapian index. We first find the thread ids of all messages
   4897 +  ## with a reference to or from us. If that set is empty, we use our own
   4898 +  ## message id. Otherwise, we use all the thread ids we previously found. In
   4899 +  ## the common case there's only one member in that set, but if we're the
   4900 +  ## missing link between multiple previously unrelated threads we can have
   4901 +  ## more. XapianIndex#each_message_in_thread_for follows the thread ids when
   4902 +  ## searching so the user sees a single unified thread.
   4903 +  def index_message_threading doc, entry, old_entry
   4904 +    return if old_entry && (entry[:refs] == old_entry[:refs]) && (entry[:replytos] == old_entry[:replytos])
   4905 +    children = term_docids(mkterm(:ref, entry[:message_id])).map { |docid| @xapian.document docid }
   4906 +    parent_ids = entry[:refs] + entry[:replytos]
   4907      parents = parent_ids.map { |id| find_doc id }.compact
   4908      thread_members = SavingHash.new { [] }
   4909      (children + parents).each do |doc2|
   4910        thread_ids = doc2.value(THREAD_VALUENO).split ','
   4911        thread_ids.each { |thread_id| thread_members[thread_id] << doc2 }
   4912      end
   4913 +    thread_ids = thread_members.empty? ? [entry[:message_id]] : thread_members.keys
   4914 +    thread_ids.each { |thread_id| doc.add_term mkterm(:thread, thread_id) }
   4915 +    parent_ids.each { |ref| doc.add_term mkterm(:ref, ref) }
   4916 +    doc.add_value THREAD_VALUENO, (thread_ids * ',')
   4917 +  end
   4918  
   4919 -    thread_ids = thread_members.empty? ? [m.id] : thread_members.keys
   4920 -
   4921 -    thread_ids.each { |thread_id| terms << mkterm(:thread, thread_id) }
   4922 -    parent_ids.each do |ref|
   4923 -      terms << mkterm(:ref, ref)
   4924 -    end
   4925 -
   4926 -    # Full text search content
   4927 -    text << [subject_text, PREFIX['subject']]
   4928 -    text << [subject_text, PREFIX['body']]
   4929 -    text << [body_text, PREFIX['body']]
   4930 -    m.attachments.each { |a| text << [a, PREFIX['attachment']] }
   4931 -
   4932 -    truncated_date = if m.date < MIN_DATE
   4933 -      debug "warning: adjusting too-low date #{m.date} for indexing"
   4934 +  def truncate_date date
   4935 +    if date < MIN_DATE
   4936 +      debug "warning: adjusting too-low date #{date} for indexing"
   4937        MIN_DATE
   4938 -    elsif m.date > MAX_DATE
   4939 -      debug "warning: adjusting too-high date #{m.date} for indexing"
   4940 +    elsif date > MAX_DATE
   4941 +      debug "warning: adjusting too-high date #{date} for indexing"
   4942        MAX_DATE
   4943      else
   4944 -      m.date
   4945 -    end
   4946 -
   4947 -    # Date value for range queries
   4948 -    date_value = begin
   4949 -      Xapian.sortable_serialise truncated_date.to_i
   4950 -    rescue TypeError
   4951 -      Xapian.sortable_serialise 0
   4952 -    end
   4953 -
   4954 -    docid = nil
   4955 -    unless doc = find_doc(m.id)
   4956 -      doc = Xapian::Document.new
   4957 -      if not docid = assign_docid(m, truncated_date)
   4958 -        # Could be triggered by spam
   4959 -        Redwood::log "warning: docid underflow, dropping #{m.id.inspect}"
   4960 -        return
   4961 -      end
   4962 -    else
   4963 -      doc.clear_terms
   4964 -      doc.clear_values
   4965 -      docid = doc.docid
   4966 +      date
   4967      end
   4968 -
   4969 -    @term_generator.document = doc
   4970 -    text.each { |text,prefix| @term_generator.index_text text, 1, prefix }
   4971 -    terms.each { |term| doc.add_term term if term.length <= MAX_TERM_LENGTH }
   4972 -    doc.add_value MSGID_VALUENO, m.id
   4973 -    doc.add_value THREAD_VALUENO, (thread_ids * ',')
   4974 -    doc.add_value DATE_VALUENO, date_value
   4975 -    doc.data = Marshal.dump entry
   4976 -
   4977 -    @xapian.replace_document docid, doc
   4978    end
   4979  
   4980    # Construct a Xapian term
   4981 @@ -561,6 +566,34 @@ EOS
   4982      end
   4983    end
   4984  
   4985 +  module DocumentMethods
   4986 +    def entry
   4987 +      Marshal.load data
   4988 +    end
   4989 +
   4990 +    def entry=(x)
   4991 +      self.data = Marshal.dump x
   4992 +    end
   4993 +
   4994 +    def index_text text, prefix, weight=1
   4995 +      term_generator = Xapian::TermGenerator.new
   4996 +      term_generator.stemmer = Xapian::Stem.new(STEM_LANGUAGE)
   4997 +      term_generator.document = self
   4998 +      term_generator.index_text text, weight, prefix
   4999 +    end
   5000 +
   5001 +    def add_term term
   5002 +      if term.length <= MAX_TERM_LENGTH
   5003 +        super term
   5004 +      else
   5005 +        warn "dropping excessively long term #{term}"
   5006 +      end
   5007 +    end
   5008 +  end
   5009 +end
   5010 +
   5011  end
   5012  
   5013 +class Xapian::Document
   5014 +  include Redwood::XapianIndex::DocumentMethods
   5015  end
   5016 -- 
   5017 1.6.4.2
   5018 
   5019 
   5020 From rlane@club.cc.cmu.edu  Sun Sep 13 17:40:05 2009
   5021 From: rlane@club.cc.cmu.edu (Rich Lane)
   5022 Date: Sun, 13 Sep 2009 17:40:05 -0400
   5023 Subject: [sup-talk] How hard would a universal undo be?
   5024 In-Reply-To: <cd67f63a0909111425q7d04332fvd7e23b48e6dab06a@mail.gmail.com>
   5025 References: <1252517083-sup-58@yoom.home.cworth.org>
   5026 	<1252599828-sup-7368@zyrg.net> <1252660564-sup-4253@peray>
   5027 	<1252685502-sup-8928@zyrg.net>
   5028 	<cd67f63a0909111425q7d04332fvd7e23b48e6dab06a@mail.gmail.com>
   5029 Message-ID: <1252877576-sup-8500@zyrg.net>
   5030 
   5031 Excerpts from Nicolas Pouillard's message of Fri Sep 11 17:25:06 -0400 2009:
   5032 > On Fri, Sep 11, 2009 at 9:52 PM, Rich Lane<rlane at club.cc.cmu.edu> wrote:
   5033 > > Excerpts from Nicolas Pouillard's message of Fri Sep 11 05:16:49 -0400 2009:
   5034 > >> Excerpts from Rich Lane's message of Fri Sep 11 00:45:20 +0200 2009:
   5035 > >> > Excerpts from Carl Worth's message of Wed Sep 09 13:32:30 -0400 2009:
   5036 > >> > > Would it be a small change to move the undo keybinding to somewhere
   5037 > >> > > more universal?
   5038 > >> >
   5039 > >> > No :(
   5040 > >> >
   5041 > >> > > As a first cut, I'd be happy if it just undid the changes to the
   5042 > >> > > index, even without undoing any interface changes. That is, if my
   5043 > >> > > previous command was archive-thread-and-view-next-thread, it would be
   5044 > >> > > OK if it just undid the archiving part. Bonus points if it also undoes
   5045 > >> > > the view-next part, but I can imagine that being more work.
   5046 > >> >
   5047 > >> > I know I sound a bit like a broken record here, but immediate
   5048 > >> > label changes will solve this problem. Then, the undo system would just
   5049 > >> > need to keep a global stack of (msgid, previous_labels). I'm just hoping
   5050 > >> > somebody will volunteer for this - it will be a big patch.
   5051 > >>
   5052 > >> What prevent us from having a global stack of (msgid, previous_labels) in
   5053 > >> the actual settings?
   5054 > >
   5055 > > Hmm, you may be right. I was thinking that changes weren't propagated
   5056 > > between buffers except on save, but that's wrong because UpdateManager
   5057 > > is called in the keybinding. In that case, the user sees a mostly*
   5058 > > linear series of label changes, so it's safe to have a global undo
   5059 > > stack.
   5060 > 
   5061 > he next question is, what else is needed on this undo stack?
   5062 > 
   5063 > Are labels the only interaction we have? Here is what come to my mind:
   5064 > 
   5065 > * contacts (I more and more think that contacts should not be handled by
   5066 >   sup directly, but that's another topic)
   5067 > * drafts
   5068 > 
   5069 
   5070 What actions on drafts are you thinking of making undoable? Could we
   5071 implement them with reserved labels?
   5072 
   5073 From dato@net.com.org.es  Sun Sep 13 19:17:53 2009
   5074 From: dato@net.com.org.es (Adeodato =?utf-8?B?U2ltw7M=?=)
   5075 Date: Mon, 14 Sep 2009 00:17:53 +0100
   5076 Subject: [sup-talk] [PATCH] mime-decode hook: provide a "charset"
   5077  variable with the attachment charset
   5078 In-Reply-To: <1251048347-sup-5075@masanjin.net>
   5079 References: <6fc2e5dd8aa2b0b8547375d77b1776d779f85817.1247238014.git.dato@net.com.org.es>
   5080 	<20090723093543.GA2265@chistera.yi.org> <1248713434-sup-4961@entry>
   5081 	<20090730155656.GA20442@chistera.yi.org>
   5082 	<20090819212209.GA10883@chistera.yi.org>
   5083 	<1250964880-sup-7106@masanjin.net>
   5084 	<20090822191617.GA26897@chistera.yi.org>
   5085 	<1251048347-sup-5075@masanjin.net>
   5086 Message-ID: <20090913231753.GA20849@chistera.yi.org>
   5087 
   5088 + William Morgan (Sun, 23 Aug 2009 10:34:10 -0700):
   5089 
   5090 > Anyways, I just merged my hook changes into next, on the branch
   5091 > hook-local-vars. Take a look and tell me what you think. This should
   5092 > also fix Edward Z. Yang's problems with hook locals not being useable in
   5093 > statements like "x = x.foo()".
   5094 
   5095 Works for me, thanks.
   5096 
   5097 Now that that fix is in, can you merge the mime-decode improvement from
   5098 <6fc2e5dd8aa2b0b8547375d77b1776d779f85817.1247238014.git.dato at net.com.org.es>?
   5099 Thanks!
   5100 
   5101 -- 
   5102 - Are you sure we're good?
   5103 - Always.
   5104         -- Rory and Lorelai
   5105 
   5106 
   5107 From rlane@club.cc.cmu.edu  Sun Sep 13 20:31:23 2009
   5108 From: rlane@club.cc.cmu.edu (Rich Lane)
   5109 Date: Sun, 13 Sep 2009 20:31:23 -0400
   5110 Subject: [sup-talk] U (unread) search is off
   5111 In-Reply-To: <1252773806-sup-11@masanjin.net>
   5112 References: <1252504368-sup-9406@ntdws12.chass.utoronto.ca>
   5113 	<1252581713-sup-9701@cannonball> <1252590993-sup-3885@masanjin.net>
   5114 	<1252595946-sup-171@zyrg.net> <1252773806-sup-11@masanjin.net>
   5115 Message-ID: <1252878152-sup-9190@zyrg.net>
   5116 
   5117 Excerpts from William Morgan's message of Sat Sep 12 12:47:14 -0400 2009:
   5118 > Reformatted excerpts from Rich Lane's message of 2009-09-10:
   5119 > > I thought it was, but it turns out that unless you explicitly add AND
   5120 > > operators Xapian will OR terms over the same field such that
   5121 > > "label:foo label:bar" gives you the union instead of the intersection.
   5122 > 
   5123 > Ok. I only ask because I'm considering how to present the Xapian index
   5124 > option in 0.9---the options are to not say anything about it, to force
   5125 > everyone to switch to it, or anywhere in between. 
   5126 
   5127 Yeah, we do need the query behavior to be reasonable before advertising
   5128 the Xapian index. What's your timeline on 0.9?
   5129 
   5130 > > We could fix this by patching Xapian to make this behavior
   5131 > > configurable, or we could come up with an index-agnostic simple query
   5132 > > language that doesn't support boolean operators.
   5133 > 
   5134 > The former sounds easier to me. Especially since it seems like this is
   5135 > something Xapian should have...
   5136 
   5137 Agreed that Xapian should have this, and I'll probably implement it. We
   5138 still need to support people using older Xapian versions though. Whether
   5139 this means a log message telling them to use explicit ANDs in their
   5140 query, or automatically transforming simple-enough queries into what we
   5141 think they actually want, I don't know. I'll also need to add a
   5142 workaround for the earlier Xapian bug before this index gets wider
   5143 usage.
   5144 
   5145 As far as which index to make the default, Ferret has the advantage of
   5146 being installable as a gem dependency. I think this ease of installation
   5147 is important enough to block Xapian for now, unless someone can create a
   5148 Xapian gem. There's been interest in this before:
   5149 http://article.gmane.org/gmane.comp.search.xapian.devel/1408/
   5150 
   5151 From nicolas.pouillard@gmail.com  Mon Sep 14 12:29:09 2009
   5152 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   5153 Date: Mon, 14 Sep 2009 18:29:09 +0200
   5154 Subject: [sup-talk] How hard would a universal undo be?
   5155 In-Reply-To: <1252877576-sup-8500@zyrg.net>
   5156 References: <1252517083-sup-58@yoom.home.cworth.org>
   5157 	<1252599828-sup-7368@zyrg.net> <1252660564-sup-4253@peray>
   5158 	<1252685502-sup-8928@zyrg.net>
   5159 	<cd67f63a0909111425q7d04332fvd7e23b48e6dab06a@mail.gmail.com>
   5160 	<1252877576-sup-8500@zyrg.net>
   5161 Message-ID: <1252945595-sup-1907@peray>
   5162 
   5163 Excerpts from Rich Lane's message of Sun Sep 13 23:40:05 +0200 2009:
   5164 > Excerpts from Nicolas Pouillard's message of Fri Sep 11 17:25:06 -0400 2009:
   5165 > > On Fri, Sep 11, 2009 at 9:52 PM, Rich Lane<rlane at club.cc.cmu.edu> wrote:
   5166 > > > Excerpts from Nicolas Pouillard's message of Fri Sep 11 05:16:49 -0400 2009:
   5167 > > >> Excerpts from Rich Lane's message of Fri Sep 11 00:45:20 +0200 2009:
   5168 > > >> > Excerpts from Carl Worth's message of Wed Sep 09 13:32:30 -0400 2009:
   5169 > > >> > > Would it be a small change to move the undo keybinding to somewhere
   5170 > > >> > > more universal?
   5171 > > >> >
   5172 > > >> > No :(
   5173 > > >> >
   5174 > > >> > > As a first cut, I'd be happy if it just undid the changes to the
   5175 > > >> > > index, even without undoing any interface changes. That is, if my
   5176 > > >> > > previous command was archive-thread-and-view-next-thread, it would be
   5177 > > >> > > OK if it just undid the archiving part. Bonus points if it also undoes
   5178 > > >> > > the view-next part, but I can imagine that being more work.
   5179 > > >> >
   5180 > > >> > I know I sound a bit like a broken record here, but immediate
   5181 > > >> > label changes will solve this problem. Then, the undo system would just
   5182 > > >> > need to keep a global stack of (msgid, previous_labels). I'm just hoping
   5183 > > >> > somebody will volunteer for this - it will be a big patch.
   5184 > > >>
   5185 > > >> What prevent us from having a global stack of (msgid, previous_labels) in
   5186 > > >> the actual settings?
   5187 > > >
   5188 > > > Hmm, you may be right. I was thinking that changes weren't propagated
   5189 > > > between buffers except on save, but that's wrong because UpdateManager
   5190 > > > is called in the keybinding. In that case, the user sees a mostly*
   5191 > > > linear series of label changes, so it's safe to have a global undo
   5192 > > > stack.
   5193 > > 
   5194 > > he next question is, what else is needed on this undo stack?
   5195 > > 
   5196 > > Are labels the only interaction we have? Here is what come to my mind:
   5197 > > 
   5198 > > * contacts (I more and more think that contacts should not be handled by
   5199 > >   sup directly, but that's another topic)
   5200 > > * drafts
   5201 > > 
   5202 > 
   5203 > What actions on drafts are you thinking of making undoable? Could we
   5204 > implement them with reserved labels?
   5205 
   5206 No I think that's fine for now to consider, discarding, editing...
   5207 non-undoable actions.
   5208 
   5209 Basically I agree with a global undo stack of labels, I'm just searching for
   5210 issues ahead.
   5211 
   5212 -- 
   5213 Nicolas Pouillard
   5214 http://nicolaspouillard.fr
   5215 
   5216 From olly@survex.com  Tue Sep 15 03:18:51 2009
   5217 From: olly@survex.com (Olly Betts)
   5218 Date: Tue, 15 Sep 2009 07:18:51 +0000 (UTC)
   5219 Subject: [sup-talk] U (unread) search is off
   5220 References: <1252504368-sup-9406@ntdws12.chass.utoronto.ca>
   5221 	<1252581713-sup-9701@cannonball> <1252590993-sup-3885@masanjin.net>
   5222 	<1252595946-sup-171@zyrg.net> <1252773806-sup-11@masanjin.net>
   5223 	<1252878152-sup-9190@zyrg.net>
   5224 Message-ID: <loom.20090915T090521-2@post.gmane.org>
   5225 
   5226 Rich Lane <rlane at club.cc.cmu.edu> writes:
   5227 > Agreed that Xapian should have this, and I'll probably implement it. We
   5228 > still need to support people using older Xapian versions though. Whether
   5229 > this means a log message telling them to use explicit ANDs in their
   5230 > query, or automatically transforming simple-enough queries into what we
   5231 > think they actually want, I don't know. I'll also need to add a
   5232 > workaround for the earlier Xapian bug before this index gets wider
   5233 > usage.
   5234 
   5235 I've now opened a Xapian ticket for this:
   5236 
   5237 http://trac.xapian.org/ticket/402
   5238 
   5239 Patches are certainly most welcome, especially as I'm currently trying to
   5240 focus on getting Xapian 1.2.0 out of the door.
   5241 
   5242 I don't see a satisfactory workaround for it, sadly.
   5243 
   5244 > As far as which index to make the default, Ferret has the advantage of
   5245 > being installable as a gem dependency. I think this ease of installation
   5246 > is important enough to block Xapian for now, unless someone can create a
   5247 > Xapian gem. There's been interest in this before:
   5248 > http://article.gmane.org/gmane.comp.search.xapian.devel/1408/
   5249 
   5250 I recently noticed this gem version of (modified) xapian-bindings:
   5251 
   5252 http://groups.google.com/group/acts_as_xapian/msg/1bbb1e0d3753a0b7
   5253 
   5254 I've not had a chance to look at it yet though, so I don't know if the
   5255 changes mentioned are compatible or not.  Assuming they're useful, they
   5256 probably should be folded in upstream - more idiomatic wrappers are a
   5257 desirable improvement (though if they're incompatible we'd need some
   5258 sort of migration plan).  It doesn't seem productive to have forked
   5259 versions like this either.
   5260 
   5261 Cheers,
   5262     Olly
   5263 
   5264 
   5265 From michael@content-space.de  Tue Sep 15 12:20:59 2009
   5266 From: michael@content-space.de (Michael Hamann)
   5267 Date: Tue, 15 Sep 2009 18:20:59 +0200
   5268 Subject: [sup-talk] Sup and Ruby 1.9.1 - deadlock?
   5269 Message-ID: <1253030868-sup-8556@mithink>
   5270 
   5271 Hi,
   5272 
   5273 as Arch Linux has decided to put Ruby 1.9.1 into the extra repository I've got
   5274 Ruby 1.8 replaced by 1.9.1 today. I then tried reinstalling all dependencies of
   5275 sup again with Ruby 1.9.1. I've also found a Ferret gem for Ruby 1.9.1 at
   5276 http://pennysmalls.com/2009/03/24/ferret-on-ruby-191/.
   5277 
   5278 After that I tried running sup and after seeing the main screen for a few
   5279 moments sup crashed with the following error (I'm using the latest version from
   5280 next, but with master it's the same):
   5281 
   5282 ThreadError from thread: load threads for thread-index-mode
   5283 deadlock; recursive locking
   5284 <internal:prelude>:6:in `lock'
   5285 <internal:prelude>:6:in `synchronize'
   5286 /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:757:in `regen_text'
   5287 /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:687:in `resize'
   5288 /home/michitux/pub/software/sup/lib/sup/buffer.rb:87:in `resize'
   5289 /home/michitux/pub/software/sup/lib/sup/buffer.rb:328:in `draw_screen'
   5290 /home/michitux/pub/software/sup/lib/sup/buffer.rb:728:in `flash'
   5291 /home/michitux/pub/software/sup/lib/sup/util.rb:520:in `method_missing'
   5292 /home/michitux/pub/software/sup/lib/sup/hook.rb:87:in `rescue in run'
   5293 /home/michitux/pub/software/sup/lib/sup/hook.rb:81:in `run'
   5294 /home/michitux/pub/software/sup/lib/sup/util.rb:520:in `method_missing'
   5295 /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:714:in `size_widget_for_thread'
   5296 /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:226:in `block (2 levels) in update'
   5297 /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:226:in `map'
   5298 /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:226:in `block in update'
   5299 <internal:prelude>:8:in `synchronize'
   5300 /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:223:in `update'
   5301 /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:637:in `load_n_threads'
   5302 (eval):12:in `load_n_threads'
   5303 /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:609:in `block in load_n_threads_background'
   5304 /home/michitux/pub/software/sup/lib/sup.rb:77:in `block in reporting_thread
   5305 
   5306 I then tried running sup-dump, it worked without problems, the results looks
   5307 correct (just a few changed lines that represent the changes of the last days).
   5308 
   5309 I then installed xapian and tried reimporting my mails and all I've got after
   5310 importing 46 mails of about 44000 is:
   5311 
   5312 Scanning maildir:/home/michitux/mail...
   5313 /home/michitux/pub/software/sup/lib/sup/message.rb:103:in `gsub': invalid byte sequence in US-ASCII (ArgumentError)
   5314 from /home/michitux/pub/software/sup/lib/sup/message.rb:103:in `parse_header'
   5315 from /home/michitux/pub/software/sup/lib/sup/message.rb:238:in `load_from_source!'
   5316 from /home/michitux/pub/software/sup/lib/sup/message.rb:335:in `build_from_source'
   5317 from /home/michitux/pub/software/sup/lib/sup/poll.rb:145:in `block in each_message_from'
   5318 from /home/michitux/pub/software/sup/lib/sup/maildir.rb:160:in `block in each'
   5319 from /home/michitux/pub/software/sup/lib/sup/maildir.rb:157:in `upto'
   5320 from /home/michitux/pub/software/sup/lib/sup/maildir.rb:157:in `each'
   5321 from /home/michitux/pub/software/sup/lib/sup/util.rb:560:in `__pass'
   5322 from /home/michitux/pub/software/sup/lib/sup/util.rb:547:in `method_missing'
   5323 from /home/michitux/pub/software/sup/lib/sup/poll.rb:139:in `each_message_from'
   5324 from /home/michitux/pub/software/sup/lib/sup/util.rb:520:in `method_missing'
   5325 from bin/sup-sync:146:in `block in <main>'
   5326 from bin/sup-sync:141:in `each'
   5327 from bin/sup-sync:141:in `<main>'
   5328 
   5329 Running sup with xapian and ruby 1.9.1 works as long as there aren't any mails
   5330 displayed, when I e.g. select a label that contains mails, sub crashes again
   5331 with the same exception as with ferret.
   5332 
   5333 Is there anything I'm missing, is sup just not ready for Ruby 1.9.1 or is there
   5334 another issue?
   5335 
   5336 Greetings
   5337 Michael Hamann
   5338 
   5339 From sean.escriva@gmail.com  Tue Sep 15 13:53:39 2009
   5340 From: sean.escriva@gmail.com (Sean Escriva)
   5341 Date: Tue, 15 Sep 2009 10:53:39 -0700
   5342 Subject: [sup-talk] Sup and Ruby 1.9.1 - deadlock?
   5343 In-Reply-To: <1253030868-sup-8556@mithink>
   5344 References: <1253030868-sup-8556@mithink>
   5345 Message-ID: <20090915175339.GA15735@gmail.com>
   5346 
   5347 Excerpts from Michael Hamann's message of Tue Sep 15 06:20:59 +0200 2009: 
   5348 > Hi,
   5349 > 
   5350 > as Arch Linux has decided to put Ruby 1.9.1 into the extra repository I've got
   5351 > Ruby 1.8 replaced by 1.9.1 today. I then tried reinstalling all dependencies of
   5352 > sup again with Ruby 1.9.1. I've also found a Ferret gem for Ruby 1.9.1 at
   5353 > http://pennysmalls.com/2009/03/24/ferret-on-ruby-191/.
   5354 
   5355 I followed a similar path after the recent upgrade to no avail. In the
   5356 end I downgraded ruby back to 1.8.7_p160 from older arch packages
   5357 available here: 
   5358 
   5359     http://www.schlunix.org/archlinux/extra/os/x86_64/
   5360 
   5361 I'd like a better solution, but I've become dependent on sup for daily
   5362 work. 
   5363 
   5364 > [..snip..]
   5365 
   5366 From mailinglist@flasht.de  Tue Sep 15 16:21:59 2009
   5367 From: mailinglist@flasht.de (Christopher Bertels)
   5368 Date: Tue, 15 Sep 2009 22:21:59 +0200
   5369 Subject: [sup-talk] Fixing header for encrypted messages (might be an old
   5370 	issue)
   5371 Message-ID: <1253045775-sup-210@thinkpad-ubuntu>
   5372 
   5373 Hi!
   5374 
   5375 I've been having problems with encrypting messages. No idea where this
   5376 came from, but somehow the protocol part in encrypted messages had an
   5377 extra pair of quotes, e.g.: protocol=""application/pgp-encrypted""
   5378 which caused it to not be recognized by some clients (e.g. mutt as far as I know).
   5379 
   5380 Here's a simple fix. I have no idea, why this suddenly came up. Might
   5381 be that it had been like this all the time, just no one had a problem
   5382 with it? (I highly doubt that though!)  
   5383 
   5384 If this is an old issue and I'm just using an old version, feel free
   5385 to ignore this. I've tried using the current master or next branch,
   5386 but that causes a crash when trying to open encrypted emails. Maybe
   5387 someone else is having a similar problem?
   5388 
   5389 Greetings,
   5390 Christopher.
   5391 -- 
   5392 ================================
   5393 Christopher Bertels
   5394 http://www.adztec-independent.de
   5395 GPG Key ID: 0x2345b203
   5396 -------------- next part --------------
   5397 A non-text attachment was scrubbed...
   5398 Name: protocol-fix.patch
   5399 Type: application/octet-stream
   5400 Size: 509 bytes
   5401 Desc: not available
   5402 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090915/462fe7d5/attachment.obj>
   5403 -------------- next part --------------
   5404 A non-text attachment was scrubbed...
   5405 Name: signature.asc
   5406 Type: application/pgp-signature
   5407 Size: 835 bytes
   5408 Desc: not available
   5409 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090915/462fe7d5/attachment.bin>
   5410 
   5411 From rlane@club.cc.cmu.edu  Tue Sep 15 16:32:42 2009
   5412 From: rlane@club.cc.cmu.edu (Rich Lane)
   5413 Date: Tue, 15 Sep 2009 16:32:42 -0400
   5414 Subject: [sup-talk] Sup and Ruby 1.9.1 - deadlock?
   5415 In-Reply-To: <1253030868-sup-8556@mithink>
   5416 References: <1253030868-sup-8556@mithink>
   5417 Message-ID: <1253043209-sup-8800@zyrg.net>
   5418 
   5419 Excerpts from Michael Hamann's message of Tue Sep 15 12:20:59 -0400 2009:
   5420 > Hi,
   5421 > 
   5422 > as Arch Linux has decided to put Ruby 1.9.1 into the extra repository I've got
   5423 > Ruby 1.8 replaced by 1.9.1 today. I then tried reinstalling all dependencies of
   5424 > sup again with Ruby 1.9.1. I've also found a Ferret gem for Ruby 1.9.1 at
   5425 > http://pennysmalls.com/2009/03/24/ferret-on-ruby-191/.
   5426 > 
   5427 > After that I tried running sup and after seeing the main screen for a few
   5428 > moments sup crashed with the following error (I'm using the latest version from
   5429 > next, but with master it's the same):
   5430 > 
   5431 > ThreadError from thread: load threads for thread-index-mode
   5432 > deadlock; recursive locking
   5433 > <internal:prelude>:6:in `lock'
   5434 > <internal:prelude>:6:in `synchronize'
   5435 > /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:757:in
   5436 > `regen_text'
   5437 > /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:687:in
   5438 > `resize'
   5439 > /home/michitux/pub/software/sup/lib/sup/buffer.rb:87:in `resize'
   5440 > /home/michitux/pub/software/sup/lib/sup/buffer.rb:328:in `draw_screen'
   5441 > /home/michitux/pub/software/sup/lib/sup/buffer.rb:728:in `flash'
   5442 > /home/michitux/pub/software/sup/lib/sup/util.rb:520:in `method_missing'
   5443 > /home/michitux/pub/software/sup/lib/sup/hook.rb:87:in `rescue in run'
   5444 > /home/michitux/pub/software/sup/lib/sup/hook.rb:81:in `run'
   5445 > /home/michitux/pub/software/sup/lib/sup/util.rb:520:in `method_missing'
   5446 > /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:714:in
   5447 > `size_widget_for_thread'
   5448 > /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:226:in
   5449 > `block (2 levels) in update'
   5450 > /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:226:in `map'
   5451 > /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:226:in
   5452 > `block in update'
   5453 > <internal:prelude>:8:in `synchronize'
   5454 > /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:223:in
   5455 > `update'
   5456 > /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:637:in
   5457 > `load_n_threads'
   5458 > (eval):12:in `load_n_threads'
   5459 > /home/michitux/pub/software/sup/lib/sup/modes/thread-index-mode.rb:609:in
   5460 > `block in load_n_threads_background'
   5461 > /home/michitux/pub/software/sup/lib/sup.rb:77:in `block in reporting_thread
   5462 > 
   5463 
   5464 We're calling the size widget hook while holding the thread-index-mode
   5465 lock, then the hook throws an exception that results in trying to
   5466 acquire the lock again. We shouldn't be calling arbitrary code with
   5467 locks held. Until we figure that change out we could just change the
   5468 mutex to be a monitor.
   5469 
   5470 > I then tried running sup-dump, it worked without problems, the results looks
   5471 > correct (just a few changed lines that represent the changes of the last days).
   5472 > 
   5473 > I then installed xapian and tried reimporting my mails and all I've got after
   5474 > importing 46 mails of about 44000 is:
   5475 > 
   5476 > Scanning maildir:/home/michitux/mail...
   5477 > /home/michitux/pub/software/sup/lib/sup/message.rb:103:in `gsub': invalid byte
   5478 > sequence in US-ASCII (ArgumentError)
   5479 > from /home/michitux/pub/software/sup/lib/sup/message.rb:103:in `parse_header'
   5480 > from /home/michitux/pub/software/sup/lib/sup/message.rb:238:in
   5481 > `load_from_source!'
   5482 > from /home/michitux/pub/software/sup/lib/sup/message.rb:335:in
   5483 > `build_from_source'
   5484 > from /home/michitux/pub/software/sup/lib/sup/poll.rb:145:in `block in
   5485 > each_message_from'
   5486 > from /home/michitux/pub/software/sup/lib/sup/maildir.rb:160:in `block in each'
   5487 > from /home/michitux/pub/software/sup/lib/sup/maildir.rb:157:in `upto'
   5488 > from /home/michitux/pub/software/sup/lib/sup/maildir.rb:157:in `each'
   5489 > from /home/michitux/pub/software/sup/lib/sup/util.rb:560:in `__pass'
   5490 > from /home/michitux/pub/software/sup/lib/sup/util.rb:547:in `method_missing'
   5491 > from /home/michitux/pub/software/sup/lib/sup/poll.rb:139:in `each_message_from'
   5492 > from /home/michitux/pub/software/sup/lib/sup/util.rb:520:in `method_missing'
   5493 > from bin/sup-sync:146:in `block in <main>'
   5494 > from bin/sup-sync:141:in `each'
   5495 > from bin/sup-sync:141:in `<main>'
   5496 
   5497 This is a 1.9 encoding issue. I imagine we have a number of these, even
   5498 outside of rmail.
   5499 
   5500 > Running sup with xapian and ruby 1.9.1 works as long as there aren't any mails
   5501 > displayed, when I e.g. select a label that contains mails, sub crashes again
   5502 > with the same exception as with ferret.
   5503 > 
   5504 > Is there anything I'm missing, is sup just not ready for Ruby 1.9.1 or is there
   5505 > another issue?
   5506 
   5507 I think William said he's been doing some 1.9 work recently. I wouldn't
   5508 say it's ready just yet.
   5509 
   5510 From ef_dva@yahoo.com  Tue Sep 15 17:24:58 2009
   5511 From: ef_dva@yahoo.com (Dusan)
   5512 Date: Tue, 15 Sep 2009 23:24:58 +0200
   5513 Subject: [sup-talk] Sup and Ruby 1.9.1 - deadlock?
   5514 In-Reply-To: <20090915175339.GA15735@gmail.com>
   5515 References: <1253030868-sup-8556@mithink> <20090915175339.GA15735@gmail.com>
   5516 Message-ID: <1253049733-sup-276@archpc>
   5517 
   5518 Excerpts from Sean Escriva's message of Tue Sep 15 19:53:39 +0200 2009:
   5519 > Excerpts from Michael Hamann's message of Tue Sep 15 06:20:59 +0200 2009: 
   5520 > > Hi,
   5521 > > 
   5522 > > as Arch Linux has decided to put Ruby 1.9.1 into the extra repository I've got
   5523 > > Ruby 1.8 replaced by 1.9.1 today. I then tried reinstalling all dependencies of
   5524 > > sup again with Ruby 1.9.1. I've also found a Ferret gem for Ruby 1.9.1 at
   5525 > > http://pennysmalls.com/2009/03/24/ferret-on-ruby-191/.
   5526 > 
   5527 > I followed a similar path after the recent upgrade to no avail. In the
   5528 > end I downgraded ruby back to 1.8.7_p160 from older arch packages
   5529 > available here: 
   5530 > 
   5531 >     http://www.schlunix.org/archlinux/extra/os/x86_64/
   5532 > 
   5533 > I'd like a better solution, but I've become dependent on sup for daily
   5534 > work. 
   5535 > 
   5536 > > [..snip..]
   5537 
   5538 This is pretty big question for arch users, including me. I can block
   5539 ruby upgrade but it's few month before other distros start using 1.9
   5540 
   5541 From dato@net.com.org.es  Tue Sep 15 18:21:19 2009
   5542 From: dato@net.com.org.es (Adeodato =?utf-8?B?U2ltw7M=?=)
   5543 Date: Tue, 15 Sep 2009 23:21:19 +0100
   5544 Subject: [sup-talk] Fixing header for encrypted messages (might be an
   5545  old issue)
   5546 In-Reply-To: <1253045775-sup-210@thinkpad-ubuntu>
   5547 References: <1253045775-sup-210@thinkpad-ubuntu>
   5548 Message-ID: <20090915222119.GA5290@chistera.yi.org>
   5549 
   5550 + Christopher Bertels (Tue, 15 Sep 2009 22:21:59 +0200):
   5551 
   5552 > Hi!
   5553 
   5554 Hello!
   5555 
   5556 > I've been having problems with encrypting messages. No idea where this
   5557 > came from, but somehow the protocol part in encrypted messages had an
   5558 > extra pair of quotes, e.g.: protocol=""application/pgp-encrypted""
   5559 > which caused it to not be recognized by some clients (e.g. mutt as far as I know).
   5560 
   5561 > Here's a simple fix. I have no idea, why this suddenly came up. Might
   5562 > be that it had been like this all the time, just no one had a problem
   5563 > with it? (I highly doubt that though!)  
   5564 
   5565 It's been like that all the time, but AFAIK only Mutt has problem
   5566 opening those messages. FWIW, it's a bug in RMail (another one to add to
   5567 the pile...):
   5568 
   5569     http://rubyforge.org/tracker/index.php?func=detail&aid=2170&group_id=446&atid=1754
   5570     http://rubyforge.org/tracker/index.php?func=detail&aid=2661&group_id=446&atid=1756
   5571 
   5572 I advice against using your patch, since it depends on broken behavior
   5573 of RMail to produce correct results, and people may be using fixed
   5574 versions of the library. For example, I uploaded fixed packages of RMail
   5575 to Debian, and they'll become available in Ubuntu at some point.
   5576 
   5577 Instead, you can find a patch to fix the issue in your system's RMail in
   5578 one bugs linked above.
   5579 
   5580 > If this is an old issue and I'm just using an old version, feel free
   5581 > to ignore this. I've tried using the current master or next branch,
   5582 > but that causes a crash when trying to open encrypted emails. Maybe
   5583 > someone else is having a similar problem?
   5584 
   5585 No, I've recently started experiencing this as well, asuming you're
   5586 talking about:
   5587 
   5588 --- NoMethodError from thread: load messages for thread-view-mode
   5589 undefined method `expandable?' for #<Array:0x7faa50e2d978>
   5590 /home/dato/devel/sup/work/lib/sup/modes/thread-view-mode.rb:615:in `regen_text'
   5591 /home/dato/devel/sup/work/lib/sup/modes/thread-view-mode.rb:610:in `each'
   5592 /home/dato/devel/sup/work/lib/sup/modes/thread-view-mode.rb:610:in `regen_text'
   5593 /home/dato/devel/sup/work/lib/sup/thread.rb:68:in `each'
   5594 /home/dato/devel/sup/work/lib/sup/thread.rb:170:in `each_with_stuff'
   5595 [...]
   5596 
   5597 Cheers,
   5598 
   5599 -- 
   5600 - Are you sure we're good?
   5601 - Always.
   5602         -- Rory and Lorelai
   5603 
   5604 
   5605 From bgamari.foss@gmail.com  Wed Sep 16 13:23:40 2009
   5606 From: bgamari.foss@gmail.com (Ben Gamari)
   5607 Date: Wed, 16 Sep 2009 13:23:40 -0400
   5608 Subject: [sup-talk] Crash while scrolling
   5609 In-Reply-To: <1252773189-sup-246@masanjin.net>
   5610 References: <20090911165830.GA11260@ben-laptop>
   5611 	<1252773189-sup-246@masanjin.net>
   5612 Message-ID: <20090916172340.GA20566@ben-laptop>
   5613 
   5614 On Sat, Sep 12, 2009 at 09:35:21AM -0700, William Morgan wrote:
   5615 > Reformatted excerpts from Ben Gamari's message of 2009-09-11:
   5616 > > Recently I've been seeing this crash[1] pretty consistently on the next
   5617 > > branch with the Xapian backend.
   5618 > 
   5619 > Is your Xapian index somewhat old? There have been index format changes
   5620 > that have caused this type of thing recently. You might try rebuilding
   5621 > it.
   5622 
   5623 Well, after several attempts at rebuilding my index, I finally got lucky
   5624 and sup-sync ran to completion. Unfortunately, sup now fails to even
   5625 start, failing out with the following exception while loading threads
   5626 for inbox-mode,
   5627 
   5628 	$ sup
   5629 	--- SystemExit from thread: main
   5630 	Thread#join: deadlock 0x7f592eec4d78 - mutual join(0x7f592f01d6e8)
   5631 	/opt/exp/sup/lib/sup/message.rb:240:in `select'
   5632 	/opt/exp/sup/lib/sup/buffer.rb:35:in `nonblocking_getch'
   5633 	/usr/bin/sup:213
   5634 
   5635 However, at this point during debugging I happened to pipe stderr to a
   5636 file and accidentally found that most of the backtrace was actually
   5637 being hidden by curses.  Examining the full output on stderr reveals,
   5638 
   5639 	/usr/bin/sup:213(eval):3:in `synchronize': Thread#join: deadlock 0x7f4d5da565c0 - mutual join(0x7f4d5daf8be0) (ThreadError)
   5640 		from (eval):3:in `raw_header'
   5641 		from /opt/exp/sup/lib/sup/imap.rb:98:in `load_header'
   5642 		from /opt/exp/sup/lib/sup/util.rb:560:in `send'
   5643 		from /opt/exp/sup/lib/sup/util.rb:560:in `__pass'
   5644 		from /opt/exp/sup/lib/sup/util.rb:547:in `method_missing'
   5645 		from /opt/exp/sup/lib/sup/message.rb:238:in `load_from_source!'
   5646 		from /opt/exp/sup/lib/sup/message.rb:219:in `chunks'
   5647 		from /opt/exp/sup/lib/sup/message.rb:164:in `snippet'
   5648 		from /opt/exp/sup/lib/sup/thread.rb:91:in `snippet'
   5649 		from /opt/exp/sup/lib/sup/imap.rb:259:in `select'
   5650 		from /opt/exp/sup/lib/sup/thread.rb:68:in `each'
   5651 		from /opt/exp/sup/lib/sup/thread.rb:168:in `each_with_stuff'
   5652 		from /opt/exp/sup/lib/sup/thread.rb:67:in `each'
   5653 		from /opt/exp/sup/lib/sup/thread.rb:91:in `select'
   5654 		from /opt/exp/sup/lib/sup/thread.rb:91:in `snippet'
   5655 		from /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:840:in `text_for_thread_at'
   5656 		from /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:758:in `regen_text'
   5657 		from /opt/exp/sup/lib/sup/util.rb:364:in `map_with_index'
   5658 		from /opt/exp/sup/lib/sup/imap.rb:259:in `each_with_index'
   5659 		from /opt/exp/sup/lib/sup/util.rb:364:in `each'
   5660 		from /opt/exp/sup/lib/sup/util.rb:364:in `each_with_index'
   5661 		from /opt/exp/sup/lib/sup/util.rb:364:in `map_with_index'
   5662 		from /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:758:in `regen_text'
   5663 		from /opt/exp/sup/lib/sup/modes/thread-index-mode.rb:687:in `resize'
   5664 		from /opt/exp/sup/lib/sup/buffer.rb:88:in `resize'
   5665 		from /opt/exp/sup/lib/sup/buffer.rb:329:in `draw_screen'
   5666 		from /opt/exp/sup/lib/sup/buffer.rb:745:in `clear'
   5667 		from /opt/exp/sup/lib/sup/util.rb:520:in `send'
   5668 		from /opt/exp/sup/lib/sup/util.rb:520:in `method_missing'
   5669 		from /opt/exp/sup/lib/sup/imap.rb:283:in `shutup'
   5670 		from /opt/exp/sup/lib/sup/imap.rb:270:in `unsafe_connect'
   5671 		from /opt/exp/sup/lib/sup/imap.rb:244:in `initialize'
   5672 		from /opt/exp/sup/lib/sup/imap.rb:244:in `new'
   5673 		from /opt/exp/sup/lib/sup/imap.rb:244:in `unsafe_connect'
   5674 		from /opt/exp/sup/lib/sup/imap.rb:331:in `safely'
   5675 		from /opt/exp/sup/lib/sup/imap.rb:148:in `unsynchronized_connect'
   5676 		from (eval):3:in `connect'
   5677 		from (eval):3:in `synchronize'
   5678 		from (eval):3:in `connect'
   5679 		from /opt/exp/sup/lib/sup/util.rb:560:in `send'
   5680 		from /opt/exp/sup/lib/sup/util.rb:560:in `__pass'
   5681 		from /opt/exp/sup/lib/sup/util.rb:547:in `method_missing'
   5682 		from /usr/bin/sup:189
   5683 		from /opt/exp/sup/lib/sup.rb:77:in `reporting_thread'
   5684 		from /opt/exp/sup/lib/sup.rb:75:in `initialize'
   5685 		from /opt/exp/sup/lib/sup.rb:75:in `new'
   5686 		from /opt/exp/sup/lib/sup.rb:75:in `reporting_thread'
   5687 		from /usr/bin/sup:187
   5688 		from /usr/bin/sup:185:in `each'
   5689 		from /usr/bin/sup:185
   5690 		[Wed Sep 16 13:01:11 -0400 2009] ERROR: oh crap, an exception
   5691 		----------------------------------------------------------------
   5692 		I'm very sorry. It seems that an error occurred in Sup. Please
   5693 		accept my sincere apologies. If you don't mind, please send the
   5694 		contents of ~/.sup/exception-log.txt and a brief report of the
   5695 		circumstances to sup-talk at rubyforge dot orgs so that I might
   5696 		address this problem. Thank you!
   5697 
   5698 		Sincerely,
   5699 		William
   5700 		----------------------------------------------------------------
   5701 
   5702 
   5703 with the first stacktrace following this on stdout. With this
   5704 information it looks like this bug should become much more debuggable.
   5705 Being in the imap module, it seems likely that it is my gmail source
   5706 that is causing the failure. Unfortunately I have no way to verify that
   5707 the problem is limited to the gmail source as sup raises as exception
   5708 when it encounters an unknown source, precluding the option of simply
   5709 commenting out the source in sources.yaml.
   5710 
   5711 Anyways, this is the current status of things on my machine. William, do
   5712 you have any ideas what might cause such a backtrace. At this point
   5713 classes have started and I really have no more time to devote to
   5714 getting sup working. If there isn't a fairly simple solution here I guess
   5715 I'll just need to stick with mutt (ugh). Anyways, thanks for your work.
   5716 
   5717 Cheers,
   5718 - Ben
   5719 
   5720 
   5721 From mailinglist@flasht.de  Tue Sep 15 18:42:04 2009
   5722 From: mailinglist@flasht.de (Christopher Bertels)
   5723 Date: Wed, 16 Sep 2009 00:42:04 +0200
   5724 Subject: [sup-talk] Fixing header for encrypted messages (might be an
   5725 	old issue)
   5726 In-Reply-To: <20090915222119.GA5290@chistera.yi.org>
   5727 References: <1253045775-sup-210@thinkpad-ubuntu>
   5728 	<20090915222119.GA5290@chistera.yi.org>
   5729 Message-ID: <1253054438-sup-8449@thinkpad-ubuntu>
   5730 
   5731 Excerpts from Adeodato Sim?'s message of Mi Sep 16 00:21:19 +0200 2009:
   5732 > It's been like that all the time, but AFAIK only Mutt has problem
   5733 > opening those messages. FWIW, it's a bug in RMail (another one to add to
   5734 > the pile...):
   5735 
   5736 Alright, good to know.
   5737 
   5738 > I advice against using your patch, since it depends on broken behavior
   5739 > of RMail to produce correct results, and people may be using fixed
   5740 > versions of the library. For example, I uploaded fixed packages of RMail
   5741 > to Debian, and they'll become available in Ubuntu at some point.
   5742 > 
   5743 > Instead, you can find a patch to fix the issue in your system's RMail in
   5744 > one bugs linked above.
   5745 
   5746 Alright, thanks. I'll just leave it for me like this until I've got a
   5747 new version of RMail then.
   5748 
   5749 > > If this is an old issue and I'm just using an old version, feel free
   5750 > > to ignore this. I've tried using the current master or next branch,
   5751 > > but that causes a crash when trying to open encrypted emails. Maybe
   5752 > > someone else is having a similar problem?
   5753 > 
   5754 > No, I've recently started experiencing this as well, asuming you're
   5755 > talking about:
   5756 > 
   5757 > --- NoMethodError from thread: load messages for thread-view-mode
   5758 > undefined method `expandable?' for #<Array:0x7faa50e2d978>
   5759 > /home/dato/devel/sup/work/lib/sup/modes/thread-view-mode.rb:615:in `regen_text'
   5760 > /home/dato/devel/sup/work/lib/sup/modes/thread-view-mode.rb:610:in `each'
   5761 > /home/dato/devel/sup/work/lib/sup/modes/thread-view-mode.rb:610:in `regen_text'
   5762 > /home/dato/devel/sup/work/lib/sup/thread.rb:68:in `each'
   5763 > /home/dato/devel/sup/work/lib/sup/thread.rb:170:in `each_with_stuff'
   5764 > [...]
   5765 
   5766 Yes, it's the same error I get. Any insights as to what is causing this?
   5767 
   5768 Cheers,
   5769 Christopher.
   5770 -- 
   5771 ================================
   5772 Christopher Bertels
   5773 http://www.adztec-independent.de
   5774 GPG Key ID: 0x2345b203
   5775 -------------- next part --------------
   5776 A non-text attachment was scrubbed...
   5777 Name: signature.asc
   5778 Type: application/pgp-signature
   5779 Size: 835 bytes
   5780 Desc: not available
   5781 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090916/7f6fbfa9/attachment.bin>
   5782 
   5783 From cworth@cworth.org  Thu Sep 17 16:05:45 2009
   5784 From: cworth@cworth.org (Carl Worth)
   5785 Date: Thu, 17 Sep 2009 13:05:45 -0700
   5786 Subject: [sup-talk] [PATCH] Fix message_to_chunks for the m.body == nil case.
   5787 Message-ID: <1253217341-sup-8631@yoom.home.cworth.org>
   5788 
   5789 The code was previously broken in calling EnclosedMessage.new with
   5790 only 2 instead of 5 arguments.
   5791 ---
   5792 
   5793 A friend of mine couldn't import his mail into sup due to the crash
   5794 fixed by this patch. It looks like the message he had that was causing
   5795 this infrequently-used (and obviously broken) code to be executed had
   5796 some mime pieces corrupted.
   5797 
   5798 The message consisted of several mime-attached messages looking like:
   5799 
   5800 	--==_Exmh_5062123120
   5801 	Content-Type: message/rfc822 ; name="5714"
   5802 	Content-Description: 5714
   5803 	Content-Disposition: attachment; filename="5714"
   5804 	
   5805 	Return-path: <omitted>
   5806 	...
   5807 
   5808 but one part was missing the mime searpate and Content-Type and
   5809 instead just looked like:
   5810 
   5811 	Content-Description: 5692
   5812 	Content-Disposition: attachment; filename="5692"
   5813 
   5814 	Return-path: <omitted>
   5815 	...
   5816 
   5817 I tried fixing this first by adding several more empty-string
   5818 arguments, that is:
   5819 
   5820 	[Chunk::EnclosedMessage.new(nil, "", "", "", "")]
   5821 
   5822 but that ended up causing this exception instead:
   5823 
   5824 	./lib/sup/message-chunks.rb:212:in `initialize': undefined
   5825 	method `full_adress' for nil:NilClass (NoMethodError)
   5826 
   5827 So I'm not 100% sure that this patch is correct, but it does allow
   5828 sup-sync to proceed and the message appears in sup as well as could be
   5829 expected, (the "extra" headers from the corrupted mime part appear in
   5830 the body as one might expect here).
   5831 
   5832 -Carl
   5833 
   5834  lib/sup/message.rb |    2 +-
   5835  1 files changed, 1 insertions(+), 1 deletions(-)
   5836 
   5837 diff --git a/lib/sup/message.rb b/lib/sup/message.rb
   5838 index afa8f00..579c1e5 100644
   5839 --- a/lib/sup/message.rb
   5840 +++ b/lib/sup/message.rb
   5841 @@ -453,7 +453,7 @@ private
   5842          cc_people = cc ? Person.from_address_list(cc) : nil
   5843          [Chunk::EnclosedMessage.new(from_person, to_people, cc_people, msgdate, subj)] + message_to_chunks(payload, encrypted)
   5844        else
   5845 -        [Chunk::EnclosedMessage.new(nil, "")]
   5846 +        []
   5847        end
   5848      else
   5849        filename =
   5850 -- 
   5851 1.6.4.3
   5852 
   5853 
   5854 From web-sup@superscript.com  Fri Sep 18 15:50:13 2009
   5855 From: web-sup@superscript.com (William Erik Baxter)
   5856 Date: Fri, 18 Sep 2009 15:50:13 -0400
   5857 Subject: [sup-talk] Hello,
   5858 	and before-add-message hook for applying labels per CDB
   5859 Message-ID: <1253303164-sup-1138@kronos>
   5860 
   5861 Hello fellow sup users.  I began using sup last week, spent some time setting
   5862 it up in parallel with mutt, and have not used mutt since, except through
   5863 accident of habit.  Thanks to all developers for your excellent work.
   5864 
   5865 A before-add-message hook follows.  It applies labels per entries in a CDB
   5866 constructed externally.  I hope you find it useful.
   5867 
   5868 Cheers, W.
   5869 
   5870 
   5871 #### Automatically add labels.
   5872 
   5873 require 'cdb';
   5874 
   5875 @cdb ||= CDB.new("/home/web/Mail/suplabel.cdb");
   5876 
   5877 # Mark by a recipient (to/cc)
   5878 # Construct [ [ prefix, string ] ... ].
   5879 # Look up "prefix:string" in CDB to obtain a list of labels to apply.
   5880 
   5881 a = []
   5882 a += [ [ "from", message.from.email ] ]
   5883 a += message.recipients.map{ |x| [ "recipient", x.email ] }
   5884 
   5885 a.each { |pair|
   5886   key = pair[0] + ":" + pair[1];
   5887   @cdb.each(key) { |value|
   5888     value.split.each { |label|  message.add_label(label) }
   5889   }
   5890 }
   5891 
   5892 From web-sup@superscript.com  Fri Sep 18 15:54:18 2009
   5893 From: web-sup@superscript.com (William Erik Baxter)
   5894 Date: Fri, 18 Sep 2009 15:54:18 -0400
   5895 Subject: [sup-talk] [PATCH] Add hooks to sort and format label-list-mode
   5896 	display.
   5897 Message-ID: <1253303493-sup-288@kronos>
   5898 
   5899 ---
   5900 lib/sup/modes/label-list-mode.rb |   37 ++++++++++++++++++++++++++++++++++---
   5901 1 files changed, 34 insertions(+), 3 deletions(-)
   5902 
   5903 diff --git a/lib/sup/modes/label-list-mode.rb b/lib/sup/modes/label-list-mode.rb
   5904 index f65ec2e..d94f56f 100644
   5905 --- a/lib/sup/modes/label-list-mode.rb
   5906 +++ b/lib/sup/modes/label-list-mode.rb
   5907 @@ -8,6 +8,24 @@ class LabelListMode < LineCursorMode
   5908    k.add :toggle_show_unread_only, "Toggle between showing all labels and those with unread mail", 'u'
   5909  end
   5910 
   5911 +  HookManager.register "label-list-filter", <<EOS
   5912 +Filter the label list, typically to sort.
   5913 +Variables:
   5914 +  counted: an array of counted labels.
   5915 +Return value:
   5916 +  An array of counted labels with sort_by output structure.
   5917 +EOS
   5918 +
   5919 +  HookManager.register "label-list-format", <<EOS
   5920 +Create the sprintf format string for label-list-mode.
   5921 +Variables:
   5922 +  width: the maximum label width
   5923 +  tmax: the maximum total message count
   5924 +  umax: the maximum unread message count
   5925 +Return value:
   5926 +  A format string for sprintf
   5927 +EOS
   5928 +
   5929  def initialize
   5930    @labels = []
   5931    @text = []
   5932 @@ -50,14 +68,22 @@ protected
   5933    @text = []
   5934    labels = LabelManager.all_labels
   5935 
   5936 -    counts = labels.map do |label|
   5937 +    counted = labels.map do |label|
   5938      string = LabelManager.string_for label
   5939      total = Index.num_results_for :label => label
   5940      unread = (label == :unread)? total : Index.num_results_for(:labels => [label, :unread])
   5941      [label, string, total, unread]
   5942 -    end.sort_by { |l, s, t, u| s.downcase }
   5943 +    end
   5944 +
   5945 +    if HookManager.enabled? "label-list-filter"
   5946 +      counts = HookManager.run "label-list-filter", :counted => counted
   5947 +    else
   5948 +      counts = counted.sort_by { |l, s, t, u| s.downcase }
   5949 +    end
   5950  
   5951      width = counts.max_of { |l, s, t, u| s.length }
   5952 +    tmax  = counts.max_of { |l, s, t, u| t }
   5953 +    umax  = counts.max_of { |l, s, t, u| u }
   5954  
   5955      if @unread_only
   5956        counts.delete_if { | l, s, t, u | u == 0 }
   5957 @@ -78,8 +104,13 @@ protected
   5958          next
   5959        end
   5960  
   5961 +      fmt = HookManager.run "label-list-format", :width => width, :tmax => tmax, :umax => umax
   5962 +      if !fmt
   5963 +        fmt = "%#{width + 1}s %5d %s, %5d unread"
   5964 +      end
   5965 +
   5966        @text << [[(unread == 0 ? :labellist_old_color : :labellist_new_color),
   5967 -          sprintf("%#{width + 1}s %5d %s, %5d unread", string, total, total == 1 ? " message" : "messages", unread)]]
   5968 +          sprintf(fmt, string, total, total == 1 ? " message" : "messages", unread)]]
   5969        @labels << [label, unread]
   5970        yield i if block_given?
   5971      end.compact
   5972 -- 
   5973 1.5.3.2
   5974 
   5975 
   5976 From richard@infoarts.info  Fri Sep 18 18:15:03 2009
   5977 From: richard@infoarts.info (Richard Sandilands)
   5978 Date: Sat, 19 Sep 2009 08:15:03 +1000
   5979 Subject: [sup-talk] Trouble implementing UTF-8 ncurses fix
   5980 Message-ID: <1253311953-sup-3472@Richard-Sandilandss-MacBook-Pro.local>
   5981 
   5982 
   5983 Hi there
   5984 
   5985 I'm trying to implement the fix found here:
   5986 <http://sup.rubyforge.org/wiki/wiki.pl?UTF8>
   5987 
   5988 but am running into trouble when I run 'run-this-for-sup.sh'. I've
   5989 installed the ncurses-5.7 library on my Mac 10.6 machine, but the shell
   5990 script above gives this output to mkmf.log: <http://pastie.org/622306>
   5991 
   5992 Any clues on what I might be missing would be appreciated.
   5993 
   5994 -- 
   5995 Richard Sandilands
   5996 
   5997 From michael+sup@stapelberg.de  Sun Sep 20 15:46:24 2009
   5998 From: michael+sup@stapelberg.de (Michael Stapelberg)
   5999 Date: Sun, 20 Sep 2009 21:46:24 +0200
   6000 Subject: [sup-talk] Bug: Converting the index to xapian fails with a message
   6001 	with very old date
   6002 Message-ID: <1253475875-sup-5119@midna.zekjur.net>
   6003 
   6004 Hi,
   6005 
   6006 I have a spam mail in one of my sources. This mail has the following Date-line:
   6007 
   6008 Date: Mon, 1 Jan 1601 00:48:33 +0500
   6009 
   6010 This makes sup/xapian/ruby (one of them) go crazy and abort with an exception:
   6011 ## read 5856m (about 72%) @ 10.0m/s. 0:09:47 elapsed, about 0:03:44 remaining
   6012 /usr/lib/ruby/1.8/sup/xapian_index.rb:532:in `_dump': year too big to marshal (ArgumentError)
   6013         from /usr/lib/ruby/1.8/sup/xapian_index.rb:532:in `dump'
   6014         from /usr/lib/ruby/1.8/sup/xapian_index.rb:532:in `index_message'
   6015         from /usr/lib/ruby/1.8/sup/xapian_index.rb:124:in `sync_message'
   6016         from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
   6017         from /usr/lib/ruby/1.8/sup/xapian_index.rb:398:in `synchronize'
   6018         from /usr/lib/ruby/1.8/sup/xapian_index.rb:123:in `sync_message'
   6019         from /usr/lib/ruby/1.8/sup/xapian_index.rb:94:in `add_message'
   6020         from /home/michael/software/sup-mainline/bin/sup-sync:211
   6021         from /usr/lib/ruby/1.8/sup/poll.rb:151:in `each_message_from'
   6022         from /usr/lib/ruby/1.8/sup/imap.rb:197:in `each'
   6023         from /usr/lib/ruby/1.8/sup/imap.rb:185:in `upto'
   6024         from /usr/lib/ruby/1.8/sup/imap.rb:185:in `each'
   6025         from /usr/lib/ruby/1.8/sup/util.rb:560:in `send'
   6026         from /usr/lib/ruby/1.8/sup/util.rb:560:in `__pass'
   6027         from /usr/lib/ruby/1.8/sup/util.rb:547:in `method_missing'
   6028         from /usr/lib/ruby/1.8/sup/poll.rb:139:in `each_message_from'
   6029         from /usr/lib/ruby/1.8/sup/util.rb:520:in `send'
   6030         from /usr/lib/ruby/1.8/sup/util.rb:520:in `method_missing'
   6031         from /home/michael/software/sup-mainline/bin/sup-sync:146
   6032         from /home/michael/software/sup-mainline/bin/sup-sync:141:in `each'
   6033         from /home/michael/software/sup-mainline/bin/sup-sync:141
   6034 
   6035 I used revision 68bf6a277c5fdefb3b9d6a4b5d4dfbce3f9f9ccf of sup.
   6036 
   6037 Best regards,
   6038 Michael
   6039 
   6040 From michael+sup@stapelberg.de  Sun Sep 20 15:51:38 2009
   6041 From: michael+sup@stapelberg.de (Michael Stapelberg)
   6042 Date: Sun, 20 Sep 2009 21:51:38 +0200
   6043 Subject: [sup-talk] Bug: Opening PGP encrypted mails fails with latest
   6044 	revision
   6045 Message-ID: <1253476236-sup-9371@midna.zekjur.net>
   6046 
   6047 Hi,
   6048 
   6049 when opening PGP encrypted mails (MIME), sup crashes with the following
   6050 exception:
   6051 
   6052 --- NoMethodError from thread: load messages for thread-view-mode
   6053 undefined method `expandable?' for nil:NilClass
   6054 /usr/lib/ruby/1.8/sup/modes/thread-view-mode.rb:621:in `regen_text'
   6055 /usr/lib/ruby/1.8/sup/modes/thread-view-mode.rb:616:in `each'
   6056 /usr/lib/ruby/1.8/sup/modes/thread-view-mode.rb:616:in `regen_text'
   6057 /usr/lib/ruby/1.8/sup/thread.rb:68:in `each'
   6058 /usr/lib/ruby/1.8/sup/thread.rb:168:in `each_with_stuff'
   6059 /usr/lib/ruby/1.8/sup/thread.rb:67:in `each'
   6060 /usr/lib/ruby/1.8/sup/modes/thread-view-mode.rb:585:in `regen_text'
   6061 /usr/lib/ruby/1.8/sup/modes/thread-view-mode.rb:135:in `initialize'
   6062 /usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:112:in `new'
   6063 /usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:112:in `select'
   6064 /usr/lib/ruby/1.8/sup.rb:77:in `reporting_thread'
   6065 /usr/lib/ruby/1.8/sup.rb:75:in `initialize'
   6066 /usr/lib/ruby/1.8/sup.rb:75:in `new'
   6067 /usr/lib/ruby/1.8/sup.rb:75:in `reporting_thread'
   6068 /usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:102:in `select'
   6069 /usr/lib/ruby/1.8/sup/mode.rb:50:in `send'
   6070 /usr/lib/ruby/1.8/sup/mode.rb:50:in `handle_input'
   6071 /usr/lib/ruby/1.8/sup/buffer.rb:265:in `handle_input'
   6072 bin/sup:236
   6073 
   6074 Best regards,
   6075 Michael
   6076 
   6077 From alip@exherbo.org  Sun Sep 20 17:16:34 2009
   6078 From: alip@exherbo.org (Ali Polatel)
   6079 Date: Mon, 21 Sep 2009 00:16:34 +0300
   6080 Subject: [sup-talk] Problem with lbdb and extra contacts hook
   6081 Message-ID: <1253481392-sup-4891@harikalardiyari>
   6082 
   6083 Hello,
   6084 I've just started using sup and I'm really loving it.
   6085 Thanks for the great software.
   6086 
   6087 I have a problem with extra-contact-addresses hook and lbdb.
   6088 Using the hook in the wiki:
   6089 contacts = []
   6090 `lbdbq |awk -F"\t" '{print $2 , "<"$1">"}'`.each { |c| contacts.push(c) }
   6091 return contacts
   6092 
   6093 I get error running hook and here's the message that appears in the log:
   6094 [Sun Sep 20 23:50:17 +0300 2009] hook: error running hook: unexpected return
   6095 [Sun Sep 20 23:50:17 +0300 2009] hook:
   6096 /home/alip/.sup/hooks/extra-contact-addresses.rb:7:in `__run'
   6097 /home/alip/src/sup/lib/sup/hook.rb:42:in `__run'
   6098 /home/alip/src/sup/lib/sup/hook.rb:82:in `run'
   6099 /home/alip/src/sup/lib/sup/util.rb:520:in `send'
   6100 /home/alip/src/sup/lib/sup/util.rb:520:in `method_missing'
   6101 /home/alip/src/sup/lib/sup/buffer.rb:540:in `ask_for_contacts'
   6102 /home/alip/src/sup/lib/sup/util.rb:520:in `send'
   6103 /home/alip/src/sup/lib/sup/util.rb:520:in `method_missing'
   6104 /home/alip/src/sup/lib/sup/modes/compose-mode.rb:24:in `spawn_nicely'
   6105 /home/alip/src/sup/bin/sup:282
   6106 
   6107 This is with current master 68bf6a277c5fdefb3b9d6a4b5d4dfbce3f9f9ccf
   6108 
   6109 -- 
   6110 Regards,
   6111 Ali Polatel
   6112 
   6113 From alip@exherbo.org  Sun Sep 20 19:11:04 2009
   6114 From: alip@exherbo.org (Ali Polatel)
   6115 Date: Mon, 21 Sep 2009 02:11:04 +0300
   6116 Subject: [sup-talk] Problem with lbdb and extra contacts hook
   6117 In-Reply-To: <1253481392-sup-4891@harikalardiyari>
   6118 References: <1253481392-sup-4891@harikalardiyari>
   6119 Message-ID: <1253488117-sup-4560@harikalardiyari>
   6120 
   6121 Ali Polatel yazm??:
   6122 > Hello,
   6123 > I've just started using sup and I'm really loving it.
   6124 > Thanks for the great software.
   6125 > 
   6126 > I have a problem with extra-contact-addresses hook and lbdb.
   6127 > Using the hook in the wiki:
   6128 > contacts = []
   6129 > `lbdbq |awk -F"\t" '{print $2 , "<"$1">"}'`.each { |c| contacts.push(c) }
   6130 > return contacts
   6131 
   6132 Answering myself, removing return from the last line works as expected!
   6133 I'll see if I can edit the wiki.
   6134 
   6135 -- 
   6136 Regards,
   6137 Ali Polatel
   6138 
   6139 From michael+sup@stapelberg.de  Tue Sep 22 13:05:48 2009
   6140 From: michael+sup@stapelberg.de (Michael Stapelberg)
   6141 Date: Tue, 22 Sep 2009 19:05:48 +0200
   6142 Subject: [sup-talk] Bug: Messages using inline GPG are not decrypted
   6143 Message-ID: <1253638189-sup-7758@midna.zekjur.net>
   6144 
   6145 Hi,
   6146 
   6147 I noticed that emails sent by Thunderbird which contain inline GPG messages
   6148 are not decrypted at all. I?ve attached such a message so you can verify
   6149 it. Unfortunately my ruby skills did not suffice to fix this on my own.
   6150 
   6151 Thanks and best regards,
   6152 Michael
   6153 -------------- next part --------------
   6154 An embedded and charset-unspecified text was scrubbed...
   6155 Name: crypted.txt
   6156 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090922/628024f2/attachment.txt>
   6157 
   6158 From michael+sup@stapelberg.de  Tue Sep 22 13:24:24 2009
   6159 From: michael+sup@stapelberg.de (Michael Stapelberg)
   6160 Date: Tue, 22 Sep 2009 19:24:24 +0200
   6161 Subject: [sup-talk] Bug: Messages using inline GPG are not decrypted
   6162 In-Reply-To: <1253638189-sup-7758@midna.zekjur.net>
   6163 References: <1253638189-sup-7758@midna.zekjur.net>
   6164 Message-ID: <1253640093-sup-48@midna.zekjur.net>
   6165 
   6166 Hi,
   6167 
   6168 Excerpts from Michael Stapelberg's message of Di Sep 22 19:05:48 +0200 2009:
   6169 > I noticed that emails sent by Thunderbird which contain inline GPG messages
   6170 > are not decrypted at all. I?ve attached such a message so you can verify
   6171 > it. Unfortunately my ruby skills did not suffice to fix this on my own.
   6172 Addition: Probably I was able to fix it, but the other bug I reported about
   6173 not being able to open GPG encrypted email at all was the one I was seeing.
   6174 So, fix should be easy (untested, because of the other bug):
   6175 
   6176 --- a/lib/sup/message.rb
   6177 +++ b/lib/sup/message.rb
   6178 @@ -436,6 +436,16 @@ private
   6179        end
   6180  
   6181        chunks
   6182 +    elsif m.header.content_type == "application/pgp"
   6183 +     notice, sig, decryptedm = CryptoManager.decrypt m.body
   6184 +     if decryptedm # managed to decrypt
   6185 +       children = message_to_chunks(decryptedm, true)
   6186 +       chunks = [notice, sig, children]
   6187 +     else
   6188 +       chunks = [notice]
   6189 +     end
   6190 +
   6191 +     chunks
   6192      elsif m.header.content_type == "message/rfc822"
   6193        if m.body
   6194          payload = RMail::Parser.read(m.body)
   6195 
   6196 Best regards,
   6197 Michael
   6198 
   6199 From david.pflug@hostdime.com  Tue Sep 22 14:01:50 2009
   6200 From: david.pflug@hostdime.com (David Pflug)
   6201 Date: Tue, 22 Sep 2009 14:01:50 -0400
   6202 Subject: [sup-talk] Exception while marking mail as read
   6203 Message-ID: <1253642183-sup-1331@dpflug-desktop>
   6204 
   6205 Hi there,
   6206 
   6207 I'm using :next, having used the fix from :ncursesw.
   6208 
   6209 I've got some unread threads that are 300+ messages long (threaded by subject) from automated processes. I did a search for is:unread and started marking them read, and saved my changes (or, at least, pressed $ while sup was chugging through the last thread). It's possible a poll started at the same time, but I can't be sure.
   6210 
   6211 Here's exception.log:
   6212 --- Ferret::StateError from thread: load threads for thread-index-mode
   6213 State Error occured at <except.c>:93 in xraise
   6214 Error occured in index.c:4150 - sr_get_lazy_doc
   6215     Document 9233 has already been deleted
   6216 
   6217 /usr/lib/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:421:in `[]'
   6218 /usr/lib/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:421:in `[]'
   6219 /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
   6220 /usr/lib/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:413:in `[]'
   6221 ./lib/sup/ferret_index.rb:163:in `each_id_by_date'
   6222 /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
   6223 ./lib/sup/ferret_index.rb:163:in `each_id_by_date'
   6224 ./lib/sup/ferret_index.rb:162:in `each'
   6225 ./lib/sup/ferret_index.rb:162:in `each_id_by_date'
   6226 ./lib/sup/thread.rb:328:in `load_n_threads'
   6227 ./lib/sup/modes/thread-index-mode.rb:625:in `__unprotected_load_n_threads'
   6228 (eval):12:in `load_n_threads'
   6229 ./lib/sup/modes/thread-index-mode.rb:609:in `load_n_threads_background'
   6230 ./lib/sup.rb:77:in `reporting_thread'
   6231 ./lib/sup.rb:75:in `initialize'
   6232 ./lib/sup.rb:75:in `new'
   6233 ./lib/sup.rb:75:in `reporting_thread'
   6234 ./lib/sup/modes/thread-index-mode.rb:608:in `load_n_threads_background'
   6235 ./lib/sup/modes/thread-index-mode.rb:679:in `__unprotected_load_threads'
   6236 (eval):12:in `load_threads'
   6237 ./lib/sup/modes/thread-index-mode.rb:81:in `initialize'
   6238 ./lib/sup/modes/line-cursor-mode.rb:22:in `call'
   6239 ./lib/sup/modes/line-cursor-mode.rb:22:in `initialize'
   6240 ./lib/sup/modes/line-cursor-mode.rb:22:in `each'
   6241 ./lib/sup/modes/line-cursor-mode.rb:22:in `initialize'
   6242 ./lib/sup/modes/line-cursor-mode.rb:19:in `new'
   6243 ./lib/sup/modes/line-cursor-mode.rb:19:in `initialize'
   6244 ./lib/sup/modes/thread-index-mode.rb:54:in `initialize'
   6245 ./lib/sup/modes/search-results-mode.rb:6:in `initialize'
   6246 ./lib/sup/modes/search-results-mode.rb:30:in `new'
   6247 ./lib/sup/modes/search-results-mode.rb:30:in `spawn_from_query'
   6248 bin/sup:270
   6249 
   6250 
   6251 Regards,
   6252 David
   6253 -- 
   6254 David Pflug
   6255 System Technician
   6256 Hostdime.com, Inc.
   6257 
   6258 From michael+sup@stapelberg.de  Fri Sep 25 15:08:52 2009
   6259 From: michael+sup@stapelberg.de (Michael Stapelberg)
   6260 Date: Fri, 25 Sep 2009 21:08:52 +0200
   6261 Subject: [sup-talk] Bug: Opening PGP encrypted mails fails with latest
   6262 	revision
   6263 In-Reply-To: <1253476236-sup-9371@midna.zekjur.net>
   6264 References: <1253476236-sup-9371@midna.zekjur.net>
   6265 Message-ID: <1253905662-sup-1750@midna.zekjur.net>
   6266 
   6267 Hi,
   6268 
   6269 Excerpts from Michael Stapelberg's message of So Sep 20 21:51:38 +0200 2009:
   6270 > when opening PGP encrypted mails (MIME), sup crashes with the following
   6271 > exception:
   6272 Further debugging revealed that this has been introduced in revision
   6273 927b7df4b2052a6b3c2ae1f2b44a6bc901315f8d and can be fixed with the following
   6274 patch:
   6275 
   6276 --- a/lib/sup/message.rb
   6277 +++ b/lib/sup/message.rb
   6278 @@ -413,7 +413,7 @@ private
   6279      notice, sig, decryptedm = CryptoManager.decrypt payload
   6280      if decryptedm # managed to decrypt
   6281        children = message_to_chunks(decryptedm, true)
   6282 -      [notice, sig, children]
   6283 +      [notice, sig, children].flatten.compact
   6284      else
   6285        [notice]
   6286      end
   6287 
   6288 Best regards,
   6289 Michael
   6290 
   6291 From michael+sup@stapelberg.de  Fri Sep 25 15:10:11 2009
   6292 From: michael+sup@stapelberg.de (Michael Stapelberg)
   6293 Date: Fri, 25 Sep 2009 21:10:11 +0200
   6294 Subject: [sup-talk] Bug: Messages using inline GPG are not decrypted
   6295 In-Reply-To: <1253640093-sup-48@midna.zekjur.net>
   6296 References: <1253638189-sup-7758@midna.zekjur.net>
   6297 	<1253640093-sup-48@midna.zekjur.net>
   6298 Message-ID: <1253905743-sup-419@midna.zekjur.net>
   6299 
   6300 Hi,
   6301 
   6302 after fixing the other bug related to GPG messages, this patch has to be
   6303 modified, too:
   6304 
   6305 --- a/lib/sup/message.rb
   6306 +++ b/lib/sup/message.rb
   6307 @@ -436,6 +436,16 @@ private
   6308        end
   6309  
   6310        chunks
   6311 +    elsif m.header.content_type == "application/pgp"
   6312 +     notice, sig, decryptedm = CryptoManager.decrypt m.body
   6313 +     if decryptedm # managed to decrypt
   6314 +       children = message_to_chunks(decryptedm, true)
   6315 +       chunks = [notice, sig, children].flatten.compact
   6316 +     else
   6317 +       chunks = [notice]
   6318 +     end
   6319 +
   6320 +     chunks
   6321      elsif m.header.content_type == "message/rfc822"
   6322        if m.body
   6323          payload = RMail::Parser.read(m.body)
   6324 
   6325 Best regards,
   6326 Michael
   6327 
   6328 From michael+sup@stapelberg.de  Fri Sep 25 15:13:29 2009
   6329 From: michael+sup@stapelberg.de (Michael Stapelberg)
   6330 Date: Fri, 25 Sep 2009 21:13:29 +0200
   6331 Subject: [sup-talk] Bug: Killed threads coming up again
   6332 Message-ID: <1253905917-sup-5964@midna.zekjur.net>
   6333 
   6334 Hi,
   6335 
   6336 I noticed that killed messages sometimes appear in my inbox again. This might
   6337 be caused by a new label coming up by a new message for this thread, which
   6338 arrived through a different source (in my case, a message was marked as spam,
   6339 thus arrived in a new IMAP folder and thus a new source in sup and therefore
   6340 came up with the label spam).
   6341 
   6342 Did anyone of you notice the same? Can you reproduce this?
   6343 
   6344 Best regards,
   6345 Michael
   6346 
   6347 From cworth@cworth.org  Fri Sep 25 16:46:31 2009
   6348 From: cworth@cworth.org (Carl Worth)
   6349 Date: Fri, 25 Sep 2009 13:46:31 -0700
   6350 Subject: [sup-talk] [PATCH] Fix uninitialized @name member in person.rb.
   6351 Message-ID: <1253911543-sup-7680@yoom.home.cworth.org>
   6352 
   6353 Apparently a Person can be initialized with a nil name, (presumably
   6354 from a message where there's no name given), which before this commit
   6355 resulted in the following warning:
   6356 
   6357 ./lib/sup/person.rb:46: warning: instance variable @name not initialized
   6358 
   6359 This warning was especially unpleasant since it appeared in the current
   6360 window, causing the terminal contents to incorrectly scroll up, (as
   6361 opposed to just appearing in the log or so).
   6362 ---
   6363  lib/sup/person.rb |    2 ++
   6364  1 files changed, 2 insertions(+), 0 deletions(-)
   6365 
   6366 diff --git a/lib/sup/person.rb b/lib/sup/person.rb
   6367 index c4f40a5..cd5b1ea 100644
   6368 --- a/lib/sup/person.rb
   6369 +++ b/lib/sup/person.rb
   6370 @@ -11,6 +11,8 @@ class Person
   6371        if @name =~ /^(['"]\s*)(.*?)(\s*["'])$/
   6372          @name = $2
   6373        end
   6374 +    else
   6375 +      @name = nil
   6376      end
   6377  
   6378      @email = email.gsub(/^\s+|\s+$/, "").gsub(/\s+/, " ").downcase
   6379 -- 
   6380 1.6.4.3
   6381 
   6382 
   6383 -------------- next part --------------
   6384 A non-text attachment was scrubbed...
   6385 Name: signature.asc
   6386 Type: application/pgp-signature
   6387 Size: 190 bytes
   6388 Desc: not available
   6389 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090925/26a4d1df/attachment.bin>
   6390 
   6391 From cworth@cworth.org  Fri Sep 25 17:08:23 2009
   6392 From: cworth@cworth.org (Carl Worth)
   6393 Date: Fri, 25 Sep 2009 14:08:23 -0700
   6394 Subject: [sup-talk] [PATCH] Allow thread index view to sort oldest first
   6395 Message-ID: <1253911610-sup-2052@yoom.home.cworth.org>
   6396 
   6397 Keith and I both want to read our email in chronological order,
   6398 (reading oldest messages first), so we believe it makes sense to
   6399 present the inbox mode in this order, (with the oldest messages at the
   6400 top).
   6401 
   6402 This is distinct from the order for global searches where having the
   6403 newest messages first does seem obviously correct.
   6404 
   6405 The below patches are a first cut at implementing this. They provide a
   6406 new configuration option, (:inbox_newest_first), which can be used to
   6407 control the default sorting for the inbox. Keith's original patch
   6408 doesn't change sup's behavior unless the user manually configures this
   6409 option to false. My second patch changes the default. Obviously, it
   6410 would be easy to accept Keith's version without changing the default
   6411 for sup.
   6412 
   6413 One nice thing about the inmplentation is that any refined searches
   6414 inherit the mode of the parent search, which makes it easy to maintain
   6415 oldest-message-first for "reading" and newest-message-first for
   6416 "searching".
   6417 
   6418 Also note that there's a new command 'o' to toggle the search order
   6419 for a current view. This is a feature that we talked about earlier as
   6420 a way to avoid the need for the distinction between the ',' and ']'
   6421 commands in thread-view-mode. If the user can control the sort of the
   6422 search view, then it would be more natural to have commands that
   6423 simply advance to the "next" message, (since the user can choose in
   6424 advance what "next" means).
   6425 
   6426 A couple of caveats with respect to the patch as it exists so far:
   6427 
   6428 1. When doing oldest-first searching, it wasn't obvious if it's even
   6429    possible to query for only the N oldest messages (to lazily load
   6430    new threads while navigating as sup currently does). So the patch
   6431    currently loads all threads when in oldest-first mode.
   6432 
   6433    In my use so far this has worked well since I generally have a
   6434    small number of messages in my inbox (and even fewer in my refined
   6435    views of my inbox) and those are the only places where I use
   6436    oldest-first sorting. For global searches, I do have an effectively
   6437    infinite number of messages, but there I do use newest-first
   6438    searching which still has the lazy loading.
   6439 
   6440 2. Currently sup uses the date of the newest message in a thread as
   6441    the key for sorting that message. This is correct for newest-first
   6442    sorting. But when doing the new oldest-first sorting, the patch
   6443    really should be augmented to instead use the date of the oldest
   6444    message in a thread that matches the current search criteria.
   6445 
   6446    We haven't looked yet into how hard this would be to fix. (And we'd
   6447    of course be glad for any help or pointers.)
   6448 
   6449 -Carl
   6450 
   6451 PS. We're still total ruby newbies, so please point out any silly
   6452 mistakes we're missing with respect to ruby idioms.
   6453 -------------- next part --------------
   6454 A non-text attachment was scrubbed...
   6455 Name: 0001-Allow-thread-index-view-to-sort-oldest-first.patch
   6456 Type: application/octet-stream
   6457 Size: 7849 bytes
   6458 Desc: not available
   6459 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090925/8fd3d30c/attachment.obj>
   6460 -------------- next part --------------
   6461 A non-text attachment was scrubbed...
   6462 Name: 0002-Change-the-default-sort-for-inbox-mode-to-be-oldest-.patch
   6463 Type: application/octet-stream
   6464 Size: 777 bytes
   6465 Desc: not available
   6466 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090925/8fd3d30c/attachment-0001.obj>
   6467 -------------- next part --------------
   6468 A non-text attachment was scrubbed...
   6469 Name: signature.asc
   6470 Type: application/pgp-signature
   6471 Size: 190 bytes
   6472 Desc: not available
   6473 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090925/8fd3d30c/attachment.bin>
   6474 
   6475 From wmorgan-sup@masanjin.net  Sat Sep 26 09:48:04 2009
   6476 From: wmorgan-sup@masanjin.net (William Morgan)
   6477 Date: Sat, 26 Sep 2009 06:48:04 -0700
   6478 Subject: [sup-talk] Problem with lbdb and extra contacts hook
   6479 In-Reply-To: <1253488117-sup-4560@harikalardiyari>
   6480 References: <1253481392-sup-4891@harikalardiyari>
   6481 	<1253488117-sup-4560@harikalardiyari>
   6482 Message-ID: <1253972856-sup-3123@masanjin.net>
   6483 
   6484 Reformatted excerpts from Ali Polatel's message of 2009-09-20:
   6485 > Answering myself, removing return from the last line works as
   6486 > expected!  I'll see if I can edit the wiki.
   6487 
   6488 Yep, that was the problem. Hooks shouldn't call return. Nice work. :)
   6489 -- 
   6490 William <wmorgan-sup at masanjin.net>
   6491 
   6492 From wmorgan-sup@masanjin.net  Sat Sep 26 09:50:29 2009
   6493 From: wmorgan-sup@masanjin.net (William Morgan)
   6494 Date: Sat, 26 Sep 2009 06:50:29 -0700
   6495 Subject: [sup-talk] Trouble implementing UTF-8 ncurses fix
   6496 In-Reply-To: <1253311953-sup-3472@Richard-Sandilandss-MacBook-Pro.local>
   6497 References: <1253311953-sup-3472@Richard-Sandilandss-MacBook-Pro.local>
   6498 Message-ID: <1253972920-sup-9313@masanjin.net>
   6499 
   6500 Reformatted excerpts from Richard Sandilands's message of 2009-09-18:
   6501 > but am running into trouble when I run 'run-this-for-sup.sh'. I've
   6502 > installed the ncurses-5.7 library on my Mac 10.6 machine, but the shell
   6503 > script above gives this output to mkmf.log: <http://pastie.org/622306>
   6504 
   6505 I'm not sure of how to do it on your particular system, but you need to
   6506 install libncursesw (note the "w"). Maybe someone else who runs Sup on a
   6507 mac can help.
   6508 -- 
   6509 William <wmorgan-sup at masanjin.net>
   6510 
   6511 From wmorgan-sup@masanjin.net  Sat Sep 26 09:56:04 2009
   6512 From: wmorgan-sup@masanjin.net (William Morgan)
   6513 Date: Sat, 26 Sep 2009 06:56:04 -0700
   6514 Subject: [sup-talk] Bug: Converting the index to xapian fails with a
   6515 	message with very old date
   6516 In-Reply-To: <1253475875-sup-5119@midna.zekjur.net>
   6517 References: <1253475875-sup-5119@midna.zekjur.net>
   6518 Message-ID: <1253973258-sup-3347@masanjin.net>
   6519 
   6520 Reformatted excerpts from Michael Stapelberg's message of 2009-09-20:
   6521 > This makes sup/xapian/ruby (one of them) go crazy and abort with an exception:
   6522 > ## read 5856m (about 72%) @ 10.0m/s. 0:09:47 elapsed, about 0:03:44 remaining
   6523 > /usr/lib/ruby/1.8/sup/xapian_index.rb:532:in `_dump': year too big to marshal
   6524 > (ArgumentError)
   6525 
   6526 Interesting. The Xapian index has had some trouble with crazy dates in
   6527 the past, but that should be fixed. Can you apply the following debug
   6528 patch and send the output for that message?
   6529 
   6530 Thanks!
   6531 
   6532 diff --git a/lib/sup/xapian_index.rb b/lib/sup/xapian_index.rb
   6533 index ab25ea0..b94c8b0 100644
   6534 --- a/lib/sup/xapian_index.rb
   6535 +++ b/lib/sup/xapian_index.rb
   6536 @@ -509,6 +509,9 @@ EOS
   6537        Xapian.sortable_serialise 0
   6538      end
   6539  
   6540 +    puts "> truncated date is #{truncated_date.inspect}"
   6541 +    puts "> date_value is #{date_value.inspect}"
   6542 +
   6543      docid = nil
   6544      unless doc = find_doc(m.id)
   6545        doc = Xapian::Document.new
   6546 
   6547 -- 
   6548 William <wmorgan-sup at masanjin.net>
   6549 
   6550 From wmorgan-sup@masanjin.net  Sat Sep 26 09:58:59 2009
   6551 From: wmorgan-sup@masanjin.net (William Morgan)
   6552 Date: Sat, 26 Sep 2009 06:58:59 -0700
   6553 Subject: [sup-talk] Hello,
   6554 	and before-add-message hook for applying labels per CDB
   6555 In-Reply-To: <1253303164-sup-1138@kronos>
   6556 References: <1253303164-sup-1138@kronos>
   6557 Message-ID: <1253973470-sup-620@masanjin.net>
   6558 
   6559 Reformatted excerpts from William Erik Baxter's message of 2009-09-18:
   6560 > Hello fellow sup users.  I began using sup last week, spent some time setting
   6561 > it up in parallel with mutt, and have not used mutt since, except through
   6562 > accident of habit.  Thanks to all developers for your excellent work.
   6563 
   6564 Great! Welcome!
   6565 
   6566 > A before-add-message hook follows.  It applies labels per entries in a CDB
   6567 > constructed externally.  I hope you find it useful.
   6568 
   6569 Thanks! If you get a chance, please add it to the wiki:
   6570 http://sup.rubyforge.org/wiki/wiki.pl?Hooks
   6571 
   6572 -- 
   6573 William <wmorgan-sup at masanjin.net>
   6574 
   6575 From wmorgan-sup@masanjin.net  Sat Sep 26 10:31:56 2009
   6576 From: wmorgan-sup@masanjin.net (William Morgan)
   6577 Date: Sat, 26 Sep 2009 07:31:56 -0700
   6578 Subject: [sup-talk] Crash while scrolling
   6579 In-Reply-To: <20090916172340.GA20566@ben-laptop>
   6580 References: <20090911165830.GA11260@ben-laptop>
   6581 	<1252773189-sup-246@masanjin.net>
   6582 	<20090916172340.GA20566@ben-laptop>
   6583 Message-ID: <1253975267-sup-8308@masanjin.net>
   6584 
   6585 Sorry it's taken me so long to get back to this.
   6586 
   6587 Reformatted excerpts from Ben Gamari's message of 2009-09-16:
   6588 >     Thread#join: deadlock 0x7f592eec4d78 - mutual join(0x7f592f01d6e8)
   6589 >     /opt/exp/sup/lib/sup/message.rb:240:in `select'
   6590 >     /opt/exp/sup/lib/sup/buffer.rb:35:in `nonblocking_getch'
   6591 >     /usr/bin/sup:213
   6592 > 
   6593 > However, at this point during debugging I happened to pipe stderr to a
   6594 > file and accidentally found that most of the backtrace was actually
   6595 > being hidden by curses.  Examining the full output on stderr reveals,
   6596 > 
   6597 >     /usr/bin/sup:213(eval):3:in `synchronize': Thread#join: deadlock
   6598 > 0x7f4d5da565c0 - mutual join(0x7f4d5daf8be0) (ThreadError)
   6599 >         from (eval):3:in `raw_header'
   6600 >         from /opt/exp/sup/lib/sup/imap.rb:98:in `load_header'
   6601 
   6602 I definitely am not sure why there's a deadlock happening, but I am
   6603 guessing, based on the line numbers in that first exception, that it's
   6604 being triggered by an underlying problem with the source. If you run
   6605 sup with -n, does that change anything? (Or produce a better exception?)
   6606 
   6607 > Anyways, this is the current status of things on my machine. William, do
   6608 > you have any ideas what might cause such a backtrace. At this point
   6609 > classes have started and I really have no more time to devote to
   6610 > getting sup working. If there isn't a fairly simple solution here I guess
   6611 > I'll just need to stick with mutt (ugh). Anyways, thanks for your work.
   6612 
   6613 Well, there's a workaround, which is to switch over to an offlineimap
   6614 setup where your Gmail is mirrored locally and Sup reads the mirror
   6615 (which is what you want anyways if you're serious about using Sup with
   6616 an IMAP client). I don't know what's causing the deadlock, but I will
   6617 try and reproduce it on my end.
   6618 -- 
   6619 William <wmorgan-sup at masanjin.net>
   6620 
   6621 From wmorgan-sup@masanjin.net  Sat Sep 26 10:40:59 2009
   6622 From: wmorgan-sup@masanjin.net (William Morgan)
   6623 Date: Sat, 26 Sep 2009 07:40:59 -0700
   6624 Subject: [sup-talk] Fixing header for encrypted messages (might be an
   6625 	old issue)
   6626 In-Reply-To: <1253054438-sup-8449@thinkpad-ubuntu>
   6627 References: <1253045775-sup-210@thinkpad-ubuntu>
   6628 	<20090915222119.GA5290@chistera.yi.org>
   6629 	<1253054438-sup-8449@thinkpad-ubuntu>
   6630 Message-ID: <1253976007-sup-711@masanjin.net>
   6631 
   6632 Reformatted excerpts from Christopher Bertels's message of 2009-09-15:
   6633 > Excerpts from Adeodato Sim?'s message of Mi Sep 16 00:21:19 +0200 2009:
   6634 > > --- NoMethodError from thread: load messages for thread-view-mode
   6635 > > undefined method `expandable?' for #<Array:0x7faa50e2d978>
   6636 > > /home/dato/devel/sup/work/lib/sup/modes/thread-view-mode.rb:615:in `regen_text'
   6637 > > /home/dato/devel/sup/work/lib/sup/modes/thread-view-mode.rb:610:in `each'
   6638 > > /home/dato/devel/sup/work/lib/sup/modes/thread-view-mode.rb:610:in `regen_text'
   6639 > > /home/dato/devel/sup/work/lib/sup/thread.rb:68:in `each'
   6640 > > /home/dato/devel/sup/work/lib/sup/thread.rb:170:in `each_with_stuff'
   6641 > > [...]
   6642 > 
   6643 > Yes, it's the same error I get. Any insights as to what is causing this?
   6644 
   6645 Just to confirm---both of you are seeing this error, with a recent git
   6646 master, when opening encrypted messages?
   6647 -- 
   6648 William <wmorgan-sup at masanjin.net>
   6649 
   6650 From wmorgan-sup@masanjin.net  Sat Sep 26 10:48:48 2009
   6651 From: wmorgan-sup@masanjin.net (William Morgan)
   6652 Date: Sat, 26 Sep 2009 07:48:48 -0700
   6653 Subject: [sup-talk] Sup and Ruby 1.9.1 - deadlock?
   6654 In-Reply-To: <1253043209-sup-8800@zyrg.net>
   6655 References: <1253030868-sup-8556@mithink> <1253043209-sup-8800@zyrg.net>
   6656 Message-ID: <1253976432-sup-3851@masanjin.net>
   6657 
   6658 Reformatted excerpts from Rich Lane's message of 2009-09-15:
   6659 > I think William said he's been doing some 1.9 work recently. I wouldn't
   6660 > say it's ready just yet.
   6661 
   6662 My current plan is to release an 0.9 tomorrow or so (probably without
   6663 advertising the Xapian support), and to focus on Ruby 1.9 support for
   6664 the next release.
   6665 -- 
   6666 William <wmorgan-sup at masanjin.net>
   6667 
   6668 From wmorgan-sup@masanjin.net  Sat Sep 26 10:49:41 2009
   6669 From: wmorgan-sup@masanjin.net (William Morgan)
   6670 Date: Sat, 26 Sep 2009 07:49:41 -0700
   6671 Subject: [sup-talk] Fixing header for encrypted messages (might be an
   6672 	old issue)
   6673 In-Reply-To: <1253976007-sup-711@masanjin.net>
   6674 References: <1253045775-sup-210@thinkpad-ubuntu>
   6675 	<20090915222119.GA5290@chistera.yi.org>
   6676 	<1253054438-sup-8449@thinkpad-ubuntu>
   6677 	<1253976007-sup-711@masanjin.net>
   6678 Message-ID: <1253976576-sup-8002@masanjin.net>
   6679 
   6680 Reformatted excerpts from William Morgan's message of 2009-09-26:
   6681 > Just to confirm---both of you are seeing this error, with a recent git
   6682 > master, when opening encrypted messages?
   6683 
   6684 Ah, looks like Michael Stapelberg's patch will fix this.
   6685 -- 
   6686 William <wmorgan-sup at masanjin.net>
   6687 
   6688 From wmorgan-sup@masanjin.net  Sat Sep 26 10:56:14 2009
   6689 From: wmorgan-sup@masanjin.net (William Morgan)
   6690 Date: Sat, 26 Sep 2009 07:56:14 -0700
   6691 Subject: [sup-talk] Hello and thanks
   6692 In-Reply-To: <1252787425-sup-4073@longword>
   6693 References: <1252787425-sup-4073@longword>
   6694 Message-ID: <1253976950-sup-8220@masanjin.net>
   6695 
   6696 Hi Bo,
   6697 
   6698 Reformatted excerpts from Bo Borgerson's message of 2009-09-12:
   6699 > A git-send-email out of the blue isn't necessarily the friendliest of
   6700 > introductions, though, so I just wanted to write first and say thanks
   6701 > to William and everyone who has contributed to sup.  It's pretty
   6702 > awesome.
   6703 
   6704 Thanks for the kind words, and welcome!
   6705 -- 
   6706 William <wmorgan-sup at masanjin.net>
   6707 
   6708 From wmorgan-sup@masanjin.net  Sat Sep 26 13:45:49 2009
   6709 From: wmorgan-sup@masanjin.net (William Morgan)
   6710 Date: Sat, 26 Sep 2009 10:45:49 -0700
   6711 Subject: [sup-talk] [PATCH] Fix uninitialized @name member in person.rb.
   6712 In-Reply-To: <1253911543-sup-7680@yoom.home.cworth.org>
   6713 References: <1253911543-sup-7680@yoom.home.cworth.org>
   6714 Message-ID: <1253987121-sup-2390@masanjin.net>
   6715 
   6716 Reformatted excerpts from Carl Worth's message of 2009-09-25:
   6717 > Apparently a Person can be initialized with a nil name, (presumably
   6718 > from a message where there's no name given), which before this commit
   6719 > resulted in the following warning:
   6720 >
   6721 > ./lib/sup/person.rb:46: warning: instance variable @name not initialized
   6722 
   6723 Thanks, I have fixed this in master. Let me know if it doesn't work!
   6724 -- 
   6725 William <wmorgan-sup at masanjin.net>
   6726 
   6727 From wmorgan-sup@masanjin.net  Sat Sep 26 13:50:42 2009
   6728 From: wmorgan-sup@masanjin.net (William Morgan)
   6729 Date: Sat, 26 Sep 2009 10:50:42 -0700
   6730 Subject: [sup-talk] Bug: Killed threads coming up again
   6731 In-Reply-To: <1253905917-sup-5964@midna.zekjur.net>
   6732 References: <1253905917-sup-5964@midna.zekjur.net>
   6733 Message-ID: <1253987261-sup-6729@masanjin.net>
   6734 
   6735 Reformatted excerpts from Michael Stapelberg's message of 2009-09-25:
   6736 > I noticed that killed messages sometimes appear in my inbox again.
   6737 
   6738 Rats. I thought we had this problem licked.
   6739 
   6740 > Did anyone of you notice the same? Can you reproduce this?
   6741 
   6742 I haven't seen this recently. Are you using 0.8.1 or git? Does anyone
   6743 else see this with git?
   6744 -- 
   6745 William <wmorgan-sup at masanjin.net>
   6746 
   6747 From michael+sup@stapelberg.de  Sat Sep 26 14:03:53 2009
   6748 From: michael+sup@stapelberg.de (Michael Stapelberg)
   6749 Date: Sat, 26 Sep 2009 20:03:53 +0200
   6750 Subject: [sup-talk] Bug: Killed threads coming up again
   6751 In-Reply-To: <1253987261-sup-6729@masanjin.net>
   6752 References: <1253905917-sup-5964@midna.zekjur.net>
   6753 	<1253987261-sup-6729@masanjin.net>
   6754 Message-ID: <1253988170-sup-189@midna.zekjur.net>
   6755 
   6756 Hi,
   6757 
   6758 Excerpts from William Morgan's message of Sa Sep 26 19:50:42 +0200 2009:
   6759 > Rats. I thought we had this problem licked.
   6760 Unfortunately not. Also, this also happened with a thread which got no new
   6761 labels today, so my guess in the last mail was not correct.
   6762 
   6763 > I haven't seen this recently. Are you using 0.8.1 or git? Does anyone
   6764 > else see this with git?
   6765 I am using git version 68bf6a277c5fdefb3b9d6a4b5d4dfbce3f9f9ccf.
   6766 
   6767 Best regards,
   6768 Michael
   6769 
   6770 From wmorgan-sup@masanjin.net  Sat Sep 26 14:09:36 2009
   6771 From: wmorgan-sup@masanjin.net (William Morgan)
   6772 Date: Sat, 26 Sep 2009 11:09:36 -0700
   6773 Subject: [sup-talk] Bug: Messages using inline GPG are not decrypted
   6774 In-Reply-To: <1253905743-sup-419@midna.zekjur.net>
   6775 References: <1253638189-sup-7758@midna.zekjur.net>
   6776 	<1253640093-sup-48@midna.zekjur.net>
   6777 	<1253905743-sup-419@midna.zekjur.net>
   6778 Message-ID: <1253988435-sup-8649@masanjin.net>
   6779 
   6780 Reformatted excerpts from Michael Stapelberg's message of 2009-09-25:
   6781 > after fixing the other bug related to GPG messages, this patch has to be
   6782 > modified, too:
   6783 
   6784 I believe I've fixed this in git. Thunderbird is not producing
   6785 RFC3156-compliant encrypted emails, but by the Postel's Law we will
   6786 accomodate their errors. Let me know if it doesn't work.
   6787 -- 
   6788 William <wmorgan-sup at masanjin.net>
   6789 
   6790 From wmorgan-sup@masanjin.net  Sat Sep 26 14:10:04 2009
   6791 From: wmorgan-sup@masanjin.net (William Morgan)
   6792 Date: Sat, 26 Sep 2009 11:10:04 -0700
   6793 Subject: [sup-talk] Bug: Opening PGP encrypted mails fails with latest
   6794 	revision
   6795 In-Reply-To: <1253905662-sup-1750@midna.zekjur.net>
   6796 References: <1253476236-sup-9371@midna.zekjur.net>
   6797 	<1253905662-sup-1750@midna.zekjur.net>
   6798 Message-ID: <1253988590-sup-9530@masanjin.net>
   6799 
   6800 Reformatted excerpts from Michael Stapelberg's message of 2009-09-25:
   6801 > Further debugging revealed that this has been introduced in revision
   6802 > 927b7df4b2052a6b3c2ae1f2b44a6bc901315f8d and can be fixed with the
   6803 > following patch:
   6804 
   6805 Thanks, this should be fixed in git. Give it a try.
   6806 -- 
   6807 William <wmorgan-sup at masanjin.net>
   6808 
   6809 From guillaume.quintard@gmail.com  Sat Sep 26 14:09:56 2009
   6810 From: guillaume.quintard@gmail.com (Guillaume Quintard)
   6811 Date: Sat, 26 Sep 2009 20:09:56 +0200
   6812 Subject: [sup-talk] Hook, again
   6813 Message-ID: <1253988011-sup-8497@altis>
   6814 
   6815 Sorry to come back again with that issue, but I'm having trouble with
   6816 the reply-from hook. Here's what I have:
   6817 
   6818 message.recipients.each {
   6819     |person|
   6820 	if (person.email =~ /addr at site.com/) != nil
   6821 		Person.from_address "Foo  <bar at site.org>"
   6822 	end 
   6823 }
   6824 
   6825 But it doesn't seem to work. 
   6826 If I reply to a mail addressed to addr at site.com, the log says nothing, but the from field isn't changed.
   6827 If I reply to any other mail, le log complains I didn't return a Person
   6828 And if I just put Person.from_address "Foo  <addr at site.org>" in the
   6829 hook, the from field is correctly changed.
   6830 
   6831 I'm a bit lost on that one (still not knowing alot of ruby doesn't help
   6832 I must say). Am I missing the obvious here?
   6833 
   6834 Cheers.
   6835 
   6836 -- 
   6837 Guillaume
   6838 
   6839 From wmorgan-sup@masanjin.net  Sat Sep 26 14:12:24 2009
   6840 From: wmorgan-sup@masanjin.net (William Morgan)
   6841 Date: Sat, 26 Sep 2009 11:12:24 -0700
   6842 Subject: [sup-talk] [PATCH] Fix message_to_chunks for the m.body == nil
   6843 	case.
   6844 In-Reply-To: <1253217341-sup-8631@yoom.home.cworth.org>
   6845 References: <1253217341-sup-8631@yoom.home.cworth.org>
   6846 Message-ID: <1253988663-sup-3838@masanjin.net>
   6847 
   6848 Reformatted excerpts from Carl Worth's message of 2009-09-17:
   6849 > The code was previously broken in calling EnclosedMessage.new with
   6850 > only 2 instead of 5 arguments.
   6851 
   6852 Thanks, this has been applied.
   6853 
   6854 > So I'm not 100% sure that this patch is correct, but it does allow
   6855 > sup-sync to proceed and the message appears in sup as well as could be
   6856 > expected, (the "extra" headers from the corrupted mime part appear in
   6857 > the body as one might expect here).
   6858 
   6859 Yeah, I think that's the best we can hope for here.
   6860 -- 
   6861 William <wmorgan-sup at masanjin.net>
   6862 
   6863 From wmorgan-sup@masanjin.net  Sat Sep 26 14:12:50 2009
   6864 From: wmorgan-sup@masanjin.net (William Morgan)
   6865 Date: Sat, 26 Sep 2009 11:12:50 -0700
   6866 Subject: [sup-talk] [PATCH] mime-decode hook: provide a "charset"
   6867 	variable with the attachment charset
   6868 In-Reply-To: <20090913231753.GA20849@chistera.yi.org>
   6869 References: <6fc2e5dd8aa2b0b8547375d77b1776d779f85817.1247238014.git.dato@net.com.org.es>
   6870 	<20090723093543.GA2265@chistera.yi.org> <1248713434-sup-4961@entry>
   6871 	<20090730155656.GA20442@chistera.yi.org>
   6872 	<20090819212209.GA10883@chistera.yi.org>
   6873 	<1250964880-sup-7106@masanjin.net>
   6874 	<20090822191617.GA26897@chistera.yi.org>
   6875 	<1251048347-sup-5075@masanjin.net>
   6876 	<20090913231753.GA20849@chistera.yi.org>
   6877 Message-ID: <1253988754-sup-7987@masanjin.net>
   6878 
   6879 Reformatted excerpts from Adeodato Sim?'s message of 2009-09-13:
   6880 > Now that that fix is in, can you merge the mime-decode improvement from
   6881 > <6fc2e5dd8aa2b0b8547375d77b1776d779f85817.1247238014.git.dato at net.com.org.es>?
   6882 
   6883 Applied directly to master. Sorry for the grand delay.
   6884 -- 
   6885 William <wmorgan-sup at masanjin.net>
   6886 
   6887 From wmorgan-sup@masanjin.net  Sat Sep 26 14:17:14 2009
   6888 From: wmorgan-sup@masanjin.net (William Morgan)
   6889 Date: Sat, 26 Sep 2009 11:17:14 -0700
   6890 Subject: [sup-talk] Case-sensitivity of Content-Type: more RubyMail
   6891 	stupidity?
   6892 In-Reply-To: <1252781841-sup-6303@black-opal.mit.edu>
   6893 References: <1252781841-sup-6303@black-opal.mit.edu>
   6894 Message-ID: <1253988779-sup-2896@masanjin.net>
   6895 
   6896 Reformatted excerpts from Kevin Riggle's message of 2009-09-12:
   6897 > I theorize that RubyMail is being case-sensitive where it shouldn't.
   6898 
   6899 Although I love criticizing RubyMail, I think this is Sup's fault. I
   6900 don't think it's in RubyMail's proper purview to canonicalize header
   6901 values (though header names are fine).
   6902 
   6903 Anyways, I think I've fixed this in git. Give it a try.
   6904 
   6905 > Given the number of work-arounds Sup has had to implement to
   6906 > compensate for RubyMail's stupidity, and that RubyMail is currently
   6907 > unmaintained, has any thought been given to switching Sup to eg. TMail
   6908 > (http://tmail.rubyforge.org), which is maintained?
   6909 
   6910 It's certainly an option, but with so many workarounds invested in
   6911 RubyMail, I'm not sure it's a win. A patch that magically makes
   6912 everything work would certainly be considered.
   6913 -- 
   6914 William <wmorgan-sup at masanjin.net>
   6915 
   6916 From wmorgan-sup@masanjin.net  Sat Sep 26 14:23:34 2009
   6917 From: wmorgan-sup@masanjin.net (William Morgan)
   6918 Date: Sat, 26 Sep 2009 11:23:34 -0700
   6919 Subject: [sup-talk] sup 0.9 pre-release checkin
   6920 Message-ID: <1253989249-sup-3372@masanjin.net>
   6921 
   6922 Hi all,
   6923 
   6924 I'm getting to release Sup 0.9. I have applied all outstanding bugfixes
   6925 I've found, and have merged preemptive-loading into master, which was
   6926 the only remaining unmerged feature branch.
   6927 
   6928 If there's anything obviously missing, or obviously wrong with the state
   6929 of git master, now's a good time to point it out!
   6930 
   6931 Other pending patches will be merged into next afterwards, and targeted
   6932 for an 0.10 release.
   6933 -- 
   6934 William <wmorgan-sup at masanjin.net>
   6935 
   6936 From michael+sup@stapelberg.de  Sat Sep 26 16:28:54 2009
   6937 From: michael+sup@stapelberg.de (Michael Stapelberg)
   6938 Date: Sat, 26 Sep 2009 22:28:54 +0200
   6939 Subject: [sup-talk] Bug: Messages using inline GPG are not decrypted
   6940 In-Reply-To: <1253988435-sup-8649@masanjin.net>
   6941 References: <1253638189-sup-7758@midna.zekjur.net>
   6942 	<1253640093-sup-48@midna.zekjur.net>
   6943 	<1253905743-sup-419@midna.zekjur.net>
   6944 	<1253988435-sup-8649@masanjin.net>
   6945 Message-ID: <1253996823-sup-6670@midna.zekjur.net>
   6946 
   6947 Hi,
   6948 
   6949 Excerpts from William Morgan's message of Sa Sep 26 20:09:36 +0200 2009:
   6950 > I believe I've fixed this in git. Thunderbird is not producing
   6951 > RFC3156-compliant encrypted emails, but by the Postel's Law we will
   6952 > accomodate their errors. Let me know if it doesn't work.
   6953 The changes basically work. The message itself is opened and decrypted
   6954 correctly. However, when handling some messages, an exception occurs
   6955 (downcase called on NilClass), which can be fixed like this:
   6956 
   6957 --- a/lib/sup/message.rb
   6958 +++ b/lib/sup/message.rb
   6959 @@ -436,7 +436,7 @@ private
   6960        end
   6961  
   6962        chunks
   6963 -    elsif m.header.content_type.downcase == "message/rfc822"
   6964 +    elsif m.header.content_type && m.header.content_type.downcase == "message/rfc822"
   6965        if m.body
   6966          payload = RMail::Parser.read(m.body)
   6967          from = payload.header.from.first ? payload.header.from.first.format : ""
   6968 @@ -456,7 +456,7 @@ private
   6969          debug "no body for message/rfc822 enclosure; skipping"
   6970          []
   6971        end
   6972 -    elsif m.header.content_type.downcase == "application/pgp" && m.body
   6973 +    elsif m.header.content_type && m.header.content_type.downcase == "application/pgp" && m.body
   6974        ## apparently some versions of Thunderbird generate encryped email that
   6975        ## does not follow RFC3156, e.g. messages with X-Enigmail-Version: 0.95.0
   6976        ## they have no MIME multipart and just set the body content type to
   6977 
   6978 Best regards,
   6979 Michael
   6980 
   6981 From kevinr@free-dissociation.com  Sat Sep 26 17:35:31 2009
   6982 From: kevinr@free-dissociation.com (Kevin Riggle)
   6983 Date: Sat, 26 Sep 2009 17:35:31 -0400
   6984 Subject: [sup-talk] Case-sensitivity of Content-Type: more RubyMail
   6985 	stupidity?
   6986 In-Reply-To: <1253988779-sup-2896@masanjin.net>
   6987 References: <1252781841-sup-6303@black-opal.mit.edu>
   6988 	<1253988779-sup-2896@masanjin.net>
   6989 Message-ID: <1254000848-sup-7848@black-opal.mit.edu>
   6990 
   6991 Excerpts from William Morgan's message of Sat Sep 26 14:17:14 -0400 2009:
   6992 > Reformatted excerpts from Kevin Riggle's message of 2009-09-12:
   6993 > > I theorize that RubyMail is being case-sensitive where it shouldn't.
   6994 > 
   6995 > Although I love criticizing RubyMail, I think this is Sup's fault. I
   6996 > don't think it's in RubyMail's proper purview to canonicalize header
   6997 > values (though header names are fine).
   6998 > 
   6999 > Anyways, I think I've fixed this in git. Give it a try.
   7000 > 
   7001 Updated to next, restarted Sup, went to open a message, and got this crash:
   7002 (Appears to be individual messages, not all messages.)
   7003 
   7004 --- NoMethodError from thread: load messages for thread-view-mode
   7005 undefined method `downcase' for nil:NilClass
   7006 ./lib/sup/message.rb:439:in `message_to_chunks'
   7007 ./lib/sup/message.rb:239:in `load_from_source!'
   7008 ./lib/sup/modes/thread-index-mode.rb:108:in `select'
   7009 ./lib/sup/hook.rb:121:in `each_with_index'
   7010 ./lib/sup/thread.rb:68:in `each'
   7011 ./lib/sup/thread.rb:168:in `each_with_stuff'
   7012 ./lib/sup/thread.rb:67:in `each'
   7013 ./lib/sup/modes/thread-index-mode.rb:105:in `each_with_index'
   7014 ./lib/sup/modes/thread-index-mode.rb:105:in `select'
   7015 ./lib/sup/buffer.rb:716:in `say'
   7016 ./lib/sup/util.rb:520:in `send'
   7017 ./lib/sup/util.rb:520:in `method_missing'
   7018 ./lib/sup/modes/thread-index-mode.rb:104:in `select'
   7019 ./lib/sup.rb:77:in `reporting_thread'
   7020 ./lib/sup.rb:75:in `initialize'
   7021 ./lib/sup.rb:75:in `new'
   7022 ./lib/sup.rb:75:in `reporting_thread'
   7023 ./lib/sup/modes/thread-index-mode.rb:101:in `select'
   7024 ./lib/sup/mode.rb:51:in `send'
   7025 ./lib/sup/mode.rb:51:in `handle_input'
   7026 ./lib/sup/buffer.rb:267:in `handle_input'
   7027 bin/sup:238
   7028 
   7029 - Kevin
   7030 -- 
   7031 Kevin Riggle (kevinr at free-dissociation.com) 
   7032 http://free-dissociation.com
   7033 
   7034 From bwalton@artsci.utoronto.ca  Sat Sep 26 17:37:53 2009
   7035 From: bwalton@artsci.utoronto.ca (Ben Walton)
   7036 Date: Sat, 26 Sep 2009 17:37:53 -0400
   7037 Subject: [sup-talk] Bug: Messages using inline GPG are not decrypted
   7038 In-Reply-To: <1253996823-sup-6670@midna.zekjur.net>
   7039 References: <1253638189-sup-7758@midna.zekjur.net>
   7040 	<1253640093-sup-48@midna.zekjur.net>
   7041 	<1253905743-sup-419@midna.zekjur.net>
   7042 	<1253988435-sup-8649@masanjin.net>
   7043 	<1253996823-sup-6670@midna.zekjur.net>
   7044 Message-ID: <1254001034-sup-5895@ntdws12.chass.utoronto.ca>
   7045 
   7046 Excerpts from Michael Stapelberg's message of Sat Sep 26 16:28:54 -0400 2009:
   7047 > The changes basically work. The message itself is opened and decrypted
   7048 > correctly. However, when handling some messages, an exception occurs
   7049 > (downcase called on NilClass), which can be fixed like this:
   7050 
   7051 +1 for this patch.  I need it after updating too.
   7052 
   7053 -Ben
   7054 -- 
   7055 Ben Walton
   7056 Systems Programmer - CHASS
   7057 University of Toronto
   7058 C:416.407.5610 | W:416.978.4302
   7059 
   7060 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
   7061 Contact me to arrange for a CAcert assurance meeting.
   7062 
   7063 From michael+sup@stapelberg.de  Sat Sep 26 17:38:49 2009
   7064 From: michael+sup@stapelberg.de (Michael Stapelberg)
   7065 Date: Sat, 26 Sep 2009 23:38:49 +0200
   7066 Subject: [sup-talk] Bug: Converting the index to xapian fails with a
   7067 	message with very old date
   7068 In-Reply-To: <1253973258-sup-3347@masanjin.net>
   7069 References: <1253475875-sup-5119@midna.zekjur.net>
   7070 	<1253973258-sup-3347@masanjin.net>
   7071 Message-ID: <1254001080-sup-5742@midna.zekjur.net>
   7072 
   7073 Hi,
   7074 
   7075 Excerpts from William Morgan's message of Sa Sep 26 15:56:04 +0200 2009:
   7076 > Interesting. The Xapian index has had some trouble with crazy dates in
   7077 > the past, but that should be fixed. Can you apply the following debug
   7078 > patch and send the output for that message?
   7079 Yes, here we go:
   7080 
   7081 truncated date is Thu Jan 01 01:00:00 +0100 1970
   7082 date_value is "\200"
   7083 /usr/lib/ruby/1.8/sup/xapian_index.rb:536:in `_dump': year too big to marshal (ArgumentError)
   7084         from /usr/lib/ruby/1.8/sup/xapian_index.rb:536:in `dump'
   7085         from /usr/lib/ruby/1.8/sup/xapian_index.rb:536:in `index_message'
   7086         from /usr/lib/ruby/1.8/sup/xapian_index.rb:124:in `sync_message'
   7087         from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
   7088         from /usr/lib/ruby/1.8/sup/xapian_index.rb:398:in `synchronize'
   7089         from /usr/lib/ruby/1.8/sup/xapian_index.rb:123:in `sync_message'
   7090         from /usr/lib/ruby/1.8/sup/xapian_index.rb:94:in `add_message'
   7091         from /home/michael/software/sup-mainline/bin/sup-sync:211
   7092         from /usr/lib/ruby/1.8/sup/poll.rb:151:in `each_message_from'
   7093         from /usr/lib/ruby/1.8/sup/imap.rb:197:in `each'
   7094         from /usr/lib/ruby/1.8/sup/imap.rb:185:in `upto'
   7095         from /usr/lib/ruby/1.8/sup/imap.rb:185:in `each'
   7096         from /usr/lib/ruby/1.8/sup/util.rb:560:in `send'
   7097         from /usr/lib/ruby/1.8/sup/util.rb:560:in `__pass'
   7098         from /usr/lib/ruby/1.8/sup/util.rb:547:in `method_missing'
   7099         from /usr/lib/ruby/1.8/sup/poll.rb:139:in `each_message_from'
   7100         from /usr/lib/ruby/1.8/sup/util.rb:520:in `send'
   7101         from /usr/lib/ruby/1.8/sup/util.rb:520:in `method_missing'
   7102         from /home/michael/software/sup-mainline/bin/sup-sync:146
   7103         from /home/michael/software/sup-mainline/bin/sup-sync:141:in `each'
   7104         from /home/michael/software/sup-mainline/bin/sup-sync:141
   7105 
   7106 Best regards,
   7107 Michael
   7108 
   7109 From michael+sup@stapelberg.de  Sat Sep 26 17:41:58 2009
   7110 From: michael+sup@stapelberg.de (Michael Stapelberg)
   7111 Date: Sat, 26 Sep 2009 23:41:58 +0200
   7112 Subject: [sup-talk] Bug: Messages using inline GPG are not decrypted
   7113 In-Reply-To: <1253996823-sup-6670@midna.zekjur.net>
   7114 References: <1253638189-sup-7758@midna.zekjur.net>
   7115 	<1253640093-sup-48@midna.zekjur.net>
   7116 	<1253905743-sup-419@midna.zekjur.net>
   7117 	<1253988435-sup-8649@masanjin.net>
   7118 	<1253996823-sup-6670@midna.zekjur.net>
   7119 Message-ID: <1254001238-sup-5754@midna.zekjur.net>
   7120 
   7121 Hi,
   7122 
   7123 Excerpts from Michael Stapelberg's message of Sa Sep 26 22:28:54 +0200 2009:
   7124 > The changes basically work. The message itself is opened and decrypted
   7125 > correctly. However, when handling some messages, an exception occurs
   7126 > (downcase called on NilClass), which can be fixed like this:
   7127 I noticed that this is not the only place where this was wrong. Complete
   7128 patch attached (also fixes mixups like control.header.downcase.content_type
   7129 vs. control.header.content_type.downcase).
   7130 
   7131 Best regards,
   7132 Michael
   7133 -------------- next part --------------
   7134 A non-text attachment was scrubbed...
   7135 Name: sup-downcase.patch
   7136 Type: application/octet-stream
   7137 Size: 2375 bytes
   7138 Desc: not available
   7139 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090926/da544580/attachment.obj>
   7140 
   7141 From wmorgan-sup@masanjin.net  Sat Sep 26 21:27:57 2009
   7142 From: wmorgan-sup@masanjin.net (William Morgan)
   7143 Date: Sat, 26 Sep 2009 18:27:57 -0700
   7144 Subject: [sup-talk] Hook, again
   7145 In-Reply-To: <1253988011-sup-8497@altis>
   7146 References: <1253988011-sup-8497@altis>
   7147 Message-ID: <1254014763-sup-4749@masanjin.net>
   7148 
   7149 Reformatted excerpts from Guillaume Quintard's message of 2009-09-26:
   7150 > message.recipients.each {
   7151 >     |person|
   7152 >     if (person.email =~ /addr at site.com/) != nil
   7153 >         Person.from_address "Foo  <bar at site.org>"
   7154 >     end 
   7155 > }
   7156 
   7157 The problem is that #each returns the original array, i.e.
   7158 message.recipients. Your Person object is getting constructed and then
   7159 forgotten.
   7160 
   7161 Try:
   7162 
   7163 if messages.recipients.any? { |p| p.email =~ /addr at site\.com/ }
   7164   Person.from_address "Foo <bar at site.org>"
   7165 end
   7166 
   7167 -- 
   7168 William <wmorgan-sup at masanjin.net>
   7169 
   7170 From wmorgan-sup@masanjin.net  Sat Sep 26 21:40:06 2009
   7171 From: wmorgan-sup@masanjin.net (William Morgan)
   7172 Date: Sat, 26 Sep 2009 18:40:06 -0700
   7173 Subject: [sup-talk] Bug: Messages using inline GPG are not decrypted
   7174 In-Reply-To: <1254001238-sup-5754@midna.zekjur.net>
   7175 References: <1253638189-sup-7758@midna.zekjur.net>
   7176 	<1253640093-sup-48@midna.zekjur.net>
   7177 	<1253905743-sup-419@midna.zekjur.net>
   7178 	<1253988435-sup-8649@masanjin.net>
   7179 	<1253996823-sup-6670@midna.zekjur.net>
   7180 	<1254001238-sup-5754@midna.zekjur.net>
   7181 Message-ID: <1254015511-sup-5690@masanjin.net>
   7182 
   7183 Reformatted excerpts from Michael Stapelberg's message of 2009-09-26:
   7184 > I noticed that this is not the only place where this was wrong. Complete
   7185 > patch attached (also fixes mixups like control.header.downcase.content_type
   7186 > vs. control.header.content_type.downcase).
   7187 
   7188 Applied, thanks. BTW it will be slightly easier on me if you commit
   7189 changes and use git format-patch to send them (or git send-email). That
   7190 will also put your name in the automatically-generated contributors
   7191 list.
   7192 -- 
   7193 William <wmorgan-sup at masanjin.net>
   7194 
   7195 From wmorgan-sup@masanjin.net  Sat Sep 26 21:46:03 2009
   7196 From: wmorgan-sup@masanjin.net (William Morgan)
   7197 Date: Sat, 26 Sep 2009 18:46:03 -0700
   7198 Subject: [sup-talk] Case-sensitivity of Content-Type: more RubyMail
   7199 	stupidity?
   7200 In-Reply-To: <1254000848-sup-7848@black-opal.mit.edu>
   7201 References: <1252781841-sup-6303@black-opal.mit.edu>
   7202 	<1253988779-sup-2896@masanjin.net>
   7203 	<1254000848-sup-7848@black-opal.mit.edu>
   7204 Message-ID: <1254015946-sup-7518@masanjin.net>
   7205 
   7206 Reformatted excerpts from Kevin Riggle's message of 2009-09-26:
   7207 > undefined method `downcase' for nil:NilClass
   7208 
   7209 Should be fix0red.
   7210 -- 
   7211 William <wmorgan-sup at masanjin.net>
   7212 
   7213 From kevinr@free-dissociation.com  Sun Sep 27 03:10:51 2009
   7214 From: kevinr@free-dissociation.com (Kevin Riggle)
   7215 Date: Sun, 27 Sep 2009 03:10:51 -0400
   7216 Subject: [sup-talk] Case-sensitivity of Content-Type: more RubyMail
   7217 	stupidity?
   7218 In-Reply-To: <1254015946-sup-7518@masanjin.net>
   7219 References: <1252781841-sup-6303@black-opal.mit.edu>
   7220 	<1253988779-sup-2896@masanjin.net>
   7221 	<1254000848-sup-7848@black-opal.mit.edu>
   7222 	<1254015946-sup-7518@masanjin.net>
   7223 Message-ID: <1254035436-sup-1220@black-opal.mit.edu>
   7224 
   7225 Excerpts from William Morgan's message of Sat Sep 26 21:46:03 -0400 2009:
   7226 > Reformatted excerpts from Kevin Riggle's message of 2009-09-26:
   7227 > > undefined method `downcase' for nil:NilClass
   7228 > 
   7229 > Should be fix0red.
   7230 
   7231 Looks like it is -- thanks!
   7232 
   7233 - Kevin
   7234 -- 
   7235 Kevin Riggle (kevinr at free-dissociation.com) 
   7236 http://free-dissociation.com
   7237 
   7238 From dato@net.com.org.es  Sun Sep 27 08:48:56 2009
   7239 From: dato@net.com.org.es (Adeodato =?utf-8?B?U2ltw7M=?=)
   7240 Date: Sun, 27 Sep 2009 13:48:56 +0100
   7241 Subject: [sup-talk] Fixing header for encrypted messages (might be an
   7242  old issue)
   7243 In-Reply-To: <1253976576-sup-8002@masanjin.net>
   7244 References: <1253045775-sup-210@thinkpad-ubuntu>
   7245 	<20090915222119.GA5290@chistera.yi.org>
   7246 	<1253054438-sup-8449@thinkpad-ubuntu>
   7247 	<1253976007-sup-711@masanjin.net>
   7248 	<1253976576-sup-8002@masanjin.net>
   7249 Message-ID: <20090927124856.GA322@chistera.yi.org>
   7250 
   7251 + William Morgan (Sat, 26 Sep 2009 07:49:41 -0700):
   7252 
   7253 > Reformatted excerpts from William Morgan's message of 2009-09-26:
   7254 > > Just to confirm---both of you are seeing this error, with a recent git
   7255 > > master, when opening encrypted messages?
   7256 
   7257 > Ah, looks like Michael Stapelberg's patch will fix this.
   7258 
   7259 I can confirm it works again on master (and next), thanks!
   7260 
   7261 -- 
   7262 - Are you sure we're good?
   7263 - Always.
   7264         -- Rory and Lorelai
   7265 
   7266 
   7267 From web-sup@superscript.com  Sun Sep 27 13:04:39 2009
   7268 From: web-sup@superscript.com (William Erik Baxter)
   7269 Date: Sun, 27 Sep 2009 13:04:39 -0400
   7270 Subject: [sup-talk] Why inbox-mode instead of default search?
   7271 Message-ID: <1254070015-sup-5151@kronos>
   7272 
   7273 Why does sup have a separate mode for viewing the inbox rather than simply
   7274 applying a default search (possibly configurable) and displaying the results
   7275 with search-results-mode?  Like a number of other posters to the list, I wanted
   7276 to refine my inbox search.  But the requisite key binding exists only in
   7277 search-results-mode and not in inbox-mode.
   7278 
   7279 Using inbox as an ordinary label with search-results-mode instead of inbox-mode
   7280 offers several advantages over the separate inbox-mode: less code, less
   7281 separate modality, ability to refine the inbox search.  It introduces the
   7282 possibility of closing the inbox window, readily addressed with a key binding
   7283 to perform the default search.  What are the disadvantages?  One loses the
   7284 difference in the archiving behavior between the two modes.  The inbox label
   7285 would appear in the label editors.  The program may need new code to handle a
   7286 new no-windows case.  Perhaps efficiency considerations enter here. 
   7287 
   7288 Thanks, W.
   7289 
   7290 From wmorgan-sup@masanjin.net  Sun Sep 27 13:46:00 2009
   7291 From: wmorgan-sup@masanjin.net (William Morgan)
   7292 Date: Sun, 27 Sep 2009 10:46:00 -0700
   7293 Subject: [sup-talk] Why inbox-mode instead of default search?
   7294 In-Reply-To: <1254070015-sup-5151@kronos>
   7295 References: <1254070015-sup-5151@kronos>
   7296 Message-ID: <1254073440-sup-2700@masanjin.net>
   7297 
   7298 Reformatted excerpts from William Erik Baxter's message of 2009-09-27:
   7299 > Why does sup have a separate mode for viewing the inbox rather than
   7300 > simply applying a default search (possibly configurable) and
   7301 > displaying the results with search-results-mode?
   7302 
   7303 Because there are two special actions that are specific to inboxes:
   7304 archiving and killing.
   7305 
   7306 > Like a number of other posters to the list, I wanted to refine my
   7307 > inbox search.  But the requisite key binding exists only in
   7308 > search-results-mode and not in inbox-mode.
   7309 
   7310 It would be easy enough to add a "|" command to inbox mode that would
   7311 spawn a search buffer with label:inbox and the rest of your search
   7312 terms.
   7313 
   7314 -- 
   7315 William <wmorgan-sup at masanjin.net>
   7316 
   7317 From web-sup@superscript.com  Sun Sep 27 14:50:08 2009
   7318 From: web-sup@superscript.com (William Erik Baxter)
   7319 Date: Sun, 27 Sep 2009 14:50:08 -0400
   7320 Subject: [sup-talk] Why inbox-mode instead of default search?
   7321 In-Reply-To: <1254073440-sup-2700@masanjin.net>
   7322 References: <1254070015-sup-5151@kronos> <1254073440-sup-2700@masanjin.net>
   7323 Message-ID: <1254074517-sup-4465@kronos>
   7324 
   7325 Excerpts from William Morgan's message of Sun Sep 27 13:46:00 -0400 2009:
   7326 > Reformatted excerpts from William Erik Baxter's message of 2009-09-27:
   7327 > > Why does sup have a separate mode for viewing the inbox rather than
   7328 > > simply applying a default search (possibly configurable) and
   7329 > > displaying the results with search-results-mode?
   7330 > 
   7331 > Because there are two special actions that are specific to inboxes:
   7332 > archiving and killing.
   7333 
   7334 Both modes support archive and kill in some form.  So I don't understand how
   7335 this argues for splitting as opposed to consolidating the two modes.  The need
   7336 for preallocated, special-purpose labels like inbox and killed seems clear
   7337 enough.  However, minimizing the amount of magical behavior they exhibit also
   7338 seems beneficial, if only for the sake of consistency.  Treating the inbox as
   7339 something other than an ordinary label search is magical.
   7340 
   7341 > It would be easy enough to add a "|" command to inbox mode that would
   7342 > spawn a search buffer with label:inbox and the rest of your search
   7343 > terms.
   7344 
   7345 A patch to add this command to inbox-mode appears in the August sup-talk
   7346 archive.  I would like to see this feature become part of the base system.
   7347 
   7348 Cheers, W.
   7349 
   7350 From bgamari.foss@gmail.com  Mon Sep 28 14:10:06 2009
   7351 From: bgamari.foss@gmail.com (Ben Gamari)
   7352 Date: Mon, 28 Sep 2009 14:10:06 -0400
   7353 Subject: [sup-talk] Crash while scrolling
   7354 In-Reply-To: <1253975267-sup-8308@masanjin.net>
   7355 References: <20090911165830.GA11260@ben-laptop>
   7356 	<1252773189-sup-246@masanjin.net>
   7357 	<20090916172340.GA20566@ben-laptop>
   7358 	<1253975267-sup-8308@masanjin.net>
   7359 Message-ID: <1254160696-sup-3522@ben-laptop>
   7360 
   7361 Excerpts from William Morgan's message of Sat Sep 26 10:31:56 -0400 2009:
   7362 > Sorry it's taken me so long to get back to this.
   7363 
   7364 Quite alright. I know we're all busy.
   7365 
   7366 > 
   7367 > I definitely am not sure why there's a deadlock happening, but I am
   7368 > guessing, based on the line numbers in that first exception, that it's
   7369 > being triggered by an underlying problem with the source. If you run
   7370 > sup with -n, does that change anything? (Or produce a better exception?)
   7371 
   7372 Well, things definitely failed a bit differently. I tried this a few
   7373 times and after seeing no real improvement, I moved on to your
   7374 suggestion below. 
   7375 
   7376 > 
   7377 > > Anyways, this is the current status of things on my machine. William, do
   7378 > > you have any ideas what might cause such a backtrace. At this point
   7379 > > classes have started and I really have no more time to devote to
   7380 > > getting sup working. If there isn't a fairly simple solution here I guess
   7381 > > I'll just need to stick with mutt (ugh). Anyways, thanks for your work.
   7382 > 
   7383 > Well, there's a workaround, which is to switch over to an offlineimap
   7384 > setup where your Gmail is mirrored locally and Sup reads the mirror
   7385 > (which is what you want anyways if you're serious about using Sup with
   7386 > an IMAP client). I don't know what's causing the deadlock, but I will
   7387 > try and reproduce it on my end.
   7388 
   7389 This is definitely what I should have done from the beginning. Given
   7390 that sup seems to work fine after removing my imap sources, it seems
   7391 that that might be the source of the above deadlock. I think I'll just
   7392 stick with offlineimap for now.
   7393 
   7394 This does raise one important question, however. It seems that
   7395 offlineimap will delete messages if they are found to have been deleted
   7396 in the remote respository. Is there any way that you know of to disable
   7397 this behavior, such that it will only drop new messages into the local
   7398 repository, thus making it somewhat compatible with sup's add-only
   7399 source requirement? It is awfully nice to be able to use GMail's web
   7400 interface when I'm away from my computer, but needing to re-sync sup
   7401 afterwards becomes quite tiresome.
   7402 
   7403 This actually brings up a larger question. How difficult would it be to
   7404 relax sup's assumption that sources are add-only? This seems like a
   7405 horribly restriction to have in an email program. I understand that in
   7406 the case of sources such as imap where there is no globally unique
   7407 message identifier trying to track message changes could be quite
   7408 difficult, but for local sources (especially maildirs) it seems like
   7409 this should be quite possible.
   7410 
   7411 Anyways, thanks a ton for your work. Now since I finally have sup up and
   7412 running reliably, it's been a joy to use. Leaps and bounds above my
   7413 former mutt-based system.
   7414 
   7415 - Ben
   7416 
   7417 From cworth@cworth.org  Mon Sep 28 18:57:38 2009
   7418 From: cworth@cworth.org (Carl Worth)
   7419 Date: Mon, 28 Sep 2009 15:57:38 -0700
   7420 Subject: [sup-talk] [PATCH] Add new :crypto_default configuration option.
   7421 Message-ID: <1254178611-sup-369@yoom.home.cworth.org>
   7422 
   7423 For example, users that want to sign all outgoing messages by default
   7424 can set:
   7425 
   7426 	:crypto_default: :sign
   7427 
   7428 in ~/.sup/config.yaml. Configuring an invalid value will cause a list
   7429 of the valid values to be logged at the "error" level.
   7430 ---
   7431  lib/sup/horizontal-selector.rb     |    8 +++++++-
   7432  lib/sup/modes/edit-message-mode.rb |    7 ++++++-
   7433  2 files changed, 13 insertions(+), 2 deletions(-)
   7434 
   7435 diff --git a/lib/sup/horizontal-selector.rb b/lib/sup/horizontal-selector.rb
   7436 index aef16d4..13c63ed 100644
   7437 --- a/lib/sup/horizontal-selector.rb
   7438 +++ b/lib/sup/horizontal-selector.rb
   7439 @@ -12,7 +12,13 @@ class HorizontalSelector
   7440      @selection = 0
   7441    end
   7442  
   7443 -  def set_to val; @selection = @vals.index(val) end
   7444 +  def set_to val
   7445 +    if @vals.index(val)
   7446 +      @selection = @vals.index(val)
   7447 +    else
   7448 +      error "Invalid option ", val.inspect, " (valid options: ", @vals.inspect, ")"
   7449 +    end
   7450 +  end
   7451  
   7452    def val; @vals[@selection] end
   7453  
   7454 diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mode.rb
   7455 index 8da316f..3449503 100644
   7456 --- a/lib/sup/modes/edit-message-mode.rb
   7457 +++ b/lib/sup/modes/edit-message-mode.rb
   7458 @@ -89,7 +89,12 @@ EOS
   7459        if CryptoManager.have_crypto?
   7460          HorizontalSelector.new "Crypto:", [:none] + CryptoManager::OUTGOING_MESSAGE_OPERATIONS.keys, ["None"] + CryptoManager::OUTGOING_MESSAGE_OPERATIONS.values
   7461        end
   7462 -    add_selector @crypto_selector if @crypto_selector
   7463 +    if @crypto_selector
   7464 +      if !$config[:crypto_default].nil?
   7465 +        @crypto_selector.set_to $config[:crypto_default]
   7466 +      end
   7467 +      add_selector @crypto_selector
   7468 +    end
   7469      
   7470      HookManager.run "before-edit", :header => @header, :body => @body
   7471  
   7472 -- 
   7473 1.6.4.3
   7474 -------------- next part --------------
   7475 A non-text attachment was scrubbed...
   7476 Name: signature.asc
   7477 Type: application/pgp-signature
   7478 Size: 190 bytes
   7479 Desc: not available
   7480 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090928/cc5a4c98/attachment.bin>
   7481 
   7482 From michael+sup@stapelberg.de  Tue Sep 29 14:43:09 2009
   7483 From: michael+sup@stapelberg.de (Michael Stapelberg)
   7484 Date: Tue, 29 Sep 2009 20:43:09 +0200
   7485 Subject: [sup-talk] [BUG] [PATCH] Encrypted messages without signature
   7486 	generate an exception
   7487 Message-ID: <1254249719-sup-3652@midna.zekjur.net>
   7488 
   7489 Hi,
   7490 
   7491 when viewing (or replying to) an encrypted message without a signature,
   7492 sup throws an exception because of a nil chunk. I?ve attached a patch
   7493 which fixes the issue by instead providing a message stating that this
   7494 mail is not signed.
   7495 
   7496 Best regards,
   7497 Michael
   7498 -------------- next part --------------
   7499 A non-text attachment was scrubbed...
   7500 Name: 0001-Bugfix-Display-a-notice-when-a-mail-is-not-signed.patch
   7501 Type: application/octet-stream
   7502 Size: 1212 bytes
   7503 Desc: not available
   7504 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090929/1351e062/attachment.obj>
   7505 
   7506 From stettberger@dokucode.de  Tue Sep 29 14:14:58 2009
   7507 From: stettberger@dokucode.de (Christian Dietrich)
   7508 Date: Tue, 29 Sep 2009 20:14:58 +0200
   7509 Subject: [sup-talk] Feature Request: Collecting Lines in Index Mode
   7510 Message-ID: <1254247706-sup-2745@peer.zerties.org>
   7511 
   7512 Hey there,
   7513 i am using sup now for just a few weeks and it is just amazing how
   7514 good it works (the lack of folders iritated me a little bit at
   7515 first).
   7516 
   7517 But now to my Request, i would like to have something like datelines
   7518 in index mode, like:
   7519 
   7520 ,-----------------
   7521 | -- Today
   7522 | 12:23 ...
   7523 | 23:42 ...
   7524 | -- Yesterday
   7525 | Yest. 9 ....
   7526 | Yest. 4....
   7527 | -- Last week
   7528 | .....
   7529 .---------------
   7530 
   7531 I think this would cause an bigger overview over the mails,
   7532 especially in the inbox.
   7533 
   7534 I tried to implement the feature by my self, but the mapping
   7535 beetween `curpos' and `@threads' in modes/thread-index-mode.rb made this
   7536 a little bit hard, and i didn't know how to solve this problem
   7537 without breaking sup. Perhaps you can give me a hint, how this
   7538 problem with the direct mapping can be solved.
   7539 
   7540 greetz didi
   7541 -- 
   7542 No documentation is better than bad documentation
   7543 -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.
   7544 
   7545 From wmorgan-sup@masanjin.net  Wed Sep 30 11:16:35 2009
   7546 From: wmorgan-sup@masanjin.net (William Morgan)
   7547 Date: Wed, 30 Sep 2009 08:16:35 -0700
   7548 Subject: [sup-talk] Why inbox-mode instead of default search?
   7549 In-Reply-To: <1254074517-sup-4465@kronos>
   7550 References: <1254070015-sup-5151@kronos> <1254073440-sup-2700@masanjin.net>
   7551 	<1254074517-sup-4465@kronos>
   7552 Message-ID: <1254323181-sup-1735@masanjin.net>
   7553 
   7554 Reformatted excerpts from William Erik Baxter's message of 2009-09-27:
   7555 > Both modes support archive and kill in some form.  So I don't
   7556 > understand how this argues for splitting as opposed to consolidating
   7557 > the two modes.
   7558 
   7559 How does the notion of killing a thread that makes sense except in the
   7560 context of having an special inbox mode?
   7561 
   7562 > The need for preallocated, special-purpose labels like
   7563 > inbox and killed seems clear enough.  However, minimizing the amount
   7564 > of magical behavior they exhibit also seems beneficial, if only for
   7565 > the sake of consistency.  Treating the inbox as something other than
   7566 > an ordinary label search is magical.
   7567 
   7568 The inbox is magical, because you do different things with your inbox
   7569 than you do with non-inbox buffers: you classify threads into a) I'm
   7570 done with this thread for now, but let me know if someone replies
   7571 (archive); b) I'm done with this thread for now and don't let me know if
   7572 someone replies (kill); c) I'll deal with this later (ignore).
   7573 
   7574 > A patch to add this command to inbox-mode appears in the August sup-talk
   7575 > archive.  I would like to see this feature become part of the base system.
   7576 
   7577 I agree.
   7578 -- 
   7579 William <wmorgan-sup at masanjin.net>
   7580 
   7581 From cworth@cworth.org  Wed Sep 30 12:12:35 2009
   7582 From: cworth@cworth.org (Carl Worth)
   7583 Date: Wed, 30 Sep 2009 09:12:35 -0700
   7584 Subject: [sup-talk] Why inbox-mode instead of default search?
   7585 In-Reply-To: <1254323181-sup-1735@masanjin.net>
   7586 References: <1254070015-sup-5151@kronos> <1254073440-sup-2700@masanjin.net>
   7587 	<1254074517-sup-4465@kronos> <1254323181-sup-1735@masanjin.net>
   7588 Message-ID: <1254326318-sup-904@yoom.home.cworth.org>
   7589 
   7590 Excerpts from William Morgan's message of Wed Sep 30 08:16:35 -0700 2009:
   7591 > How does the notion of killing a thread that makes sense except in the
   7592 > context of having an special inbox mode?
   7593 
   7594 The kill-thread notion can be handled in multiple ways without a
   7595 special inbox mode.
   7596 
   7597 One way would be to simply not apply the inbox label to new messages
   7598 belonging to killed threads.
   7599 
   7600 A better way would be to expand the search capability to something like:
   7601 
   7602   Search for all threads containing messages matching <include-condition>
   7603   AND exclude all threads containing messages matching <exclude-condition>
   7604 
   7605 I'd be happy to have that kind of functionality for arbitrary labels
   7606 that would function like killed for specific searches.
   7607 
   7608 > The inbox is magical, because you do different things with your inbox
   7609 > than you do with non-inbox buffers: you classify threads into a) I'm
   7610 > done with this thread for now, but let me know if someone replies
   7611 > (archive); b) I'm done with this thread for now and don't let me know if
   7612 > someone replies (kill); c) I'll deal with this later (ignore).
   7613 
   7614 It's definitely true that reading new mail is a different activity
   7615 than searching old mail, (note my recent patch that provides different
   7616 sort orders for these two operations).
   7617 
   7618 But there are at least two problems with the current inbox mode
   7619 implemented separately from the search mode:
   7620 
   7621 1. Some functionality appears in only one or the other of the modes.
   7622 
   7623    Refine search is the easy-to-notice one that we've talked
   7624    about. But really, any keybindings performing distinct actions in
   7625    these two modes is just confusing. The two modes are far too
   7626    similar to have independent lists of possible actions and
   7627    bindings. This should be unified.
   7628 
   7629 2. There are some things that are currently implemented as "magic" in
   7630    inbox mode that should really be made available to all searches.
   7631 
   7632    Things like the archive operation making a message disappear from
   7633    the inbox. Instead, any operation making a message no longer
   7634    satisfy the current search should cause it to disappear from the
   7635    current view.
   7636 
   7637 > > A patch to add this command to inbox-mode appears in the August sup-talk
   7638 > > archive.  I would like to see this feature become part of the base system.
   7639 > 
   7640 > I agree.
   7641 
   7642 One shortcoming of that patch is that refined versions of the inbox
   7643 come up in search-results-mode, not inbox-mode. So you don't actually
   7644 get what you want yet, (such as archiving no longer works the same in
   7645 a refined inbox as it does in the raw inbox).
   7646 
   7647 Or said another way, you would get exactly what you want if there was
   7648 nothing magic about inbox.
   7649 
   7650 -Carl
   7651 -------------- next part --------------
   7652 A non-text attachment was scrubbed...
   7653 Name: signature.asc
   7654 Type: application/pgp-signature
   7655 Size: 190 bytes
   7656 Desc: not available
   7657 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090930/1641d2ef/attachment.bin>
   7658 
   7659 From rlane@club.cc.cmu.edu  Wed Sep 30 13:47:53 2009
   7660 From: rlane@club.cc.cmu.edu (Rich Lane)
   7661 Date: Wed, 30 Sep 2009 13:47:53 -0400
   7662 Subject: [sup-talk] Why inbox-mode instead of default search?
   7663 In-Reply-To: <1254326318-sup-904@yoom.home.cworth.org>
   7664 References: <1254070015-sup-5151@kronos> <1254073440-sup-2700@masanjin.net>
   7665 	<1254074517-sup-4465@kronos> <1254323181-sup-1735@masanjin.net>
   7666 	<1254326318-sup-904@yoom.home.cworth.org>
   7667 Message-ID: <1254331067-sup-9065@zyrg.net>
   7668 
   7669 Excerpts from Carl Worth's message of Wed Sep 30 12:12:35 -0400 2009:
   7670 > Or said another way, you would get exactly what you want if there was
   7671 > nothing magic about inbox.
   7672 
   7673 I've been working on a patch to do this. You can see the current state
   7674 at http://github.com/rlane/sup/tree/personal/. It's still buggy and
   7675 needs to be cleaned up a lot before I submit it. The basic idea is that
   7676 ThreadSet becomes tightly coupled to the Index and stays in sync with
   7677 it. This lets us use the index to determine whether a message is
   7678 relevant to a query, which was the main cause of magic previously. It
   7679 also makes ThreadIndexMode much simpler in general resulting in a net
   7680 code reduction. 
   7681 
   7682 From wmorgan-sup@masanjin.net  Wed Sep 30 14:04:52 2009
   7683 From: wmorgan-sup@masanjin.net (William Morgan)
   7684 Date: Wed, 30 Sep 2009 11:04:52 -0700
   7685 Subject: [sup-talk] Why inbox-mode instead of default search?
   7686 In-Reply-To: <1254331067-sup-9065@zyrg.net>
   7687 References: <1254070015-sup-5151@kronos> <1254073440-sup-2700@masanjin.net>
   7688 	<1254074517-sup-4465@kronos> <1254323181-sup-1735@masanjin.net>
   7689 	<1254326318-sup-904@yoom.home.cworth.org>
   7690 	<1254331067-sup-9065@zyrg.net>
   7691 Message-ID: <1254333819-sup-408@masanjin.net>
   7692 
   7693 Reformatted excerpts from Rich Lane's message of 2009-09-30:
   7694 > This lets us use the index to determine whether a message is relevant
   7695 > to a query, which was the main cause of magic previously. It also
   7696 > makes ThreadIndexMode much simpler in general resulting in a net code
   7697 > reduction.
   7698 
   7699 Now you're talking my language. :)
   7700 -- 
   7701 William <wmorgan-sup at masanjin.net>
   7702 
   7703 From wmorgan-sup@masanjin.net  Wed Sep 30 14:17:55 2009
   7704 From: wmorgan-sup@masanjin.net (William Morgan)
   7705 Date: Wed, 30 Sep 2009 11:17:55 -0700
   7706 Subject: [sup-talk] Feature Request: Collecting Lines in Index Mode
   7707 In-Reply-To: <1254247706-sup-2745@peer.zerties.org>
   7708 References: <1254247706-sup-2745@peer.zerties.org>
   7709 Message-ID: <1254334371-sup-5145@masanjin.net>
   7710 
   7711 Reformatted excerpts from Christian Dietrich's message of 2009-09-29:
   7712 > i am using sup now for just a few weeks and it is just amazing how
   7713 > good it works (the lack of folders iritated me a little bit at
   7714 > first).
   7715 
   7716 Welcome!
   7717 
   7718 > But now to my Request, i would like to have something like datelines
   7719 > in index mode, like:
   7720 
   7721 Cool idea. I'd like to see how this looks.
   7722 
   7723 > I tried to implement the feature by my self, but the mapping beetween
   7724 > `curpos' and `@threads' in modes/thread-index-mode.rb made this a
   7725 > little bit hard, and i didn't know how to solve this problem without
   7726 > breaking sup. Perhaps you can give me a hint, how this problem with
   7727 > the direct mapping can be solved.
   7728 
   7729 If you look at #regen_text, @text and @lines are the two variables that
   7730 control the display. @text is an array of the GUI elements for each line
   7731 of the display. Right now it's just set to one line for each thread. You
   7732 want to add one additional element at the appropriate position. for each
   7733 date line. GUI elements are represented as arrays of [color, text]
   7734 pairs; you can look at #text_for_thread_at for an example.
   7735 
   7736 Then, you want to make sure that @lines is set correctly. @lines is a
   7737 map (hash) from line number to thread (so that when the user presses a
   7738 key, we know which thread the cursor is resting on).
   7739 
   7740 Hope that helps.
   7741 -- 
   7742 William <wmorgan-sup at masanjin.net>
   7743 
   7744 From wmorgan-sup@masanjin.net  Wed Sep 30 14:21:46 2009
   7745 From: wmorgan-sup@masanjin.net (William Morgan)
   7746 Date: Wed, 30 Sep 2009 11:21:46 -0700
   7747 Subject: [sup-talk] sup 0.9 pre-release checkin
   7748 In-Reply-To: <1253989249-sup-3372@masanjin.net>
   7749 References: <1253989249-sup-3372@masanjin.net>
   7750 Message-ID: <1254334862-sup-8690@masanjin.net>
   7751 
   7752 Reformatted excerpts from William Morgan's message of 2009-09-26:
   7753 > If there's anything obviously missing, or obviously wrong with the
   7754 > state of git master, now's a good time to point it out!
   7755 
   7756 I've just made a few more bugfix changes, so I'm giving this another day
   7757 of baking.
   7758 -- 
   7759 William <wmorgan-sup at masanjin.net>
   7760 
   7761 From michael+sup@stapelberg.de  Wed Sep 30 14:55:30 2009
   7762 From: michael+sup@stapelberg.de (Michael Stapelberg)
   7763 Date: Wed, 30 Sep 2009 20:55:30 +0200
   7764 Subject: [sup-talk] sup 0.9 pre-release checkin
   7765 In-Reply-To: <1254334862-sup-8690@masanjin.net>
   7766 References: <1253989249-sup-3372@masanjin.net>
   7767 	<1254334862-sup-8690@masanjin.net>
   7768 Message-ID: <1254336855-sup-2395@midna.zekjur.net>
   7769 
   7770 Hi William,
   7771 
   7772 Excerpts from William Morgan's message of Mi Sep 30 20:21:46 +0200 2009:
   7773 > I've just made a few more bugfix changes, so I'm giving this another day
   7774 > of baking.
   7775 I am not sure if you have not noticed my patch, but in any case I would like
   7776 to see it in 0.9:
   7777 
   7778 http://rubyforge.org/pipermail/sup-talk/2009-September/003189.html
   7779 
   7780 It fixes a crash when opening PGP encrypted (but not signed) emails.
   7781 
   7782 Best regards,
   7783 Michael
   7784 
   7785 From cworth@cworth.org  Wed Sep 30 15:12:45 2009
   7786 From: cworth@cworth.org (Carl Worth)
   7787 Date: Wed, 30 Sep 2009 12:12:45 -0700
   7788 Subject: [sup-talk] Why inbox-mode instead of default search?
   7789 In-Reply-To: <1254331067-sup-9065@zyrg.net>
   7790 References: <1254070015-sup-5151@kronos> <1254073440-sup-2700@masanjin.net>
   7791 	<1254074517-sup-4465@kronos> <1254323181-sup-1735@masanjin.net>
   7792 	<1254326318-sup-904@yoom.home.cworth.org>
   7793 	<1254331067-sup-9065@zyrg.net>
   7794 Message-ID: <1254337861-sup-4368@yoom.home.cworth.org>
   7795 
   7796 Excerpts from Rich Lane's message of Wed Sep 30 10:47:53 -0700 2009:
   7797 > Excerpts from Carl Worth's message of Wed Sep 30 12:12:35 -0400 2009:
   7798 > > Or said another way, you would get exactly what you want if there was
   7799 > > nothing magic about inbox.
   7800 > 
   7801 > I've been working on a patch to do this. You can see the current state
   7802 > at http://github.com/rlane/sup/tree/personal/. It's still buggy and
   7803 > needs to be cleaned up a lot before I submit it.
   7804 
   7805 Very nice stuff, Rich!
   7806 
   7807 It's great to see this coming along so far already.
   7808 
   7809 Please let me know if there are specific bugs or issues you'd like
   7810 help fixing, and I'll be glad to try out where I can. Or even if there
   7811 are just specific things you'd like tested---I'm not too afraid of
   7812 running half-baked sup branches. :-)
   7813 
   7814 -Carl
   7815 -------------- next part --------------
   7816 A non-text attachment was scrubbed...
   7817 Name: signature.asc
   7818 Type: application/pgp-signature
   7819 Size: 236 bytes
   7820 Desc: not available
   7821 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090930/c996cd28/attachment.bin>
   7822 
   7823 From wmorgan-sup@masanjin.net  Wed Sep 30 15:33:34 2009
   7824 From: wmorgan-sup@masanjin.net (William Morgan)
   7825 Date: Wed, 30 Sep 2009 12:33:34 -0700
   7826 Subject: [sup-talk] sup 0.9 pre-release checkin
   7827 In-Reply-To: <1254336855-sup-2395@midna.zekjur.net>
   7828 References: <1253989249-sup-3372@masanjin.net>
   7829 	<1254334862-sup-8690@masanjin.net>
   7830 	<1254336855-sup-2395@midna.zekjur.net>
   7831 Message-ID: <1254339174-sup-648@masanjin.net>
   7832 
   7833 Reformatted excerpts from Michael Stapelberg's message of 2009-09-30:
   7834 > http://rubyforge.org/pipermail/sup-talk/2009-September/003189.html
   7835 > 
   7836 > It fixes a crash when opening PGP encrypted (but not signed) emails.
   7837 
   7838 Can you please try the branch i-suck?
   7839 
   7840 About five patches later, I've come in a full circle with this bit of
   7841 code.
   7842 -- 
   7843 William <wmorgan-sup at masanjin.net>
   7844 
   7845 From wmorgan-sup@masanjin.net  Wed Sep 30 15:40:32 2009
   7846 From: wmorgan-sup@masanjin.net (William Morgan)
   7847 Date: Wed, 30 Sep 2009 12:40:32 -0700
   7848 Subject: [sup-talk] [PATCH] xapian: do less work for update_message_state
   7849 In-Reply-To: <1252867449-30734-1-git-send-email-rlane@club.cc.cmu.edu>
   7850 References: <1252867449-30734-1-git-send-email-rlane@club.cc.cmu.edu>
   7851 Message-ID: <1254339542-sup-886@masanjin.net>
   7852 
   7853 Reformatted excerpts from Rich Lane's message of 2009-09-13:
   7854 > Refactor index_message so that we do the minimal amount of work based
   7855 > on what state the user has modified.
   7856 
   7857 Branch xapian-message-state, merged into next. Thanks!
   7858 
   7859 BTW I'm excited about the direction this is going. State changes on
   7860 large numbers of messages seem significantly faster with this.
   7861 -- 
   7862 William <wmorgan-sup at masanjin.net>
   7863 
   7864 From michael+sup@stapelberg.de  Wed Sep 30 15:53:03 2009
   7865 From: michael+sup@stapelberg.de (Michael Stapelberg)
   7866 Date: Wed, 30 Sep 2009 21:53:03 +0200
   7867 Subject: [sup-talk] sup 0.9 pre-release checkin
   7868 In-Reply-To: <1254339174-sup-648@masanjin.net>
   7869 References: <1253989249-sup-3372@masanjin.net>
   7870 	<1254334862-sup-8690@masanjin.net>
   7871 	<1254336855-sup-2395@midna.zekjur.net>
   7872 	<1254339174-sup-648@masanjin.net>
   7873 Message-ID: <1254340355-sup-5292@midna.zekjur.net>
   7874 
   7875 Hi William,
   7876 
   7877 Excerpts from William Morgan's message of Mi Sep 30 21:33:34 +0200 2009:
   7878 > Can you please try the branch i-suck?
   7879 > 
   7880 > About five patches later, I've come in a full circle with this bit of
   7881 > code.
   7882 Hehe. Yes, the version in this branch works.
   7883 
   7884 Thanks for fixing it,
   7885 Best regards,
   7886 Michael
   7887 
   7888 From wmorgan-sup@masanjin.net  Wed Sep 30 15:56:55 2009
   7889 From: wmorgan-sup@masanjin.net (William Morgan)
   7890 Date: Wed, 30 Sep 2009 12:56:55 -0700
   7891 Subject: [sup-talk] Ignore killed messages in U screen
   7892 In-Reply-To: <1252004504-sup-3189@javelin>
   7893 References: <1251387376-sup-7180@javelin> <1252003380-sup-272@masanjin.net>
   7894 	<1252004144-sup-6662@javelin> <1252004285-sup-476@masanjin.net>
   7895 	<1252004504-sup-3189@javelin>
   7896 Message-ID: <1254339746-sup-79@masanjin.net>
   7897 
   7898 Reformatted excerpts from Edward Z. Yang's message of 2009-09-03:
   7899 > > What if you just delete messages in the the third condition?
   7900 > 
   7901 > Then replies show up. :-)
   7902 
   7903 I am still thinking about this, BTW. I think solution will either be:
   7904 treat deleted like killed for the purposes of inbox-mode (so a thread
   7905 with at least one deleted message will just never appear in inbox-mode),
   7906 or have a combined delete-and-kill command.
   7907 
   7908 FWIW, I believe Gmail will pull a thread with a deleted message back
   7909 into the inbox if someone replies.
   7910 -- 
   7911 William <wmorgan-sup at masanjin.net>
   7912 
   7913 From michael+sup@stapelberg.de  Wed Sep 30 16:01:33 2009
   7914 From: michael+sup@stapelberg.de (Michael Stapelberg)
   7915 Date: Wed, 30 Sep 2009 22:01:33 +0200
   7916 Subject: [sup-talk] [PATCH] Save all attachments to a folder
   7917 Message-ID: <1254340829-sup-2273@midna.zekjur.net>
   7918 
   7919 Hi,
   7920 
   7921 I finally implemented saving all attachments of a message to a folder. Please
   7922 review and test this patch, I would be happy if we could merge it into
   7923 mainline.
   7924 
   7925 Best regards,
   7926 Michael
   7927 -------------- next part --------------
   7928 A non-text attachment was scrubbed...
   7929 Name: 0001-Implement-saving-all-attachments-to-a-folder-keybind.patch
   7930 Type: application/octet-stream
   7931 Size: 2438 bytes
   7932 Desc: not available
   7933 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090930/5873ce53/attachment.obj>
   7934 
   7935 From ezyang@MIT.EDU  Wed Sep 30 16:05:28 2009
   7936 From: ezyang@MIT.EDU (Edward Z. Yang)
   7937 Date: Wed, 30 Sep 2009 16:05:28 -0400
   7938 Subject: [sup-talk] [PATCH] Save all attachments to a folder
   7939 In-Reply-To: <1254340829-sup-2273@midna.zekjur.net>
   7940 References: <1254340829-sup-2273@midna.zekjur.net>
   7941 Message-ID: <1254341104-sup-4958@javelin>
   7942 
   7943 Excerpts from Michael Stapelberg's message of Wed Sep 30 16:01:33 -0400 2009:
   7944 > I finally implemented saving all attachments of a message to a folder. Please
   7945 > review and test this patch, I would be happy if we could merge it into
   7946 > mainline.
   7947 
   7948 +1 for this functionality.  Haven't looked at the patch; I'll let
   7949 William do that. :-)
   7950 
   7951 Cheers,
   7952 Edward
   7953 
   7954 From rlane@club.cc.cmu.edu  Wed Sep 30 16:16:53 2009
   7955 From: rlane@club.cc.cmu.edu (Rich Lane)
   7956 Date: Wed, 30 Sep 2009 16:16:53 -0400
   7957 Subject: [sup-talk] [PATCH] xapian: do less work for update_message_state
   7958 In-Reply-To: <1254339542-sup-886@masanjin.net>
   7959 References: <1252867449-30734-1-git-send-email-rlane@club.cc.cmu.edu>
   7960 	<1254339542-sup-886@masanjin.net>
   7961 Message-ID: <1254341186-sup-4357@zyrg.net>
   7962 
   7963 Excerpts from William Morgan's message of Wed Sep 30 15:40:32 -0400 2009:
   7964 > Reformatted excerpts from Rich Lane's message of 2009-09-13:
   7965 > > Refactor index_message so that we do the minimal amount of work based
   7966 > > on what state the user has modified.
   7967 > 
   7968 > Branch xapian-message-state, merged into next. Thanks!
   7969 > 
   7970 > BTW I'm excited about the direction this is going. State changes on
   7971 > large numbers of messages seem significantly faster with this.
   7972 
   7973 They're about 3 times faster on my machine with this patch. An
   7974 optimization the Xapian devs have been planning to make (and that this
   7975 patch is necessary to take advantage of) should increase performance
   7976 much more.
   7977 
   7978 From michael+sup@stapelberg.de  Wed Sep 30 16:43:13 2009
   7979 From: michael+sup@stapelberg.de (Michael Stapelberg)
   7980 Date: Wed, 30 Sep 2009 22:43:13 +0200
   7981 Subject: [sup-talk] [PATCH] When providing a wildcard as file for an
   7982 	attachment, correctly expand it
   7983 Message-ID: <1254343324-sup-7275@midna.zekjur.net>
   7984 
   7985 Hi,
   7986 
   7987 the attached patch will expand wildcards given as filename when adding
   7988 attachments to a message. Thus, you can now add ~/work/foo/* at once.
   7989 
   7990 As with the last patch, please review, test and merge.
   7991 
   7992 Best regards,
   7993 Michael
   7994 -------------- next part --------------
   7995 A non-text attachment was scrubbed...
   7996 Name: 0001-When-providing-a-wildcard-as-file-for-an-attachment-.patch
   7997 Type: application/octet-stream
   7998 Size: 1050 bytes
   7999 Desc: not available
   8000 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090930/03cfa6ab/attachment.obj>
   8001 
   8002 From kevinr@free-dissociation.com  Wed Sep 30 16:54:21 2009
   8003 From: kevinr@free-dissociation.com (Kevin Riggle)
   8004 Date: Wed, 30 Sep 2009 16:54:21 -0400
   8005 Subject: [sup-talk] [PATCH] Save all attachments to a folder
   8006 In-Reply-To: <1254340829-sup-2273@midna.zekjur.net>
   8007 References: <1254340829-sup-2273@midna.zekjur.net>
   8008 Message-ID: <1254343903-sup-2789@black-opal.mit.edu>
   8009 
   8010 Excerpts from Michael Stapelberg's message of Wed Sep 30 16:01:33 -0400 2009:
   8011 > Hi,
   8012 > 
   8013 > I finally implemented saving all attachments of a message to a folder. Please
   8014 > review and test this patch, I would be happy if we could merge it into
   8015 > mainline.
   8016 > 
   8017 
   8018 +1.  And what do you know, I hadn't noticed the :default_attachment_save_dir: 
   8019 config option and had set myself a to-do list item to implement that, so now I
   8020 don't have to, and thanks for drawing it to my attention!
   8021 
   8022 - Kevin
   8023 -- 
   8024 Kevin Riggle (kevinr at free-dissociation.com) 
   8025 http://free-dissociation.com
   8026 
   8027 From wmorgan-sup@masanjin.net  Wed Sep 30 17:21:01 2009
   8028 From: wmorgan-sup@masanjin.net (William Morgan)
   8029 Date: Wed, 30 Sep 2009 14:21:01 -0700
   8030 Subject: [sup-talk] Crash while scrolling
   8031 In-Reply-To: <20090916172340.GA20566@ben-laptop>
   8032 References: <20090911165830.GA11260@ben-laptop>
   8033 	<1252773189-sup-246@masanjin.net>
   8034 	<20090916172340.GA20566@ben-laptop>
   8035 Message-ID: <1254345607-sup-2358@masanjin.net>
   8036 
   8037 Reformatted excerpts from Ben Gamari's message of 2009-09-16:
   8038 > Well, after several attempts at rebuilding my index, I finally got
   8039 > lucky and sup-sync ran to completion. Unfortunately, sup now fails to
   8040 > even start, failing out with the following exception while loading
   8041 > threads for inbox-mode,
   8042 
   8043 Hey, I just started seeing this too, Xapian only. I think I've fixed in
   8044 master.
   8045 -- 
   8046 William <wmorgan-sup at masanjin.net>
   8047 
   8048 From michael+sup@stapelberg.de  Wed Sep 30 18:08:39 2009
   8049 From: michael+sup@stapelberg.de (Michael Stapelberg)
   8050 Date: Thu, 01 Oct 2009 00:08:39 +0200
   8051 Subject: [sup-talk] [PATCH] more inline GPG madness
   8052 Message-ID: <1254348163-sup-6170@midna.zekjur.net>
   8053 
   8054 Hi,
   8055 
   8056 browsing some older emails, I noticed that the inline GPG patch I sent earlier
   8057 was not completely correct. It only handled messages which were encrypted *and*
   8058 signed, but not messages which were signed only.
   8059 
   8060 Attached comes a patch which fixes the behaviour. However (!) the patch is not
   8061 well aligned, the error case (else) is untested and should probably be handled
   8062 differently and the old_charset line can probably be written more elegantly in
   8063 ruby. By the way, the charset stuff is necessary to get the correct character
   8064 set for messages which are sent inline. I really start to dislike Thunderbird
   8065 and other crappy software for that :-\.
   8066 
   8067 So, please, clean up the patch and merge it. I have also attached a message
   8068 which was sent using thunderbird and contains inline crypto. If the patch works
   8069 correctly, you should be able to open it and see some umlauts.
   8070 
   8071 Best regards,
   8072 Michael
   8073 -------------- next part --------------
   8074 An embedded and charset-unspecified text was scrubbed...
   8075 Name: sign.txt
   8076 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091001/f9f6851c/attachment.txt>
   8077 -------------- next part --------------
   8078 A non-text attachment was scrubbed...
   8079 Name: inline-gpg.patch
   8080 Type: application/octet-stream
   8081 Size: 1394 bytes
   8082 Desc: not available
   8083 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091001/f9f6851c/attachment.obj>
   8084 
   8085 From mailinglist@flasht.de  Wed Sep 30 19:30:54 2009
   8086 From: mailinglist@flasht.de (Christopher Bertels)
   8087 Date: Thu, 01 Oct 2009 01:30:54 +0200
   8088 Subject: [sup-talk] i18n?
   8089 Message-ID: <1254353101-sup-1021@thinkpad-ubuntu>
   8090 
   8091 Hi,
   8092 
   8093 are there any plans on doing some internationalization?  If not, would
   8094 people like to have something like this, now that I have mentioned it? ;)
   8095 
   8096 I guess something yaml-based could work, there are some good libraries
   8097 out there afaik.
   8098 
   8099 Why this came to my mind: I usually write mails in german and english
   8100 and have done a custom patch to check for the german word for
   8101 "attachment" to warn me before sending an email, if I haven't yet
   8102 added an attachment to a composed mail. This obviously works for
   8103 english right now, but I wanted to have a similar feature in german.
   8104 Since adding language specific options all over the code really isn't
   8105 the right way, maybe having some kind of language packs would be
   8106 nice. I could take care of some german translation (and I suppose I'm
   8107 not the only one on this list ;))
   8108 
   8109 Cheers,
   8110 Christopher.
   8111 -- 
   8112 ================================
   8113 Christopher Bertels
   8114 http://www.adztec-independent.de
   8115 GPG Key ID: 0x2345b203
   8116 -------------- next part --------------
   8117 A non-text attachment was scrubbed...
   8118 Name: signature.asc
   8119 Type: application/pgp-signature
   8120 Size: 902 bytes
   8121 Desc: not available
   8122 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091001/d6569555/attachment.bin>
   8123