mailcvt 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/lib/mail_cleaner.rb CHANGED
@@ -11,6 +11,11 @@ class MailCleaner
11
11
  removeok
12
12
  move 'tocc'
13
13
  move 'others'
14
+
15
+ delmout '.grep'
16
+ delmout '.fok'
17
+ delmout '.ftocc'
18
+ delmout '.fothers'
14
19
  end
15
20
 
16
21
  def cleantocc
@@ -18,6 +23,10 @@ class MailCleaner
18
23
 
19
24
  d = @oh.getdir("dtocc")
20
25
  FileUtils.rm_r(d) if Dir.exists?(d)
26
+
27
+ delmout '.grep.tocc'
28
+ delmout '.mtocc'
29
+ delmout '.ftocc2'
21
30
  end
22
31
 
23
32
  def removeok
@@ -34,6 +43,12 @@ class MailCleaner
34
43
  end
35
44
  end
36
45
 
46
+ def delmout(ext)
47
+ mout = @oh.getmout(ext)
48
+ return unless File.exist?(fok)
49
+ File.delete mout
50
+ end
51
+
37
52
  def move(suffix)
38
53
  f = @oh.getmout(".f#{suffix}")
39
54
  return unless File.exist?(f)
@@ -1,3 +1,3 @@
1
1
  module Mailcvt
2
- VERSION = '0.2.8'
2
+ VERSION = '0.2.9'
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.8
4
+ version: 0.2.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-29 00:00:00.000000000 Z
12
+ date: 2013-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -121,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  segments:
123
123
  - 0
124
- hash: -980665892697883924
124
+ hash: 4318484599299501152
125
125
  required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  none: false
127
127
  requirements:
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  segments:
132
132
  - 0
133
- hash: -980665892697883924
133
+ hash: 4318484599299501152
134
134
  requirements: []
135
135
  rubyforge_project:
136
136
  rubygems_version: 1.8.25