mail 2.6.6 → 2.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +134 -119
  4. data/lib/mail/attachments_list.rb +10 -9
  5. data/lib/mail/body.rb +73 -84
  6. data/lib/mail/check_delivery_params.rb +28 -21
  7. data/lib/mail/configuration.rb +2 -0
  8. data/lib/mail/constants.rb +27 -5
  9. data/lib/mail/elements/address.rb +53 -47
  10. data/lib/mail/elements/address_list.rb +11 -19
  11. data/lib/mail/elements/content_disposition_element.rb +9 -16
  12. data/lib/mail/elements/content_location_element.rb +6 -11
  13. data/lib/mail/elements/content_transfer_encoding_element.rb +6 -11
  14. data/lib/mail/elements/content_type_element.rb +16 -23
  15. data/lib/mail/elements/date_time_element.rb +7 -15
  16. data/lib/mail/elements/envelope_from_element.rb +22 -23
  17. data/lib/mail/elements/message_ids_element.rb +18 -13
  18. data/lib/mail/elements/mime_version_element.rb +7 -15
  19. data/lib/mail/elements/phrase_list.rb +12 -10
  20. data/lib/mail/elements/received_element.rb +27 -19
  21. data/lib/mail/encodings/7bit.rb +9 -14
  22. data/lib/mail/encodings/8bit.rb +2 -21
  23. data/lib/mail/encodings/base64.rb +11 -12
  24. data/lib/mail/encodings/binary.rb +3 -22
  25. data/lib/mail/encodings/identity.rb +24 -0
  26. data/lib/mail/encodings/quoted_printable.rb +6 -6
  27. data/lib/mail/encodings/transfer_encoding.rb +38 -29
  28. data/lib/mail/encodings/unix_to_unix.rb +3 -1
  29. data/lib/mail/encodings.rb +81 -54
  30. data/lib/mail/envelope.rb +11 -14
  31. data/lib/mail/field.rb +119 -98
  32. data/lib/mail/field_list.rb +60 -7
  33. data/lib/mail/fields/bcc_field.rb +34 -52
  34. data/lib/mail/fields/cc_field.rb +28 -49
  35. data/lib/mail/fields/comments_field.rb +27 -37
  36. data/lib/mail/fields/common_address_field.rb +170 -0
  37. data/lib/mail/fields/common_date_field.rb +58 -0
  38. data/lib/mail/fields/common_field.rb +77 -0
  39. data/lib/mail/fields/common_message_id_field.rb +42 -0
  40. data/lib/mail/fields/content_description_field.rb +7 -14
  41. data/lib/mail/fields/content_disposition_field.rb +13 -38
  42. data/lib/mail/fields/content_id_field.rb +24 -51
  43. data/lib/mail/fields/content_location_field.rb +11 -25
  44. data/lib/mail/fields/content_transfer_encoding_field.rb +31 -31
  45. data/lib/mail/fields/content_type_field.rb +50 -80
  46. data/lib/mail/fields/date_field.rb +23 -52
  47. data/lib/mail/fields/from_field.rb +28 -49
  48. data/lib/mail/fields/in_reply_to_field.rb +38 -49
  49. data/lib/mail/fields/keywords_field.rb +18 -31
  50. data/lib/mail/fields/message_id_field.rb +25 -71
  51. data/lib/mail/fields/mime_version_field.rb +19 -30
  52. data/lib/mail/fields/named_structured_field.rb +11 -0
  53. data/lib/mail/fields/named_unstructured_field.rb +11 -0
  54. data/lib/mail/fields/optional_field.rb +9 -7
  55. data/lib/mail/fields/{common/parameter_hash.rb → parameter_hash.rb} +13 -11
  56. data/lib/mail/fields/received_field.rb +43 -57
  57. data/lib/mail/fields/references_field.rb +35 -49
  58. data/lib/mail/fields/reply_to_field.rb +28 -49
  59. data/lib/mail/fields/resent_bcc_field.rb +28 -49
  60. data/lib/mail/fields/resent_cc_field.rb +28 -49
  61. data/lib/mail/fields/resent_date_field.rb +5 -30
  62. data/lib/mail/fields/resent_from_field.rb +28 -49
  63. data/lib/mail/fields/resent_message_id_field.rb +5 -29
  64. data/lib/mail/fields/resent_sender_field.rb +27 -56
  65. data/lib/mail/fields/resent_to_field.rb +28 -49
  66. data/lib/mail/fields/return_path_field.rb +50 -54
  67. data/lib/mail/fields/sender_field.rb +34 -55
  68. data/lib/mail/fields/structured_field.rb +3 -30
  69. data/lib/mail/fields/subject_field.rb +9 -11
  70. data/lib/mail/fields/to_field.rb +28 -49
  71. data/lib/mail/fields/unstructured_field.rb +32 -47
  72. data/lib/mail/header.rb +71 -110
  73. data/lib/mail/mail.rb +2 -10
  74. data/lib/mail/matchers/attachment_matchers.rb +15 -0
  75. data/lib/mail/matchers/has_sent_mail.rb +21 -1
  76. data/lib/mail/message.rb +113 -117
  77. data/lib/mail/multibyte/chars.rb +21 -178
  78. data/lib/mail/multibyte/unicode.rb +10 -10
  79. data/lib/mail/multibyte/utils.rb +26 -43
  80. data/lib/mail/multibyte.rb +55 -16
  81. data/lib/mail/network/delivery_methods/exim.rb +5 -4
  82. data/lib/mail/network/delivery_methods/file_delivery.rb +11 -10
  83. data/lib/mail/network/delivery_methods/logger_delivery.rb +34 -0
  84. data/lib/mail/network/delivery_methods/sendmail.rb +62 -21
  85. data/lib/mail/network/delivery_methods/smtp.rb +75 -50
  86. data/lib/mail/network/delivery_methods/smtp_connection.rb +3 -4
  87. data/lib/mail/network/delivery_methods/test_mailer.rb +4 -2
  88. data/lib/mail/network/retriever_methods/base.rb +8 -8
  89. data/lib/mail/network/retriever_methods/imap.rb +20 -7
  90. data/lib/mail/network/retriever_methods/pop3.rb +5 -3
  91. data/lib/mail/network/retriever_methods/test_retriever.rb +2 -1
  92. data/lib/mail/network.rb +1 -0
  93. data/lib/mail/parser_tools.rb +15 -0
  94. data/lib/mail/parsers/address_lists_parser.rb +33225 -116
  95. data/lib/mail/parsers/address_lists_parser.rl +179 -0
  96. data/lib/mail/parsers/content_disposition_parser.rb +882 -49
  97. data/lib/mail/parsers/content_disposition_parser.rl +89 -0
  98. data/lib/mail/parsers/content_location_parser.rb +809 -23
  99. data/lib/mail/parsers/content_location_parser.rl +78 -0
  100. data/lib/mail/parsers/content_transfer_encoding_parser.rb +509 -21
  101. data/lib/mail/parsers/content_transfer_encoding_parser.rl +71 -0
  102. data/lib/mail/parsers/content_type_parser.rb +1037 -56
  103. data/lib/mail/parsers/content_type_parser.rl +90 -0
  104. data/lib/mail/parsers/date_time_parser.rb +877 -25
  105. data/lib/mail/parsers/date_time_parser.rl +69 -0
  106. data/lib/mail/parsers/envelope_from_parser.rb +3669 -40
  107. data/lib/mail/parsers/envelope_from_parser.rl +89 -0
  108. data/lib/mail/parsers/message_ids_parser.rb +5146 -25
  109. data/lib/mail/parsers/message_ids_parser.rl +93 -0
  110. data/lib/mail/parsers/mime_version_parser.rb +497 -26
  111. data/lib/mail/parsers/mime_version_parser.rl +68 -0
  112. data/lib/mail/parsers/phrase_lists_parser.rb +870 -22
  113. data/lib/mail/parsers/phrase_lists_parser.rl +90 -0
  114. data/lib/mail/parsers/received_parser.rb +8776 -43
  115. data/lib/mail/parsers/received_parser.rl +91 -0
  116. data/lib/mail/parsers/rfc2045_content_transfer_encoding.rl +13 -0
  117. data/lib/mail/parsers/rfc2045_content_type.rl +25 -0
  118. data/lib/mail/parsers/rfc2045_mime.rl +16 -0
  119. data/lib/mail/parsers/rfc2183_content_disposition.rl +15 -0
  120. data/lib/mail/parsers/rfc3629_utf8.rl +19 -0
  121. data/lib/mail/parsers/rfc5234_abnf_core_rules.rl +22 -0
  122. data/lib/mail/parsers/rfc5322.rl +74 -0
  123. data/lib/mail/parsers/rfc5322_address.rl +72 -0
  124. data/lib/mail/parsers/{ragel/date_time.rl → rfc5322_date_time.rl} +8 -1
  125. data/lib/mail/parsers/rfc5322_lexical_tokens.rl +60 -0
  126. data/lib/mail/parsers.rb +11 -25
  127. data/lib/mail/part.rb +6 -10
  128. data/lib/mail/parts_list.rb +62 -6
  129. data/lib/mail/smtp_envelope.rb +57 -0
  130. data/lib/mail/utilities.rb +343 -74
  131. data/lib/mail/version.rb +2 -2
  132. data/lib/mail/yaml.rb +30 -0
  133. data/lib/mail.rb +5 -35
  134. metadata +111 -66
  135. data/CHANGELOG.rdoc +0 -803
  136. data/CONTRIBUTING.md +0 -60
  137. data/Dependencies.txt +0 -2
  138. data/Gemfile +0 -14
  139. data/Rakefile +0 -29
  140. data/TODO.rdoc +0 -9
  141. data/lib/mail/core_extensions/smtp.rb +0 -25
  142. data/lib/mail/core_extensions/string/access.rb +0 -146
  143. data/lib/mail/core_extensions/string/multibyte.rb +0 -79
  144. data/lib/mail/core_extensions/string.rb +0 -21
  145. data/lib/mail/fields/common/address_container.rb +0 -17
  146. data/lib/mail/fields/common/common_address.rb +0 -136
  147. data/lib/mail/fields/common/common_date.rb +0 -36
  148. data/lib/mail/fields/common/common_field.rb +0 -61
  149. data/lib/mail/fields/common/common_message_id.rb +0 -49
  150. data/lib/mail/multibyte/exceptions.rb +0 -9
  151. data/lib/mail/parsers/ragel/common.rl +0 -185
  152. data/lib/mail/parsers/ragel/parser_info.rb +0 -61
  153. data/lib/mail/parsers/ragel/ruby/machines/address_lists_machine.rb +0 -14864
  154. data/lib/mail/parsers/ragel/ruby/machines/address_lists_machine.rb.rl +0 -37
  155. data/lib/mail/parsers/ragel/ruby/machines/content_disposition_machine.rb +0 -751
  156. data/lib/mail/parsers/ragel/ruby/machines/content_disposition_machine.rb.rl +0 -37
  157. data/lib/mail/parsers/ragel/ruby/machines/content_location_machine.rb +0 -614
  158. data/lib/mail/parsers/ragel/ruby/machines/content_location_machine.rb.rl +0 -37
  159. data/lib/mail/parsers/ragel/ruby/machines/content_transfer_encoding_machine.rb +0 -447
  160. data/lib/mail/parsers/ragel/ruby/machines/content_transfer_encoding_machine.rb.rl +0 -37
  161. data/lib/mail/parsers/ragel/ruby/machines/content_type_machine.rb +0 -825
  162. data/lib/mail/parsers/ragel/ruby/machines/content_type_machine.rb.rl +0 -37
  163. data/lib/mail/parsers/ragel/ruby/machines/date_time_machine.rb +0 -817
  164. data/lib/mail/parsers/ragel/ruby/machines/date_time_machine.rb.rl +0 -37
  165. data/lib/mail/parsers/ragel/ruby/machines/envelope_from_machine.rb +0 -2149
  166. data/lib/mail/parsers/ragel/ruby/machines/envelope_from_machine.rb.rl +0 -37
  167. data/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb +0 -1570
  168. data/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb.rl +0 -37
  169. data/lib/mail/parsers/ragel/ruby/machines/mime_version_machine.rb +0 -440
  170. data/lib/mail/parsers/ragel/ruby/machines/mime_version_machine.rb.rl +0 -37
  171. data/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb +0 -564
  172. data/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl +0 -37
  173. data/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl +0 -51
  174. data/lib/mail/parsers/ragel/ruby/machines/received_machine.rb +0 -5144
  175. data/lib/mail/parsers/ragel/ruby/machines/received_machine.rb.rl +0 -37
  176. data/lib/mail/parsers/ragel/ruby/parser.rb.rl.erb +0 -37
  177. data/lib/mail/parsers/ragel/ruby.rb +0 -40
  178. data/lib/mail/parsers/ragel.rb +0 -18
  179. data/lib/mail/version_specific/ruby_1_8.rb +0 -126
  180. data/lib/mail/version_specific/ruby_1_9.rb +0 -226
