Subject: [sup-talk] Invalid character on import

From: [email-masked] (Nico Schottelius)
Date: Mon, 13 Jul 2009 11:01:10 +0200

Hello!

I'm trying to import my current maildir into sup, but
it fails with the following error:

--------------------------------------------------------------------------------
[Mon Jul 13 09:33:17 +0200 2009] scanning maildir /home/spieler/Maildir/INBOX...
[Mon Jul 13 09:33:17 +0200 2009] no poll on cur.  mtime on indicates no new messages.
[Mon Jul 13 09:33:17 +0200 2009] no poll on new.  mtime on indicates no new messages.
[Mon Jul 13 09:33:18 +0200 2009] done scanning maildir
## read 13228m (about 84%) @ 6.1m/s. 0:36:04 elapsed, about 0:06:49 remaining
## read 13306m (about 84%) @ 6.1m/s. 0:36:19 elapsed, about 0:06:48 remaining
[Mon Jul 13 09:33:34 +0200 2009] unlocking /home/spieler/.sup/lock...
/home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/util.rb:647:in `iconv': " " (Iconv::InvalidCharacter)
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/util.rb:647:in `easy_decode'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/message.rb:430:in `message_to_chunks'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/message.rb:209:in `load_from_source!'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/poll.rb:151:in `add_messages_from'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/maildir.rb:130:in `each'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/maildir.rb:127:in `upto'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/maildir.rb:127:in `each'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/util.rb:552:in `send'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/util.rb:552:in `__pass'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/util.rb:539:in `method_missing'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/poll.rb:141:in `add_messages_from'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/util.rb:513:in `send'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/lib/sup/util.rb:513:in `method_missing'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/bin/sup-sync:140
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/bin/sup-sync:135:in `each'
	from /home/spieler/.gem/ruby/1.8/gems/sup-0.8.1/bin/sup-sync:135
	from /home/spieler/.gem/ruby/1.8/bin/sup-sync:19:in `load'
	from /home/spieler/.gem/ruby/1.8/bin/sup-sync:19
--------------------------------------------------------------------------------

Any idea what's wrong here? sup's installed via gem install.

Nico

---

From: [email-masked] (Nicolas Pouillard)
Date: Mon, 13 Jul 2009 22:17:26 +0200

> Hello!
Hello,

> it fails with the following error:

The fix is trivial, I've submitted a merge request for exactly this:

http://gitorious.org/~ertai/sup/clone-by-ertai

-- 
Nicolas Pouillard
http://nicolaspouillard.fr

---

From: [email-masked] (William Morgan)
Date: Mon, 27 Jul 2009 10:26:06 -0700

> http://gitorious.org/~ertai/sup/clone-by-ertai

This has been applied to master. Thanks!
-- 
William <wmorgan-sup at masanjin.net>