mlist 0.1.22 → 0.1.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG +4 -0
  2. data/VERSION.yml +1 -1
  3. data/lib/mlist/email.rb +3 -3
  4. metadata +4 -4
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ *0.1.23 [Enhancement] (2011-01-07)
2
+
3
+ * A small change to reduce likelyhood of nil match when extracting to address on bounce. [aiwilliams]
4
+
1
5
  *0.1.20 [Enhancement] (2010-09-01)
2
6
 
3
7
  * Fixed bug where delete would not work with select from table update occurs in (sql error). [aiwilliams]
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :minor: 1
3
3
  :build:
4
- :patch: 22
4
+ :patch: 23
5
5
  :major: 0
@@ -27,7 +27,7 @@ module MList
27
27
  # Answers the usable destination addresses of the email.
28
28
  #
29
29
  def list_addresses
30
- bounce? ? tmail.header_string('to').match(/\Amlist-(.*)\Z/)[1] : recipient_addresses
30
+ bounce? ? tmail.header_string('to').sub(/\Amlist-/, '') : recipient_addresses
31
31
  end
32
32
 
33
33
  # Answers true if this email is a bounce.
@@ -35,7 +35,7 @@ module MList
35
35
  # TODO Delegate to the email_server's bounce detector.
36
36
  #
37
37
  def bounce?
38
- tmail.header_string('to') =~ /mlist-/
38
+ tmail.header_string('to') =~ /\Amlist-/
39
39
  end
40
40
 
41
41
  def tmail=(tmail)
@@ -68,4 +68,4 @@ module MList
68
68
  super || (method.to_s !~ /=\Z/ && tmail.respond_to?(method))
69
69
  end
70
70
  end
71
- end
71
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mlist
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 22
10
- version: 0.1.22
9
+ - 23
10
+ version: 0.1.23
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Williams
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-15 00:00:00 -05:00
18
+ date: 2011-01-07 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency