Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] sup crashes on sending emails
@ 2010-11-27 17:05 Ruthard Baudach
  2010-11-27 19:02 ` Adam Lloyd
  0 siblings, 1 reply; 2+ messages in thread
From: Ruthard Baudach @ 2010-11-27 17:05 UTC (permalink / raw)
  To: sup-talk

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
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [sup-talk] sup crashes on sending emails
  2010-11-27 17:05 [sup-talk] sup crashes on sending emails Ruthard Baudach
@ 2010-11-27 19:02 ` Adam Lloyd
  0 siblings, 0 replies; 2+ messages in thread
From: Adam Lloyd @ 2010-11-27 19:02 UTC (permalink / raw)
  To: sup-talk


[-- Attachment #1.1: Type: text/plain, Size: 835 bytes --]

Excerpts from Ruthard Baudach's message of 2010-11-27 12:05:45 -0500:
> 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'

*snip*

> I've found this on http://masanjin.net/sup-bugs/ marked as "solved", but  
> 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

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-27 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-27 17:05 [sup-talk] sup crashes on sending emails Ruthard Baudach
2010-11-27 19:02 ` Adam Lloyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox