mlist 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ *0.1.10 [Enhancement] (2010-01-11)
2
+
3
+ * Delegating back to the list the question of whether an email has been to the list before (X-BeenThere checking). [aiwilliams]
4
+
1
5
  *0.1.9 [Enhancement] (2009-12-21)
2
6
 
3
7
  * DomainKey-Signature and DKIM-Signature headers will not be published to list so that sending SMTP servers may sign. [aiwilliams]
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 10
2
+ :patch: 11
3
3
  :major: 0
4
4
  :build:
5
5
  :minor: 1
data/lib/mlist/email.rb CHANGED
@@ -21,7 +21,7 @@ module MList
21
21
  # Answers the values of all the X-BeenThere headers.
22
22
  #
23
23
  def been_there_addresses
24
- Array(tmail['x-beenthere']).collect { |e| e.body.downcase }.uniq
24
+ Array(tmail['x-beenthere']).collect { |e| e.body.strip.downcase }.uniq
25
25
  end
26
26
 
27
27
  # Answers the usable destination addresses of the email.
data/lib/mlist/list.rb CHANGED
@@ -22,7 +22,7 @@ module MList
22
22
  # list's address.
23
23
  #
24
24
  def been_here?(email)
25
- email.been_there_addresses.include?(address)
25
+ email.been_there_addresses.include?(address.downcase)
26
26
  end
27
27
 
28
28
  # Answers whether the subscriber is blocked from posting or not. This will
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mlist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Williams