mailcvt 0.2.23 → 0.2.24
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/encoded_word.rb +1 -5
- data/lib/mailcvt/version.rb +1 -1
- metadata +1 -1
data/lib/encoded_word.rb
CHANGED
@@ -15,10 +15,7 @@ class EncodedWord
|
|
15
15
|
Dir.glob(File.join(@inputdir, File.join('**', '*.mlog'))).select do |f|
|
16
16
|
puts f
|
17
17
|
File.open(f + '.plain', 'w') do |out|
|
18
|
-
File.open(f) do |
|
19
|
-
f.each_line do |line|
|
20
|
-
line = line.encode('utf-8', file.external_encoding.name,
|
21
|
-
:undef=>:replace, :invalid=>:replace)
|
18
|
+
File.open(f, 'r:us-ascii:utf-8').each_line do |line|
|
22
19
|
parts = mysplit(line)
|
23
20
|
newparts = []
|
24
21
|
newparts << format_date(parts[0]) #date
|
@@ -31,7 +28,6 @@ class EncodedWord
|
|
31
28
|
out.puts newparts.join("\t")
|
32
29
|
end
|
33
30
|
end
|
34
|
-
end
|
35
31
|
end
|
36
32
|
end
|
37
33
|
|
data/lib/mailcvt/version.rb
CHANGED