* [sup-talk] error with Sup while sending mails
[not found] <956dbab30907210305s1127ace3s315c8505c9c38141@mail.gmail.com>
@ 2009-07-28 18:55 ` William Morgan
2009-07-29 10:27 ` Marc Weber
1 sibling, 0 replies; 2+ messages in thread
From: William Morgan @ 2009-07-28 18:55 UTC (permalink / raw)
Hi Flo,
Reformatted excerpts from paro 462's message of 2009-07-21:
> --- NoMethodError from thread: poll after loading inbox
> undefined method `to_indexable_s' for nil:NilClass
> ./lib/sup/index.rb:243:in `sync_message'
Interesting. You're the second person who's reported this. It has
something to do with parsing a particular date. I'm not sure if it's
locale-related... maybe.
Can you try applying the following patch? I'm hoping that the debugging
output prefixed with XX will provide a clue.
--- a/lib/sup/message.rb
+++ b/lib/sup/message.rb
@@ -92,11 +92,14 @@ class Message
begin
Time.parse date
rescue ArgumentError => e
- #Redwood::log "faking mangled date header for #{@id} (orig #{header['date'].inspect} gave error: #{e.message})"
+ Redwood::log "faking mangled date header for #{@id} (orig #{header['date'].inspect} gave error: #{e.message})"
Time.now
end
- else
- #Redwood::log "faking non-existent date header for #{@id}"
+ end
+
+ @date ||= begin
+ Redwood::log "XX original header was #{header["date"].inspect}"
+ Redwood::log "XX faking non-existent date header for #{@id}"
Time.now
end
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [sup-talk] error with Sup while sending mails
[not found] <956dbab30907210305s1127ace3s315c8505c9c38141@mail.gmail.com>
2009-07-28 18:55 ` [sup-talk] error with Sup while sending mails William Morgan
@ 2009-07-29 10:27 ` Marc Weber
1 sibling, 0 replies; 2+ messages in thread
From: Marc Weber @ 2009-07-29 10:27 UTC (permalink / raw)
> undefined method `to_indexable_s' for nil:NilClass
> ./lib/sup/index.rb:243:in `sync_message'
> ./lib/sup/util.rb:519:in `send'
sup-sync -c did it for me. I don't know what was wrong at all though.
This will take some time.
If you open index.rb:243 you may want to add a
p m where m is the message object? Maybe the output will give you more
insight as well.
I hope sync helps you as well.
Marc Weber
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-29 10:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <956dbab30907210305s1127ace3s315c8505c9c38141@mail.gmail.com>
2009-07-28 18:55 ` [sup-talk] error with Sup while sending mails William Morgan
2009-07-29 10:27 ` Marc Weber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox