[DRE-maint] Bug#683781: sup-mail: crashes when expanding wrapped text
avtobiff at goomba.foo.nu
avtobiff at goomba.foo.nu
Fri Aug 3 21:53:26 UTC 2012
Package: sup-mail
Version: 0.12.1+git20120407.aaa852f-1
Severity: normal
When expanding wrapped text sup-mail chrashes with the following message
--- NoMethodError from thread: main
undefined method `map' for #<String:0x00000003394c18>
/usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:855:in `maybe_wrap_text'
/usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:882:in `chunk_to_lines'
/usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:752:in `block (2 levels) in regen_text'
/usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:741:in `each'
/usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:741:in `block in regen_text'
/usr/lib/ruby/vendor_ruby/sup/thread.rb:68:in `block in each'
/usr/lib/ruby/vendor_ruby/sup/thread.rb:174:in `each_with_stuff'
/usr/lib/ruby/vendor_ruby/sup/thread.rb:67:in `each'
/usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:710:in `regen_text'
/usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:696:in `update'
/usr/lib/ruby/vendor_ruby/sup/modes/thread-view-mode.rb:339:in `activate_chunk'
/usr/lib/ruby/vendor_ruby/sup/mode.rb:59:in `handle_input'
/usr/lib/ruby/vendor_ruby/sup/buffer.rb:278:in `handle_input'
/usr/bin/sup-mail:271:in `<module:Redwood>'
/usr/bin/sup-mail:80:in `<main>'
This is due to the function maybe_wrap_text accepts both Array and String as
the type for the argument. And the somewhat lazy way to treat them both aren't
doable anymore since the migration from Ruby 1.8 to 1.9.
It is an easy fix though just creating an Array if the argument is of type
String.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.9-vs2.3.2.7 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages sup-mail depends on:
ii libxapian-ruby1.9.1 1.2.10-1
ii ruby-chronic 0.6.7-2
ii ruby-eventmachine 0.12.10-3
ii ruby-highline 1.6.13-2
ii ruby-locale 2.0.5-4
ii ruby-lockfile 2.1.0-2
ii ruby-mime-types 1.19-1
ii ruby-ncurses 1.3.1-2
ii ruby-rubymail 1.0.0-1
ii ruby-trollop 1.16.2-3
ii ruby-yajl 1.1.0-1
ii ruby1.9.1 1.9.3.194-1
Versions of packages sup-mail recommends:
ii ruby-gpgme 2.0.0-2
sup-mail suggests no packages.
-- no debconf information
More information about the Pkg-ruby-extras-maintainers
mailing list