Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Sup Backtrace While Polling
@ 2008-08-10  9:53 Nicolas Pouillard
  2008-08-10 18:31 ` William Morgan
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Pouillard @ 2008-08-10  9:53 UTC (permalink / raw)


Hi all,

Today sup stopped working for me. Indeed while sup is polling I get
the attached backtrace. I have no idea about the reason but suspect
that some email is ill formatted and I will try to find it by editing
my mbox.

To edit my mbox I would like to use mutt, however I don't know how to
go to newer emails, currently that's older first and I have a 950MB
mbox so don't want to scroll...

-- 
Nicolas Pouillard aka Ertai
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: exception-log.txt
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080810/7aba198c/attachment-0001.txt>


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

* [sup-talk] Sup Backtrace While Polling
  2008-08-10  9:53 [sup-talk] Sup Backtrace While Polling Nicolas Pouillard
@ 2008-08-10 18:31 ` William Morgan
  2008-08-10 19:43   ` Nicolas Pouillard
  0 siblings, 1 reply; 5+ messages in thread
From: William Morgan @ 2008-08-10 18:31 UTC (permalink / raw)


Reformatted excerpts from nicolas.pouillard's message of 2008-08-10:
> --- TypeError from thread: poll after loading inbox
> can't modify frozen string
> /opt/local/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/multipart.rb:159:in `[]='

Try changing line 159 of multipart.rb to:
        chunk = chunk[0..start]

RMail hasn't been updated since like Ruby 1.8.2.
-- 
William <wmorgan-sup at masanjin.net>


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

* [sup-talk] Sup Backtrace While Polling
  2008-08-10 18:31 ` William Morgan
@ 2008-08-10 19:43   ` Nicolas Pouillard
  2008-08-10 20:36     ` Marcus Williams
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Pouillard @ 2008-08-10 19:43 UTC (permalink / raw)


Excerpts from William Morgan's message of Sun Aug 10 20:31:17 +0200 2008:
> Reformatted excerpts from nicolas.pouillard's message of 2008-08-10:
> > --- TypeError from thread: poll after loading inbox
> > can't modify frozen string
> > /opt/local/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/multipart.rb:159:in `[]='
> 
> Try changing line 159 of multipart.rb to:
>         chunk = chunk[0..start]

Many thanks!!! I'm back to sup!

> RMail hasn't been updated since like Ruby 1.8.2.

That's sad. Is RMail active again?

Otherwise sup should really consider having a personal version of it.

BTW another question, how can I split my mbox file and sync sup again?

Cheers,

-- 
Nicolas Pouillard aka Ertai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080810/a7013445/attachment.bin>


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

* [sup-talk] Sup Backtrace While Polling
  2008-08-10 19:43   ` Nicolas Pouillard
@ 2008-08-10 20:36     ` Marcus Williams
  2008-08-13  3:15       ` William Morgan
  0 siblings, 1 reply; 5+ messages in thread
From: Marcus Williams @ 2008-08-10 20:36 UTC (permalink / raw)


On 10.8.2008, Nicolas Pouillard wrote:
> BTW another question, how can I split my mbox file and sync sup again?

Use ruby and rmail ;)

... actually I'm not joking I just split a 600mb mbox with rmail into
month-year archives and it worked really well. Use the
RMail::Mailbox.parse_mbox method to parse you file into raw messages
and then you can use RMail::Parser.read(raw).header.date to give you
something you can turn into a date/month string.

Use sup-dump before you split, and then restore from that after you
set up all the mboxes as your new sources with sup-add.

HTH

Marcus


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

* [sup-talk] Sup Backtrace While Polling
  2008-08-10 20:36     ` Marcus Williams
@ 2008-08-13  3:15       ` William Morgan
  0 siblings, 0 replies; 5+ messages in thread
From: William Morgan @ 2008-08-13  3:15 UTC (permalink / raw)


Reformatted excerpts from Marcus Williams's message of 2008-08-10:
> On 10.8.2008, Nicolas Pouillard wrote:
> > BTW another question, how can I split my mbox file and sync sup
> > again?
> 
> Use ruby and rmail ;)
[snip]
> Use sup-dump before you split, and then restore from that after you
> set up all the mboxes as your new sources with sup-add.

Yep, this is pretty much what I would recommend too.
-- 
William <wmorgan-sup at masanjin.net>


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

end of thread, other threads:[~2008-08-13  3:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-10  9:53 [sup-talk] Sup Backtrace While Polling Nicolas Pouillard
2008-08-10 18:31 ` William Morgan
2008-08-10 19:43   ` Nicolas Pouillard
2008-08-10 20:36     ` Marcus Williams
2008-08-13  3:15       ` William Morgan

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