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-12.txt (14764B) - raw

      1 From scs@geneseecounty911.org  Thu Dec  1 08:54:10 2011
      2 From: scs@geneseecounty911.org (Scott Shook)
      3 Date: Thu, 01 Dec 2011 08:54:10 -0500
      4 Subject: [sup-talk] maildir with spaces
      5 In-Reply-To: <20111201004855.GQ899@tracyreed.org>
      6 References: <20111130221624.GM899@tracyreed.org>
      7 	<20111201004855.GQ899@tracyreed.org>
      8 Message-ID: <1322747029-sup-96@rambo.gcc.local>
      9 
     10 I had this same problem and I ended up creating symlinks without a space
     11 in the name. Keep the offlineimap config the same but change sup source
     12 to the symlink'd folder.
     13 
     14 I.E.
     15 > maildir:///home/treed/Maildir/mydomain/Sent Mail (URI::InvalidURIError)
     16 ln -s /home/treed/Maildir/mydomain/Sent\ Mail /home/treed/Maildir/mydomain/Sent
     17 
     18 Scott
     19 
     20 
     21 From treed@ultraviolet.org  Thu Dec  1 13:02:48 2011
     22 From: treed@ultraviolet.org (Tracy Reed)
     23 Date: Thu, 1 Dec 2011 10:02:48 -0800
     24 Subject: [sup-talk] before-pull hook etc.
     25 In-Reply-To: <20111130221624.GM899@tracyreed.org>
     26 References: <20111130221624.GM899@tracyreed.org>
     27 Message-ID: <20111201180247.GS899@tracyreed.org>
     28 
     29 On Wed, Nov 30, 2011 at 02:16:24PM -0800, Tracy Reed spake thusly:
     30 > accept my sincere apologies. Please submit the contents of
     31 > /home/treed/.sup/exception-log.txt and a brief report of the
     32 > circumstances to http://masanjin.net/sup-bugs/ so that I might
     33 > address this problem. Thank you!
     34 
     35 I forgot to mention: I tried to submit these to the bug tracker mentioned in
     36 the stack trace but the url 404's. I just realized perhaps I should be
     37 submitting this stuff to sup-devel so I will subscribe there and will post some
     38 of these questions and the stack traces over there.
     39 
     40 -- 
     41 Tracy Reed
     42 -------------- next part --------------
     43 A non-text attachment was scrubbed...
     44 Name: not available
     45 Type: application/pgp-signature
     46 Size: 189 bytes
     47 Desc: not available
     48 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20111201/12e40955/attachment.bin>
     49 
     50 From john.wyzer@gmx.de  Mon Dec  5 12:45:24 2011
     51 From: john.wyzer@gmx.de (John Wyzer)
     52 Date: Mon, 05 Dec 2011 18:45:24 +0100
     53 Subject: [sup-talk] reproducable crashing / encoding problem
     54 Message-ID: <1323106615-sup-792@localhost>
     55 
     56 I'm on sup/mainline:master (commit aaa852fbe513291144301bb31af50558177f891c) 
     57 Opening one specific thread, sup always crashes with the attached trace.
     58 Best regards! :-)
     59 
     60 ----------------------------------------------------------------
     61 --- Encoding::CompatibilityError from thread: load messages for thread-view-mode
     62 incompatible character encodings: UTF-8 and ASCII-8BIT
     63 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:789:in `message_patina_lines'
     64 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:863:in `chunk_to_lines'
     65 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:721:in `block in regen_text'
     66 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:68:in `block in each'
     67 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:176:in `block (2 levels) in each_with_stuff'
     68 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:176:in `block (2 levels) in each_with_stuff'
     69 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:174:in `each_with_stuff'
     70 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:176:in `block in each_with_stuff'
     71 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:175:in `each'
     72 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:175:in `each_with_stuff'
     73 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:176:in `block in each_with_stuff'
     74 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:175:in `each'
     75 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:175:in `each_with_stuff'
     76 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:67:in `each'
     77 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:710:in `regen_text'
     78 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:172:in `buffer='
     79 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/buffer.rb:388:in `spawn'
     80 (eval):1:in `spawn'
     81 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:120:in `block in select'
     82 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup.rb:79:in `block in reporting_thread'
     83 
     84 From jomat+sup-talk@jmt.gr  Mon Dec  5 14:36:28 2011
     85 From: jomat+sup-talk@jmt.gr (jomat+sup-talk at jmt.gr)
     86 Date: Mon, 05 Dec 2011 19:36:28 +0000
     87 Subject: [sup-talk] reproducable crashing / encoding problem
     88 In-Reply-To: <1323106615-sup-792@localhost>
     89 References: <1323106615-sup-792@localhost>
     90 Message-ID: <1323113200-sup-9566@v2.zyria.de>
     91 
     92 Excerpts from John Wyzer's message of 2011-12-05 17:45:24 +0000:
     93 > I'm on sup/mainline:master (commit aaa852fbe513291144301bb31af50558177f891c) 
     94 
     95 Same here: aaa852fbe513291144301bb31af50558177f891c
     96 
     97 > Opening one specific thread, sup always crashes with the attached trace.
     98 > Best regards! :-)
     99 > 
    100 > ----------------------------------------------------------------
    101 > --- Encoding::CompatibilityError from thread: load messages for thread-view-mode
    102 > incompatible character encodings: UTF-8 and ASCII-8BIT
    103 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:789:in `message_patina_lines'
    104 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:863:in `chunk_to_lines'
    105 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:721:in `block in regen_text'
    106 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:68:in `block in each'
    107 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:176:in `block (2 levels) in each_with_stuff'
    108 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:176:in `block (2 levels) in each_with_stuff'
    109 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:174:in `each_with_stuff'
    110 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:176:in `block in each_with_stuff'
    111 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:175:in `each'
    112 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:175:in `each_with_stuff'
    113 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:176:in `block in each_with_stuff'
    114 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:175:in `each'
    115 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:175:in `each_with_stuff'
    116 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:67:in `each'
    117 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:710:in `regen_text'
    118 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:172:in `buffer='
    119 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/buffer.rb:388:in `spawn'
    120 > (eval):1:in `spawn'
    121 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:120:in `block in select'
    122 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup.rb:79:in `block in reporting_thread'
    123 
    124 Could be related to a problem I recently encountered when forwarding a
    125 specific message. Upon pressing 'y' to send it, sup does this:
    126 
    127 [2011-12-05 19:21:16 +0000] ERROR: oh crap, an exception
    128 ----------------------------------------------------------------
    129 I'm very sorry. It seems that an error occurred in Sup. Please
    130 accept my sincere apologies. Please submit the contents of
    131 /home/jomat/.sup/exception-log.txt and a brief report of the 
    132 circumstances to http://masanjin.net/sup-bugs/ so that I might
    133 address this problem. Thank you!
    134                            
    135 Sincerely,                 
    136 William                    
    137 ----------------------------------------------------------------
    138 --- Encoding::CompatibilityError from thread: main
    139 incompatible character encodings: UTF-8 and ASCII-8BIT
    140 /var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/serialize.rb:112:in
    141 `serialize_low'
    142 /var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/serialize.rb:99:in `block
    143 in serialize_low'
    144 /var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/message.rb:155:in `block in
    145 each_part'
    146 /var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/message.rb:154:in `each'
    147 /var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/message.rb:154:in
    148 `each_part'
    149 /var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/serialize.rb:96:in
    150 `serialize_low'
    151 /var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/serialize.rb:63:in
    152 `serialize'
    153 /var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/message.rb:146:in `to_s'
    154 /home/jomat/sup/lib/sup/modes/edit-message-mode.rb:455:in `puts'
    155 /home/jomat/sup/lib/sup/modes/edit-message-mode.rb:455:in `block in
    156 send_message'
    157 /home/jomat/sup/lib/sup/modes/edit-message-mode.rb:455:in `popen'
    158 /home/jomat/sup/lib/sup/modes/edit-message-mode.rb:455:in `send_message'
    159 /home/jomat/sup/lib/sup/mode.rb:59:in `handle_input'
    160 /home/jomat/sup/lib/sup/buffer.rb:278:in `handle_input'
    161 ./bin/sup:271:in `<module:Redwood>'
    162 ./bin/sup:80:in `<main>
    163 
    164 
    165 Didn't find time yet to remove the sensible stuff of the message to attach
    166 it to the report, but it contains umlauts.
    167 
    168 cu,
    169 jomat
    170 
    171 From jason.oconal@ieee.org  Fri Dec  9 22:08:30 2011
    172 From: jason.oconal@ieee.org (Jason O'Conal)
    173 Date: Sat, 10 Dec 2011 13:38:30 +1030
    174 Subject: [sup-talk] (no subject)
    175 Message-ID: <CAFMfzmCP+dHNY5n8He9ZOYPx6xDtAh2BC82O94cekf-P8r6TXw@mail.gmail.com>
    176 
    177 Hi,
    178 
    179 I've been having trouble getting sup to work with my gmail account
    180 downloaded by offlineimap. I have set up everything according to the
    181 tutorial available at
    182 http://sup.rubyforge.org/wiki/wiki.pl?GmailOfflineImapSmtp
    183 
    184 I can't get sup-sync to run. I get the following error message:
    185 
    186 /usr/lib/ruby/1.8/yaml.rb:133:in `transfer': invalid subclass (TypeError)
    187         from /usr/lib/ruby/1.8/yaml.rb:133:in `node_import'
    188         from /usr/lib/ruby/1.8/yaml.rb:133:in `load'
    189         from /usr/lib/ruby/1.8/yaml.rb:133:in `load'
    190         from /usr/lib/ruby/1.8/yaml.rb:144:in `load_file'
    191         from /usr/lib/ruby/1.8/yaml.rb:143:in `open'
    192         from /usr/lib/ruby/1.8/yaml.rb:143:in `load_file'
    193         from /usr/lib64/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:136:in
    194 `load_yaml_obj'
    195         from /usr/lib64/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:266:in
    196 `load_config'
    197         from /usr/lib64/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:157:in `start'
    198         from /usr/lib64/ruby/gems/1.8/gems/sup-0.12.1/bin/sup-sync:80
    199         from /usr/bin/sup-sync:19:in `load'
    200         from /usr/bin/sup-sync:19
    201 
    202 I have tried to search for others with this error, but can't find
    203 anything relevant (tried only using folders without spaces to no
    204 avail). Any ideas?
    205 
    206 
    207 Kind regards,
    208 
    209 Jason O'Conal
    210 
    211 From dmishd@gmail.com  Sat Dec 17 13:47:29 2011
    212 From: dmishd@gmail.com (Hamish D)
    213 Date: Sat, 17 Dec 2011 18:47:29 +0000
    214 Subject: [sup-talk] exception --- RuntimeError from thread: poll after
    215  loading inbox
    216 In-Reply-To: <1320868149-sup-368@qwerzila>
    217 References: <56777.143.205.193.62.1320657425.squirrel@lavabit.com>
    218 	<1320700740-sup-9219@tilus.net>
    219 	<1929.143.205.216.123.1320746264.squirrel@lavabit.com>
    220 	<CABKe4Mut=UnKFBt91UxgJu5NxOJ57iQPv464K=e5mS_jQUn1tA@mail.gmail.com>
    221 	<1320868149-sup-368@qwerzila>
    222 Message-ID: <CAOxvSbe1v3qPmu=7DBVdOnJ4Pang809fuLdN8T=85Q6gjia92w@mail.gmail.com>
    223 
    224 >> bin/sup-sync:11: warning: method redefined; discarding old to_s
    225 >> /home/gaute/dev/ruby/sup.git/lib/sup.rb:18:in `id': wrong id called on
    226 >
    227 > This seems to be due to the new yamler 'psych', by requiring the old one
    228 > 'sych' before 'yaml' it can be loaded.
    229 >
    230 > The proper fix is to expect content to be represented the way 'psych'
    231 > does it. This is not the same as the old way.
    232 >
    233 > Also the gem spec date was in the wrong format, see both attached
    234 > patches.
    235 
    236 Both patches applied to next.
    237 
    238 Hamish
    239 
    240 From alex.shulgin@gmail.com  Fri Dec 23 10:31:08 2011
    241 From: alex.shulgin@gmail.com (Alex Shulgin)
    242 Date: Fri, 23 Dec 2011 17:31:08 +0200
    243 Subject: [sup-talk] Sup crashes when loading a message
    244 Message-ID: <CAM-UEKQWwyGzHcJ=QtA+8yYYi2cipHACB+TB+_3aSp0VfPzohg@mail.gmail.com>
    245 
    246 Got this crash today:
    247 
    248 --- NoMethodError from thread: periodic poll
    249 undefined method `downcase' for nil:NilClass
    250 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/rmail-1.0.0/lib/rmail/header.rb:537:in
    251 `content_type'
    252 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/message.rb:427:in
    253 `message_to_chunks'
    254 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/message.rb:427:in
    255 `map'
    256 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/message.rb:427:in
    257 `message_to_chunks'
    258 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/message.rb:259:in
    259 `load_from_source!'
    260 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/message.rb:328:in
    261 `build_from_source'
    262 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:158:in
    263 `poll_from'
    264 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/mbox.rb:143:in
    265 `poll'
    266 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:155:in
    267 `poll_from'
    268 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:113:in
    269 `do_poll'
    270 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:103:in
    271 `each'
    272 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:103:in
    273 `do_poll'
    274 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:102:in
    275 `synchronize'
    276 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:102:in
    277 `do_poll'
    278 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/util.rb:609:in
    279 `send'
    280 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/util.rb:609:in
    281 `method_missing'
    282 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/modes/poll-mode.rb:15:in
    283 `poll'
    284 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:49:in
    285 `poll_with_sources'
    286 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:68:in `poll'
    287 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:86:in
    288 `start'
    289 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup.rb:78:in
    290 `reporting_thread'
    291 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup.rb:76:in
    292 `initialize'
    293 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup.rb:76:in `new'
    294 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup.rb:76:in
    295 `reporting_thread'
    296 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:83:in
    297 `start'
    298 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/util.rb:609:in
    299 `send'
    300 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/util.rb:609:in
    301 `method_missing'
    302 /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/bin/sup:222
    303 /home/ash/.rvm/gems/ruby-1.8.7-p352/bin/sup:19:in `load'
    304 /home/ash/.rvm/gems/ruby-1.8.7-p352/bin/sup:19
    305 
    306 Seems like rmail doesn't really like an empty "Content-Type: " header:
    307 
    308 rmail/header.rb:
    309     def content_type(default = nil)
    310       if value = self['content-type']
    311 	value.strip.split(/\s*;\s*/)[0].downcase  # <== crashes on value=""
    312       else
    313 	if block_given?
    314           yield
    315         else
    316           default
    317         end
    318       end
    319     end
    320 
    321 Adding (... || "") before downcase seems to help this crash.
    322