bugFeed2imap - Bugs: bug #12431, feed2imap-clean exception on utf8...

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #12431: feed2imap-clean exception on utf8 encoded feeds

Submitted by:  Jamil Djadala <djadala>
Submitted on:  Sat 11 Oct 2008 09:49:23 AM UTC  
Votes:  10  
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Thu 14 Apr 2011 03:57:48 AM UTC, comment #1:

I have the same error, with v1.0 from Debian squeeze:

/usr/lib/ruby/1.8/feed2imap/imap.rb:144:in `cleanup': undefined method `toISO_8859_1' for "M\303\266bius Music Box":String (NoMethodError)
from /usr/lib/ruby/1.8/feed2imap/imap.rb:139:in `each'
from /usr/lib/ruby/1.8/feed2imap/imap.rb:139:in `cleanup'
from /usr/bin/feed2imap-cleaner:30
from /usr/bin/feed2imap-cleaner:29:in `each'
from /usr/bin/feed2imap-cleaner:29

However, if I change the given line to
s = Base64::decode64(s.gsub(/^=\?utf-8\?b\?(.*)\?=$/, '\1'))
without the toISO_8859_1('utf-8') conversion at the end, the output looks fine for me ("Möbius", as expected), with UTF-8 locale on the console.

Roland Hieber <rohieb>
Sat 11 Oct 2008 09:49:23 AM UTC, original submission:

i use feed2imap from Debian lenny.

feed2imap --version
Feed2Imap v.0.9.3

when running feed2imap-clean i get error:

/usr/lib/ruby/1.8/feed2imap/imap.rb:138:in `cleanup': undefined method `toISO_8859_1' for #<String:0xf6f7348c> (NoMethodError)
from /usr/lib/ruby/1.8/feed2imap/imap.rb:133:in `each'
from /usr/lib/ruby/1.8/feed2imap/imap.rb:133:in `cleanup'
from ./feed2imap-cleaner:33
from ./feed2imap-cleaner:32:in `each'
from ./feed2imap-cleaner:32

code where error is:
if s =~ /^=\?utf-8\?b\?/
s = Base64::decode64(s.gsub(/^=\?utf-8\?b\?(.*)\?=$/, '\1')).toISO_8859_1('utf-8')

if i comment those if, i get this output(and no error):

Removing: =?utf-8?b?0L7RidC1INC80LDQu9C60L4g0LfQsCDQk9C70LDQt9Cz0L7Rgw==?= (05-Oct-2008 22:35:31 +0300)
Removing: =?utf-8?b?0Lgg0LfQsCDQldC00LjQvdCx0YPRgNCzINCyINC90Y/QutC+0LvQutC+INGA0LXQtNCw?= (05-Oct-2008 23:02:06 +0300)
Removing: =?utf-8?b?0YPQttCw0YHQvdC+0YLQviA00LXRgtC10L3QtQ==?= (05-Oct-2008 23:36:49 +0300)
Removing: =?utf-8?b?0LLRgNC10LzQtSDQtSDQtNCwINC30LDQv9C+0YfQvdC10Lwg0LTQsCDQv9GA0LjQtdC80LDQvNC1INGA0LDQt9C70LjRh9C90LjRgtC1?= (07-Oct-2008 23:29:30 +0300)
Removing: =?utf-8?b?0LzQvtC00LXRgNC90LjRgtC1INC80LvQsNC00LjRgtC1INC70LXQstC40YLQtQ==?= (07-Oct-2008 23:46:50 +0300)
-- Deleted 5 messages.


Jamil Djadala <djadala>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rohieb (Posted a comment)
  • -unavailable- added by rohieb (Voted in favor of this item)
  • -unavailable- added by shorttoedeagle
  • -unavailable- added by djadala (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 10 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 14 Apr 2011 03:35:45 AM UTCrohiebCarbon-Copy-=>Added rohieb
    Mon 20 Jul 2009 01:12:10 PM UTCshorttoedeagleCarbon-Copy-=>Added shorttoedeagle
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup