From: marco-oweber@gmx.de (Marc Weber)
Subject: [sup-talk] Exception
Date: Mon, 27 Jul 2009 18:55:46 +0200 [thread overview]
Message-ID: <1248713299-sup-9062@nixos> (raw)
In-Reply-To: <1248712764-sup-736@entry>
You're right. I fixed it today by running sup-sync. (I was still reading
my mails that's why I didn't respond earlier).
I used p m at that location to get a message output saying something
about offset is out of sync. Then I tried sup-sync -c.
The strange thing is that I didn't open the mbox file using another
program such as mutt. Maybe a locking issue or such ? I'm using
procmail.
I was surprised how easy it was to find the cause after starting looking
into it.
Thanks for taking the time sending this patch!
Marc Weber
Excerpts from William Morgan's message of Mon Jul 27 18:41:05 +0200 2009:
> 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
>
next prev parent reply other threads:[~2009-07-27 16:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-24 16:35 Marc Weber
2009-07-27 16:41 ` William Morgan
2009-07-27 16:55 ` Marc Weber [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-09-11 16:58 [sup-talk] exception Daniel Goldin
2009-04-26 0:47 [sup-talk] Exception Edward Z. Yang
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=1248713299-sup-9062@nixos \
--to=marco-oweber@gmx.de \
/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