mailcvt 0.2.19 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/encoded_word.rb +5 -8
- data/lib/mailcvt/version.rb +1 -1
- metadata +1 -1
data/lib/encoded_word.rb
CHANGED
@@ -4,17 +4,14 @@ require 'date'
|
|
4
4
|
|
5
5
|
class EncodedWord
|
6
6
|
def initialize(inputdir)
|
7
|
-
|
7
|
+
if File::ALT_SEPARATOR
|
8
|
+
@inputdir = inputdir.gsub(File::ALT_SEPARATOR, File::SEPARATOR)
|
9
|
+
else
|
10
|
+
@inputdir = inputdir
|
11
|
+
end
|
8
12
|
end
|
9
13
|
|
10
14
|
def decode
|
11
|
-
=begin
|
12
|
-
Dir.foreach(@inputdir) do |dir|
|
13
|
-
next if dir == '.' or dir == '..'
|
14
|
-
path = File.join(@inputdir, dir)
|
15
|
-
next unless File.directory?(path)
|
16
|
-
=end
|
17
|
-
|
18
15
|
Dir.glob(File.join(@inputdir, File.join('**', '*.mlog'))).select do |f|
|
19
16
|
puts f
|
20
17
|
File.open(f + '.plain', 'w') do |out|
|
data/lib/mailcvt/version.rb
CHANGED