mail 2.2.3 → 2.2.4

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.

Files changed (103) hide show
  1. data/lib/VERSION +4 -0
  2. data/lib/mail.rbc +1151 -0
  3. data/lib/mail/attachments_list.rbc +1983 -0
  4. data/lib/mail/body.rbc +3809 -0
  5. data/lib/mail/configuration.rbc +1112 -0
  6. data/lib/mail/core_extensions/nil.rbc +244 -0
  7. data/lib/mail/core_extensions/string.rbc +0 -0
  8. data/lib/mail/elements.rbc +362 -0
  9. data/lib/mail/elements/address.rbc +4112 -0
  10. data/lib/mail/elements/address_list.rbc +1309 -0
  11. data/lib/mail/elements/content_disposition_element.rbc +701 -0
  12. data/lib/mail/elements/content_location_element.rbc +573 -0
  13. data/lib/mail/elements/content_transfer_encoding_element.rbc +535 -0
  14. data/lib/mail/elements/content_type_element.rbc +786 -0
  15. data/lib/mail/elements/date_time_element.rbc +583 -0
  16. data/lib/mail/elements/envelope_from_element.rbc +771 -0
  17. data/lib/mail/elements/message_ids_element.rbc +740 -0
  18. data/lib/mail/elements/mime_version_element.rbc +583 -0
  19. data/lib/mail/elements/phrase_list.rbc +562 -0
  20. data/lib/mail/elements/received_element.rbc +725 -0
  21. data/lib/mail/encodings.rbc +0 -0
  22. data/lib/mail/encodings/7bit.rbc +538 -0
  23. data/lib/mail/encodings/8bit.rbc +541 -0
  24. data/lib/mail/encodings/base64.rbc +629 -0
  25. data/lib/mail/encodings/binary.rbc +529 -0
  26. data/lib/mail/encodings/quoted_printable.rbc +766 -0
  27. data/lib/mail/encodings/transfer_encoding.rbc +1134 -0
  28. data/lib/mail/envelope.rbc +719 -0
  29. data/lib/mail/field.rbc +4708 -0
  30. data/lib/mail/field_list.rbc +518 -0
  31. data/lib/mail/fields.rbc +782 -0
  32. data/lib/mail/fields/bcc_field.rbc +564 -0
  33. data/lib/mail/fields/cc_field.rbc +579 -0
  34. data/lib/mail/fields/comments_field.rbc +383 -0
  35. data/lib/mail/fields/common/address_container.rbc +363 -0
  36. data/lib/mail/fields/common/common_address.rbc +3550 -0
  37. data/lib/mail/fields/common/common_date.rbc +908 -0
  38. data/lib/mail/fields/common/common_field.rbc +973 -0
  39. data/lib/mail/fields/common/common_message_id.rbc +1051 -0
  40. data/lib/mail/fields/common/parameter_hash.rbc +1335 -0
  41. data/lib/mail/fields/content_description_field.rbc +396 -0
  42. data/lib/mail/fields/content_disposition_field.rbc +1440 -0
  43. data/lib/mail/fields/content_id_field.rbc +1236 -0
  44. data/lib/mail/fields/content_location_field.rbc +892 -0
  45. data/lib/mail/fields/content_transfer_encoding_field.rbc +1184 -0
  46. data/lib/mail/fields/content_type_field.rbc +3958 -0
  47. data/lib/mail/fields/date_field.rbc +712 -0
  48. data/lib/mail/fields/from_field.rbc +579 -0
  49. data/lib/mail/fields/in_reply_to_field.rbc +579 -0
  50. data/lib/mail/fields/keywords_field.rbc +979 -0
  51. data/lib/mail/fields/message_id_field.rbc +1008 -0
  52. data/lib/mail/fields/mime_version_field.rbc +1107 -0
  53. data/lib/mail/fields/optional_field.rbc +153 -0
  54. data/lib/mail/fields/received_field.rbc +1137 -0
  55. data/lib/mail/fields/references_field.rbc +574 -0
  56. data/lib/mail/fields/reply_to_field.rbc +579 -0
  57. data/lib/mail/fields/resent_bcc_field.rbc +579 -0
  58. data/lib/mail/fields/resent_cc_field.rbc +579 -0
  59. data/lib/mail/fields/resent_date_field.rbc +656 -0
  60. data/lib/mail/fields/resent_from_field.rbc +579 -0
  61. data/lib/mail/fields/resent_message_id_field.rbc +639 -0
  62. data/lib/mail/fields/resent_sender_field.rbc +731 -0
  63. data/lib/mail/fields/resent_to_field.rbc +579 -0
  64. data/lib/mail/fields/return_path_field.rbc +737 -0
  65. data/lib/mail/fields/sender_field.rbc +799 -0
  66. data/lib/mail/fields/structured_field.rbc +671 -0
  67. data/lib/mail/fields/subject_field.rbc +378 -0
  68. data/lib/mail/fields/to_field.rbc +579 -0
  69. data/lib/mail/fields/unstructured_field.rbc +2292 -0
  70. data/lib/mail/header.rbc +3720 -0
  71. data/lib/mail/mail.rbc +2168 -0
  72. data/lib/mail/message.rbc +19034 -0
  73. data/lib/mail/network.rbc +236 -0
  74. data/lib/mail/network/delivery_methods/file_delivery.rbc +722 -0
  75. data/lib/mail/network/delivery_methods/sendmail.rbc +800 -0
  76. data/lib/mail/network/delivery_methods/smtp.rbc +1081 -0
  77. data/lib/mail/network/delivery_methods/test_mailer.rbc +552 -0
  78. data/lib/mail/network/retriever_methods/pop3.rbc +2447 -0
  79. data/lib/mail/parsers/address_lists.rbc +1307 -0
  80. data/lib/mail/parsers/content_disposition.rbc +5968 -0
  81. data/lib/mail/parsers/content_location.rbc +2166 -0
  82. data/lib/mail/parsers/content_transfer_encoding.rbc +2591 -0
  83. data/lib/mail/parsers/content_type.rbc +7949 -0
  84. data/lib/mail/parsers/date_time.rbc +1836 -0
  85. data/lib/mail/parsers/envelope_from.rbc +3106 -0
  86. data/lib/mail/parsers/message_ids.rbc +989 -0
  87. data/lib/mail/parsers/mime_version.rbc +2254 -0
  88. data/lib/mail/parsers/phrase_lists.rbc +989 -0
  89. data/lib/mail/parsers/received.rbc +1267 -0
  90. data/lib/mail/parsers/rfc2045.rbc +5614 -0
  91. data/lib/mail/parsers/rfc2822.rbc +74848 -0
  92. data/lib/mail/parsers/rfc2822_obsolete.rbc +55220 -0
  93. data/lib/mail/part.rbc +2314 -0
  94. data/lib/mail/parts_list.rbc +832 -0
  95. data/lib/mail/patterns.rbc +0 -0
  96. data/lib/mail/utilities.rbc +2377 -0
  97. data/lib/mail/version.rb +11 -5
  98. data/lib/mail/version.rbc +450 -0
  99. data/lib/mail/version_specific/ruby_1_8.rbc +2496 -0
  100. data/lib/tasks/corpus.rake.compiled.rbc +2195 -0
  101. data/lib/tasks/treetop.rake.compiled.rbc +297 -0
  102. metadata +103 -4
  103. data/VERSION.yml +0 -5
@@ -3,13 +3,19 @@ module Mail
3
3
  module VERSION
4
4
 
5
5
  def self.version
6
- YAML.load_file(File.join(File.dirname(__FILE__), '../../', 'VERSION.yml'))
6
+ version_hash = {}
7
+ File.read(File.join(File.dirname(__FILE__), '../', 'VERSION')).each_line do |line|
8
+ type, value = line.chomp.split(":")
9
+ next if type =~ /^\s+$/ || value =~ /^\s+$/
10
+ version_hash[type] = value
11
+ end
12
+ version_hash
7
13
  end
8
14
 
9
- MAJOR = version[:major]
10
- MINOR = version[:minor]
11
- PATCH = version[:patch]
12
- BUILD = version[:build]
15
+ MAJOR = version['major']
16
+ MINOR = version['minor']
17
+ PATCH = version['patch']
18
+ BUILD = version['build']
13
19
 
14
20
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
15
21
  end
@@ -0,0 +1,450 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 28
13
+ 99
14
+ 7
15
+ 0
16
+ 65
17
+ 49
18
+ 1
19
+ 2
20
+ 13
21
+ 99
22
+ 12
23
+ 7
24
+ 2
25
+ 12
26
+ 7
27
+ 3
28
+ 12
29
+ 65
30
+ 12
31
+ 49
32
+ 4
33
+ 4
34
+ 15
35
+ 49
36
+ 2
37
+ 0
38
+ 15
39
+ 2
40
+ 11
41
+ I
42
+ 6
43
+ I
44
+ 0
45
+ I
46
+ 0
47
+ I
48
+ 0
49
+ n
50
+ p
51
+ 5
52
+ x
53
+ 4
54
+ Mail
55
+ x
56
+ 11
57
+ open_module
58
+ x
59
+ 15
60
+ __module_init__
61
+ M
62
+ 1
63
+ n
64
+ n
65
+ x
66
+ 4
67
+ Mail
68
+ i
69
+ 28
70
+ 5
71
+ 66
72
+ 99
73
+ 7
74
+ 0
75
+ 65
76
+ 49
77
+ 1
78
+ 2
79
+ 13
80
+ 99
81
+ 12
82
+ 7
83
+ 2
84
+ 12
85
+ 7
86
+ 3
87
+ 12
88
+ 65
89
+ 12
90
+ 49
91
+ 4
92
+ 4
93
+ 15
94
+ 49
95
+ 2
96
+ 0
97
+ 11
98
+ I
99
+ 6
100
+ I
101
+ 0
102
+ I
103
+ 0
104
+ I
105
+ 0
106
+ n
107
+ p
108
+ 5
109
+ x
110
+ 7
111
+ VERSION
112
+ x
113
+ 11
114
+ open_module
115
+ x
116
+ 15
117
+ __module_init__
118
+ M
119
+ 1
120
+ n
121
+ n
122
+ x
123
+ 7
124
+ VERSION
125
+ i
126
+ 103
127
+ 5
128
+ 66
129
+ 99
130
+ 7
131
+ 0
132
+ 7
133
+ 1
134
+ 65
135
+ 5
136
+ 49
137
+ 2
138
+ 4
139
+ 15
140
+ 65
141
+ 7
142
+ 3
143
+ 5
144
+ 48
145
+ 0
146
+ 7
147
+ 4
148
+ 49
149
+ 5
150
+ 1
151
+ 49
152
+ 6
153
+ 2
154
+ 15
155
+ 65
156
+ 7
157
+ 7
158
+ 5
159
+ 48
160
+ 0
161
+ 7
162
+ 8
163
+ 49
164
+ 5
165
+ 1
166
+ 49
167
+ 6
168
+ 2
169
+ 15
170
+ 65
171
+ 7
172
+ 9
173
+ 5
174
+ 48
175
+ 0
176
+ 7
177
+ 10
178
+ 49
179
+ 5
180
+ 1
181
+ 49
182
+ 6
183
+ 2
184
+ 15
185
+ 65
186
+ 7
187
+ 11
188
+ 5
189
+ 48
190
+ 0
191
+ 7
192
+ 12
193
+ 49
194
+ 5
195
+ 1
196
+ 49
197
+ 6
198
+ 2
199
+ 15
200
+ 65
201
+ 7
202
+ 13
203
+ 45
204
+ 3
205
+ 14
206
+ 45
207
+ 7
208
+ 15
209
+ 45
210
+ 9
211
+ 16
212
+ 45
213
+ 11
214
+ 17
215
+ 35
216
+ 4
217
+ 49
218
+ 18
219
+ 0
220
+ 7
221
+ 19
222
+ 64
223
+ 49
224
+ 20
225
+ 1
226
+ 49
227
+ 6
228
+ 2
229
+ 11
230
+ I
231
+ 6
232
+ I
233
+ 0
234
+ I
235
+ 0
236
+ I
237
+ 0
238
+ n
239
+ p
240
+ 21
241
+ x
242
+ 7
243
+ version
244
+ M
245
+ 1
246
+ n
247
+ n
248
+ x
249
+ 7
250
+ version
251
+ i
252
+ 29
253
+ 45
254
+ 0
255
+ 1
256
+ 45
257
+ 2
258
+ 3
259
+ 45
260
+ 2
261
+ 4
262
+ 65
263
+ 49
264
+ 5
265
+ 0
266
+ 49
267
+ 6
268
+ 1
269
+ 7
270
+ 7
271
+ 64
272
+ 7
273
+ 8
274
+ 64
275
+ 49
276
+ 9
277
+ 3
278
+ 49
279
+ 10
280
+ 1
281
+ 11
282
+ I
283
+ 5
284
+ I
285
+ 0
286
+ I
287
+ 0
288
+ I
289
+ 0
290
+ n
291
+ p
292
+ 11
293
+ x
294
+ 4
295
+ YAML
296
+ n
297
+ x
298
+ 4
299
+ File
300
+ n
301
+ n
302
+ x
303
+ 11
304
+ active_path
305
+ x
306
+ 7
307
+ dirname
308
+ s
309
+ 6
310
+ ../../
311
+ s
312
+ 11
313
+ VERSION.yml
314
+ x
315
+ 4
316
+ join
317
+ x
318
+ 9
319
+ load_file
320
+ p
321
+ 5
322
+ I
323
+ 0
324
+ I
325
+ 5
326
+ I
327
+ 0
328
+ I
329
+ 6
330
+ I
331
+ 1d
332
+ x
333
+ 51
334
+ /Users/mikel/ruby_programs/mail/lib/mail/version.rb
335
+ p
336
+ 0
337
+ x
338
+ 13
339
+ attach_method
340
+ x
341
+ 5
342
+ MAJOR
343
+ x
344
+ 5
345
+ major
346
+ x
347
+ 2
348
+ []
349
+ x
350
+ 9
351
+ const_set
352
+ x
353
+ 5
354
+ MINOR
355
+ x
356
+ 5
357
+ minor
358
+ x
359
+ 5
360
+ PATCH
361
+ x
362
+ 5
363
+ patch
364
+ x
365
+ 5
366
+ BUILD
367
+ x
368
+ 5
369
+ build
370
+ x
371
+ 6
372
+ STRING
373
+ n
374
+ n
375
+ n
376
+ n
377
+ x
378
+ 7
379
+ compact
380
+ s
381
+ 1
382
+ .
383
+ x
384
+ 4
385
+ join
386
+ p
387
+ 13
388
+ I
389
+ 2
390
+ I
391
+ 5
392
+ I
393
+ d
394
+ I
395
+ 9
396
+ I
397
+ 1c
398
+ I
399
+ a
400
+ I
401
+ 2b
402
+ I
403
+ b
404
+ I
405
+ 3a
406
+ I
407
+ c
408
+ I
409
+ 49
410
+ I
411
+ e
412
+ I
413
+ 67
414
+ x
415
+ 51
416
+ /Users/mikel/ruby_programs/mail/lib/mail/version.rb
417
+ p
418
+ 0
419
+ x
420
+ 13
421
+ attach_method
422
+ p
423
+ 3
424
+ I
425
+ 2
426
+ I
427
+ 3
428
+ I
429
+ 1c
430
+ x
431
+ 51
432
+ /Users/mikel/ruby_programs/mail/lib/mail/version.rb
433
+ p
434
+ 0
435
+ x
436
+ 13
437
+ attach_method
438
+ p
439
+ 3
440
+ I
441
+ 0
442
+ I
443
+ 2
444
+ I
445
+ 1c
446
+ x
447
+ 51
448
+ /Users/mikel/ruby_programs/mail/lib/mail/version.rb
449
+ p
450
+ 0