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

      1 From rthrd@web.de  Thu Sep  1 01:28:24 2011
      2 From: rthrd@web.de (Ruthard Baudach)
      3 Date: Thu, 01 Sep 2011 07:28:24 +0200
      4 Subject: [sup-talk] turnsole crashes
      5 Message-ID: <1314854903-sup-1099@PrxServer3>
      6 
      7 
      8 Finally I started trying heliotrope/turnsole.
      9 
     10 Heliotrope runs, http://localhost8042 shows a nice list with all of my
     11 e-mails.
     12 
     13 ruby -I /home/ruthard/heliotrope/lib bin/turnsole raises:
     14 
     15 /var/lib/gems/1.9.1/gems/console-0.5/lib/console/string.rb:27:in
     16 `display_width': malformed string: incomplete multibyte character at
     17 position 99 (ArgumentError)
     18         from
     19 /var/lib/gems/1.9.1/gems/console-0.5/lib/console/string.rb:27:in
     20 `display_width'
     21         from /home/ruthard/turnsole/lib/turnsole/buffer.rb:61:in `write'
     22         from
     23 /home/ruthard/turnsole/lib/turnsole/modes/scroll-mode.rb:242:in `block
     24 in draw_line_from_array'
     25         from
     26 /home/ruthard/turnsole/lib/turnsole/modes/scroll-mode.rb:228:in `each'
     27         from
     28 /home/ruthard/turnsole/lib/turnsole/modes/scroll-mode.rb:228:in
     29 `each_with_index'
     30         from
     31 /home/ruthard/turnsole/lib/turnsole/modes/scroll-mode.rb:228:in
     32 `draw_line_from_array'
     33         from
     34 /home/ruthard/turnsole/lib/turnsole/modes/scroll-mode.rb:203:in
     35 `draw_line'
     36         from
     37 /home/ruthard/turnsole/lib/turnsole/modes/line-cursor-mode.rb:51:in
     38 `draw_line'
     39         from
     40 /home/ruthard/turnsole/lib/turnsole/modes/scroll-mode.rb:48:in `block in
     41 draw!'
     42         from
     43 /home/ruthard/turnsole/lib/turnsole/modes/scroll-mode.rb:48:in `each'
     44         from
     45 /home/ruthard/turnsole/lib/turnsole/modes/scroll-mode.rb:48:in `draw!'
     46         from /home/ruthard/turnsole/lib/turnsole/buffer.rb:45:in
     47 `force_draw!'
     48         from /home/ruthard/turnsole/lib/turnsole/buffer.rb:41:in `draw!'
     49         from /home/ruthard/turnsole/lib/turnsole/screen.rb:212:in
     50 `draw!'
     51         from /home/ruthard/turnsole/lib/turnsole/ui.rb:43:in `step'
     52         from bin/turnsole:150:in `<main>'
     53 I've updated all gems, upgraded to ruby 1.9.1, yet the same result.
     54 
     55 What can I do further?
     56 
     57 Yours, Ruthard
     58 
     59 From wmorgan-sup@masanjin.net  Wed Sep  7 15:18:12 2011
     60 From: wmorgan-sup@masanjin.net (William Morgan)
     61 Date: Wed, 07 Sep 2011 19:18:12 +0000
     62 Subject: [sup-talk] turnsole crashes
     63 In-Reply-To: <1314854903-sup-1099@PrxServer3>
     64 References: <1314854903-sup-1099@PrxServer3>
     65 Message-ID: <1315422876-sup-5270@masanjin.net>
     66 
     67 
     68 Reformatted excerpts from Ruthard Baudach's message of 2011-09-01:
     69 > ruby -I /home/ruthard/heliotrope/lib bin/turnsole raises:
     70 > 
     71 > /var/lib/gems/1.9.1/gems/console-0.5/lib/console/string.rb:27:in
     72 > `display_width': malformed string: incomplete multibyte character at
     73 > position 99 (ArgumentError)
     74 
     75 Thanks for the bug report. These character encoding issues are difficult
     76 to track down. Can you create an issue for this here?
     77 
     78 https://github.com/wmorgan/turnsole/issues
     79 
     80 Thanks!
     81 -- 
     82 William <wmorgan-sup at masanjin.net>
     83 
     84 From jomat+sup-talk@jmt.gr  Fri Sep  9 13:35:30 2011
     85 From: jomat+sup-talk@jmt.gr (jomat)
     86 Date: Fri, 09 Sep 2011 17:35:30 +0000
     87 Subject: [sup-talk] Showing archived messages
     88 Message-ID: <1315588865-sup-1492@v2.zyria.de>
     89 
     90 Hi,
     91 
     92 I'm using the git version of sup, but could observe the same behavior in
     93 0.11.
     94 
     95 According to http://sup.rubyforge.org/NewUserGuide.txt, my inbox are all
     96 mails with the label "inbox": "This means that your inbox is nothing
     97 more than the result of the search for all messages with the label
     98 "inbox".". If I press l (l : Edit or add labels for a thread) on a thread
     99 in my inbox, there is no inbox label.
    100 The new user guide also told me "Force non-occurrence by -, e.g.
    101 -body:"hot soup"." for searches. Now I don't know if I didn't understand
    102 it, but shouldn't a search for -label:inbox show my archive? At least, it
    103 really should not show messages with the inbox label, but it does. If I
    104 toggle the detailed header with h, Labels: inbox, ... is displayed.
    105 
    106 What am I doing wrong and how do I display the archived messages?
    107 
    108 Thanks,
    109 jomat
    110 
    111 From david.froger@gmail.com  Sun Sep 18 09:02:00 2011
    112 From: david.froger@gmail.com (David Froger)
    113 Date: Sun, 18 Sep 2011 15:02:00 +0200
    114 Subject: [sup-talk] utf8-issue
    115 Message-ID: <1316350334-sup-6304@david-desktop>
    116 
    117 
    118 Hi all,
    119 
    120 Thanks for the excellent sup!
    121 
    122 I'm french, and so I have utf-8 issues... I'm trying to follow the first method
    123 of the wiki (that is, using the sources obtained from Git):
    124 http://sup.rubyforge.org/wiki/wiki.pl?UTF8
    125 
    126 libncurses5-dev and  libncursesw5-dev are  installed.  Changing to  the ncursesw
    127 branch, applying the patch and returnin to the next branch works.
    128 
    129 However, when I run sup with : "ruby -Ilib bin/sup", I get the error message:
    130 
    131 /usr/lib/ruby/1.8/sup/poll.rb:31: undefined method `[]' for nil:NilClass
    132 (NoMethodError)
    133   from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    134   from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    135   from ./lib/sup.rb:374
    136   from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    137   from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    138   from bin/sup:22
    139 
    140 Because I'm not familiar with ruby, I don't understand what is not working... Is
    141 the rubygems version to old?  I'm on ubuntu 10.04
    142 
    143 The command "apt-cache policy rubygems" give:
    144 
    145 rubygems:
    146   Install??: 1.3.5-1ubuntu2
    147   Candidat?: 1.3.5-1ubuntu2
    148  Table de version?:
    149  *** 1.3.5-1ubuntu2 0
    150         500 http://fr.archive.ubuntu.com/ubuntu/ lucid/universe Packages
    151         100 /var/lib/dpkg/status
    152 
    153 Or is another package missing?
    154 
    155 
    156 Thanks for any help !
    157 
    158 Best,
    159 David
    160 -- 
    161 
    162 From michael+sup@stapelberg.de  Sun Sep 18 09:17:07 2011
    163 From: michael+sup@stapelberg.de (Michael Stapelberg)
    164 Date: Sun, 18 Sep 2011 14:17:07 +0100
    165 Subject: [sup-talk] utf8-issue
    166 In-Reply-To: <1316350334-sup-6304@david-desktop>
    167 References: <1316350334-sup-6304@david-desktop>
    168 Message-ID: <1316351787-sup-6406@stapelberg.de>
    169 
    170 Hi David,
    171 
    172 Excerpts from David Froger's message of 2011-09-18 14:02:00 +0100:
    173 > /usr/lib/ruby/1.8/sup/poll.rb:31: undefined method `[]' for nil:NilClass
    174 > (NoMethodError)
    175 >   from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    176 >   from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    177 >   from ./lib/sup.rb:374
    178 >   from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    179 >   from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    180 >   from bin/sup:22
    181 Please use ruby1.9.1 and install the ncursesw gem with gem1.9.1 install
    182 ncursesw. That should fix all UTF-8 issues.
    183 
    184 Best regards,
    185 Michael
    186 
    187 From david.froger@gmail.com  Sun Sep 18 09:36:11 2011
    188 From: david.froger@gmail.com (David Froger)
    189 Date: Sun, 18 Sep 2011 15:36:11 +0200
    190 Subject: [sup-talk] utf8-issue
    191 In-Reply-To: <1316350334-sup-6304@david-desktop>
    192 References: <1316350334-sup-6304@david-desktop>
    193 Message-ID: <CAHnizxNm6EPxoU2wE8s2NrWLt8wg78ApUxNxua0OioCVyd3Xnw@mail.gmail.com>
    194 
    195 I just found the solution here:
    196 http://www.mail-archive.com/sup-devel at rubyforge.org/msg00692.html
    197 
    198 It solved my problem. I then update the index from v1 to v4 as sup
    199 asked, and I have utf-8 working nice!
    200 
    201 I added a "Troubleshooting" to the wiki:
    202 
    203 http://sup.rubyforge.org/wiki/wiki.pl?UTF8
    204 
    205 best,
    206 David
    207 
    208 From david.froger@gmail.com  Sun Sep 18 09:41:59 2011
    209 From: david.froger@gmail.com (David Froger)
    210 Date: Sun, 18 Sep 2011 15:41:59 +0200
    211 Subject: [sup-talk] utf8-issue
    212 In-Reply-To: <1316351787-sup-6406@stapelberg.de>
    213 References: <1316350334-sup-6304@david-desktop>
    214 	<1316351787-sup-6406@stapelberg.de>
    215 Message-ID: <1316353275-sup-1373@david-desktop>
    216 
    217 > Please use ruby1.9.1 and install the ncursesw gem with gem1.9.1 install
    218 > ncursesw. That should fix all UTF-8 issues.
    219 
    220 Thanks Michael, I will try!
    221 -- 
    222 
    223 From colin.yates@gmail.com  Wed Sep 28 17:39:56 2011
    224 From: colin.yates@gmail.com (Colin Yates)
    225 Date: Wed, 28 Sep 2011 22:39:56 +0100
    226 Subject: [sup-talk] Help - sup is garbling characters and chopping off the
    227 	ends of lines
    228 Message-ID: <CAE2xRkEMW67qdoFtN0oLp_ULv1vAtWzwJ+69BRX3tkzznobz0Q@mail.gmail.com>
    229 
    230 Hi all,
    231 
    232 gmail -> offlineimap -> sup on Ubuntu natty (all updates) x64 using xmonad
    233 and xterm with en-GB.UTF-8 locale
    234 
    235 I get the usual "missing ncursesw" and "cannot determine locale" but I don't
    236 think they are the cause of this issue.
    237 
    238 The problem is that some of the messages have the ends of their lines
    239 chopped off.  If I read them via the gmail web interface or mutt then they
    240 are fine.  The text as rendered by sup is:
    241 
    242 --- start
    243 different departments and he didnM-b~@~Yt have percentages, but the most com
    244 --- end
    245 
    246 the text as rendered by the web and mutt:
    247 
    248 --- start
    249 different departments and he didn?t have percentages, but the most common is
    250 --- end
    251 
    252 the test as rendered by sup's source view (V):
    253 
    254 --- start
    255 different departments and he didn=92t have percentages, but the most common=
    256  is
    257 --- end
    258 
    259 I also installed on a Debian stable server with the same result.
    260 
    261 Any ideas?  I really want to be able to use sup but this is a blocker.
    262 
    263 Newbie here, so please go gently :)
    264 
    265 Col
    266 -------------- next part --------------
    267 An HTML attachment was scrubbed...
    268 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110928/8f7fea01/attachment.html>
    269 
    270 From groups@hjdivad.com  Thu Sep 29 17:06:29 2011
    271 From: groups@hjdivad.com (David J. Hamilton)
    272 Date: Thu, 29 Sep 2011 14:06:29 -0700
    273 Subject: [sup-talk] Showing archived messages
    274 In-Reply-To: <1315588865-sup-1492@v2.zyria.de>
    275 References: <1315588865-sup-1492@v2.zyria.de>
    276 Message-ID: <1317330195-sup-9666@nyx.local>
    277 
    278 Excerpts from jomat's message of Fri Sep 09 10:35:30 -0700 2011:
    279 > Now I don't know if I didn't understand
    280 > it, but shouldn't a search for -label:inbox show my archive?
    281 
    282 I gather from experimentation (rather than documentation) that queries must have
    283 at least one positive clause.  A query with a single negative clause is treated
    284 as a positive clause.  I don't know of a way to search for ?anything?, but
    285 here's an example of a query that almost gets you what you want:
    286 
    287   to:me -label:inbox
    288 
    289 I expect this is a bug and that `-label:inbox` is intended to work as you
    290 expect.
    291 -- 
    292 med v?nlig h?lsning
    293 David J. Hamilton
    294 
    295 From diego.joss@hispeed.ch  Thu Sep 29 18:32:33 2011
    296 From: diego.joss@hispeed.ch (Diego Joss)
    297 Date: Fri, 30 Sep 2011 00:32:33 +0200
    298 Subject: [sup-talk] Showing archived messages
    299 In-Reply-To: <1317330195-sup-9666@nyx.local>
    300 References: <1315588865-sup-1492@v2.zyria.de> <1317330195-sup-9666@nyx.local>
    301 Message-ID: <20110929223233.GA7353@hispeed.ch>
    302 
    303 Hi,
    304 
    305 if I'm not mistaken, you can use the 'all' keyword to match all
    306 messages. I haven't tested with sup, but sup is using xapian, and with
    307 notmuch (http://notmuchmail.org/), which also uses xapian, it works.
    308 
    309 thus try:
    310 all -label:inbox
    311 
    312 Diego
    313 
    314 On Thu, Sep 29, 2011 at 02:06:29PM -0700, David J. Hamilton wrote:
    315 > Excerpts from jomat's message of Fri Sep 09 10:35:30 -0700 2011:
    316 > > Now I don't know if I didn't understand
    317 > > it, but shouldn't a search for -label:inbox show my archive?
    318 > 
    319 > I gather from experimentation (rather than documentation) that queries must have
    320 > at least one positive clause.  A query with a single negative clause is treated
    321 > as a positive clause.  I don't know of a way to search for ?anything?, but
    322 > here's an example of a query that almost gets you what you want:
    323 > 
    324 >   to:me -label:inbox
    325 > 
    326 > I expect this is a bug and that `-label:inbox` is intended to work as you
    327 > expect.
    328 > -- 
    329 > med v?nlig h?lsning
    330 > David J. Hamilton
    331 > _______________________________________________
    332 > sup-talk mailing list
    333 > sup-talk at rubyforge.org
    334 > http://rubyforge.org/mailman/listinfo/sup-talk
    335 
    336 From groups@hjdivad.com  Fri Sep 30 11:51:36 2011
    337 From: groups@hjdivad.com (David J. Hamilton)
    338 Date: Fri, 30 Sep 2011 08:51:36 -0700
    339 Subject: [sup-talk] Showing archived messages
    340 In-Reply-To: <20110929223233.GA7353@hispeed.ch>
    341 References: <1315588865-sup-1492@v2.zyria.de> <1317330195-sup-9666@nyx.local>
    342 	<20110929223233.GA7353@hispeed.ch>
    343 Message-ID: <1317397868-sup-9773@nyx.local>
    344 
    345 Excerpts from Diego Joss's message of Thu Sep 29 15:32:33 -0700 2011:
    346 > Hi,
    347 > 
    348 > if I'm not mistaken, you can use the 'all' keyword to match all
    349 > messages. I haven't tested with sup, but sup is using xapian, and with
    350 > notmuch (http://notmuchmail.org/), which also uses xapian, it works.
    351 > 
    352 > thus try:
    353 > all -label:inbox
    354 
    355 Seems to work for me.  Thanks Diego.
    356 -- 
    357 med v?nlig h?lsning
    358 David J. Hamilton
    359 
    360 From dmishd@gmail.com  Fri Sep 30 14:03:24 2011
    361 From: dmishd@gmail.com (Hamish D)
    362 Date: Fri, 30 Sep 2011 19:03:24 +0100
    363 Subject: [sup-talk] Help - sup is garbling characters and chopping off
    364  the ends of lines
    365 In-Reply-To: <CAE2xRkEMW67qdoFtN0oLp_ULv1vAtWzwJ+69BRX3tkzznobz0Q@mail.gmail.com>
    366 References: <CAE2xRkEMW67qdoFtN0oLp_ULv1vAtWzwJ+69BRX3tkzznobz0Q@mail.gmail.com>
    367 Message-ID: <CAOxvSbdEuzhx7HsryCyvGSGn9h4W-jZ14MHdvR=23SvNDh+sZg@mail.gmail.com>
    368 
    369 > gmail -> offlineimap -> sup on Ubuntu natty (all updates) x64 using xmonad
    370 > and xterm with en-GB.UTF-8 locale
    371 > I get the usual "missing ncursesw" and "cannot determine locale" but I don't
    372 > think they are the cause of this issue.
    373 > The problem is that some of the messages have the ends of their lines
    374 > chopped off.
    375 
    376 Have you checked if the message is just indented a bit? If it is in a
    377 string of replies, then press 'n' to go down until the message is
    378 selected and then press '[' to reset the margin.
    379 
    380 If I read them via the gmail web interface or mutt then they
    381 > are fine. ?The text as rendered by sup is:
    382 > --- start
    383 > different departments and he didnM-b~@~Yt have percentages, but the most com
    384 > --- end
    385 
    386 This will be related to the lack of ncursesw - if you:
    387 
    388 sudo apt-get install libncursesw5-dev rubygems
    389 sudo gem install ncursesw
    390 
    391 Then you should get the full range of characters.
    392 
    393 Hamish
    394 
    395 From colin.yates@gmail.com  Fri Sep 30 14:25:18 2011
    396 From: colin.yates@gmail.com (Colin Yates)
    397 Date: Fri, 30 Sep 2011 19:25:18 +0100
    398 Subject: [sup-talk] Help - sup is garbling characters and chopping off
    399 	the ends of lines
    400 In-Reply-To: <CAOxvSbdEuzhx7HsryCyvGSGn9h4W-jZ14MHdvR=23SvNDh+sZg@mail.gmail.com>
    401 References: <CAE2xRkEMW67qdoFtN0oLp_ULv1vAtWzwJ+69BRX3tkzznobz0Q@mail.gmail.com>
    402 	<CAOxvSbdEuzhx7HsryCyvGSGn9h4W-jZ14MHdvR=23SvNDh+sZg@mail.gmail.com>
    403 	Hi Hamish, 
    404 Message-ID: <1317406494-sup-2375@os.Home>
    405 
    406 I upgraded to oneric and the wrapping issue has gone away - it was definitely a bug.
    407 
    408 I cannot install the ncursesw gem due to a missing dependency - after install ruby1.9full and just about every ncurses package I could find I gave up :).
    409 
    410 No worries - the UTF-8 issue is less of an issue than the wrapping.
    411 
    412 
    413 Excerpts from Hamish D's message of Fri Sep 30 19:03:24 +0100 2011:
    414 > > gmail -> offlineimap -> sup on Ubuntu natty (all updates) x64 using xmonad
    415 > > and xterm with en-GB.UTF-8 locale
    416 > > I get the usual "missing ncursesw" and "cannot determine locale" but I don't
    417 > > think they are the cause of this issue.
    418 > > The problem is that some of the messages have the ends of their lines
    419 > > chopped off.
    420 > 
    421 > Have you checked if the message is just indented a bit? If it is in a
    422 > string of replies, then press 'n' to go down until the message is
    423 > selected and then press '[' to reset the margin.
    424 > 
    425 > If I read them via the gmail web interface or mutt then they
    426 > > are fine. ?The text as rendered by sup is:
    427 > > --- start
    428 > > different departments and he didnM-b~@~Yt have percentages, but the most com
    429 > > --- end
    430 > 
    431 > This will be related to the lack of ncursesw - if you:
    432 > 
    433 > sudo apt-get install libncursesw5-dev rubygems
    434 > sudo gem install ncursesw
    435 > 
    436 > Then you should get the full range of characters.
    437 > 
    438 > Hamish
    439 
    440 From dmishd@gmail.com  Fri Sep 30 14:58:40 2011
    441 From: dmishd@gmail.com (Hamish D)
    442 Date: Fri, 30 Sep 2011 19:58:40 +0100
    443 Subject: [sup-talk] Help - sup is garbling characters and chopping off
    444  the ends of lines
    445 In-Reply-To: <1317406494-sup-2375@os.Home>
    446 References: <CAE2xRkEMW67qdoFtN0oLp_ULv1vAtWzwJ+69BRX3tkzznobz0Q@mail.gmail.com>
    447 	<CAOxvSbdEuzhx7HsryCyvGSGn9h4W-jZ14MHdvR=23SvNDh+sZg@mail.gmail.com>
    448 	<1317406494-sup-2375@os.Home>
    449 Message-ID: <CAOxvSbdS5fJEaXEYNivC83ws3VGFBuvdHWXRFnRFS45Lsg1v+g@mail.gmail.com>
    450 
    451 > I cannot install the ncursesw gem due to a missing dependency - after install ruby1.9full and just about every ncurses package I could find I gave up :).
    452 
    453 Do you get an error message about 'mkmf' - if so then you need to
    454 install ruby-dev (or ruby1.9.1-dev) in order to get that. And make
    455 sure you use gem1.9.1 if you are using ruby 1.9.
    456 
    457 Anyway, glad to hear your main problem has been solved.
    458 Hamish
    459