@@ -1,39 +1,891 @@
1
+
1
2
  # frozen_string_literal: true
2
- module Mail::Parsers
3
- class DateTimeParser
4
- include Mail::Utilities
3
+ require "mail/utilities"
4
+ require "mail/parser_tools"
5
+
6
+ begin
7
+ original_verbose, $VERBOSE = $VERBOSE, nil
5
8
 
6
- def parse(s)
7
- raise Mail::Field::ParseError.new(Mail::DateTimeElement, s, "nil is an invalid DateTime") if s.nil?
9
+ module Mail::Parsers
10
+ module DateTimeParser
11
+ extend Mail::ParserTools
8
12
 
9
- date_time = DateTimeStruct.new([])
13
+ DateTimeStruct = Struct.new(:date_string, :time_string, :error)
14
+
15
+ class << self
16
+ attr_accessor :_trans_keys
17
+ private :_trans_keys, :_trans_keys=
18
+ end
19
+ self._trans_keys = [
20
+ 0, 0, 9, 87, 9, 87,
21
+ 10, 10, 9, 32, 9,
22
+ 87, 9, 83, 9, 83,
23
+ 10, 10, 9, 32, 9, 83,
24
+ 112, 117, 114, 114, 9,
25
+ 57, 10, 10, 9, 32,
26
+ 9, 57, 48, 57, 9, 57,
27
+ 9, 57, 10, 10, 9,
28
+ 32, 9, 57, 48, 57,
29
+ 9, 58, 10, 10, 9, 32,
30
+ 9, 58, 9, 57, 10,
31
+ 10, 9, 32, 9, 57,
32
+ 48, 57, 9, 58, 9, 122,
33
+ 10, 10, 9, 32, 9,
34
+ 58, 9, 57, 10, 10,
35
+ 9, 32, 9, 57, 48, 57,
36
+ 9, 40, 9, 122, 10,
37
+ 10, 9, 32, 9, 40,
38
+ 48, 57, 48, 57, 48, 57,
39
+ 48, 57, 10, 10, 9,
40
+ 32, 84, 84, 103, 103,
41
+ 101, 101, 99, 99, 101, 101,
42
+ 98, 98, 97, 117, 110,
43
+ 110, 108, 110, 97, 97,
44
+ 114, 121, 111, 111, 118, 118,
45
+ 99, 99, 116, 116, 101,
46
+ 101, 112, 112, 114, 114,
47
+ 105, 105, 9, 44, 10, 10,
48
+ 9, 32, 9, 44, 9,
49
+ 57, 9, 57, 10, 10,
50
+ 9, 32, 9, 57, 111, 111,
51
+ 110, 110, 97, 117, 116,
52
+ 116, 104, 117, 117, 117,
53
+ 101, 101, 101, 101, 100, 100,
54
+ 1, 244, 1, 244, 10,
55
+ 10, 9, 32, 0, 244,
56
+ 128, 191, 160, 191, 128, 191,
57
+ 128, 159, 144, 191, 128,
58
+ 191, 128, 143, 9, 40,
59
+ 9, 40, 9, 40, 9, 83,
60
+ 9, 77, 9, 84, 0,
61
+ 0, 0,
62
+ ]
10
63
 
11
- actions, error = Ragel.parse(:date_time, s)
12
- if error
13
- raise Mail::Field::ParseError.new(Mail::DateTimeElement, s, error)
64
+ class << self
65
+ attr_accessor :_key_spans
66
+ private :_key_spans, :_key_spans=
14
67
  end
68
+ self._key_spans = [
69
+ 0, 79, 79, 1, 24, 79, 75, 75,
70
+ 1, 24, 75, 6, 1, 49, 1, 24,
71
+ 49, 10, 49, 49, 1, 24, 49, 10,
72
+ 50, 1, 24, 50, 49, 1, 24, 49,
73
+ 10, 50, 114, 1, 24, 50, 49, 1,
74
+ 24, 49, 10, 32, 114, 1, 24, 32,
75
+ 10, 10, 10, 10, 1, 24, 1, 1,
76
+ 1, 1, 1, 1, 21, 1, 3, 1,
77
+ 8, 1, 1, 1, 1, 1, 1, 1,
78
+ 1, 36, 1, 24, 36, 49, 49, 1,
79
+ 24, 49, 1, 1, 21, 1, 14, 1,
80
+ 1, 1, 1, 244, 244, 1, 24, 245,
81
+ 64, 32, 64, 32, 48, 64, 16, 32,
82
+ 32, 32, 75, 69, 76, 0,
83
+ ]
15
84
 
16
- date_s = time_s = nil
17
- actions.each_slice(2) do |action_id, p|
18
- action = Mail::Parsers::Ragel::ACTIONS[action_id]
19
- case action
85
+ class << self
86
+ attr_accessor :_index_offsets
87
+ private :_index_offsets, :_index_offsets=
88
+ end
89
+ self._index_offsets = [
90
+ 0, 0, 80, 160, 162, 187, 267, 343,
91
+ 419, 421, 446, 522, 529, 531, 581, 583,
92
+ 608, 658, 669, 719, 769, 771, 796, 846,
93
+ 857, 908, 910, 935, 986, 1036, 1038, 1063,
94
+ 1113, 1124, 1175, 1290, 1292, 1317, 1368, 1418,
95
+ 1420, 1445, 1495, 1506, 1539, 1654, 1656, 1681,
96
+ 1714, 1725, 1736, 1747, 1758, 1760, 1785, 1787,
97
+ 1789, 1791, 1793, 1795, 1797, 1819, 1821, 1825,
98
+ 1827, 1836, 1838, 1840, 1842, 1844, 1846, 1848,
99
+ 1850, 1852, 1889, 1891, 1916, 1953, 2003, 2053,
100
+ 2055, 2080, 2130, 2132, 2134, 2156, 2158, 2173,
101
+ 2175, 2177, 2179, 2181, 2426, 2671, 2673, 2698,
102
+ 2944, 3009, 3042, 3107, 3140, 3189, 3254, 3271,
103
+ 3304, 3337, 3370, 3446, 3516, 3593,
104
+ ]
20
105
 
21
- # Date
22
- when :date_s then date_s = p
23
- when :date_e
24
- date_time.date_string = s[date_s..(p-1)]
106
+ class << self
107
+ attr_accessor :_indicies
108
+ private :_indicies, :_indicies=
109
+ end
110
+ self._indicies = [
111
+ 0, 1, 1, 1, 2, 1, 1, 1,
112
+ 1, 1, 1, 1, 1, 1, 1, 1,
113
+ 1, 1, 1, 1, 1, 1, 1, 0,
114
+ 1, 1, 1, 1, 1, 1, 1, 3,
115
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1, 1, 1,
186
+ 1, 1, 1, 1, 1, 1, 49, 1,
187
+ 54, 1, 1, 1, 55, 1, 1, 1,
188
+ 1, 1, 1, 1, 1, 1, 1, 1,
189
+ 1, 1, 1, 1, 1, 1, 1, 54,
190
+ 1, 1, 1, 1, 1, 1, 1, 56,
191
+ 1, 1, 1, 1, 1, 1, 1, 57,
192
+ 57, 57, 57, 57, 57, 57, 57, 57,
193
+ 57, 1, 58, 58, 58, 58, 58, 58,
194
+ 58, 58, 58, 58, 1, 59, 1, 1,
195
+ 1, 60, 1, 1, 1, 1, 1, 1,
196
+ 1, 1, 1, 1, 1, 1, 1, 1,
197
+ 1, 1, 1, 1, 59, 1, 1, 1,
198
+ 1, 1, 1, 1, 61, 1, 1, 1,
199
+ 1, 1, 1, 1, 58, 58, 58, 58,
200
+ 58, 58, 58, 58, 58, 58, 1, 59,
201
+ 1, 1, 1, 60, 1, 1, 1, 1,
202
+ 1, 1, 1, 1, 1, 1, 1, 1,
203
+ 1, 1, 1, 1, 1, 1, 59, 1,
204
+ 1, 1, 1, 1, 1, 1, 61, 1,
205
+ 1, 1, 1, 1, 1, 1, 62, 62,
206
+ 62, 62, 62, 62, 62, 62, 62, 62,
207
+ 1, 63, 1, 59, 1, 1, 1, 1,
208
+ 1, 1, 1, 1, 1, 1, 1, 1,
209
+ 1, 1, 1, 1, 1, 1, 1, 1,
210
+ 1, 1, 59, 1, 64, 1, 1, 1,
211
+ 65, 1, 1, 1, 1, 1, 1, 1,
212
+ 1, 1, 1, 1, 1, 1, 1, 1,
213
+ 1, 1, 1, 64, 1, 1, 1, 1,
214
+ 1, 1, 1, 66, 1, 1, 1, 1,
215
+ 1, 1, 1, 67, 67, 67, 67, 67,
216
+ 67, 67, 67, 67, 67, 1, 68, 68,
217
+ 68, 68, 68, 68, 68, 68, 68, 68,
218
+ 1, 68, 1, 1, 1, 69, 1, 1,
219
+ 1, 1, 1, 1, 1, 1, 1, 1,
220
+ 1, 1, 1, 1, 1, 1, 1, 1,
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, 1, 1, 1, 1, 1, 1,
257
+ 1, 1, 1, 1, 1, 88, 1, 85,
258
+ 1, 1, 1, 86, 1, 1, 1, 1,
259
+ 1, 1, 1, 1, 1, 1, 1, 1,
260
+ 1, 1, 1, 1, 1, 1, 85, 1,
261
+ 1, 1, 1, 1, 1, 1, 87, 1,
262
+ 1, 89, 1, 89, 1, 1, 1, 1,
263
+ 1, 1, 1, 1, 1, 1, 1, 1,
264
+ 88, 1, 1, 1, 1, 1, 1, 90,
265
+ 90, 91, 90, 91, 90, 92, 90, 90,
266
+ 1, 90, 90, 91, 90, 90, 91, 90,
267
+ 90, 90, 90, 93, 90, 90, 90, 90,
268
+ 90, 1, 1, 1, 1, 1, 1, 90,
269
+ 90, 90, 90, 90, 90, 90, 90, 90,
270
+ 1, 90, 90, 90, 90, 90, 90, 90,
271
+ 90, 90, 90, 90, 90, 90, 90, 90,
272
+ 90, 1, 94, 1, 85, 1, 1, 1,
273
+ 1, 1, 1, 1, 1, 1, 1, 1,
274
+ 1, 1, 1, 1, 1, 1, 1, 1,
275
+ 1, 1, 1, 85, 1, 95, 1, 1,
276
+ 1, 96, 1, 1, 1, 1, 1, 1,
277
+ 1, 1, 1, 1, 1, 1, 1, 1,
278
+ 1, 1, 1, 1, 95, 1, 1, 1,
279
+ 1, 1, 1, 1, 97, 1, 1, 1,
280
+ 1, 1, 1, 1, 1, 1, 1, 1,
281
+ 1, 1, 1, 1, 1, 1, 98, 1,
282
+ 88, 1, 1, 1, 99, 1, 1, 1,
283
+ 1, 1, 1, 1, 1, 1, 1, 1,
284
+ 1, 1, 1, 1, 1, 1, 1, 88,
285
+ 1, 1, 1, 1, 1, 1, 1, 100,
286
+ 1, 1, 1, 1, 1, 1, 1, 101,
287
+ 101, 101, 101, 101, 101, 101, 101, 101,
288
+ 101, 1, 102, 1, 88, 1, 1, 1,
289
+ 1, 1, 1, 1, 1, 1, 1, 1,
290
+ 1, 1, 1, 1, 1, 1, 1, 1,
291
+ 1, 1, 1, 88, 1, 98, 1, 1,
292
+ 1, 103, 1, 1, 1, 1, 1, 1,
293
+ 1, 1, 1, 1, 1, 1, 1, 1,
294
+ 1, 1, 1, 1, 98, 1, 1, 1,
295
+ 1, 1, 1, 1, 104, 1, 1, 1,
296
+ 1, 1, 1, 1, 105, 105, 105, 105,
297
+ 105, 105, 105, 105, 105, 105, 1, 106,
298
+ 106, 106, 106, 106, 106, 106, 106, 106,
299
+ 106, 1, 107, 1, 1, 1, 108, 1,
300
+ 1, 1, 1, 1, 1, 1, 1, 1,
301
+ 1, 1, 1, 1, 1, 1, 1, 1,
302
+ 1, 107, 1, 1, 1, 1, 1, 1,
303
+ 1, 109, 1, 107, 1, 1, 1, 108,
304
+ 1, 1, 1, 1, 1, 1, 1, 1,
305
+ 1, 1, 1, 1, 1, 1, 1, 1,
306
+ 1, 1, 107, 1, 1, 1, 1, 1,
307
+ 1, 1, 109, 1, 1, 89, 1, 89,
308
+ 1, 1, 1, 1, 1, 1, 1, 1,
309
+ 1, 1, 1, 1, 1, 1, 1, 1,
310
+ 1, 1, 1, 90, 90, 91, 90, 91,
311
+ 90, 92, 90, 90, 1, 90, 90, 91,
312
+ 90, 90, 91, 90, 90, 90, 90, 93,
313
+ 90, 90, 90, 90, 90, 1, 1, 1,
314
+ 1, 1, 1, 90, 90, 90, 90, 90,
315
+ 90, 90, 90, 90, 1, 90, 90, 90,
316
+ 90, 90, 90, 90, 90, 90, 90, 90,
317
+ 90, 90, 90, 90, 90, 1, 110, 1,
318
+ 107, 1, 1, 1, 1, 1, 1, 1,
319
+ 1, 1, 1, 1, 1, 1, 1, 1,
320
+ 1, 1, 1, 1, 1, 1, 1, 107,
321
+ 1, 111, 1, 1, 1, 112, 1, 1,
322
+ 1, 1, 1, 1, 1, 1, 1, 1,
323
+ 1, 1, 1, 1, 1, 1, 1, 1,
324
+ 111, 1, 1, 1, 1, 1, 1, 1,
325
+ 113, 1, 114, 114, 114, 114, 114, 114,
326
+ 114, 114, 114, 114, 1, 115, 115, 115,
327
+ 115, 115, 115, 115, 115, 115, 115, 1,
328
+ 116, 116, 116, 116, 116, 116, 116, 116,
329
+ 116, 116, 1, 90, 90, 90, 90, 90,
330
+ 90, 90, 90, 90, 90, 1, 117, 1,
331
+ 118, 1, 1, 1, 1, 1, 1, 1,
332
+ 1, 1, 1, 1, 1, 1, 1, 1,
333
+ 1, 1, 1, 1, 1, 1, 1, 118,
334
+ 1, 90, 1, 49, 1, 119, 1, 49,
335
+ 1, 120, 1, 49, 1, 121, 1, 1,
336
+ 1, 1, 1, 1, 1, 1, 1, 1,
337
+ 1, 1, 1, 1, 1, 1, 1, 1,
338
+ 1, 122, 1, 49, 1, 49, 1, 49,
339
+ 1, 123, 1, 49, 1, 1, 1, 1,
340
+ 1, 1, 49, 1, 124, 1, 49, 1,
341
+ 125, 1, 49, 1, 126, 1, 49, 1,
342
+ 127, 1, 128, 1, 128, 1, 1, 1,
343
+ 129, 1, 1, 1, 1, 1, 1, 1,
344
+ 1, 1, 1, 1, 1, 1, 1, 1,
345
+ 1, 1, 1, 128, 1, 1, 1, 1,
346
+ 1, 1, 1, 130, 1, 1, 1, 131,
347
+ 1, 132, 1, 128, 1, 1, 1, 1,
348
+ 1, 1, 1, 1, 1, 1, 1, 1,
349
+ 1, 1, 1, 1, 1, 1, 1, 1,
350
+ 1, 1, 128, 1, 133, 1, 1, 1,
351
+ 134, 1, 1, 1, 1, 1, 1, 1,
352
+ 1, 1, 1, 1, 1, 1, 1, 1,
353
+ 1, 1, 1, 133, 1, 1, 1, 1,
354
+ 1, 1, 1, 135, 1, 1, 1, 136,
355
+ 1, 137, 1, 1, 1, 138, 1, 1,
356
+ 1, 1, 1, 1, 1, 1, 1, 1,
357
+ 1, 1, 1, 1, 1, 1, 1, 1,
358
+ 137, 1, 1, 1, 1, 1, 1, 1,
359
+ 139, 1, 1, 1, 1, 1, 1, 1,
360
+ 4, 4, 4, 4, 4, 4, 4, 4,
361
+ 4, 4, 1, 140, 1, 1, 1, 141,
362
+ 1, 1, 1, 1, 1, 1, 1, 1,
363
+ 1, 1, 1, 1, 1, 1, 1, 1,
364
+ 1, 1, 140, 1, 1, 1, 1, 1,
365
+ 1, 1, 142, 1, 1, 1, 1, 1,
366
+ 1, 1, 13, 13, 13, 13, 13, 13,
367
+ 13, 13, 13, 13, 1, 143, 1, 140,
368
+ 1, 1, 1, 1, 1, 1, 1, 1,
369
+ 1, 1, 1, 1, 1, 1, 1, 1,
370
+ 1, 1, 1, 1, 1, 1, 140, 1,
371
+ 144, 1, 1, 1, 145, 1, 1, 1,
372
+ 1, 1, 1, 1, 1, 1, 1, 1,
373
+ 1, 1, 1, 1, 1, 1, 1, 144,
374
+ 1, 1, 1, 1, 1, 1, 1, 146,
375
+ 1, 1, 1, 1, 1, 1, 1, 18,
376
+ 18, 18, 18, 18, 18, 18, 18, 18,
377
+ 18, 1, 147, 1, 128, 1, 148, 1,
378
+ 1, 1, 1, 1, 1, 1, 1, 1,
379
+ 1, 1, 1, 1, 1, 1, 1, 1,
380
+ 1, 1, 147, 1, 128, 1, 149, 1,
381
+ 1, 1, 1, 1, 1, 1, 1, 1,
382
+ 1, 1, 1, 150, 1, 128, 1, 128,
383
+ 1, 151, 1, 128, 1, 152, 152, 152,
384
+ 152, 152, 152, 152, 152, 152, 1, 152,
385
+ 152, 153, 152, 152, 152, 152, 152, 152,
386
+ 152, 152, 152, 152, 152, 152, 152, 152,
387
+ 152, 152, 152, 152, 152, 152, 152, 152,
388
+ 152, 152, 152, 152, 154, 155, 152, 152,
389
+ 152, 152, 152, 152, 152, 152, 152, 152,
390
+ 152, 152, 152, 152, 152, 152, 152, 152,
391
+ 152, 152, 152, 152, 152, 152, 152, 152,
392
+ 152, 152, 152, 152, 152, 152, 152, 152,
393
+ 152, 152, 152, 152, 152, 152, 152, 152,
394
+ 152, 152, 152, 152, 152, 152, 152, 152,
395
+ 156, 152, 152, 152, 152, 152, 152, 152,
396
+ 152, 152, 152, 152, 152, 152, 152, 152,
397
+ 152, 152, 152, 152, 152, 152, 152, 152,
398
+ 152, 152, 152, 152, 152, 152, 152, 152,
399
+ 152, 152, 152, 152, 1, 1, 1, 1,
400
+ 1, 1, 1, 1, 1, 1, 1, 1,
401
+ 1, 1, 1, 1, 1, 1, 1, 1,
402
+ 1, 1, 1, 1, 1, 1, 1, 1,
403
+ 1, 1, 1, 1, 1, 1, 1, 1,
404
+ 1, 1, 1, 1, 1, 1, 1, 1,
405
+ 1, 1, 1, 1, 1, 1, 1, 1,
406
+ 1, 1, 1, 1, 1, 1, 1, 1,
407
+ 1, 1, 1, 1, 1, 1, 157, 157,
408
+ 157, 157, 157, 157, 157, 157, 157, 157,
409
+ 157, 157, 157, 157, 157, 157, 157, 157,
410
+ 157, 157, 157, 157, 157, 157, 157, 157,
411
+ 157, 157, 157, 157, 158, 159, 159, 159,
412
+ 159, 159, 159, 159, 159, 159, 159, 159,
413
+ 159, 160, 159, 159, 161, 162, 162, 162,
414
+ 163, 1, 164, 164, 164, 164, 164, 164,
415
+ 164, 164, 164, 1, 164, 164, 165, 164,
416
+ 164, 164, 164, 164, 164, 164, 164, 164,
417
+ 164, 164, 164, 164, 164, 164, 164, 164,
418
+ 164, 164, 164, 164, 164, 164, 164, 164,
419
+ 164, 166, 167, 164, 164, 164, 164, 164,
420
+ 164, 164, 164, 164, 164, 164, 164, 164,
421
+ 164, 164, 164, 164, 164, 164, 164, 164,
422
+ 164, 164, 164, 164, 164, 164, 164, 164,
423
+ 164, 164, 164, 164, 164, 164, 164, 164,
424
+ 164, 164, 164, 164, 164, 164, 164, 164,
425
+ 164, 164, 164, 164, 164, 168, 164, 164,
426
+ 164, 164, 164, 164, 164, 164, 164, 164,
427
+ 164, 164, 164, 164, 164, 164, 164, 164,
428
+ 164, 164, 164, 164, 164, 164, 164, 164,
429
+ 164, 164, 164, 164, 164, 164, 164, 164,
430
+ 164, 1, 1, 1, 1, 1, 1, 1,
431
+ 1, 1, 1, 1, 1, 1, 1, 1,
432
+ 1, 1, 1, 1, 1, 1, 1, 1,
433
+ 1, 1, 1, 1, 1, 1, 1, 1,
434
+ 1, 1, 1, 1, 1, 1, 1, 1,
435
+ 1, 1, 1, 1, 1, 1, 1, 1,
436
+ 1, 1, 1, 1, 1, 1, 1, 1,
437
+ 1, 1, 1, 1, 1, 1, 1, 1,
438
+ 1, 1, 1, 169, 169, 169, 169, 169,
439
+ 169, 169, 169, 169, 169, 169, 169, 169,
440
+ 169, 169, 169, 169, 169, 169, 169, 169,
441
+ 169, 169, 169, 169, 169, 169, 169, 169,
442
+ 169, 170, 171, 171, 171, 171, 171, 171,
443
+ 171, 171, 171, 171, 171, 171, 172, 171,
444
+ 171, 173, 174, 174, 174, 175, 1, 176,
445
+ 1, 164, 1, 1, 1, 1, 1, 1,
446
+ 1, 1, 1, 1, 1, 1, 1, 1,
447
+ 1, 1, 1, 1, 1, 1, 1, 1,
448
+ 164, 1, 164, 164, 164, 164, 164, 164,
449
+ 164, 164, 164, 164, 164, 164, 164, 164,
450
+ 164, 164, 164, 164, 164, 164, 164, 164,
451
+ 164, 164, 164, 164, 164, 164, 164, 164,
452
+ 164, 164, 164, 164, 164, 164, 164, 164,
453
+ 164, 164, 164, 164, 164, 164, 164, 164,
454
+ 164, 164, 164, 164, 164, 164, 164, 164,
455
+ 164, 164, 164, 164, 164, 164, 164, 164,
456
+ 164, 164, 164, 164, 164, 164, 164, 164,
457
+ 164, 164, 164, 164, 164, 164, 164, 164,
458
+ 164, 164, 164, 164, 164, 164, 164, 164,
459
+ 164, 164, 164, 164, 164, 164, 164, 164,
460
+ 164, 164, 164, 164, 164, 164, 164, 164,
461
+ 164, 164, 164, 164, 164, 164, 164, 164,
462
+ 164, 164, 164, 164, 164, 164, 164, 164,
463
+ 164, 164, 164, 164, 164, 164, 164, 164,
464
+ 164, 164, 1, 1, 1, 1, 1, 1,
465
+ 1, 1, 1, 1, 1, 1, 1, 1,
466
+ 1, 1, 1, 1, 1, 1, 1, 1,
467
+ 1, 1, 1, 1, 1, 1, 1, 1,
468
+ 1, 1, 1, 1, 1, 1, 1, 1,
469
+ 1, 1, 1, 1, 1, 1, 1, 1,
470
+ 1, 1, 1, 1, 1, 1, 1, 1,
471
+ 1, 1, 1, 1, 1, 1, 1, 1,
472
+ 1, 1, 1, 1, 169, 169, 169, 169,
473
+ 169, 169, 169, 169, 169, 169, 169, 169,
474
+ 169, 169, 169, 169, 169, 169, 169, 169,
475
+ 169, 169, 169, 169, 169, 169, 169, 169,
476
+ 169, 169, 170, 171, 171, 171, 171, 171,
477
+ 171, 171, 171, 171, 171, 171, 171, 172,
478
+ 171, 171, 173, 174, 174, 174, 175, 1,
479
+ 164, 164, 164, 164, 164, 164, 164, 164,
480
+ 164, 164, 164, 164, 164, 164, 164, 164,
481
+ 164, 164, 164, 164, 164, 164, 164, 164,
482
+ 164, 164, 164, 164, 164, 164, 164, 164,
483
+ 164, 164, 164, 164, 164, 164, 164, 164,
484
+ 164, 164, 164, 164, 164, 164, 164, 164,
485
+ 164, 164, 164, 164, 164, 164, 164, 164,
486
+ 164, 164, 164, 164, 164, 164, 164, 164,
487
+ 1, 169, 169, 169, 169, 169, 169, 169,
488
+ 169, 169, 169, 169, 169, 169, 169, 169,
489
+ 169, 169, 169, 169, 169, 169, 169, 169,
490
+ 169, 169, 169, 169, 169, 169, 169, 169,
491
+ 169, 1, 169, 169, 169, 169, 169, 169,
492
+ 169, 169, 169, 169, 169, 169, 169, 169,
493
+ 169, 169, 169, 169, 169, 169, 169, 169,
494
+ 169, 169, 169, 169, 169, 169, 169, 169,
495
+ 169, 169, 169, 169, 169, 169, 169, 169,
496
+ 169, 169, 169, 169, 169, 169, 169, 169,
497
+ 169, 169, 169, 169, 169, 169, 169, 169,
498
+ 169, 169, 169, 169, 169, 169, 169, 169,
499
+ 169, 169, 1, 169, 169, 169, 169, 169,
500
+ 169, 169, 169, 169, 169, 169, 169, 169,
501
+ 169, 169, 169, 169, 169, 169, 169, 169,
502
+ 169, 169, 169, 169, 169, 169, 169, 169,
503
+ 169, 169, 169, 1, 171, 171, 171, 171,
504
+ 171, 171, 171, 171, 171, 171, 171, 171,
505
+ 171, 171, 171, 171, 171, 171, 171, 171,
506
+ 171, 171, 171, 171, 171, 171, 171, 171,
507
+ 171, 171, 171, 171, 171, 171, 171, 171,
508
+ 171, 171, 171, 171, 171, 171, 171, 171,
509
+ 171, 171, 171, 171, 1, 171, 171, 171,
510
+ 171, 171, 171, 171, 171, 171, 171, 171,
511
+ 171, 171, 171, 171, 171, 171, 171, 171,
512
+ 171, 171, 171, 171, 171, 171, 171, 171,
513
+ 171, 171, 171, 171, 171, 171, 171, 171,
514
+ 171, 171, 171, 171, 171, 171, 171, 171,
515
+ 171, 171, 171, 171, 171, 171, 171, 171,
516
+ 171, 171, 171, 171, 171, 171, 171, 171,
517
+ 171, 171, 171, 171, 171, 1, 171, 171,
518
+ 171, 171, 171, 171, 171, 171, 171, 171,
519
+ 171, 171, 171, 171, 171, 171, 1, 177,
520
+ 1, 1, 1, 178, 1, 1, 1, 1,
521
+ 1, 1, 1, 1, 1, 1, 1, 1,
522
+ 1, 1, 1, 1, 1, 1, 177, 1,
523
+ 1, 1, 1, 1, 1, 1, 179, 1,
524
+ 118, 1, 1, 1, 180, 1, 1, 1,
525
+ 1, 1, 1, 1, 1, 1, 1, 1,
526
+ 1, 1, 1, 1, 1, 1, 1, 118,
527
+ 1, 1, 1, 1, 1, 1, 1, 181,
528
+ 1, 182, 1, 1, 1, 183, 1, 1,
529
+ 1, 1, 1, 1, 1, 1, 1, 1,
530
+ 1, 1, 1, 1, 1, 1, 1, 1,
531
+ 182, 1, 1, 1, 1, 1, 1, 1,
532
+ 184, 1, 177, 1, 1, 1, 178, 1,
533
+ 1, 1, 1, 1, 1, 1, 1, 1,
534
+ 1, 1, 1, 1, 1, 1, 1, 1,
535
+ 1, 177, 1, 1, 1, 1, 1, 1,
536
+ 1, 179, 1, 1, 1, 1, 1, 1,
537
+ 1, 1, 1, 1, 1, 1, 1, 1,
538
+ 1, 1, 1, 1, 1, 1, 1, 1,
539
+ 1, 1, 1, 1, 1, 185, 1, 1,
540
+ 1, 1, 1, 1, 1, 1, 1, 1,
541
+ 1, 1, 1, 1, 185, 1, 177, 1,
542
+ 1, 1, 178, 1, 1, 1, 1, 1,
543
+ 1, 1, 1, 1, 1, 1, 1, 1,
544
+ 1, 1, 1, 1, 1, 177, 1, 1,
545
+ 1, 1, 1, 1, 1, 179, 1, 1,
546
+ 1, 1, 1, 1, 1, 1, 1, 1,
547
+ 1, 1, 1, 1, 1, 1, 1, 1,
548
+ 1, 1, 1, 1, 1, 1, 1, 1,
549
+ 1, 1, 1, 1, 1, 1, 1, 1,
550
+ 1, 1, 185, 1, 177, 1, 1, 1,
551
+ 178, 1, 1, 1, 1, 1, 1, 1,
552
+ 1, 1, 1, 1, 1, 1, 1, 1,
553
+ 1, 1, 1, 177, 1, 1, 1, 1,
554
+ 1, 1, 1, 179, 1, 1, 1, 1,
555
+ 1, 1, 1, 1, 1, 1, 1, 1,
556
+ 1, 1, 1, 1, 1, 1, 1, 1,
557
+ 1, 1, 1, 1, 1, 1, 1, 1,
558
+ 1, 1, 1, 1, 1, 1, 1, 1,
559
+ 1, 1, 1, 1, 1, 1, 1, 90,
560
+ 1, 1, 0,
561
+ ]
25
562
 
26
- # Time
27
- when :time_s then time_s = p
28
- when :time_e
29
- date_time.time_string = s[time_s..(p-1)]
563
+ class << self
564
+ attr_accessor :_trans_targs
565
+ private :_trans_targs, :_trans_targs=
566
+ end
567
+ self._trans_targs = [
568
+ 2, 0, 3, 5, 6, 71, 82, 84,
569
+ 86, 89, 2, 3, 5, 6, 4, 2,
570
+ 3, 5, 6, 71, 82, 84, 86, 89,
571
+ 7, 8, 10, 11, 56, 58, 60, 63,
572
+ 65, 67, 69, 9, 7, 8, 10, 11,
573
+ 56, 58, 60, 63, 65, 67, 69, 12,
574
+ 55, 13, 14, 16, 17, 15, 13, 14,
575
+ 16, 17, 18, 19, 20, 22, 23, 21,
576
+ 19, 20, 22, 23, 24, 25, 27, 28,
577
+ 26, 24, 25, 27, 28, 29, 31, 32,
578
+ 30, 29, 31, 32, 33, 34, 35, 37,
579
+ 38, 48, 103, 106, 107, 108, 36, 34,
580
+ 35, 37, 38, 39, 41, 42, 40, 39,
581
+ 41, 42, 43, 44, 45, 47, 46, 44,
582
+ 45, 47, 49, 50, 51, 53, 104, 57,
583
+ 59, 61, 62, 64, 66, 68, 70, 72,
584
+ 73, 74, 76, 77, 75, 73, 74, 76,
585
+ 77, 78, 79, 81, 78, 79, 81, 80,
586
+ 78, 79, 81, 83, 85, 87, 88, 90,
587
+ 92, 93, 92, 109, 95, 96, 97, 98,
588
+ 99, 100, 101, 102, 92, 93, 92, 109,
589
+ 95, 96, 97, 98, 99, 100, 101, 102,
590
+ 94, 104, 52, 105, 52, 105, 104, 52,
591
+ 105, 54,
592
+ ]
30
593
 
