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/2010-02.txt (49881B) - raw

      1 From byzkarl@yahoo.com  Mon Feb  1 09:24:27 2010
      2 From: byzkarl@yahoo.com (Karl Schudt)
      3 Date: Mon, 1 Feb 2010 14:24:27 +0000
      4 Subject: [sup-talk] Can't get sup 0.10.2 to work in slackware
      5 Message-ID: <14ca927c1002010624m54af983fp21f4d34ccef67338@mail.gmail.com>
      6 
      7 Hi,
      8 
      9 Just trying to get back to my favorite distro, and now I want my favorite
     10 email client.
     11 
     12 I tried to install sup with
     13 "gem install sup", and all appears to work.
     14 
     15 Then, when I run it, I get this:
     16 
     17 [2010-02-01 14:22:14 +0000] WARNING: can't find character set by using
     18 locale, defaulting to utf-8
     19 /usr/lib64/ruby/1.9.1/dl/import.rb:1:in `require':
     20 /usr/lib64/ruby/1.9.1/x86_64-linux/dl.so: undefined symbol: rb_dl_cb_call -
     21 /usr/lib64/ruby/1.9.1/x86_64-linux/dl.so (LoadError)
     22     from /usr/lib64/ruby/1.9.1/dl/import.rb:1:in `<top (required)>'
     23     from /home/carolus/.gem/ruby/1.9.1/gems/sup-0.10.2/bin/sup:94:in
     24 `require'
     25     from /home/carolus/.gem/ruby/1.9.1/gems/sup-0.10.2/bin/sup:94:in
     26 `<module:Redwood>'
     27     from /home/carolus/.gem/ruby/1.9.1/gems/sup-0.10.2/bin/sup:64:in `<top
     28 (required)>'
     29     from /home/carolus/.gem/ruby/1.9.1/bin/sup:19:in `load'
     30     from /home/carolus/.gem/ruby/1.9.1/bin/sup:19:in `<main>'
     31 
     32 I can't figure out what's going on with the dl.so, since I don't really know
     33 Ruby. Please help! I can't go back to Mutt!
     34 
     35 Thanks,
     36 
     37 Karl
     38 -------------- next part --------------
     39 An HTML attachment was scrubbed...
     40 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20100201/3235a544/attachment.html>
     41 
     42 From byzkarl@yahoo.com  Mon Feb  1 23:25:15 2010
     43 From: byzkarl@yahoo.com (Karl Schudt)
     44 Date: Tue, 02 Feb 2010 04:25:15 +0000
     45 Subject: [sup-talk] Can't get sup 0.10.2 to work in slackware
     46 In-Reply-To: <14ca927c1002010624m54af983fp21f4d34ccef67338@mail.gmail.com>
     47 References: <14ca927c1002010624m54af983fp21f4d34ccef67338@mail.gmail.com>
     48 Message-ID: <1265084588-sup-7068@darkstar>
     49 
     50 Excerpts from Karl Schudt's message of Mon Feb 01 14:24:27 +0000 2010:
     51 > Hi,
     52 > 
     53 > Just trying to get back to my favorite distro, and now I want my favorite
     54 > email client.
     55 > 
     56 > I tried to install sup with
     57 > "gem install sup", and all appears to work.
     58 > 
     59 > Then, when I run it, I get this:
     60 > 
     61 > [2010-02-01 14:22:14 +0000] WARNING: can't find character set by using
     62 > locale, defaulting to utf-8
     63 > /usr/lib64/ruby/1.9.1/dl/import.rb:1:in `require':
     64 > /usr/lib64/ruby/1.9.1/x86_64-linux/dl.so: undefined symbol: rb_dl_cb_call -
     65 > /usr/lib64/ruby/1.9.1/x86_64-linux/dl.so (LoadError)
     66 >     from /usr/lib64/ruby/1.9.1/dl/import.rb:1:in `<top (required)>'
     67 >     from /home/carolus/.gem/ruby/1.9.1/gems/sup-0.10.2/bin/sup:94:in
     68 > `require'
     69 >     from /home/carolus/.gem/ruby/1.9.1/gems/sup-0.10.2/bin/sup:94:in
     70 > `<module:Redwood>'
     71 >     from /home/carolus/.gem/ruby/1.9.1/gems/sup-0.10.2/bin/sup:64:in `<top
     72 > (required)>'
     73 >     from /home/carolus/.gem/ruby/1.9.1/bin/sup:19:in `load'
     74 >     from /home/carolus/.gem/ruby/1.9.1/bin/sup:19:in `<main>'
     75 > 
     76 > Karl
     77 
     78 I have a temporary fix. If you run into my problem on Slackware-current,
     79 you can uninstall ruby (using pkgtool, for example) and then download
     80 the ruby package from Slackware 13.0. Then gem install sup (I had to
     81 install rake first) and it works.
     82 
     83 I'm still not sure what went wrong, but am happy to be supping again.
     84 
     85 
     86 From olly@survex.com  Wed Feb  3 22:42:09 2010
     87 From: olly@survex.com (Olly Betts)
     88 Date: Thu, 4 Feb 2010 03:42:09 +0000 (UTC)
     89 Subject: [sup-talk]
     90 	=?utf-8?q?=5BPATCH=5D_xapian=3A_do_less_work_for_updat?=
     91 	=?utf-8?q?e=5Fmessage=5Fstate?=
     92 References: <1252867449-30734-1-git-send-email-rlane@club.cc.cmu.edu>
     93 	<1254339542-sup-886@masanjin.net> <1254341186-sup-4357@zyrg.net>
     94 	<1254404707-sup-9253@masanjin.net> <1254416360-sup-8957@zyrg.net>
     95 	<slrnhcbck3.5ah.olly@msgid.survex.com>
     96 Message-ID: <loom.20100204T042813-620@post.gmane.org>
     97 
     98 Olly Betts writes:
     99 > On 2009-10-01, Rich Lane <rlane at club.cc.cmu.edu> wrote:
    100 > > Excerpts from William Morgan's message of Thu Oct 01 09:46:20 -0400 2009:
    101 > >> Reformatted excerpts from Rich Lane's message of 2009-09-30:
    102 > >> > They're about 3 times faster on my machine with this patch. An
    103 > >> > optimization the Xapian devs have been planning to make (and that this
    104 > >> > patch is necessary to take advantage of) should increase performance
    105 > >> > much more.
    106 > >> 
    107 > >> Awesome. Out of curiousity, what's the optimization?
    108 > >
    109 > > replace_document currently deletes all the old postings and inserts new
    110 > > ones. It can be optimized to make the minimal set of modifications.
    111 > 
    112 > This is the ticket for it:
    113 > 
    114 > http://trac.xapian.org/ticket/250
    115 
    116 This has now been fixed in Xapian SVN trunk, and I've backported the
    117 patches to Xapian's 1.0 branch.  You can find snapshot tarballs including
    118 these changes here:
    119 
    120 http://oligarchy.co.uk/xapian/branches/1.0/
    121 
    122 Xapian's testsuite passes (including the additional test coverage which I
    123 also backported), and I looked over each change carefully, but I would be
    124 interested to see some real world testing, particularly in the situation
    125 which these changes are intended to improve (i.e. speed of adding/removing
    126 tag terms from existing documents).  I'm not expecting problems, but this
    127 is a larger change than we usually backport, so wider testing would be a
    128 good thing.
    129 
    130 If you are using Xapian 1.0's default backend (flint), you'll need this
    131 patch (which was merged before sup 0.10) to get full benefit from the
    132 changes:
    133 
    134 http://article.gmane.org/gmane.mail.sup.devel/177
    135 
    136 I've uploaded a snapshot of 1.0 with this patch to Debian experimental.
    137 It hasn't built for all Debian architectures yet, but is available for at
    138 least amd64 and x86, which are probably the most popular two.
    139 
    140 If you aren't sure how to pull in packages from experimental, see:
    141 
    142 http://wiki.debian.org/DebianExperimental
    143 
    144 I've also put it in a Launchpad PPA for all currently supported Ubuntu
    145 releases, and it has built for all of them already:
    146 
    147 https://launchpad.net/~ojwb/+archive/experimental/
    148 
    149 Cheers,
    150     Olly
    151 
    152 
    153 From tero@tilus.net  Thu Feb  4 03:07:41 2010
    154 From: tero@tilus.net (Tero Tilus)
    155 Date: Thu, 04 Feb 2010 10:07:41 +0200
    156 Subject: [sup-talk] Fixing broken attachment mimetypes
    157 Message-ID: <1265270433-sup-3334@tilus.net>
    158 
    159 I occasionally receive RTF-documents marked as application/msword
    160 which misguides sup to (based on mailcap) launch wrong viewer.  How do
    161 I fix the mimetype (after the mail has been indexed)?
    162 
    163 Mutt could edit attachment mimetype.  How would I go about
    164 implementing the same to sup?  Or would there be a more general
    165 feature that would solve this problem?  Obviously this kind of edits
    166 would not persist over index rebuilds.
    167 
    168 -- 
    169 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
    170 
    171 From sm@khjk.org  Sun Feb  7 14:10:04 2010
    172 From: sm@khjk.org (Sven Moritz Hallberg)
    173 Date: Sun, 07 Feb 2010 20:10:04 +0100
    174 Subject: [sup-talk] curses pinentry woes (still)
    175 Message-ID: <1265569783-sup-1789@khjk.org>
    176 
    177 Hi List,
    178 
    179 I see there have been posts about this before, the last from Oct 2009.
    180 Whenever gpg-agent starts pinentry-curses with sup running, the interface gets
    181 "messed up". Unfortunately, I'm still experiencing such a problem with sup
    182 version 0.10.2.
    183 
    184 Specifically, when the pinentry screen appears and I press the first key, sup
    185 suddenly reappears, the cursor moves to the bottom right corner and the
    186 passphrase stars start appearing there, wrapping over to the left. When I press
    187 Enter, pinentry reappears and almost always states "wrong passphrase", so I
    188 presume something about the input must get mangled somewhere. Now when I try
    189 again, everything looks as it should (in pinentry) and the passphrase is
    190 accepted. However, after that, sup does not behave normally. The screen does
    191 not update and commands only seem to be recognized if Enter is pressed
    192 afterwards. So I have to press "q Enter" and restart.
    193 
    194 On a related note, it asks for the passphrase periodically. Does it require gpg
    195 calls every time it polls for new messages? Is there a way to stop that?
    196 
    197 
    198 Regards,
    199 Sven
    200 
    201 From michael+sup@stapelberg.de  Sun Feb  7 15:25:57 2010
    202 From: michael+sup@stapelberg.de (Michael Stapelberg)
    203 Date: Sun, 07 Feb 2010 21:25:57 +0100
    204 Subject: [sup-talk] curses pinentry woes (still)
    205 In-Reply-To: <1265569783-sup-1789@khjk.org>
    206 References: <1265569783-sup-1789@khjk.org>
    207 Message-ID: <1265574271-sup-5738@midna.zekjur.net>
    208 
    209 Hi Sven,
    210 
    211 Excerpts from Sven Moritz Hallberg's message of So Feb 07 20:10:04 +0100 2010:
    212 > Whenever gpg-agent starts pinentry-curses with sup running, the interface gets
    213 > "messed up". Unfortunately, I'm still experiencing such a problem with sup
    214 > version 0.10.2.
    215 I have a similar problem, though it only happens when sup has other output to
    216 my terminal while the pinentry is running. That is, when you catch a quiet
    217 moment (between polling intervals), you can enter your passphrase without any
    218 problems.
    219 
    220 I intend to fix this problem in a few weeks, if nobody does it before I do.
    221 
    222 Best regards,
    223 Michael
    224 
    225 From nbest@ci.uchicago.edu  Tue Feb  9 07:58:56 2010
    226 From: nbest@ci.uchicago.edu (Neil Best)
    227 Date: Tue, 9 Feb 2010 06:58:56 -0600
    228 Subject: [sup-talk] xapian error in startup v0.10.2 under Macports
    229 In-Reply-To: <8F59B6F6-523C-48FD-8EFA-7F951FB08E15@ci.uchicago.edu>
    230 References: <8F59B6F6-523C-48FD-8EFA-7F951FB08E15@ci.uchicago.edu>
    231 Message-ID: <3951FB79-4C19-4086-BE14-409458CB090F@ci.uchicago.edu>
    232 
    233 
    234 By saying:
    235 
    236 sup -i ferret
    237 
    238 it looks like I can at least get started.  What's the situation and  
    239 what should I expect?  Should I just work in this mode until a new  
    240 version propagates to Macports?  Thanks.
    241 
    242 
    243 
    244 
    245 From nbest@ci.uchicago.edu  Tue Feb  9 07:51:14 2010
    246 From: nbest@ci.uchicago.edu (Neil Best)
    247 Date: Tue, 9 Feb 2010 06:51:14 -0600
    248 Subject: [sup-talk] xapian error in startup v0.10.2 under Macports
    249 Message-ID: <8F59B6F6-523C-48FD-8EFA-7F951FB08E15@ci.uchicago.edu>
    250 
    251 Can anyone tell me what this means and what to do about it?  I don't  
    252 know the first thing about Ruby (yet), but would really like to try  
    253 Sup.  I am so sick of Apple Mail!
    254 
    255 wireless-197-142:~ nbest$ which sup
    256 /opt/local/bin/sup
    257 wireless-197-142:~ nbest$ sup --version
    258 sup v0.10.2
    259 wireless-197-142:~ nbest$ sup
    260 /opt/local/lib/ruby/gems/1.8/gems/sup-0.10.2/lib/sup/index.rb:229:in  
    261 `init': unknown index type "xapian": dlopen(/opt/local/lib/ruby/gems/ 
    262 1.8/gems/xapian-full-1.1.3.4/lib/_xapian.bundle, 9): Library not  
    263 loaded: /usr/local/lib/libxapian-1.1.3.dylib (RuntimeError)
    264    Referenced from: /opt/local/lib/ruby/gems/1.8/gems/xapian- 
    265 full-1.1.3.4/lib/_xapian.bundle
    266    Reason: image not found - /opt/local/lib/ruby/gems/1.8/gems/xapian- 
    267 full-1.1.3.4/lib/_xapian.bundle
    268 	from /opt/local/lib/ruby/gems/1.8/gems/sup-0.10.2/bin/sup:137
    269 	from /opt/local/bin/sup:19:in `load'
    270 	from /opt/local/bin/sup:19
    271 wireless-197-142:~ nbest$
    272 
    273 
    274 Thanks for any tips.
    275 
    276 
    277 Neil
    278 
    279 
    280 From mariano.mara@gmail.com  Tue Feb  9 18:51:29 2010
    281 From: mariano.mara@gmail.com (Mariano Mara)
    282 Date: Tue, 09 Feb 2010 20:51:29 -0300
    283 Subject: [sup-talk] Before poll hook
    284 Message-ID: <1265758810-sup-2203@kafka>
    285 
    286 Hi everyone,
    287 so sorry for this n00b question but my ruby-fu is really bad: I want to
    288 run offlineimap as a hook before each poll. I checked the code in the
    289 wiki and some code I found in a thread and built my own -very simple- version of it:
    290 
    291 $ tail -n 15 ~/.sup/hooks/before-poll.rb 
    292 # http://sup.rubyforge.org/wiki/wiki.pl?Hooks
    293 def offlineimap()
    294   cmd = "offlineimap -o -l ~/.offlineimap.log"
    295   `#{cmd} 2>&1`
    296 end
    297 
    298 say "Checking if we can run offlineimap..."
    299 if (@last_fetch || Time.at(0)) < Time.now - 120
    300   say "Running offlineimap..."
    301   log offlineimap()
    302   say "Finished offlineimap."
    303 end
    304 @last_fetch = Time.now
    305 
    306 I saved it where it should be and -just in case- gave it execution rights for my user. 
    307 However I can't say it's running. I don't see any messages in sup's status bar and everytime
    308 I hit Shift+p nothing happens. Needless to say, I have to manually run offlineimap to get the messages.
    309 What am I missing?
    310 
    311 TIA,
    312 Mariano
    313 
    314 From daniel.schoepe@googlemail.com  Wed Feb 10 08:01:40 2010
    315 From: daniel.schoepe@googlemail.com (Daniel Schoepe)
    316 Date: Wed, 10 Feb 2010 14:01:40 +0100
    317 Subject: [sup-talk] Before poll hook
    318 In-Reply-To: <1265758810-sup-2203@kafka>
    319 References: <1265758810-sup-2203@kafka>
    320 Message-ID: <1265806823-sup-4799@nemesis.home>
    321 
    322 Excerpts from Mariano Mara's message of Wed Feb 10 00:51:29 +0100 2010:
    323 > Hi everyone,
    324 > [..]
    325 > I saved it where it should be and -just in case- gave it execution rights for my user. 
    326 > However I can't say it's running. I don't see any messages in sup's status bar and everytime
    327 > I hit Shift+p nothing happens. Needless to say, I have to manually run offlineimap to get the messages.
    328 > What am I missing?
    329 > 
    330 > TIA,
    331 > Mariano
    332 
    333 Hello,
    334 
    335 is there something in the log buffer(press ';' to get a list of
    336 buffers) that indicates what is going wrong?
    337 
    338 Regards,
    339 Daniel
    340 -------------- next part --------------
    341 A non-text attachment was scrubbed...
    342 Name: signature.asc
    343 Type: application/pgp-signature
    344 Size: 836 bytes
    345 Desc: not available
    346 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20100210/9fd0fafc/attachment.bin>
    347 
    348 From mariano.mara@gmail.com  Wed Feb 10 09:05:55 2010
    349 From: mariano.mara@gmail.com (Mariano Mara)
    350 Date: Wed, 10 Feb 2010 11:05:55 -0300
    351 Subject: [sup-talk] Before poll hook
    352 In-Reply-To: <1265806823-sup-4799@nemesis.home>
    353 References: <1265758810-sup-2203@kafka> <1265806823-sup-4799@nemesis.home>
    354 Message-ID: <1265810233-sup-637@kafka>
    355 
    356 Excerpts from Daniel Schoepe's message of Wed Feb 10 10:01:40 -0300 2010:
    357 > Excerpts from Mariano Mara's message of Wed Feb 10 00:51:29 +0100 2010:
    358 > > Hi everyone,
    359 > > [..]
    360 > > I saved it where it should be and -just in case- gave it execution rights for my user. 
    361 > > However I can't say it's running. I don't see any messages in sup's status bar and everytime
    362 > > I hit Shift+p nothing happens. Needless to say, I have to manually run offlineimap to get the messages.
    363 > > What am I missing?
    364 > > 
    365 > > TIA,
    366 > > Mariano
    367 > 
    368 > Hello,
    369 > 
    370 > is there something in the log buffer(press ';' to get a list of
    371 > buffers) that indicates what is going wrong?
    372 > 
    373 > Regards,
    374 > Daniel
    375 
    376 Hi Daniel, thanks for your answer. Turns out it's working now: a few
    377 hours idle did the trick it seems, although it beats me why it's working
    378 now (or why it didn't yesterday). 
    379 
    380 As soon as bug 47 is fixed I will be in heaven.
    381 
    382 Thanks again and sorry for posting problems that fix themselves :)
    383 
    384 From sup-talk@davekap.com  Thu Feb 11 17:10:10 2010
    385 From: sup-talk@davekap.com (David L.Kaplan)
    386 Date: Thu, 11 Feb 2010 17:10:10 -0500
    387 Subject: [sup-talk] problem gem installing 0.10.1
    388 Message-ID: <1265926186-sup-9201@enchanted>
    389 
    390 I've been a happy user of sup for about a year and a half, since 0.6!  Thanks
    391 to everyone for all the hard work!
    392 
    393 I'm on Ubuntu Karmic Koala.  I have not switched from Ferret yet, but intend to
    394 once 0.10 is installed.  I can gem uninstall and install sup 0.9 no sweat, but
    395 gem update sup, as well as gem install sup after uninstalling all sup gems,
    396 gives me the following error:
    397 
    398 gem install sup
    399 Updating installed gems
    400 Updating sup
    401 Building native extensions.  This could take a while...
    402 ERROR:  Error installing sup:
    403         ERROR: Failed to build gem native extension.
    404 
    405 /usr/bin/ruby1.8 extconf.rb
    406 checking for unistd.h... yes
    407 checking for locale.h... yes
    408 checking for ncurses.h... yes
    409 checking for wmove() in -lncursesw... no
    410 checking for wmove() in -lpdcurses... no
    411 *** extconf.rb failed ***
    412 Could not create Makefile due to some reason, probably lack of
    413 necessary libraries and/or headers.  Check the mkmf.log file for more
    414 details.  You may need configuration options.
    415 
    416 Provided configuration options:
    417         --with-opt-dir
    418         --without-opt-dir
    419         --with-opt-include
    420         --without-opt-include=${opt-dir}/include
    421         --with-opt-lib
    422         --without-opt-lib=${opt-dir}/lib
    423         --with-make-prog
    424         --without-make-prog
    425         --srcdir=.
    426         --curdir
    427         --ruby=/usr/bin/ruby1.8
    428         --with-ncurseswlib
    429         --without-ncurseswlib
    430         --with-pdcurseslib
    431         --without-pdcurseslib
    432 extconf.rb:46: ncurses library not found (RuntimeError)
    433 
    434 
    435 Gem files will remain installed in /var/lib/gems/1.8/gems/ncursesw-1.2.4.1 for
    436 inspection.
    437 Results logged to /var/lib/gems/1.8/gems/ncursesw-1.2.4.1/gem_make.out
    438 Nothing to update
    439 
    440 I've tried installing ncurses and ncursesw gems.  I notice that there are
    441 ncurses and ncursesw packages installed through aptitude as well.  I'm not
    442 savvy enough to know what might be interfering with what.  I took one stab at
    443 uninstalling ncurses-base through aptitude and aptitude told me that was stupid
    444 and I better know what I'm doing!  All I really know is that all previous
    445 versions installed and this one doesn't.
    446 
    447 Thanks for any help.
    448 
    449 Cheers,
    450 David
    451 
    452 From pi+sup@pihost.us  Thu Feb 11 17:34:09 2010
    453 From: pi+sup@pihost.us (Anthony Martinez)
    454 Date: Thu, 11 Feb 2010 15:34:09 -0700
    455 Subject: [sup-talk] problem gem installing 0.10.1
    456 In-Reply-To: <1265926186-sup-9201@enchanted>
    457 References: <1265926186-sup-9201@enchanted>
    458 Message-ID: <1265927637-sup-9306@home.mrtheplague.net>
    459 
    460 Excerpts from David L.Kaplan's message of Thu Feb 11 15:10:10 -0700 2010:
    461 > I can gem uninstall and install sup 0.9 no sweat, but gem update sup, as well
    462 > as gem install sup after uninstalling all sup gems, gives me the following
    463 > error:
    464 > 
    465 > gem install sup
    466 > Updating installed gems
    467 > Updating sup
    468 > Building native extensions.  This could take a while...
    469 > ERROR:  Error installing sup:
    470 >         ERROR: Failed to build gem native extension.
    471 > 
    472 > /usr/bin/ruby1.8 extconf.rb
    473 > checking for unistd.h... yes
    474 > checking for locale.h... yes
    475 > checking for ncurses.h... yes
    476 > checking for wmove() in -lncursesw... no
    477 > checking for wmove() in -lpdcurses... no
    478 
    479 Sounds like you're missing libncursesw5-dev and/or libncurses5-dev. Try
    480 installing both of those.
    481 
    482 > Thanks for any help.
    483 
    484 HTH
    485 > Cheers,
    486 > David
    487 
    488 
    489 -- 
    490 | |
    491 \ /  Quantum  Junction
    492  I   Get in both lanes
    493 
    494 From garoth@gmail.com  Fri Feb 12 22:06:30 2010
    495 From: garoth@gmail.com (Andrei Thorp)
    496 Date: Fri, 12 Feb 2010 22:06:30 -0500
    497 Subject: [sup-talk] Ruby Ncurses Bindings
    498 Message-ID: <80055d7c1002121906t6e6cbe6cpf6188ddde6e82d3e@mail.gmail.com>
    499 
    500 Hello,
    501 
    502 For several versions now, sup has shipped with ncurses bindings for
    503 ruby. I don't understand why they're in there. For my Arch package, I
    504 delete the ncurses.rb file and allow Sup to use the system-installed
    505 ruby ncurses bindings instead. Funny enough, they work properly in
    506 Arch whereas the provided bindings don't. Is there any reason to have
    507 the bindings in there? Other distros?
    508 
    509 Anyway, I have no problems continuing to delete them if there is a reason.
    510 
    511 Cheers,
    512 
    513 -Andrei "Garoth" Thorp
    514 
    515 From taruti@taruti.net  Tue Feb 16 08:18:22 2010
    516 From: taruti@taruti.net (Taru Karttunen)
    517 Date: Tue, 16 Feb 2010 15:18:22 +0200
    518 Subject: [sup-talk] Ruby Ncurses Bindings
    519 In-Reply-To: <80055d7c1002121906t6e6cbe6cpf6188ddde6e82d3e@mail.gmail.com>
    520 References: <80055d7c1002121906t6e6cbe6cpf6188ddde6e82d3e@mail.gmail.com>
    521 Message-ID: <1266326246-sup-9743@oz.taruti.net>
    522 
    523 Excerpts from Andrei Thorp's message of Sat Feb 13 05:06:30 +0200 2010:
    524 > For several versions now, sup has shipped with ncurses bindings for
    525 > ruby. I don't understand why they're in there. For my Arch package, I
    526 > delete the ncurses.rb file and allow Sup to use the system-installed
    527 > ruby ncurses bindings instead. Funny enough, they work properly in
    528 > Arch whereas the provided bindings don't. Is there any reason to have
    529 > the bindings in there? Other distros?
    530 
    531 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477366
    532 
    533 - Taru Karttunen
    534 
    535 From olly@survex.com  Wed Feb 17 21:27:04 2010
    536 From: olly@survex.com (Olly Betts)
    537 Date: Thu, 18 Feb 2010 02:27:04 +0000 (UTC)
    538 Subject: [sup-talk] [PATCH] xapian: do less work for update_message_state
    539 References: <1252867449-30734-1-git-send-email-rlane@club.cc.cmu.edu>
    540 	<1254339542-sup-886@masanjin.net> <1254341186-sup-4357@zyrg.net>
    541 	<1254404707-sup-9253@masanjin.net> <1254416360-sup-8957@zyrg.net>
    542 	<slrnhcbck3.5ah.olly@msgid.survex.com>
    543 	<loom.20100204T042813-620@post.gmane.org>
    544 Message-ID: <slrnhnp9bq.2sa.olly@msgid.survex.com>
    545 
    546 On 2010-02-04, Olly Betts <olly at survex.com> wrote:
    547 > Olly Betts writes:
    548 >> On 2009-10-01, Rich Lane <rlane at club.cc.cmu.edu> wrote:
    549 >> > Excerpts from William Morgan's message of Thu Oct 01 09:46:20 -0400 2009:
    550 >> >> Reformatted excerpts from Rich Lane's message of 2009-09-30:
    551 >> >> > They're about 3 times faster on my machine with this patch. An
    552 >> >> > optimization the Xapian devs have been planning to make (and that this
    553 >> >> > patch is necessary to take advantage of) should increase performance
    554 >> >> > much more.
    555 >> >> 
    556 >> >> Awesome. Out of curiousity, what's the optimization?
    557 >> >
    558 >> > replace_document currently deletes all the old postings and inserts new
    559 >> > ones. It can be optimized to make the minimal set of modifications.
    560 >> 
    561 >> This is the ticket for it:
    562 >> 
    563 >> http://trac.xapian.org/ticket/250
    564 
    565 This fix went into the recent Xapian 1.0.18 release (and also in 1.1.4, which
    566 is a release candidate for 1.2.0).
    567 
    568 Cheers,
    569     Olly
    570 
    571 
    572 From michael+sup@stapelberg.de  Thu Feb 18 13:10:07 2010
    573 From: michael+sup@stapelberg.de (Michael Stapelberg)
    574 Date: Thu, 18 Feb 2010 19:10:07 +0100
    575 Subject: [sup-talk] curses pinentry woes (still)
    576 In-Reply-To: <1265574271-sup-5738@midna.zekjur.net>
    577 References: <1265569783-sup-1789@khjk.org>
    578 	<1265574271-sup-5738@midna.zekjur.net>
    579 Message-ID: <1266516237-sup-7845@midna.zekjur.net>
    580 
    581 Hi,
    582 
    583 Excerpts from Michael Stapelberg's message of So Feb 07 21:25:57 +0100 2010:
    584 > Excerpts from Sven Moritz Hallberg's message of So Feb 07 20:10:04 +0100 2010:
    585 > > Whenever gpg-agent starts pinentry-curses with sup running, the interface gets
    586 > > "messed up". Unfortunately, I'm still experiencing such a problem with sup
    587 > > version 0.10.2.
    588 Further debugging told me that it is a thread related problem. You can work
    589 around it by disabling threads when starting sup using the -n option.
    590 
    591 The problem seems to be that other threads still run while one thread calls
    592 system (which in turn uses fork, which seems to be the real cause of the
    593 problem). Even using Thread.critical = true does not fix the problem (it is
    594 removed in ruby 1.9 anyways). I?ve attached a proof of concept which
    595 illustrates the problem.
    596 
    597 Could anyone with a little more insight into ruby threads have a look at this
    598 issue please?
    599 
    600 Specifically, if you comment out the call to reporting_thread in
    601 lib/sup/modes/thread-index-mode.rb:101, it seems to work.
    602 
    603 Best regards,
    604 Michael
    605 -------------- next part --------------
    606 A non-text attachment was scrubbed...
    607 Name: poc.rb
    608 Type: application/octet-stream
    609 Size: 410 bytes
    610 Desc: not available
    611 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20100218/7c93e8f9/attachment-0001.obj>
    612 
    613 From sven.schober@uni-ulm.de  Thu Feb 18 13:35:24 2010
    614 From: sven.schober@uni-ulm.de (Sven Schober)
    615 Date: Thu, 18 Feb 2010 19:35:24 +0100
    616 Subject: [sup-talk] curses pinentry woes (still)
    617 In-Reply-To: <1266516237-sup-7845@midna.zekjur.net>
    618 References: <1265569783-sup-1789@khjk.org>
    619 	<1265574271-sup-5738@midna.zekjur.net>
    620 	<1266516237-sup-7845@midna.zekjur.net>
    621 Message-ID: <1266518077-sup-3488@hysbald>
    622 
    623 Excerpts from Michael Stapelberg's message of Thu Feb 18 19:10:07 +0100 2010:
    624 > Could anyone with a little more insight into ruby threads have a look at this
    625 > issue please?
    626 
    627 +1
    628 
    629 > Best regards,
    630 > Michael
    631 
    632 Ciao,
    633  Sven
    634 -- 
    635 Sven Schober, sven.schober at uni-ulm.de                    |UNI ULM
    636 http://www-vs.informatik.uni-ulm.de/dept/staff/schober/  |DISTRIBUTED
    637 Room O27-346, Phone: +49-731-5024146 [+49-179-5060182]   |SYSTEMS LAB
    638 
    639 From sgoldman@tower-research.com  Thu Feb 18 17:56:53 2010
    640 From: sgoldman@tower-research.com (Steve Goldman)
    641 Date: Thu, 18 Feb 2010 17:56:53 -0500
    642 Subject: [sup-talk] Switching to Exchange
    643 Message-ID: <1266533680-sup-7580@sgoldmanlinux.tower-research.com>
    644 
    645 
    646 Hey guys,
    647 
    648 Thanks for the wild ride, but I need to switch to something more
    649 reliable.  Not sure if there are incompatibilities with my version of
    650 ruby or whatnot, but I'm getting ridiculous CPU usage and random seg
    651 faults.  It's too much stress for me.  And after a crash when I
    652 restart, I have a random collection of seventy or so messages in my
    653 inbox, even though it was zero when I crashed.
    654 
    655 This combined with not being able to convert to xapian without a seg
    656 fault...
    657 
    658 Maybe I'll be back some day.
    659 
    660 Good luck.
    661 -- 
    662 
    663 Steve Goldman
    664 sgoldman at tower-research.com
    665 
    666 T: 212.219.6014
    667 F: 212.219.6007
    668 
    669 Tower Research Capital, LLC
    670 377 Broadway, 11th Fl.
    671 New York, NY 10013
    672 
    673 From michael+sup@stapelberg.de  Thu Feb 18 22:29:28 2010
    674 From: michael+sup@stapelberg.de (Michael Stapelberg)
    675 Date: Fri, 19 Feb 2010 04:29:28 +0100
    676 Subject: [sup-talk] curses pinentry woes (still)
    677 In-Reply-To: <1266518077-sup-3488@hysbald>
    678 References: <1265569783-sup-1789@khjk.org>
    679 	<1265574271-sup-5738@midna.zekjur.net>
    680 	<1266516237-sup-7845@midna.zekjur.net>
    681 	<1266518077-sup-3488@hysbald>
    682 Message-ID: <1266550118-sup-5231@midna.zekjur.net>
    683 
    684 Hi,
    685 
    686 Excerpts from Sven Schober's message of Do Feb 18 19:35:24 +0100 2010:
    687 > Excerpts from Michael Stapelberg's message of Thu Feb 18 19:10:07 +0100 2010:
    688 > > Could anyone with a little more insight into ruby threads have a look at this
    689 > > issue please?
    690 In the meantime, I fixed the problem (at least it works for me). You can get my
    691 patch at sup-devel, see
    692 http://rubyforge.org/pipermail/sup-devel/2010-February/000373.html
    693 
    694 Best regards,
    695 Michael
    696 
    697 From sven.schober@uni-ulm.de  Fri Feb 19 05:30:49 2010
    698 From: sven.schober@uni-ulm.de (Sven Schober)
    699 Date: Fri, 19 Feb 2010 11:30:49 +0100
    700 Subject: [sup-talk] curses pinentry woes (still)
    701 In-Reply-To: <1266550118-sup-5231@midna.zekjur.net>
    702 References: <1265569783-sup-1789@khjk.org>
    703 	<1265574271-sup-5738@midna.zekjur.net>
    704 	<1266516237-sup-7845@midna.zekjur.net>
    705 	<1266518077-sup-3488@hysbald>
    706 	<1266550118-sup-5231@midna.zekjur.net>
    707 Message-ID: <1266575368-sup-8036@hysbald>
    708 
    709 Excerpts from Michael Stapelberg's message of Fri Feb 19 04:29:28 +0100 2010:
    710 > In the meantime, I fixed the problem (at least it works for me). You can get my
    711 > patch at sup-devel, see
    712 > http://rubyforge.org/pipermail/sup-devel/2010-February/000373.html
    713 > 
    714 Thanks, i'll give it a try :)!
    715 
    716 > Best regards,
    717 > Michael
    718 
    719 Ciao,
    720  Sven
    721 -- 
    722 Sven Schober, sven.schober at uni-ulm.de                    |UNI ULM
    723 http://www-vs.informatik.uni-ulm.de/dept/staff/schober/  |DISTRIBUTED
    724 Room O27-346, Phone: +49-731-5024146 [+49-179-5060182]   |SYSTEMS LAB
    725 
    726 From sgoldman@tower-research.com  Fri Feb 19 15:57:02 2010
    727 From: sgoldman@tower-research.com (Steve Goldman)
    728 Date: Fri, 19 Feb 2010 15:57:02 -0500
    729 Subject: [sup-talk] Switching to Exchange
    730 In-Reply-To: <1266533680-sup-7580@sgoldmanlinux.tower-research.com>
    731 References: <1266533680-sup-7580@sgoldmanlinux.tower-research.com>
    732 Message-ID: <1266612722-sup-5668@sgoldmanlinux.tower-research.com>
    733 
    734 Excerpts from Steve Goldman's message of Thu Feb 18 17:56:53 -0500 2010:
    735 > 
    736 > Hey guys,
    737 > 
    738 > Thanks for the wild ride, but I need to switch to something more
    739 > reliable.  Not sure if there are incompatibilities with my version of
    740 > ruby or whatnot, but I'm getting ridiculous CPU usage and random seg
    741 > faults.  It's too much stress for me.  And after a crash when I
    742 > restart, I have a random collection of seventy or so messages in my
    743 > inbox, even though it was zero when I crashed.
    744 > 
    745 > This combined with not being able to convert to xapian without a seg
    746 > fault...
    747 > 
    748 > Maybe I'll be back some day.
    749 > 
    750 > Good luck.
    751 
    752 In case anyone was worried, I'm back.  I took matters into my own
    753 hand.
    754 
    755 Essentially, I was dealing with a slow IMAP server.  Since sup doesn't
    756 cache IMAP messages locally, this gave me huge headaches when trying
    757 to sync with the server during busy times.
    758 
    759 The remedy was to download all the messages off the server into a
    760 local mbox file and to use fetchmail/procmail to poll for new IMAP
    761 messages and append them to the mbox file.
    762 
    763 As a result, I was able to successfully use sup-sync to build a xapian
    764 index and everything is lightning fast.  Life is good... for now.
    765 
    766 Thanks.
    767 -- 
    768 
    769 Steve Goldman
    770 sgoldman at tower-research.com
    771 
    772 T: 212.219.6014
    773 F: 212.219.6007
    774 
    775 Tower Research Capital, LLC
    776 377 Broadway, 11th Fl.
    777 New York, NY 10013
    778 
    779 From hollunder@lavabit.com  Fri Feb 19 16:28:59 2010
    780 From: hollunder@lavabit.com (hollunder)
    781 Date: Fri, 19 Feb 2010 22:28:59 +0100
    782 Subject: [sup-talk] Switching to Exchange
    783 References: <1266533680-sup-7580@sgoldmanlinux.tower-research.com>
    784 	<1266612722-sup-5668@sgoldmanlinux.tower-research.com>
    785 Message-ID: <1266614806-sup-9832@eris>
    786 
    787 Excerpts from Steve Goldman's message of 2010-02-19 21:57:02 +0100:
    788 > Excerpts from Steve Goldman's message of Thu Feb 18 17:56:53 -0500 2010:
    789 > > 
    790 > > Hey guys,
    791 > > 
    792 > > Thanks for the wild ride, but I need to switch to something more
    793 > > reliable.  Not sure if there are incompatibilities with my version of
    794 > > ruby or whatnot, but I'm getting ridiculous CPU usage and random seg
    795 > > faults.  It's too much stress for me.  And after a crash when I
    796 > > restart, I have a random collection of seventy or so messages in my
    797 > > inbox, even though it was zero when I crashed.
    798 > > 
    799 > > This combined with not being able to convert to xapian without a seg
    800 > > fault...
    801 > > 
    802 > > Maybe I'll be back some day.
    803 > > 
    804 > > Good luck.
    805 > 
    806 > In case anyone was worried, I'm back.  I took matters into my own
    807 > hand.
    808 > 
    809 > Essentially, I was dealing with a slow IMAP server.  Since sup doesn't
    810 > cache IMAP messages locally, this gave me huge headaches when trying
    811 > to sync with the server during busy times.
    812 > 
    813 > The remedy was to download all the messages off the server into a
    814 > local mbox file and to use fetchmail/procmail to poll for new IMAP
    815 > messages and append them to the mbox file.
    816 > 
    817 > As a result, I was able to successfully use sup-sync to build a xapian
    818 > index and everything is lightning fast.  Life is good... for now.
    819 > 
    820 > Thanks.
    821 > -- 
    822 > 
    823 > Steve Goldman
    824 > sgoldman at tower-research.com
    825 > 
    826 > T: 212.219.6014
    827 > F: 212.219.6007
    828 > 
    829 > Tower Research Capital, LLC
    830 > 377 Broadway, 11th Fl.
    831 > New York, NY 10013
    832 
    833 I think most of us just use offlineimap.
    834 Tough if the imap server is acting up it doesn't help either, happened
    835 to me recently and offlineimap ran for minutes instead of seconds until
    836 they fixed it.
    837 
    838 
    839 From bgamari@gmail.com  Sat Feb 20 12:38:58 2010
    840 From: bgamari@gmail.com (Ben Gamari)
    841 Date: Sat, 20 Feb 2010 12:38:58 -0500
    842 Subject: [sup-talk] Switching to Exchange
    843 In-Reply-To: <1266612722-sup-5668@sgoldmanlinux.tower-research.com>
    844 References: <1266533680-sup-7580@sgoldmanlinux.tower-research.com>
    845 	<1266612722-sup-5668@sgoldmanlinux.tower-research.com>
    846 Message-ID: <1266687464-sup-6371@ben-laptop>
    847 
    848 Excerpts from Steve Goldman's message of Fri Feb 19 15:57:02 -0500 2010:
    849 > The remedy was to download all the messages off the server into a
    850 > local mbox file and to use fetchmail/procmail to poll for new IMAP
    851 > messages and append them to the mbox file.
    852 > 
    853 I would strongly encourage you to look into offlineimap. It's designed
    854 exactly for this sort of application and does its job very well.
    855 
    856 - Ben
    857 
    858 From marka@pobox.com  Sat Feb 20 16:10:18 2010
    859 From: marka@pobox.com (Mark Alexander)
    860 Date: Sat, 20 Feb 2010 16:10:18 -0500
    861 Subject: [sup-talk] Switching to Exchange
    862 In-Reply-To: <1266687464-sup-6371@ben-laptop>
    863 References: <1266533680-sup-7580@sgoldmanlinux.tower-research.com>
    864 	<1266612722-sup-5668@sgoldmanlinux.tower-research.com>
    865 	<1266687464-sup-6371@ben-laptop>
    866 Message-ID: <1266699970-sup-8044@r50p>
    867 
    868 Excerpts from Ben Gamari's message of Sat Feb 20 12:38:58 -0500 2010:
    869 > I would strongly encourage you to look into offlineimap. It's designed
    870 > exactly for this sort of application and does its job very well.
    871 
    872 For the past year or so, I've been using fetchmail + postfix +
    873 procmail to fetch mail to ~/Maildir.  Is there any reason why
    874 offlineimap would be a better solution for use with sup?  My understanding
    875 was that sup does not modify the mail sources, so there would be
    876 no changes that would need to be propagated back to the IMAP server.
    877 
    878 From sven.schober@uni-ulm.de  Sun Feb 21 06:13:35 2010
    879 From: sven.schober@uni-ulm.de (Sven Schober)
    880 Date: Sun, 21 Feb 2010 12:13:35 +0100
    881 Subject: [sup-talk] curses pinentry woes (still)
    882 In-Reply-To: <1266575368-sup-8036@hysbald>
    883 References: <1265569783-sup-1789@khjk.org>
    884 	<1265574271-sup-5738@midna.zekjur.net>
    885 	<1266516237-sup-7845@midna.zekjur.net>
    886 	<1266518077-sup-3488@hysbald>
    887 	<1266550118-sup-5231@midna.zekjur.net>
    888 	<1266575368-sup-8036@hysbald>
    889 Message-ID: <1266750780-sup-9088@hysbald>
    890 
    891 Excerpts from Sven Schober's message of Fri Feb 19 11:30:49 +0100 2010:
    892 > Excerpts from Michael Stapelberg's message of Fri Feb 19 04:29:28 +0100 2010:
    893 > > In the meantime, I fixed the problem (at least it works for me). You can get my
    894 > > patch at sup-devel, see
    895 > > http://rubyforge.org/pipermail/sup-devel/2010-February/000373.html
    896 > > 
    897 > Thanks, i'll give it a try :)!
    898 > 
    899 
    900 Works like a charm :).
    901 
    902 > > Best regards,
    903 > > Michael
    904 > 
    905 > Ciao,
    906 >  Sven
    907 -- 
    908 Sven Schober, sven.schober at uni-ulm.de                    |UNI ULM
    909 http://www-vs.informatik.uni-ulm.de/dept/staff/schober/  |DISTRIBUTED
    910 Room O27-346, Phone: +49-731-5024146 [+49-179-5060182]   |SYSTEMS LAB
    911 
    912 From nicolas.pouillard@gmail.com  Sun Feb 21 12:40:20 2010
    913 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
    914 Date: Sun, 21 Feb 2010 09:40:20 -0800 (PST)
    915 Subject: [sup-talk] Switching to Exchange
    916 In-Reply-To: <1266614806-sup-9832@eris>
    917 References: <1266533680-sup-7580@sgoldmanlinux.tower-research.com>
    918 	<1266612722-sup-5668@sgoldmanlinux.tower-research.com>
    919 	<1266614806-sup-9832@eris>
    920 Message-ID: <4b817004.0f67f10a.39f6.7d86@mx.google.com>
    921 
    922 On Fri, 19 Feb 2010 22:28:59 +0100, hollunder <hollunder at lavabit.com> wrote:
    923 > Excerpts from Steve Goldman's message of 2010-02-19 21:57:02 +0100:
    924 > > Excerpts from Steve Goldman's message of Thu Feb 18 17:56:53 -0500 2010:
    925 > > > 
    926 > > > Hey guys,
    927 > > > 
    928 > > > Thanks for the wild ride, but I need to switch to something more
    929 > > > reliable.  Not sure if there are incompatibilities with my version of
    930 > > > ruby or whatnot, but I'm getting ridiculous CPU usage and random seg
    931 > > > faults.  It's too much stress for me.  And after a crash when I
    932 > > > restart, I have a random collection of seventy or so messages in my
    933 > > > inbox, even though it was zero when I crashed.
    934 > > > 
    935 > > > This combined with not being able to convert to xapian without a seg
    936 > > > fault...
    937 > > > 
    938 > > > Maybe I'll be back some day.
    939 > > > 
    940 > > > Good luck.
    941 > > 
    942 > > In case anyone was worried, I'm back.  I took matters into my own
    943 > > hand.
    944 > > 
    945 > > Essentially, I was dealing with a slow IMAP server.  Since sup doesn't
    946 > > cache IMAP messages locally, this gave me huge headaches when trying
    947 > > to sync with the server during busy times.
    948 > > 
    949 > > The remedy was to download all the messages off the server into a
    950 > > local mbox file and to use fetchmail/procmail to poll for new IMAP
    951 > > messages and append them to the mbox file.
    952 > > 
    953 > > As a result, I was able to successfully use sup-sync to build a xapian
    954 > > index and everything is lightning fast.  Life is good... for now.
    955 > > 
    956 > > Thanks.
    957 > > -- 
    958 > > 
    959 > > Steve Goldman
    960 > > sgoldman at tower-research.com
    961 > > 
    962 > > T: 212.219.6014
    963 > > F: 212.219.6007
    964 > > 
    965 > > Tower Research Capital, LLC
    966 > > 377 Broadway, 11th Fl.
    967 > > New York, NY 10013
    968 > 
    969 > I think most of us just use offlineimap.
    970 
    971 I don't use offlineimap, I've tried it but it was not reliable enough for my amount of
    972 messages. I stick to mpop and mboxes.
    973 
    974 -- 
    975 Nicolas Pouillard
    976 http://nicolaspouillard.fr
    977 
    978 From danfalcone@gmail.com  Mon Feb 22 10:41:46 2010
    979 From: danfalcone@gmail.com (Dan Falcone)
    980 Date: Mon, 22 Feb 2010 10:41:46 -0500
    981 Subject: [sup-talk] curses exception
    982 In-Reply-To: <ed5557341001151149g34460038ub7a8a445409da034@mail.gmail.com>
    983 References: <ed5557340910061533w7854510tabe9bb2fc864db09@mail.gmail.com> 
    984 	<1255292940-sup-5558@masanjin.net>
    985 	<ed5557340910120709u62e97e67id6580f0a8ee6ec64@mail.gmail.com> 
    986 	<1255611057-sup-1320@masanjin.net>
    987 	<ed5557340910150740i4e701044l12be4fd43e2bc072@mail.gmail.com> 
    988 	<1255620005-sup-7616@masanjin.net>
    989 	<ed5557341001151149g34460038ub7a8a445409da034@mail.gmail.com>
    990 Message-ID: <ed5557341002220741x3e1a9556v921083093c40a3b7@mail.gmail.com>
    991 
    992 Just checking on this...
    993 
    994 On Fri, Jan 15, 2010 at 2:49 PM, Dan Falcone <danfalcone at gmail.com> wrote:
    995 
    996 > Hi William,
    997 >
    998 > Sorry I didn't get back to you sooner.  I finally got back around to
    999 > playing with this again.  Here are the answers to your questions:
   1000 >
   1001 > >gem list --local | grep curse
   1002 > ncurses (0.9.1)
   1003 >
   1004 > The test script prints:
   1005 > true
   1006 >
   1007 > The ncurses examples all seem to work and display color.  I did have to
   1008 > edit them to add require 'rubygems' at the top.
   1009 >
   1010 > I also tried playing with the sup code a bit.  If I comment out lines 133-4
   1011 > in lib/sup/colormap.rb:
   1012 >
   1013 > #      Curses.init_pair id, fg, bg or raise ArgumentError,
   1014 > #       "couldn't initialize curses color pair #{fg}, #{bg} (key #{id})"
   1015 >
   1016 > sup loads, but everything is in black and white and a bit difficult to
   1017 > read.  I also tried uncommenting that, then changing Curses to Ncurses so it
   1018 > looks like this:
   1019 >
   1020 >       Nurses.init_pair id, fg, bg or raise ArgumentError,
   1021 >        "couldn't initialize curses color pair #{fg}, #{bg} (key #{id})"
   1022 >
   1023 > sup loads with that as well, and displays some color, but most of the
   1024 > screen is unreadable (I'm guessing it's displaying as white text on white
   1025 > background).
   1026 >
   1027 > Any ideas?  I tried changing more things from Curses to Ncurses, but that
   1028 > quickly started generating method undefined errors.
   1029 >
   1030 > Thanks!
   1031 > Dan
   1032 >
   1033 >
   1034 >
   1035 > On Thu, Oct 15, 2009 at 11:27 AM, William Morgan <wmorgan-sup at masanjin.net
   1036 > > wrote:
   1037 >
   1038 >> Reformatted excerpts from Dan Falcone's message of 2009-10-15:
   1039 >> > Hmm... good question.  I regularly use emacs with colors enabled, but
   1040 >> > I'm not sure if that uses curses.  I tried typespeed and that seemed
   1041 >> > to work.  According to its man page, it uses curses.
   1042 >>
   1043 >> Hm. What version of the ncurses gem do you have? (gem list --local
   1044 >> should tell you.)
   1045 >>
   1046 >> What does this program print?
   1047 >>
   1048 >>  require 'rubygems'
   1049 >>  require 'ncurses'
   1050 >>
   1051 >>  x = begin
   1052 >>    Ncurses::initscr();
   1053 >>    Ncurses::has_colors?()
   1054 >>  ensure
   1055 >>    Ncurses::endwin();
   1056 >>  end
   1057 >>
   1058 >>  puts x
   1059 >>
   1060 >> If it prints true, then, if you look in the contents of the gem
   1061 >> (wherever that is on your system), there should be an examples/
   1062 >> directory. If you run examples/tlock.rb or examples/rain.rb, (probably
   1063 >> with ruby -rubygems), do you see color?
   1064 >> --
   1065 >> William <wmorgan-sup at masanjin.net>
   1066 >> _______________________________________________
   1067 >> sup-talk mailing list
   1068 >> sup-talk at rubyforge.org
   1069 >> http://rubyforge.org/mailman/listinfo/sup-talk
   1070 >>
   1071 >
   1072 >
   1073 -------------- next part --------------
   1074 An HTML attachment was scrubbed...
   1075 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20100222/e73d4a9f/attachment.html>
   1076 
   1077 From kosmici-atakuja@wp.pl  Fri Feb 26 12:08:36 2010
   1078 From: kosmici-atakuja@wp.pl (kosmici-atakuja at wp.pl)
   1079 Date: Fri, 26 Feb 2010 18:08:36 +0100
   1080 Subject: [sup-talk] PGP INLINE - can't make it work
   1081 Message-ID: <201002261808.36354.kosmici-atakuja@wp.pl>
   1082 
   1083 First of wall I want to say I absolutely love sup! I used all the major mail 
   1084 clients like mutt, claws, thunderbird, kmail. All mail clients just fail (mutt 
   1085 was the closest though...). Sup so far has the potential to be the best of 
   1086 them. If only I can get it to read the inline gpg that enigmail makes...
   1087 
   1088 Example email looks like this in sup: 
   1089 
   1090  -----BEGIN PGP MESSAGE-----
   1091   Charset: UTF-8
   1092   Version: GnuPG v1.4.9 (MingW32)
   1093   Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
   1094 
   1095   hQIOA3WKxDKSmLd7EAf/cKH72GNHWgkY46sjHuYBlV5Q9udlmjB1ucTqtVfSUysH
   1096 [cut]
   1097  NYqMmmJ1HHG58B9bPqGFPNe/jEPeiiqj9Ez58kYzS32VeelJFwV+O8K9/TAvG4HN
   1098   fEIgtYMGj0Uc5v0eZ7yVqFfluJrEX5V7mN2InahTCD+uFEfguvld8rZagEtlyxU5
   1099   =nAMm
   1100   -----END PGP MESSAGE-----
   1101 
   1102 And it gets displayed like this, no error messages or anything. I have 
   1103 configured my gpg in sup as per this wiki page:
   1104 http://sup.rubyforge.org/wiki/wiki.pl?GPG
   1105 (with the numeric ID and such). 
   1106 
   1107 And I enabled verbose debug logging, here's the log:
   1108 (cutting leading timestamp for better reading)
   1109 
   1110 using character set encoding "UTF-8"
   1111 No 'chronic' gem detected. Install it for date/time query restrictions.
   1112 No 'ncursesw' gem detected. Install it for wide character support.
   1113 dynamically loading setlocale() from libc.so.6
   1114 setting locale...
   1115 using xapian index
   1116 locking /home/piotr/.sup/lock...
   1117 crypto: detected gpg binary in /usr/bin/gpg
   1118 starting curses
   1119 initializing log buffer
   1120 Welcome to Sup! Log level is set to debug.
   1121 initializing inbox buffer
   1122 ready for interaction!
   1123 colormap: for color twiddle_color, using id 1 -> 4, -1
   1124 colormap: for color status_color, using id 2 -> 7, 4
   1125 colormap: for color tagged_color_highlight, using id 3 -> 3, 6
   1126 colormap: for color date_color_highlight, using id 4 -> 0, 6
   1127 colormap: for color to_me_color_highlight, using id 5 -> 2, 6
   1128 colormap: for color tagged_color, using id 6 -> 3, -1
   1129 colormap: for color date_color, using id 7 -> 7, -1
   1130 colormap: for color to_me_color, using id 8 -> 2, -1
   1131 colormap: for color snippet_color, using id 9 -> 6, -1
   1132 scanning maildir /home/piotr/Mail...
   1133 done scanning maildir
   1134 crypto: running: /usr/bin/gpg --quiet --batch --no-verbose --logger-fd 1 --
   1135 use-agent --output /tmp/32042-0-redwood.outp
   1136 scanning maildir /home/piotr/Mail...
   1137 done scanning maildir
   1138 crypto: running: /usr/bin/gpg --quiet --batch --no-verbose --logger-fd 1 --
   1139 use-agent --output /tmp/32042-0-redwood.outp
   1140 crypto: running: /usr/bin/gpg --quiet --batch --no-verbose --logger-fd 1 --
   1141 use-agent --output /tmp/32042-2-redwood.outp
   1142 crypto: running: /usr/bin/gpg --quiet --batch --no-verbose --logger-fd 1 --
   1143 use-agent --output /tmp/32042-0-redwood.outp
   1144 colormap: for color alternate_patina_color, using id 10 -> 0, 4
   1145 colormap: for color message_patina_color, using id 11 -> 0, 2
   1146 colormap: for color system_buf_color_highlight, using id 12 -> 7, 6
   1147 
   1148 (no errors there as far as I can see... And looks like it's running the gpg 
   1149 binary succesfully... I just changed the maildir path for privacy in this log)
   1150 
   1151 GPG is configured to use gpg-agent, the gpg-agent is running, pinentry program 
   1152 shows up when running sup and I enter the correct password. I checked the 
   1153 password many times already. Also, the environment variable $GPG_AGENT_INFO is 
   1154 present and visible in sup environment (it's global and visible anywhere). 
   1155 I already tried it without "use gpg-agent" and the effect was the same. 
   1156 
   1157 In mutt this worked, I mean the inline gpg messages were decrypted using this 
   1158 same setup of gpg-agent and gpg. It also works in kmail (although not 
   1159 perfectly, but decodes the messages).
   1160 
   1161 Now, this may be a clue: when normal gpg message is used (mime) it sometimes 
   1162 geta decrypted and sometimes doesn't. If it doesn't, sup only says this in the 
   1163 message: 
   1164     x This message has been decrypted for display
   1165     x Attachment: sup-attachment-1267203299-4513. (multipart/mixed; 71b)
   1166 
   1167 When I'm trying to display this attachment it says: 
   1168 For some bizarre reason, RubyMail was unable to parse this attachment.
   1169 and in the status line:
   1170 Couldn't execute view command, viewing as text.
   1171 
   1172 (this may be because I have no run-mailcap file, but the message was in plain 
   1173 text, no html, so it shouldn't be needed now should it? I'm planning on 
   1174 getting some run-mailcap script from some debian system when I have some time, 
   1175 but for now this inline GPG is my main priority)
   1176 
   1177 I'm still not sure why they sometimes decrypt correctly and sometimes not, but 
   1178 I can work with this, at least it works sometimes. But even when mime gpg 
   1179 works, the inline stuff doesn't. 
   1180 
   1181 Verisions:
   1182 I'm using sup version 0.10.2 from Archlinux AUR. 
   1183 ruby version is 1.9.1
   1184 xapian-core is 1.0.18
   1185 
   1186 Is there anything I can do to get this working? This is a crucial feature for 
   1187 me as almost all my work colleagues use thunderbird and enigmail to send their 
   1188 email and that uses inline pgp crap as default (which I know is not conforming 
   1189 to any standards etc.). And even if I can convince verybody to switch to mime, 
   1190 I still have a couple hundred megs of archives in this damn format. 
   1191 
   1192 Moreover, I searched the list archives and it looks like some people have got 
   1193 it working as there have been patches to make it work a couple of months ago. 
   1194 And my version is recent (January) so those patches should be in it. It just 
   1195 doesn't for me for some reason :(
   1196 
   1197 I know I should read crypto.rb and figure it out from there. I tried, I just 
   1198 can't understand it, as I'm not experienced in ruby, or email clients code for 
   1199 that matter. 
   1200 
   1201 Please help!
   1202 Thank you
   1203 Piotr
   1204 
   1205 From sven.schober@uni-ulm.de  Fri Feb 26 12:43:04 2010
   1206 From: sven.schober@uni-ulm.de (Sven Schober)
   1207 Date: Fri, 26 Feb 2010 18:43:04 +0100
   1208 Subject: [sup-talk] PGP INLINE - can't make it work
   1209 In-Reply-To: <201002261808.36354.kosmici-atakuja@wp.pl>
   1210 References: <201002261808.36354.kosmici-atakuja@wp.pl>
   1211 Message-ID: <1267205858-sup-7113@hysbald>
   1212 
   1213 Excerpts from kosmici-atakuja's message of Fri Feb 26 18:08:36 +0100 2010:
   1214 > First of wall I want to say I absolutely love sup! I used all the major mail 
   1215 > clients like mutt, claws, thunderbird, kmail. All mail clients just fail (mutt 
   1216 > was the closest though...). Sup so far has the potential to be the best of 
   1217 > them. If only I can get it to read the inline gpg that enigmail makes...
   1218 > 
   1219 +1
   1220 
   1221 > Is there anything I can do to get this working? This is a crucial feature for 
   1222 > me...
   1223 > 
   1224 +1
   1225 > Moreover, I searched the list archives and it looks like some people have got 
   1226 > it working as there have been patches to make it work a couple of months ago. 
   1227 > And my version is recent (January) so those patches should be in it. It just 
   1228 > doesn't for me for some reason :(
   1229 > 
   1230 I think there was a (preliminary) patch from Michael Stapelberg
   1231 floating around, but somehow that didn't make it into next?
   1232 
   1233 > I know I should read crypto.rb and figure it out from there. I tried, I just 
   1234 > can't understand it, as I'm not experienced in ruby, or email clients code for 
   1235 > that matter. 
   1236 > 
   1237 +1
   1238 
   1239 > Please help!
   1240 +1
   1241 
   1242 > Thank you
   1243 > Piotr
   1244 
   1245 Ciao,
   1246   Sven
   1247 -- 
   1248 Sven Schober, sven.schober at uni-ulm.de                    |UNI ULM
   1249 http://www-vs.informatik.uni-ulm.de/dept/staff/schober/  |DISTRIBUTED
   1250 Room O27-346, Phone: +49-731-5024146 [+49-179-5060182]   |SYSTEMS LAB
   1251 -------------- next part --------------
   1252 A non-text attachment was scrubbed...
   1253 Name: signature.asc
   1254 Type: application/pgp-signature
   1255 Size: 198 bytes
   1256 Desc: not available
   1257 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20100226/65d63480/attachment.bin>
   1258 
   1259 From rlane@club.cc.cmu.edu  Sat Feb 27 13:17:48 2010
   1260 From: rlane@club.cc.cmu.edu (Rich Lane)
   1261 Date: Sat, 27 Feb 2010 13:17:48 -0500
   1262 Subject: [sup-talk] [patch] Add crypto_selector variable to before-edit
   1263 In-Reply-To: <1264521165-sup-9898@nemesis.home>
   1264 References: <1263824428-sup-6466@nemesis.home>
   1265 	<1264251144-sup-4056@masanjin.net>
   1266 	<1264521165-sup-9898@nemesis.home>
   1267 Message-ID: <1267294655-sup-3006@zyrg.net>
   1268 
   1269 Applied to master.
   1270 
   1271 From kevinr@free-dissociation.com  Sat Feb 27 23:33:26 2010
   1272 From: kevinr@free-dissociation.com (Kevin Riggle)
   1273 Date: Sat, 27 Feb 2010 23:33:26 -0500
   1274 Subject: [sup-talk] ncurses opts exception on master
   1275 Message-ID: <1267331100-sup-926@black-opal.mit.edu>
   1276 
   1277 I consistently get an exception on master when I do anything (search, try to 
   1278 send mail, etc) which brings up the text entry field at the bottom of the 
   1279 screen.  I've tracked it down to 42e7aeaa90, and reverting just that change
   1280 fixes it for me.  I'm running the latest ncurses gem available to me (0.9.1),
   1281 as installed by gem, with no local modifications.
   1282 
   1283 The text of the exception follows.
   1284 
   1285 (Thanks for picking up the mantle of maintainer, Rich!  I'm excited to see Sup
   1286 moving forward.)
   1287 
   1288 - Kevin
   1289 
   1290 
   1291 [Sat Feb 27 23:14:54 -0500 2010] ERROR: oh crap, an exception
   1292 ----------------------------------------------------------------
   1293 (snip)
   1294 --- NoMethodError from thread: main
   1295 undefined method `opts_off' for #<Ncurses::Form::FIELD:0x7fb1778327c0>
   1296 ./lib/sup/textfield.rb:37:in `activate'
   1297 ./lib/sup/buffer.rb:575:in `ask'
   1298 ./lib/sup/buffer.rb:31:in `synchronize'
   1299 ./lib/sup/buffer.rb:31:in `sync'
   1300 ./lib/sup/buffer.rb:574:in `ask'
   1301 ./lib/sup/buffer.rb:479:in `ask_many_emails_with_completions'
   1302 ./lib/sup/util.rb:559:in `send'
   1303 ./lib/sup/util.rb:559:in `method_missing'
   1304 ./lib/sup/buffer.rb:555:in `ask_for_contacts'
   1305 ./lib/sup/util.rb:559:in `send'
   1306 ./lib/sup/util.rb:559:in `method_missing'
   1307 ./lib/sup/modes/compose-mode.rb:24:in `spawn_nicely'
   1308 bin/sup:332
   1309 
   1310 -- 
   1311 Kevin Riggle (kevinr at free-dissociation.com) 
   1312 MIT Class of 2010, Course VI-3 (Computer Science)
   1313 http://free-dissociation.com
   1314 
   1315 From rlane@club.cc.cmu.edu  Sun Feb 28 02:11:35 2010
   1316 From: rlane@club.cc.cmu.edu (Rich Lane)
   1317 Date: Sun, 28 Feb 2010 02:11:35 -0500
   1318 Subject: [sup-talk] ncurses opts exception on master
   1319 In-Reply-To: <1267331100-sup-926@black-opal.mit.edu>
   1320 References: <1267331100-sup-926@black-opal.mit.edu>
   1321 Message-ID: <1267335529-sup-9079@zyrg.net>
   1322 
   1323 I'm guessing you have an old version of the ncurses gem. Installing
   1324 the ncursesw gem should fix this.
   1325 
   1326 From kevinr@free-dissociation.com  Sun Feb 28 02:24:43 2010
   1327 From: kevinr@free-dissociation.com (Kevin Riggle)
   1328 Date: Sun, 28 Feb 2010 02:24:43 -0500
   1329 Subject: [sup-talk] ncurses opts exception on master
   1330 In-Reply-To: <1267335529-sup-9079@zyrg.net>
   1331 References: <1267331100-sup-926@black-opal.mit.edu>
   1332 	<1267335529-sup-9079@zyrg.net>
   1333 Message-ID: <1267341711-sup-2539@black-opal.mit.edu>
   1334 
   1335 Excerpts from Rich Lane's message of Sun Feb 28 02:11:35 -0500 2010:
   1336 > I'm guessing you have an old version of the ncurses gem. Installing
   1337 > the ncursesw gem should fix this.
   1338 
   1339 That did the trick -- thanks!  The README should probably get updated to talk
   1340 about ncursesw under REQUIREMENTS.  (That was where I went to look; I didn't 
   1341 think to check the Rakefile, which is probably more likely to be current.)
   1342 
   1343 - Kevin
   1344 -- 
   1345 Kevin Riggle (kevinr at free-dissociation.com) 
   1346 MIT Class of 2010, Course VI-3 (Computer Science)
   1347 http://free-dissociation.com
   1348