Line 322 is producing Nils is various contexts in r630:
On opening the inbox-mode:
The problem was: ''private method `format'' called for
nil:NilClass'' (error type
NoMethodError)
A backtrace follows:
./sup/trunk/lib/sup/message.rb:328:in `message_to_chunks'': private
method
`format'' called for nil:NilClass (NoMethodError)
from ./sup/trunk/lib/sup/message.rb:322:in `message_to_chunks''
from ./sup/trunk/lib/sup/message.rb:322:in `map''
from ./sup/trunk/lib/sup/message.rb:322:in `message_to_chunks''
from ./sup/trunk/lib/sup/message.rb:154:in `load_from_source!''
from ./sup/trunk/lib/sup/message.rb:207:in `content''
from ./sup/trunk/lib/sup/index.rb:172:in `sync_message''
from ./sup/trunk/lib/sup/util.rb:395:in `send''
from ./sup/trunk/lib/sup/util.rb:395:in `method_missing''
... 32 levels...
from ./sup/trunk/lib/sup.rb:68:in `reporting_thread''
from ./sup/trunk/lib/sup/modes/thread-index-mode.rb:342:in
`load_n_threads_background''
from ./sup/trunk/lib/sup/modes/thread-index-mode.rb:392:in
`load_threads''
from sup/trunk/bin/sup:187
On sup-syncing a large IMAP folder:
/usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/utils.rb:48:in
`base64_decode'':
undefined method `unpack'' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/message.rb:117:in
`decode''
from ./sup/trunk/lib/sup/message-chunks.rb:50:in `initialize''
from ./sup/trunk/lib/sup/message.rb:347:in `new''
from ./sup/trunk/lib/sup/message.rb:347:in `message_to_chunks''
from ./sup/trunk/lib/sup/message.rb:322:in `message_to_chunks''
from ./sup/trunk/lib/sup/message.rb:322:in `map''
from ./sup/trunk/lib/sup/message.rb:322:in `message_to_chunks''
from ./sup/trunk/lib/sup/message.rb:154:in `load_from_source!''
... 13 levels...
from ./sup/trunk/lib/sup/util.rb:395:in `method_missing''
from sup/trunk/bin/sup-sync:133
from sup/trunk/bin/sup-sync:128:in `each''
from sup/trunk/bin/sup-sync:128
--
Christopher Warrington <chrisw at rice.edu>
(away from his normal computer)
Excerpts from Christopher Warrington''s message of Sat Oct 27 15:59:03 -0700 2007:> On opening the inbox-mode: > The problem was: ''private method `format'' called for nil:NilClass'' (error type > NoMethodError)Weird. It looks like RubyMail can''t find a From: line in a message/rfc822 attachment. If you get a chance, send me the message in question so I can play with it. I think this should be special-cased as of r634 though.> On sup-syncing a large IMAP folder: > /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/utils.rb:48:in `base64_decode'': > undefined method `unpack'' for nil:NilClass (NoMethodError) > from /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/message.rb:117:in > `decode''Weird. It looks like RubyMail is having trouble parsing an attachment. Same as above: should be special-cased in r634, and send me the message if you get a chance. Thanks! -- William <wmorgan-sup at masanjin.net>
Excerpts from William Morgan''s message of Sat Oct 27 20:04:17 -0500 2007:> Excerpts from Christopher Warrington''s message of Sat Oct 27 15:59:03 -0700 2007: >> On opening the inbox-mode: The problem was: ''private method `format'' >> called for nil:NilClass'' (error type NoMethodError) > Weird. It looks like RubyMail can''t find a From: line in a > message/rfc822 attachment. If you get a chance, send me the message in > question so I can play with it. I think this should be special-cased > as of r634 though.Yeah. It works in r639. I''d send you the message, but I don''t know which one was causing the error. If it happens again, I will.>> On sup-syncing a large IMAP folder: >> /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/utils.rb:48:in `base64_decode'': >> undefined method `unpack'' for nil:NilClass (NoMethodError) >> from /usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/message.rb:117:in >> `decode'' > Weird. It looks like RubyMail is having trouble parsing an attachment. > Same as above: should be special-cased in r634, and send me the > message if you get a chance.This too appears to be working in r639. Thanks. -- Christopher Warrington <chrisw at rice.edu>