mailcvt 0.2.31 → 0.2.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/encoded_word.rb CHANGED
@@ -56,7 +56,19 @@ class EncodedWord
56
56
  newparts << trim_emails(parts[4]) #to
57
57
  newparts << trim_emails(parts[5]) #cc
58
58
  newparts << decode_attaches(parts)
59
- out.puts newparts.join("\t")
59
+ 0.upto(newparts.length-2) do |i|
60
+ begin
61
+ out.write newparts[i]
62
+ out.write "\t"
63
+ rescue
64
+ out.write "\t"
65
+ end
66
+ end
67
+ begin
68
+ out.puts newparts[newparts.length-1]
69
+ rescue
70
+ out.puts ''
71
+ end
60
72
  end
61
73
  end
62
74
  end
@@ -1,3 +1,3 @@
1
1
  module Mailcvt
2
- VERSION = '0.2.31'
2
+ VERSION = '0.2.32'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailcvt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.31
4
+ version: 0.2.32
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: