mew (1:6.4-2) 060_cmew-blob.patch

Summary

 bin/cmew |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

Description: Preventing that Ruby 1.9 stores blob data into id.db
 Reported by Kei Tsuji in [mew-dist 29471] on 2012-03-19, and fixed
 by Tatsuya Kinoshita in [mew-dist 29477] on 2012-03-27.  See also
 Ruby's bug #6206 <http://bugs.ruby-lang.org/issues/6206>.
Origin: upstream, https://github.com/kazu-yamamoto/Mew/commit/015e13fb58e4ad88bb5b756b629963e37117985b

diff --git a/bin/cmew b/bin/cmew
index d44abde..bdd2f99 100755
--- a/bin/cmew
+++ b/bin/cmew
@@ -30,7 +30,7 @@ def mail_header(path)
       break if /^$/ =~ l
       if /^\s+/ !~ l
         (name, value) = l.split(/:\s*/, 2)
-        value = '' if value.nil?
+        value = '' if value.nil? || value.empty?
         @header[name.downcase] = value
       else
         value << $'