From: rick.tessner@gmail.com (Rick Tessner)
Subject: [sup-talk] [PATCH] svn sup "can't convert nil into String" (index.rb)
Date: Tue, 30 Oct 2007 03:24:15 -0700 [thread overview]
Message-ID: <1193739855.10424.7.camel@onnadayr.ca> (raw)
Hi,
I'm using svn sup and just recently started getting the following error
when getting new email without a proper message_id (patch is attached):
The problem was: 'can't convert nil into String' (error type TypeError)
A backtrace follows: /home/rick/sup/lib/sup/index.rb:323:in
`initialize': can't convert nil into String (TypeError)
from /home/rick/sup/lib/sup/index.rb:323:in `new'
from /home/rick/sup/lib/sup/index.rb:323:in `load_entry_for_id'
from /home/rick/sup/lib/sup/util.rb:395:in `send'
from /home/rick/sup/lib/sup/util.rb:395:in `method_missing'
from /home/rick/sup/lib/sup/poll.rb:156:in `add_messages_from'
from /home/rick/sup/lib/sup/imap.rb:178:in `each'
from /home/rick/sup/lib/sup/imap.rb:163:in `upto'
from /home/rick/sup/lib/sup/imap.rb:163:in `each'
... 28 levels...
from /home/rick/sup/lib/sup.rb:68:in `reporting_thread'
from /home/rick/sup/lib/sup/modes/thread-index-mode.rb:372:in
`load_n_threads_background'
from /home/rick/sup/lib/sup/modes/thread-index-mode.rb:422:in
`load_threads'
from /home/rick/sup/bin/sup:188
The problem is that the parse_header method is assigning @id the result
of an "if" statement. However, the "else" part of the "if" statement is
always returning the result of Redwood::log (nil) rather than the
"sup-faked" message_id.
--
Rick
rick.tessner at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: message.rb.diff
Type: text/x-patch
Size: 490 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071030/28a2f5be/attachment.bin
next reply other threads:[~2007-10-30 10:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-30 10:24 Rick Tessner [this message]
2007-11-02 2:36 ` William Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1193739855.10424.7.camel@onnadayr.ca \
--to=rick.tessner@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox