mailcvt 0.2.39 → 0.2.40
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/encoded_word.rb +8 -3
- data/lib/mailcvt/version.rb +1 -1
- metadata +1 -1
data/lib/encoded_word.rb
CHANGED
@@ -28,14 +28,19 @@ class EncodedWord
|
|
28
28
|
date = parts[0]
|
29
29
|
subject = parts[2]
|
30
30
|
from = parts[3]
|
31
|
-
to = parts[4]
|
32
|
-
cc = parts[5]
|
33
|
-
attach = parts[6]
|
31
|
+
to = to_csv_column(parts[4])
|
32
|
+
cc = to_csv_column(parts[5])
|
33
|
+
attach = to_csv_column(parts[6])
|
34
34
|
out.puts %Q("#{key}","","","#{date}","#{from}","#{to}","#{cc}","","#{subject}","#{attach}")
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
39
|
+
|
40
|
+
def to_csv_column(str)
|
41
|
+
return '' unless str and str.length > 0
|
42
|
+
str.gsub("\a", ';')
|
43
|
+
end
|
39
44
|
|
40
45
|
def decode_all_mlog
|
41
46
|
Dir.glob(File.join(@inputdir, File.join('**', '*.mlog'))).select do |f|
|
data/lib/mailcvt/version.rb
CHANGED