aiwilliams-mlist 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ *0.1.6 [Bug Fixes] (March 5, 2009)
2
+
3
+ * Messages are processed even when there are no recipients [aiwilliams]
4
+ * Escaping DQUOTE and \ in email address phrase for some headers [aiwilliams]
5
+
1
6
  *0.1.5 [Solid Basics] (January 17, 2009)
2
7
 
3
8
  * No longer storing the list label in the message subject field, thereby supporting cleaner viewing of threads [aiwilliams]
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 5
3
+ :patch: 6
4
4
  :major: 0
@@ -113,10 +113,6 @@ module MList
113
113
  end
114
114
  alias_method_chain :manager_list=, :dual_type
115
115
 
116
- def process?(message)
117
- !message.recipients.blank?
118
- end
119
-
120
116
  # Distinct footer start marker. It is important to realize that changing
121
117
  # this could be problematic.
122
118
  #
@@ -176,7 +172,6 @@ module MList
176
172
 
177
173
  def process_message(message, options = {})
178
174
  raise MList::DoubleDeliveryError.new(message) unless message.new_record?
179
- return message unless process?(message)
180
175
 
181
176
  options = {
182
177
  :search_parent => true,
@@ -54,7 +54,7 @@ module MList
54
54
  elsif address =~ /^(\S.*)\s+(<.*>)$/
55
55
  address = $2
56
56
  phrase = quote_if_necessary(charset, $1.gsub(/^['"](.*)['"]$/, '\1'))
57
- "\"#{phrase}\" #{address}"
57
+ "\"#{phrase.gsub(/\\/, '\&\&').gsub('"', '\\"')}\" #{address}"
58
58
  else
59
59
  address
60
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aiwilliams-mlist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Williams
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-17 00:00:00 -08:00
12
+ date: 2009-03-03 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15