vmail 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vmail/message_formatter.rb +5 -1
- data/lib/vmail/version.rb +1 -1
- metadata +2 -2
@@ -34,7 +34,11 @@ module Vmail
|
|
34
34
|
# helper method
|
35
35
|
def find_text_part2(part, content_type)
|
36
36
|
if part.multipart?
|
37
|
-
part.parts.
|
37
|
+
part.parts.
|
38
|
+
map {|p| find_text_part2(p, p.content_type)}.
|
39
|
+
compact.
|
40
|
+
select {|p| !p.attachment?}.
|
41
|
+
first
|
38
42
|
elsif content_type =~ %r[^text/plain] ||
|
39
43
|
content_type =~ %r[text/plain] ||
|
40
44
|
content_type =~ %r[message/rfc]
|
data/lib/vmail/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: vmail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.1.
|
5
|
+
version: 2.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Daniel Choi
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-04 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|