mailcvt 0.1.39 → 0.1.40

Sign up to get free protection for your applications and to get access to all the features.
data/lib/grep_mail.rb CHANGED
@@ -3,9 +3,10 @@
3
3
  require 'log_helper'
4
4
 
5
5
  class GrepMail
6
- def initialize(file, lines)
6
+ def initialize(file, lines, maxval = 9)
7
7
  @pcontent= file.length + 1
8
8
  grouplines(lines)
9
+ @maxval = maxval
9
10
  end
10
11
 
11
12
  def grouplines(lines)
@@ -38,7 +39,7 @@ class GrepMail
38
39
  def finish_multiline_value
39
40
  return if @groups.length == 0
40
41
  curgrp = @groups[-1]
41
- curgrp[:valend] = true if curgrp[:afterlines] and curgrp[:afterlines].length < 9
42
+ curgrp[:valend] = true if curgrp[:afterlines] and curgrp[:afterlines].length < maxval
42
43
  end
43
44
 
44
45
  def keyvalue(line)
@@ -1,3 +1,3 @@
1
1
  module Mailcvt
2
- VERSION = '0.1.39'
2
+ VERSION = '0.1.40'
3
3
  end
data/lib/to_cc_parser.rb CHANGED
@@ -59,7 +59,7 @@ class ToCcParser
59
59
  def convert(curfile, lines)
60
60
  return if lines.length == 0
61
61
 
62
- gm = GrepMail.new(curfile, lines)
62
+ gm = GrepMail.new(curfile, lines, 500)
63
63
  mlog = gm.tolog
64
64
  if gm.istocc?
65
65
  @fh.outputtocc2(curfile)
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.39
4
+ version: 0.1.40
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -120,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  segments:
122
122
  - 0
123
- hash: 3093012083563024350
123
+ hash: 706312901197128306
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  none: false
126
126
  requirements:
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  segments:
131
131
  - 0
132
- hash: 3093012083563024350
132
+ hash: 706312901197128306
133
133
  requirements: []
134
134
  rubyforge_project:
135
135
  rubygems_version: 1.8.25