31
- else
32
- raise Mail::Field::ParseError.new(Mail::DateTimeElement, s, "Failed to process unknown action: #{action}")
33
- end
594
+ class << self
595
+ attr_accessor :_trans_actions
596
+ private :_trans_actions, :_trans_actions=
34
597
  end
598
+ self._trans_actions = [
599
+ 1, 0, 1, 2, 1, 0, 0, 0,
600
+ 0, 0, 0, 0, 3, 0, 0, 4,
601
+ 4, 5, 4, 4, 4, 4, 4, 4,
602
+ 0, 0, 3, 0, 0, 0, 0, 0,
603
+ 0, 0, 0, 0, 4, 4, 5, 4,
604
+ 4, 4, 4, 4, 4, 4, 4, 0,
605
+ 0, 0, 0, 3, 0, 0, 4, 4,
606
+ 5, 4, 0, 0, 0, 3, 6, 0,
607
+ 4, 4, 5, 7, 0, 0, 3, 0,
608
+ 0, 4, 4, 5, 4, 0, 3, 0,
609
+ 0, 4, 5, 4, 0, 0, 0, 3,
610
+ 0, 0, 0, 0, 0, 0, 0, 4,
611
+ 4, 5, 4, 0, 3, 0, 0, 4,
612
+ 5, 4, 0, 0, 0, 3, 0, 4,
613
+ 4, 5, 0, 0, 0, 0, 0, 0,
614
+ 0, 0, 0, 0, 0, 0, 0, 0,
615
+ 0, 0, 3, 0, 0, 4, 4, 5,
616
+ 4, 1, 1, 8, 0, 0, 3, 0,
617
+ 4, 4, 5, 0, 0, 0, 0, 0,
618
+ 9, 9, 10, 11, 9, 9, 9, 9,
619
+ 9, 9, 9, 9, 0, 0, 3, 12,
620
+ 0, 0, 0, 0, 0, 0, 0, 0,
621
+ 0, 13, 13, 14, 0, 3, 4, 4,
622
+ 5, 0,
623
+ ]
35
624
 
