mbox 0.0.4.5 → 0.0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mbox/mail/content.rb +1 -1
- metadata +2 -2
data/lib/mbox/mail/content.rb
CHANGED
@@ -35,7 +35,7 @@ class Content < Array
|
|
35
35
|
headers = @headers.merge(headers)
|
36
36
|
type = headers[:content_type]
|
37
37
|
|
38
|
-
if type && type.mime && matches = type.mime.match(%r{multipart/(\w+)})
|
38
|
+
if type && type.mime && type.boundary && matches = type.mime.match(%r{multipart/(\w+)})
|
39
39
|
text.sub(/^.*?--#{type.boundary}\n/m, '').sub(/--#{type.boundary}--$/m, '').split("--#{type.boundary}\n").each {|part|
|
40
40
|
stream = StringIO.new(part)
|
41
41
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.4.
|
4
|
+
version: 0.0.4.6
|
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: 2012-
|
12
|
+
date: 2012-08-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: call-me
|