Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from blinkin/patch-1
Browse files Browse the repository at this point in the history
Update imaprowl.rb
  • Loading branch information
takuo committed Aug 27, 2012
2 parents ae45b1d + 51a2807 commit 758a0f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imaprowl.rb
Expand Up @@ -153,7 +153,7 @@ def mime_decode( input, out_charset = 'utf-8' )
charset = $1 charset = $1
enc = $2.upcase enc = $2.upcase
word = $3 word = $3
debug "Decode MIME hedaer: Charset: #{charset}, Encode: #{enc}, Word: #{word}" debug "Decode MIME header: Charset: #{charset}, Encode: #{enc}, Word: #{word}"
word = word.unpack( { "B"=>"m*", "Q"=>"M*" }[enc] ).first word = word.unpack( { "B"=>"m*", "Q"=>"M*" }[enc] ).first
# Iconv.conv( out_charset + "//IGNORE", charset, word ) # Iconv.conv( out_charset + "//IGNORE", charset, word )
word.encode( out_charset, charset, :undef=>:replace, :invalid=>:replace ) word.encode( out_charset, charset, :undef=>:replace, :invalid=>:replace )
Expand Down

0 comments on commit 758a0f4

Please sign in to comment.