Subject: [sup-talk] sup crashes on sending emails

From: "Ruthard Baudach" <[email-masked]>
Date: Sat, 27 Nov 2010 18:05:45 +0100

I've installed sup 0.11 using rubygem and ruby 1.8.

sup crashes whenever I send an email, exception.log shows:

--- TypeError from thread: main
can't convert nil into String
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/mbox/loader.rb:117:in  
`exists?'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/mbox/loader.rb:117:in  
`store_message'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/util.rb:610:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/util.rb:610:in `__pass'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/util.rb:597:in  
`method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/sent.rb:28:in  
`write_sent_message'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/util.rb:570:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/util.rb:570:in  
`method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/modes/edit-message-mode.rb:346:in  
`send_message'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/modes/resume-mode.rb:37:in  
`send_message'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/modes/thread-view-mode.rb:428:in  
`send_draft'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/mode.rb:59:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/mode.rb:59:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/buffer.rb:279:in  
`handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/bin/sup:279
/usr/bin/sup-mail:19:in `load'
/usr/bin/sup-mail:19

I've found this on http://masanjin.net/sup-bugs/ marked as "solved", but  
could not find any hints how to solve this problem.

Ruthard

-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Adam Lloyd <[email-masked]>
Date: Sat, 27 Nov 2010 14:02:51 -0500

> /usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/mbox/loader.rb:117:in  

*snip*

> could not find any hints how to solve this problem.

The problem is that store_message tries to access @filename, which was
presumably removed at some point in favor of @path.

Just replacing @filename with @path in lines 117 and 118 of the file
mentioned in the trace will fix it.  It is also fixed in git.

-Adam