mailcvt 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/runmailcvt +4 -6
  2. data/lib/mailcvt/version.rb +1 -1
  3. metadata +4 -4
@@ -41,10 +41,9 @@ if [ -f $grepout ]; then
41
41
  fi
42
42
 
43
43
  copyonly1 $maildir
44
- allmail=$maildir/*
45
44
  grepexp="^Date: |^Message-ID: |^Subject: |^From: |^To: |^Cc: |^Content-Disposition: attachment;"
46
- echo "[$(now)] grep -i -E -A9 \"$grepexp\" $allmail > $grepout"
47
- grep -i -E -A9 "$grepexp" $allmail > $grepout
45
+ echo "[$(now)] find $maildir | xargs grep -i -E -A9 \"$grepexp\" > $grepout"
46
+ find $maildir | xargs grep -i -E -A9 "$grepexp" > $grepout
48
47
 
49
48
  bindir=$(cd $(dirname $0) && pwd)
50
49
  rubydir=$(cd $(dirname $(dirname $(dirname $bindir))) && pwd)
@@ -59,9 +58,8 @@ mailcvt clean $dailydir $timestamp
59
58
  dtocc="$dailydir/dtocc$timestamp"
60
59
  if [ -d $dtocc ]; then
61
60
  copyonly1 $dtocc
62
- alldtocc="$dtocc/*"
63
- echo "[$(now)] grep -i -E -A300 \"^To: |^Cc: \" $alldtocc > $grepout.tocc"
64
- grep -i -E -A300 "^To: |^Cc: " $alldtocc > "$grepout.tocc"
61
+ echo "[$(now)] find $dtocc | xargs grep -i -E -A300 \"^To: |^Cc: \" > $grepout.tocc"
62
+ find $dtocc | xargs grep -i -E -A300 "^To: |^Cc: " > "$grepout.tocc"
65
63
 
66
64
  echo "[$(now)] mailcvt parsetocc $dailydir $timestamp"
67
65
  mailcvt parsetocc $dailydir $timestamp
@@ -1,3 +1,3 @@
1
1
  module Mailcvt
2
- VERSION = '0.2.6'
2
+ VERSION = '0.2.7'
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.6
4
+ version: 0.2.7
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-28 00:00:00.000000000 Z
12
+ date: 2013-08-29 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: 268617747074203837
124
+ hash: -1598305982966611965
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: 268617747074203837
133
+ hash: -1598305982966611965
134
134
  requirements: []
135
135
  rubyforge_project:
136
136
  rubygems_version: 1.8.25