mail 2.2.10 → 2.2.11

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of mail might be problematic. Click here for more details.

@@ -1,3 +1,12 @@
1
+ == Tue 30 Nov 2010 00:36:11 UTC Mikel Lindsaar <mikel@rubyx.com>
2
+
3
+ * Allow address lists to handle and ignore empty addresses (Donald Ball)
4
+ * Allow address lists to handle repeating strings of commas (Donald Ball)
5
+ * Noting pending test for malformed folding whitespace (Donald Ball)
6
+ * Adding spec to test error email for missing addresses in to header (Mikel)
7
+ * Bumping i18n dependency to ~> 0.5.0
8
+ * Version bump to 2.2.11 and gem release
9
+
1
10
  == Wed 17 Nov 2010 00:43:31 UTC Mikel Lindsaar <mikel@rubyx.com>
2
11
 
3
12
  * Added test retriever and updated documentation (Donald Ball)
@@ -183,7 +192,7 @@
183
192
 
184
193
  == Sun Jan 28 02:59:34 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
185
194
 
186
- * Removed old method of setting delivery_method
195
+ * Removed old method of setting delivery_method
187
196
 
188
197
  == Mon Jan 25 11:36:13 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
189
198
 
@@ -222,13 +231,13 @@
222
231
  * Message now adds multipart/mixed as the content type if nothing is set and there are parts to the message
223
232
  * Added #display_names and #addrs to all address fields. #addrs returns the actual Mail::Address object for each address in the field.
224
233
  * Body should call to_s on given input... incase someone gave it an IO.readlines result (Array)
225
- *
234
+ *
226
235
 
227
236
  == Thu Jan 21 05:27:17 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
228
237
 
229
238
  * Version bump to 2.0.2
230
239
  * Major change to attachments, add_file now only accepts
231
- {:filename => 'full/path/to/file.png'} or
240
+ {:filename => 'full/path/to/file.png'} or
232
241
  {:filename => 'file.png', :content => 'string of file content'}
233
242
  you can also now do mail.attachments['filename.png'] = File.read('path/to/file.png')
234
243
  which is nice too!
@@ -303,8 +312,8 @@
303
312
 
304
313
  == Sun Dec 27 09:51:27 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
305
314
 
306
- * Version bump to 1.4 because now :to_s calls :decoded for all fields and body
307
- while :to_s calls :encoded for Message and Header containers. Makes sense...
315
+ * Version bump to 1.4 because now :to_s calls :decoded for all fields and body
316
+ while :to_s calls :encoded for Message and Header containers. Makes sense...
308
317
  really.
309
318
 
310
319
  == Sun Dec 27 07:30:02 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
@@ -413,7 +422,7 @@
413
422
 
414
423
  == Fri Nov 6 22:52:10 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
415
424
 
416
- * a6ef2b4: Fixed Issue #4 - Can't call encoding on non existant
425
+ * a6ef2b4: Fixed Issue #4 - Can't call encoding on non existant
417
426
  content-transer-encoding header
418
427
 
419
428
  == Fri Nov 6 00:51:55 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
@@ -454,7 +463,7 @@
454
463
  == Sun Nov 1 12:00:00 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
455
464
 
456
465
  * handle OpenSSL::SSL::VERIFY_NONE returning 0 <jlindley>
457
- * doing Mail.new { content_type [text, plain, { charset => UTF-8 }] } is now
466
+ * doing Mail.new { content_type [text, plain, { charset => UTF-8 }] } is now
458
467
  possible (content type accepts an array) <mikel>
459
468
 
460
469
  == Sat Oct 31 11:00:41 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
@@ -1,4 +1,4 @@
1
- patch:10
1
+ patch:11
2
2
  major:2
3
3
  build:
4
4
  minor:2
@@ -13,7 +13,7 @@ module Mail
13
13
 
14
14
  module PrimaryAddress0
15
15
  def addresses
16
- [first_addr] + other_addr.elements.map { |o| o.addr_value }
16
+ ([first_addr] + other_addr.elements.map { |o| o.addr_value }).reject { |e| e.empty? }
17
17
  end
18
18
  end
19
19
 
@@ -61,4 +61,4 @@ module Mail
61
61
  include AddressLists
62
62
  end
63
63
 
64
- end
64
+ end
@@ -6,7 +6,7 @@ module Mail
6
6
  rule primary_address
7
7
  address_list {
8
8
  def addresses
9
- [first_addr] + other_addr.elements.map { |o| o.addr_value }
9
+ ([first_addr] + other_addr.elements.map { |o| o.addr_value }).reject { |e| e.empty? }
10
10
  end
11
11
  } / obs_addr_list {
12
12
  def addresses
@@ -16,4 +16,4 @@ module Mail
16
16
  end
17
17
 
18
18
  end
19
- end
19
+ end
@@ -2866,7 +2866,7 @@ module Mail
2866
2866
 
2867
2867
  module AddressList0
2868
2868
  def addr_value
2869
- elements[2]
2869
+ elements[3]
2870
2870
  end
2871
2871
  end
2872
2872
 
@@ -2892,52 +2892,75 @@ module Mail
2892
2892
  end
2893
2893
 
2894
2894
  i0, s0 = index, []
2895
- r1 = _nt_address
2895
+ r2 = _nt_address
2896
+ if r2
2897
+ r1 = r2
2898
+ else
2899
+ r1 = instantiate_node(SyntaxNode,input, index...index)
2900
+ end
2896
2901
  s0 << r1
2897
2902
  if r1
2898
- s2, i2 = [], index
2903
+ s3, i3 = [], index
2899
2904
  loop do
2900
- i3, s3 = index, []
2901
- if has_terminal?(",", false, index)
2902
- r4 = instantiate_node(SyntaxNode,input, index...(index + 1))
2903
- @index += 1
2904
- else
2905
- terminal_parse_failure(",")
2906
- r4 = nil
2905
+ i4, s4 = index, []
2906
+ s5, i5 = [], index
2907
+ loop do
2908
+ r6 = _nt_FWS
2909
+ if r6
2910
+ s5 << r6
2911
+ else
2912
+ break
2913
+ end
2907
2914
  end
2908
- s3 << r4
2909
- if r4
2910
- s5, i5 = [], index
2911
- loop do
2912
- r6 = _nt_FWS
2913
- if r6
2914
- s5 << r6
2915
- else
2916
- break
2917
- end
2915
+ r5 = instantiate_node(SyntaxNode,input, i5...index, s5)
2916
+ s4 << r5
2917
+ if r5
2918
+ if has_terminal?(",", false, index)
2919
+ r7 = instantiate_node(SyntaxNode,input, index...(index + 1))
2920
+ @index += 1
2921
+ else
2922
+ terminal_parse_failure(",")
2923
+ r7 = nil
2918
2924
  end
2919
- r5 = instantiate_node(SyntaxNode,input, i5...index, s5)
2920
- s3 << r5
2921
- if r5
2922
- r7 = _nt_address
2923
- s3 << r7
2925
+ s4 << r7
2926
+ if r7
2927
+ s8, i8 = [], index
2928
+ loop do
2929
+ r9 = _nt_FWS
2930
+ if r9
2931
+ s8 << r9
2932
+ else
2933
+ break
2934
+ end
2935
+ end
2936
+ r8 = instantiate_node(SyntaxNode,input, i8...index, s8)
2937
+ s4 << r8
2938
+ if r8
2939
+ r11 = _nt_address
2940
+ if r11
2941
+ r10 = r11
2942
+ else
2943
+ r10 = instantiate_node(SyntaxNode,input, index...index)
2944
+ end
2945
+ s4 << r10
2946
+ end
2924
2947
  end
2925
2948
  end
2926
- if s3.last
2927
- r3 = instantiate_node(SyntaxNode,input, i3...index, s3)
2928
- r3.extend(AddressList0)
2949
+ if s4.last
2950
+ r4 = instantiate_node(SyntaxNode,input, i4...index, s4)
2951
+ r4.extend(AddressList0)
2929
2952
  else
2930
- @index = i3
2931
- r3 = nil
2953
+ @index = i4
2954
+ r4 = nil
2932
2955
  end
2933
- if r3
2934
- s2 << r3
2956
+ if r4
2957
+ s3 << r4
2935
2958
  else
2936
2959
  break
2937
2960
  end
2938
2961
  end
2939
- r2 = instantiate_node(SyntaxNode,input, i2...index, s2)
2940
- s0 << r2
2962
+ r3 = instantiate_node(SyntaxNode,input, i3...index, s3)
2963
+ s0 << r3
2941
2964
  end
2942
2965
  if s0.last
2943
2966
  r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
@@ -5315,4 +5338,4 @@ module Mail
5315
5338
  include RFC2822
5316
5339
  end
5317
5340
 
5318
- end
5341
+ end
@@ -265,7 +265,7 @@ module Mail
265
265
  end
266
266
 
267
267
  rule address_list
268
- first_addr:address other_addr:("," FWS* addr_value:address)*
268
+ first_addr:address? other_addr:(FWS* "," FWS* addr_value:address?)*
269
269
  end
270
270
 
271
271
  rule date_time
@@ -407,4 +407,4 @@ module Mail
407
407
 
408
408
 
409
409
  end
410
- end
410
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 10
10
- version: 2.2.10
9
+ - 11
10
+ version: 2.2.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mikel Lindsaar
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-17 00:00:00 +11:00
18
+ date: 2010-11-30 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -73,12 +73,12 @@ dependencies:
73
73
  requirements:
74
74
  - - ~>
75
75
  - !ruby/object:Gem::Version
76
- hash: 13
76
+ hash: 11
77
77
  segments:
78
78
  - 0
79
- - 4
80
- - 1
81
- version: 0.4.1
79
+ - 5
80
+ - 0
81
+ version: 0.5.0
82
82
  type: :runtime
83
83
  version_requirements: *id004
84
84
  description: A really Ruby Mail handler.