From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Mon, 27 Jul 2009 09:41:05 -0700 Subject: [sup-talk] Exception In-Reply-To: <1248453259-sup-3604@nixos> References: <1248453259-sup-3604@nixos> Message-ID: <1248712764-sup-736@entry> Reformatted excerpts from Marc Weber's message of 2009-07-24: > Hi, when either running sup-sync or sup (without -n) I get this > exception: > > --- NoMethodError from thread: poll after loading inbox > undefined method `to_indexable_s' for nil:NilClass Weird. It looks like a date parsing issue, but I'm having a hard time seeing where the logic fails such that no date field is set. Can you try applying the following patch, and then running sup-sync with -v? I'm hoping that the debugging output prefixed with XX will provide a clue. Thanks! --- 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['da + Redwood::log "faking mangled date header for #{@id} (orig #{header['dat 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