Subject: [sup-talk] sup crash on message load from imap source

From: [email-masked] (Ian Taylor)
Date: Fri, 19 Oct 2007 15:33:08 -0400

--- NoMethodError at Fri Oct 19 15:31:45 -0400 2007
undefined method `[]' for nil:NilClass
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/imap.rb:272:in `get_imap_fields'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/imap.rb:114:in `unsynchronized_raw_header'
(eval):3:in `raw_header'
(eval):3:in `synchronize'
(eval):3:in `raw_header'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/imap.rb:105:in `load_header'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/util.rb:431:in `send'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/util.rb:431:in `__pass'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/util.rb:420:in `method_missing'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/message.rb:153:in `load_from_source!'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/modes/thread-index-mode.rb:73:in `select'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/thread.rb:66:in `each'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/thread.rb:161:in `each_with_stuff'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/thread.rb:65:in `each'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/modes/thread-index-mode.rb:73:in `select'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/buffer.rb:587:in `say'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/util.rb:395:in `send'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/util.rb:395:in `method_missing'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/modes/thread-index-mode.rb:72:in `select'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup.rb:69:in `reporting_thread'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup.rb:67:in `initialize'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup.rb:67:in `new'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup.rb:67:in `reporting_thread'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/modes/thread-index-mode.rb:71:in `select'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/mode.rb:52:in `send'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/mode.rb:52:in `handle_input'
/var/lib/gems/1.8/gems/sup-0.1/lib/sup/buffer.rb:193:in `handle_input'
/var/lib/gems/1.8/gems/sup-0.1/bin/sup:195
/var/lib/gems/1.8/bin/sup:16:in `load'
/var/lib/gems/1.8/bin/sup:16

-- 
Ian Taylor

---

From: [email-masked] (William Morgan)
Date: Sat, 27 Oct 2007 12:32:04 -0700

> /var/lib/gems/1.8/gems/sup-0.1/lib/sup/imap.rb:272:in `get_imap_fields'

Looks like this would be triggered on an out-of-sync IMAP source.
Should be fixed in SVN now. Thanks!

-- 
William <wmorgan-sup at masanjin.net>