Subject: [sup-talk] exception while syncing

From: [email-masked] (Manish Sapariya)
Date: Thu, 01 Nov 2007 10:29:59 +0530

Hi All,
Is this known issue? If yes, can anyone suggest workaroud, if no
where can log bug for this issue? Please let me know if you need
more info in any case.

I saw following warnings before the crash.
[Thu Nov 01 10:11:12 +0530 2007] warning: error decoding message body
from "us-ascii": "\222t waste time. C"...
[Thu Nov 01 10:11:12 +0530 2007] ignoring erroneous message at
mbox:/data/personel/mails/ImapMail/INBOX#25586133: no message-id field
in header {} (source mbox:/data/personel/mails/ImapMail/INBOX offset
25586133)
[Thu Nov 01 10:11:56 +0530 2007] warning: error decoding message body
from "iso-8859-8-i": invalid encoding ("UTF-8", ""iso-8859-8-i"")
[Thu Nov 01 10:12:01 +0530 2007] warning: error decoding message body
from "us-ascii": "\222ll save up to 5"...
## 2344 (32.39%) read; 0:01:00 elapsed; 0:02:05 remaining
[Thu Nov 01 10:12:08 +0530 2007] warning: error decoding message body
from "ks_c_5601-1987": invalid encoding ("UTF-8", ""ks_c_5601-1987"")

/usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/multipart.rb:159:in
`[]=': can't modify frozen string (TypeError)
        from
/usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/multipart.rb:159:in
`read_chunk_low'
        from
/usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/multipart.rb:94:in
`loop'
        from
/usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/multipart.rb:94:in
`read_chunk_low'
        from
/usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/multipart.rb:76:in
`read_chunk'
        from
/usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser/pushbackreader.rb:85:in 

`read'
        from
/usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser.rb:285:in
`parse_singlepart_body'
        from
/usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser.rb:198:in
`parse_low'
        from
/usr/lib/ruby/gems/1.8/gems/rmail-0.17/lib/rmail/parser.rb:275:in
`parse_multipart_body'
         ... 26 levels...
        from /usr/lib/ruby/gems/1.8/gems/sup-0.1/bin/sup-sync:128:in `each'
        from /usr/lib/ruby/gems/1.8/gems/sup-0.1/bin/sup-sync:128
        from /usr/bin/sup-sync:16:in `load'
        from /usr/bin/sup-sync:16

Regards,
Manish

---

From: [email-masked] (Colin Bell)
Date: Thu, 01 Nov 2007 16:33:26 +1100

> `[]=': can't modify frozen string (TypeError)

Probably this problem from the FAQ
http://sup.rubyforge.org/FAQ.txt

P: I get some error message from Rubymail about frozen strings when
   importing messages with attachments.
S: The current solution is to directly modify RubyMail.
  Change line 159 of   multipart.rb to:
     chunk = chunk[0..start]
   This is because RubyMail hasn't been updated since like Ruby 1.8.2.
   Please bug Matt Lickey.