36
- date_time
625
+ class << self
626
+ attr_accessor :_eof_actions
627
+ private :_eof_actions, :_eof_actions=
628
+ end
629
+ self._eof_actions = [
630
+ 0, 0, 0, 0, 0, 0, 0, 0,
631
+ 0, 0, 0, 0, 0, 0, 0, 0,
632
+ 0, 0, 0, 0, 0, 0, 0, 0,
633
+ 0, 0, 0, 0, 0, 0, 0, 0,
634
+ 0, 0, 0, 0, 0, 0, 0, 0,
635
+ 0, 0, 0, 0, 0, 0, 0, 0,
636
+ 0, 0, 0, 0, 0, 0, 0, 0,
637
+ 0, 0, 0, 0, 0, 0, 0, 0,
638
+ 0, 0, 0, 0, 0, 0, 0, 0,
639
+ 0, 0, 0, 0, 0, 0, 0, 0,
640
+ 0, 0, 0, 0, 0, 0, 0, 0,
641
+ 0, 0, 0, 0, 0, 0, 0, 0,
642
+ 0, 0, 0, 0, 0, 0, 0, 13,
643
+ 0, 4, 13, 13, 13, 0,
644
+ ]
645
+
646
+ class << self
647
+ attr_accessor :start
648
+ end
649
+ self.start = 1
650
+ class << self
651
+ attr_accessor :first_final
652
+ end
653
+ self.first_final = 103
654
+ class << self
655
+ attr_accessor :error
656
+ end
657
+ self.error = 0
658
+
659
+ class << self
660
+ attr_accessor :en_comment_tail
661
+ end
662
+ self.en_comment_tail = 91
663
+ class << self
664
+ attr_accessor :en_main
665
+ end
666
+ self.en_main = 1
667
+
668
+ def self.parse(data)
669
+ data = data.dup.force_encoding(Encoding::ASCII_8BIT) if data.respond_to?(:force_encoding)
670
+
671
+ raise Mail::Field::NilParseError.new(Mail::DateTimeElement) if data.nil?
672
+
673
+ date_time = DateTimeStruct.new([])
674
+
675
+ # Parser state
676
+ date_s = time_s = nil
677
+
678
+ # 5.1 Variables Used by Ragel
679
+ p = 0
680
+ eof = pe = data.length
681
+ stack = []
682
+
683
+ begin
684
+ p ||= 0
685
+ pe ||= data.length
686
+ cs = start
687
+ top = 0
688
+ end
689
+
690
+ begin
691
+ testEof = false
692
+ _slen, _trans, _keys, _inds, _acts, _nacts = nil
693
+ _goto_level = 0
694
+ _resume = 10
695
+ _eof_trans = 15
696
+ _again = 20
697
+ _test_eof = 30
698
+ _out = 40
699
+ while true
700
+ if _goto_level <= 0
701
+ if p == pe
702
+ _goto_level = _test_eof
703
+ next
704
+ end
705
+ if cs == 0
706
+ _goto_level = _out
707
+ next
708
+ end
709
+ end
710
+ if _goto_level <= _resume
711
+ _keys = cs << 1
712
+ _inds = _index_offsets[cs]
713
+ _slen = _key_spans[cs]
714
+ _wide = data[p].ord
715
+ _trans = if (_slen > 0 &&
716
+ _trans_keys[_keys] <= _wide &&
717
+ _wide <= _trans_keys[_keys + 1])
718
+ _indicies[_inds + _wide - _trans_keys[_keys]]
719
+ else
720
+ _indicies[_inds + _slen]
721
+ end
722
+ cs = _trans_targs[_trans]
723
+ if _trans_actions[_trans] != 0
724
+ case _trans_actions[_trans]
725
+ when 1
726
+ begin
727
+ date_s = p
728
+ end
729
+ when 13
730
+ begin
731
+ date_time.time_string = chars(data, time_s, p - 1)
732
+ end
733
+ when 9
734
+ begin
735
+ end
736
+ when 4
737
+ begin
738
+ end
739
+ when 3
740
+ begin
741
+ begin
742
+ stack[top] = cs
743
+ top += 1
744
+ cs = 91
745
+ _goto_level = _again
746
+ next
747
+ end
748
+ end
749
+ when 12
750
+ begin
751
+ begin
752
+ top -= 1
753
+ cs = stack[top]
754
+ _goto_level = _again
755
+ next
756
+ end
757
+ end
758
+ when 8
759
+ begin
760
+ date_s = p
761
+ end
762
+ begin
763
+ begin
764
+ stack[top] = cs
765
+ top += 1
766
+ cs = 91
767
+ _goto_level = _again
768
+ next
769
+ end
770
+ end
771
+ when 6
772
+ begin
773
+ date_time.date_string = chars(data, date_s, p - 1)
774
+ end
775
+ begin
776
+ time_s = p
777
+ end
778
+ when 14
779
+ begin
780
+ date_time.time_string = chars(data, time_s, p - 1)
781
+ end
782
+ begin
783
+ begin
784
+ stack[top] = cs
785
+ top += 1
786
+ cs = 91
787
+ _goto_level = _again
788
+ next
789
+ end
790
+ end
791
+ when 10
792
+ begin
793
+ end
794
+ begin
795
+ begin
796
+ stack[top] = cs
797
+ top += 1
798
+ cs = 91
799
+ _goto_level = _again
800
+ next
801
+ end
802
+ end
803
+ when 11
804
+ begin
805
+ end
806
+ begin
807
+ begin
808
+ top -= 1
809
+ cs = stack[top]
810
+ _goto_level = _again
811
+ next
812
+ end
813
+ end
814
+ when 5
815
+ begin
816
+ end
817
+ begin
818
+ begin
819
+ stack[top] = cs
820
+ top += 1
821
+ cs = 91
822
+ _goto_level = _again
823
+ next
824
+ end
825
+ end
826
+ when 2
827
+ begin
828
+ begin
829
+ stack[top] = cs
830
+ top += 1
831
+ cs = 91
832
+ _goto_level = _again
833
+ next
834
+ end
835
+ end
836
+ begin
837
+ date_s = p
838
+ end
839
+ when 7
840
+ begin
841
+ end
842
+ begin
843
+ date_time.date_string = chars(data, date_s, p - 1)
844
+ end
845
+ begin
846
+ time_s = p
847
+ end
848
+ end
849
+ end
850
+ end
851
+ if _goto_level <= _again
852
+ if cs == 0
853
+ _goto_level = _out
854
+ next
855
+ end
856
+ p += 1
857
+ if p != pe
858
+ _goto_level = _resume
859
+ next
860
+ end
861
+ end
862
+ if _goto_level <= _test_eof
863
+ if p == eof
864
+ case _eof_actions[cs]
865
+ when 13
866
+ begin
867
+ date_time.time_string = chars(data, time_s, p - 1)
868
+ end
869
+ when 4
870
+ begin
871
+ end
872
+ end
873
+ end
874
+ end
875
+ if _goto_level <= _out
876
+ break
877
+ end
878
+ end
879
+ end
880
+
881
+ if p != eof || cs < 103
882
+ raise Mail::Field::IncompleteParseError.new(Mail::DateTimeElement, data, p)
883
+ end
884
+
885
+ date_time
886
+ end
37
887
  end
38
888
  end
889
+ ensure
890
+ $VERBOSE = original_verbose
39
891
  end