bodyparts 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bodyparts.gemspec +2 -2
  3. data/lib/bodyparts.rb +3 -3
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
data/bodyparts.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bodyparts}
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Max Ogden"]
12
- s.date = %q{2010-06-11}
12
+ s.date = %q{2010-06-14}
13
13
  s.description = %q{Separates new messages from included reply chains in the body of emails}
14
14
  s.email = %q{max@maxogden.com}
15
15
  s.extra_rdoc_files = [
data/lib/bodyparts.rb CHANGED
@@ -23,10 +23,10 @@ class BodyParts
23
23
  def self.extract_mail_attributes(mail_object)
24
24
  message_id = mail_object['message_id']
25
25
  x_mailer = mail_object['x-mailer']
26
- if mail_object.find_first_mime_type('text/html')
27
- body = mail_object.html_part.body.raw_source
28
- else
26
+ if mail_object.find_first_mime_type('text/plain')
29
27
  body = mail_object.text_part.body.raw_source
28
+ else
29
+ body = mail_object.body.raw_source
30
30
  end
31
31
  {:message_id => message_id, :x_mailer => x_mailer, :body => body}
32
32
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 5
9
- version: 0.1.5
8
+ - 6
9
+ version: 0.1.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Max Ogden
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-11 00:00:00 -07:00
17
+ date: 2010-06-14 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency