mailcvt 0.2.40 → 0.2.41
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/bin/mailcvt +9 -0
- data/lib/encoded_word.rb +4 -0
- data/lib/mailcvt/version.rb +1 -1
- metadata +1 -1
data/bin/mailcvt
CHANGED
@@ -128,6 +128,15 @@ command :decode do |c|
|
|
128
128
|
end
|
129
129
|
end
|
130
130
|
|
131
|
+
command :combine do |c|
|
132
|
+
c.action do |global_options,options,args|
|
133
|
+
err = "combine usage: mailcvt combine [mailcvt-output]"
|
134
|
+
raise err unless args.length == 1
|
135
|
+
ew = EncodedWord.new(args[0])
|
136
|
+
ew.combine
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
131
140
|
pre do |global,command,options,args|
|
132
141
|
# Pre logic here
|
133
142
|
# Return true to proceed; false to abort and not call the
|
data/lib/encoded_word.rb
CHANGED
@@ -17,6 +17,10 @@ class EncodedWord
|
|
17
17
|
combine_all_mlog_plain
|
18
18
|
end
|
19
19
|
|
20
|
+
def combine
|
21
|
+
combine_all_mlog_plain
|
22
|
+
end
|
23
|
+
|
20
24
|
def combine_all_mlog_plain
|
21
25
|
File.open(File.join(@inputdir, 'all_mlog.csv'), 'w:utf-8') do |out|
|
22
26
|
out.puts '"key","","","date","from","to","cc","bcc","subject","attach"'
|
data/lib/mailcvt/version.rb
CHANGED