[DRE-maint] Bug#688817: sup-mail: sup-config crashes loading sources

avtobiff at foo.nu avtobiff at foo.nu
Tue Sep 25 22:41:35 UTC 2012


Package: sup-mail
Version: 0.12.1+git20120407.aaa852f-1
Severity: important

If a .sup/sources.yaml already exists sup-config crashes

avtobiff at goomba:~/mail$ sup-config
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
/usr/lib/ruby/vendor_ruby/sup.rb:20:in `id': wrong id called on {"uri"=>"maildir:/home/avtobiff/mail/fripost", "usual"=>true, "archived"=>false, "id"=>1, "labels"=>[]} (RuntimeError)
        from /usr/lib/ruby/vendor_ruby/sup/source.rb:207:in `block (2 levels) in load_sources'
        from /usr/lib/ruby/vendor_ruby/sup/source.rb:207:in `map'
        from /usr/lib/ruby/vendor_ruby/sup/source.rb:207:in `block in load_sources'
        from /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
        from /usr/lib/ruby/vendor_ruby/sup/source.rb:206:in `load_sources'
        from /usr/lib/ruby/vendor_ruby/sup/util.rb:572:in `method_missing'
        from /usr/bin/sup-config:117:in `<main>'


If there is no .sup/sources.yaml sup-config performs a few steps but crashes when loading sources

(...)
What's the full path to the maildir directory? (enter for "/var/mail/avtobiff"):
I'm going to add this source: maildir:/var/mail/avtobiff
Does that look right? (enter for "y"):
Does this source ever receive new messages? (enter for "y"):
Should new messages be automatically archived? (I.e. not appear in your inbox, though
still be accessible via search.) (enter for "n"):
Enter any labels to be automatically added to all messages from this source, separated
by spaces (or 'none'):
Ok, trying to run "/usr/bin/sup-add maildir:/var/mail/avtobiff"...
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
Adding maildir:/var/mail/avtobiff...
[2012-09-25 22:38:29 +0000] Flushing Xapian updates to disk. This may take a while...
Great! Added!

Now, we'll tell Sup where to find all your email.
/usr/lib/ruby/vendor_ruby/sup.rb:20:in `id': wrong id called on {"uri"=>"maildir:/var/mail/avtobiff", "usual"=>true, "archived"=>false, "id"=>1, "labels"=>[]} (RuntimeError)
        from /usr/lib/ruby/vendor_ruby/sup/source.rb:207:in `block (2 levels) in load_sources'
        from /usr/lib/ruby/vendor_ruby/sup/source.rb:207:in `map'
        from /usr/lib/ruby/vendor_ruby/sup/source.rb:207:in `block in load_sources'
        from /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
        from /usr/lib/ruby/vendor_ruby/sup/source.rb:206:in `load_sources'
        from (eval):1:in `load_sources'
        from /usr/bin/sup-config:154:in `<main>'


It works as expected if executed as

    ruby1.8 /usr/bin/sup-config


--
Per


-- 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.12-2
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-5
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