mailcvt 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/lock-runmailcvt +5 -1
- data/bin/runmailcvt +5 -1
- data/lib/mailcvt/version.rb +1 -1
- metadata +3 -3
data/bin/lock-runmailcvt
CHANGED
@@ -3,7 +3,11 @@
|
|
3
3
|
log=hourly-runmailcvt.log
|
4
4
|
lock="runmailcvt.lock"
|
5
5
|
if mkdir $lock &> /dev/null; then
|
6
|
-
|
6
|
+
if [ $3 == "-D" ]; then
|
7
|
+
./bin/runmailcvt $1 $2 $3 >> $log 2>&1
|
8
|
+
else
|
9
|
+
runmailcvt $1 $2 >> $log 2>&1
|
10
|
+
fi
|
7
11
|
rmdir $lock
|
8
12
|
else
|
9
13
|
echo "lock failed. abort at $(date +'%Y/%m/%d %T')." >> $log
|
data/bin/runmailcvt
CHANGED
@@ -29,8 +29,12 @@ echo "[$(now)] start grep output to $fngrep."
|
|
29
29
|
grep -E -A9 "^Date: |^Message-ID: |^Subject: |^From: |^To: |^Cc: |^Content-Disposition: attachment;" $allmail > $fngrep
|
30
30
|
echo "[$(now)] grep finished."
|
31
31
|
|
32
|
-
bundle exec bin/mailcvt read $1 $2
|
33
32
|
|
33
|
+
if [ $3 == "-D" ]; then
|
34
|
+
bundle exec bin/mailcvt read $1 $2
|
35
|
+
else
|
36
|
+
mailcvt read $1 $2
|
37
|
+
fi
|
34
38
|
|
35
39
|
echo "[$(now)] runmailcvt finished."
|
36
40
|
echo "-------------------------------------------------------------------------------"
|
data/lib/mailcvt/version.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
segments:
|
121
121
|
- 0
|
122
|
-
hash:
|
122
|
+
hash: 2973861151489649846
|
123
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
124
|
none: false
|
125
125
|
requirements:
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
segments:
|
130
130
|
- 0
|
131
|
-
hash:
|
131
|
+
hash: 2973861151489649846
|
132
132
|
requirements: []
|
133
133
|
rubyforge_project:
|
134
134
|
rubygems_version: 1.8.25
|