Subject: [sup-talk] Sup Backtrace While Polling

From: [email-masked] (Nicolas Pouillard)
Date: Sun, 10 Aug 2008 11:53:04 +0200

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>

---

From: [email-masked] (William Morgan)
Date: Sun, 10 Aug 2008 11:31:17 -0700

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>

---

From: [email-masked] (Nicolas Pouillard)
Date: Sun, 10 Aug 2008 21:43:09 +0200

> Try changing line 159 of multipart.rb to:

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,

-------------- 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>

---

From: [email-masked] (Marcus Williams)
Date: Sun, 10 Aug 2008 21:36:00 +0100

> 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

---

From: [email-masked] (William Morgan)
Date: Tue, 12 Aug 2008 20:15:51 -0700

> > BTW another question, how can I split my mbox file and sync sup
[snip]
> 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>