bounce_email 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b8e9f25b36dce53b33d25f917cb84b495bbc3c9
4
- data.tar.gz: 35776ace384b6a8f76074fcb223112d4feae01e6
3
+ metadata.gz: 7ce130775edb415b7fbe1bb73dd5ede660400cb3
4
+ data.tar.gz: 47ec5c5d48f725c357f7a25056e5b71c3533307b
5
5
  SHA512:
6
- metadata.gz: e6ece81090252f87b3be36f0b3c86530e1dcf910cde99463977a8fa13a7d6b8c14ae0eac94b4b915d38c27dacb15c5727796cc21a36c79658c978f50fc01a67b
7
- data.tar.gz: 0c4f261ede847ad967883971895d8206da080729664061d79d28c6aa58f5d63d824dd0d1903bdecc542dda9c2ed76631533a00fa8b2c11e2fb808a0a37471df3
6
+ metadata.gz: 959c42432cc8e1e0d321da76835bf58cec27b7bcb2a60814ffaa298ed4e2a736f19d4d1ef0d90a31ed1025e389cf93d42cf8ae835ae25640a9d9d73a49f15cc2
7
+ data.tar.gz: b865011fe075ab2f8aaf3d265a766c58746844c7c858f8e97e5094f018e80d9f64760b149237da001f28699294cd63071ca6ccb5918202dffb627197e61b879c
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.7
2
+
3
+ * Extract and save the bounced email's date field in the email original (@blainejohnson17, livebg/bounce_email#11)
4
+
1
5
  ## 0.2.6
2
6
 
3
7
  * Replaced 'X-Original-To' header with 'X-Failed-Recipients' (@saghaulor, livebg/bounce_email#10)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.7
data/lib/bounce_email.rb CHANGED
@@ -253,6 +253,8 @@ module BounceEmail
253
253
 
254
254
  original.subject ||= extract_field_from(original, /^Subject:/)
255
255
 
256
+ original.date ||= extract_field_from(original, /^Date:/)
257
+
256
258
  original
257
259
  end
258
260
 
@@ -161,6 +161,12 @@ class BounceEmailTest < Test::Unit::TestCase
161
161
  assert_not_nil bounce.original_mail.from
162
162
  assert_not_nil bounce.original_mail.subject
163
163
  end
164
+
165
+ def test_original_message_with_date
166
+ bounce = test_bounce('tt_bounce_04')
167
+ assert_not_nil bounce.original_mail.date
168
+ end
169
+
164
170
  private
165
171
 
166
172
  def load_email(name, prefix = 'fixtures')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bounce_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Bielohlawek
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-05-05 00:00:00.000000000 Z
14
+ date: 2017-05-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: mail
@@ -41,6 +41,20 @@ dependencies:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0'
44
+ - !ruby/object:Gem::Dependency
45
+ name: test-unit
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
44
58
  description: fork of whatcould/bounce-email incl. patches from wakiki, peterpunk,
45
59
  agowan & rngtng
46
60
  email: tobi@rngtng.com
@@ -126,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
140
  version: '0'
127
141
  requirements: []
128
142
  rubyforge_project:
129
- rubygems_version: 2.2.2
143
+ rubygems_version: 2.5.2
130
144
  signing_key:
131
145
  specification_version: 4
132
146
  summary: Detect kind of bounced email