mail 2.5.5 → 2.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +170 -108
  4. data/lib/mail/attachments_list.rb +13 -10
  5. data/lib/mail/body.rb +105 -91
  6. data/lib/mail/check_delivery_params.rb +30 -22
  7. data/lib/mail/configuration.rb +3 -0
  8. data/lib/mail/constants.rb +79 -0
  9. data/lib/mail/elements/address.rb +118 -174
  10. data/lib/mail/elements/address_list.rb +16 -56
  11. data/lib/mail/elements/content_disposition_element.rb +12 -22
  12. data/lib/mail/elements/content_location_element.rb +9 -17
  13. data/lib/mail/elements/content_transfer_encoding_element.rb +8 -19
  14. data/lib/mail/elements/content_type_element.rb +20 -30
  15. data/lib/mail/elements/date_time_element.rb +10 -21
  16. data/lib/mail/elements/envelope_from_element.rb +23 -31
  17. data/lib/mail/elements/message_ids_element.rb +22 -20
  18. data/lib/mail/elements/mime_version_element.rb +10 -21
  19. data/lib/mail/elements/phrase_list.rb +13 -15
  20. data/lib/mail/elements/received_element.rb +26 -21
  21. data/lib/mail/elements.rb +1 -0
  22. data/lib/mail/encodings/7bit.rb +10 -14
  23. data/lib/mail/encodings/8bit.rb +5 -18
  24. data/lib/mail/encodings/base64.rb +15 -10
  25. data/lib/mail/encodings/binary.rb +4 -22
  26. data/lib/mail/encodings/identity.rb +24 -0
  27. data/lib/mail/encodings/quoted_printable.rb +13 -7
  28. data/lib/mail/encodings/transfer_encoding.rb +47 -28
  29. data/lib/mail/encodings/unix_to_unix.rb +20 -0
  30. data/lib/mail/encodings.rb +102 -93
  31. data/lib/mail/envelope.rb +12 -19
  32. data/lib/mail/field.rb +143 -71
  33. data/lib/mail/field_list.rb +73 -19
  34. data/lib/mail/fields/bcc_field.rb +42 -48
  35. data/lib/mail/fields/cc_field.rb +29 -50
  36. data/lib/mail/fields/comments_field.rb +28 -37
  37. data/lib/mail/fields/common_address_field.rb +170 -0
  38. data/lib/mail/fields/common_date_field.rb +58 -0
  39. data/lib/mail/fields/common_field.rb +77 -0
  40. data/lib/mail/fields/common_message_id_field.rb +42 -0
  41. data/lib/mail/fields/content_description_field.rb +8 -14
  42. data/lib/mail/fields/content_disposition_field.rb +20 -44
  43. data/lib/mail/fields/content_id_field.rb +25 -51
  44. data/lib/mail/fields/content_location_field.rb +12 -25
  45. data/lib/mail/fields/content_transfer_encoding_field.rb +31 -36
  46. data/lib/mail/fields/content_type_field.rb +51 -80
  47. data/lib/mail/fields/date_field.rb +24 -52
  48. data/lib/mail/fields/from_field.rb +29 -50
  49. data/lib/mail/fields/in_reply_to_field.rb +39 -49
  50. data/lib/mail/fields/keywords_field.rb +19 -32
  51. data/lib/mail/fields/message_id_field.rb +26 -71
  52. data/lib/mail/fields/mime_version_field.rb +20 -30
  53. data/lib/mail/fields/named_structured_field.rb +11 -0
  54. data/lib/mail/fields/named_unstructured_field.rb +11 -0
  55. data/lib/mail/fields/optional_field.rb +10 -7
  56. data/lib/mail/fields/{common/parameter_hash.rb → parameter_hash.rb} +16 -13
  57. data/lib/mail/fields/received_field.rb +44 -57
  58. data/lib/mail/fields/references_field.rb +36 -49
  59. data/lib/mail/fields/reply_to_field.rb +29 -50
  60. data/lib/mail/fields/resent_bcc_field.rb +29 -50
  61. data/lib/mail/fields/resent_cc_field.rb +29 -50
  62. data/lib/mail/fields/resent_date_field.rb +6 -30
  63. data/lib/mail/fields/resent_from_field.rb +29 -50
  64. data/lib/mail/fields/resent_message_id_field.rb +6 -29
  65. data/lib/mail/fields/resent_sender_field.rb +28 -57
  66. data/lib/mail/fields/resent_to_field.rb +29 -50
  67. data/lib/mail/fields/return_path_field.rb +51 -55
  68. data/lib/mail/fields/sender_field.rb +35 -56
  69. data/lib/mail/fields/structured_field.rb +4 -30
  70. data/lib/mail/fields/subject_field.rb +10 -11
  71. data/lib/mail/fields/to_field.rb +29 -50
  72. data/lib/mail/fields/unstructured_field.rb +43 -51
  73. data/lib/mail/fields.rb +1 -0
  74. data/lib/mail/header.rb +78 -129
  75. data/lib/mail/indifferent_hash.rb +1 -0
  76. data/lib/mail/mail.rb +18 -11
  77. data/lib/mail/matchers/attachment_matchers.rb +44 -0
  78. data/lib/mail/matchers/has_sent_mail.rb +81 -4
  79. data/lib/mail/message.rb +142 -139
  80. data/lib/mail/multibyte/chars.rb +24 -180
  81. data/lib/mail/multibyte/unicode.rb +32 -27
  82. data/lib/mail/multibyte/utils.rb +27 -43
  83. data/lib/mail/multibyte.rb +56 -16
  84. data/lib/mail/network/delivery_methods/exim.rb +6 -4
  85. data/lib/mail/network/delivery_methods/file_delivery.rb +12 -10
  86. data/lib/mail/network/delivery_methods/logger_delivery.rb +34 -0
  87. data/lib/mail/network/delivery_methods/sendmail.rb +63 -21
  88. data/lib/mail/network/delivery_methods/smtp.rb +76 -50
  89. data/lib/mail/network/delivery_methods/smtp_connection.rb +4 -4
  90. data/lib/mail/network/delivery_methods/test_mailer.rb +5 -2
  91. data/lib/mail/network/retriever_methods/base.rb +9 -8
  92. data/lib/mail/network/retriever_methods/imap.rb +37 -18
  93. data/lib/mail/network/retriever_methods/pop3.rb +6 -3
  94. data/lib/mail/network/retriever_methods/test_retriever.rb +4 -2
  95. data/lib/mail/network.rb +2 -0
  96. data/lib/mail/parser_tools.rb +15 -0
  97. data/lib/mail/parsers/address_lists_parser.rb +33242 -0
  98. data/lib/mail/parsers/address_lists_parser.rl +179 -0
  99. data/lib/mail/parsers/content_disposition_parser.rb +901 -0
  100. data/lib/mail/parsers/content_disposition_parser.rl +89 -0
  101. data/lib/mail/parsers/content_location_parser.rb +822 -0
  102. data/lib/mail/parsers/content_location_parser.rl +78 -0
  103. data/lib/mail/parsers/content_transfer_encoding_parser.rb +522 -0
  104. data/lib/mail/parsers/content_transfer_encoding_parser.rl +71 -0
  105. data/lib/mail/parsers/content_type_parser.rb +1048 -0
  106. data/lib/mail/parsers/content_type_parser.rl +90 -0
  107. data/lib/mail/parsers/date_time_parser.rb +891 -0
  108. data/lib/mail/parsers/date_time_parser.rl +69 -0
  109. data/lib/mail/parsers/envelope_from_parser.rb +3675 -0
  110. data/lib/mail/parsers/envelope_from_parser.rl +89 -0
  111. data/lib/mail/parsers/message_ids_parser.rb +5161 -0
  112. data/lib/mail/parsers/message_ids_parser.rl +93 -0
  113. data/lib/mail/parsers/mime_version_parser.rb +513 -0
  114. data/lib/mail/parsers/mime_version_parser.rl +68 -0
  115. data/lib/mail/parsers/phrase_lists_parser.rb +884 -0
  116. data/lib/mail/parsers/phrase_lists_parser.rl +90 -0
  117. data/lib/mail/parsers/received_parser.rb +8782 -0
  118. data/lib/mail/parsers/received_parser.rl +91 -0
  119. data/lib/mail/parsers/rfc2045_content_transfer_encoding.rl +13 -0
  120. data/lib/mail/parsers/rfc2045_content_type.rl +25 -0
  121. data/lib/mail/parsers/rfc2045_mime.rl +16 -0
  122. data/lib/mail/parsers/rfc2183_content_disposition.rl +15 -0
  123. data/lib/mail/parsers/rfc3629_utf8.rl +19 -0
  124. data/lib/mail/parsers/rfc5234_abnf_core_rules.rl +22 -0
  125. data/lib/mail/parsers/rfc5322.rl +74 -0
  126. data/lib/mail/parsers/rfc5322_address.rl +72 -0
  127. data/lib/mail/parsers/rfc5322_date_time.rl +37 -0
  128. data/lib/mail/parsers/rfc5322_lexical_tokens.rl +60 -0
  129. data/lib/mail/parsers.rb +13 -0
  130. data/lib/mail/part.rb +11 -12
  131. data/lib/mail/parts_list.rb +90 -14
  132. data/lib/mail/smtp_envelope.rb +57 -0
  133. data/lib/mail/utilities.rb +415 -76
  134. data/lib/mail/values/unicode_tables.dat +0 -0
  135. data/lib/mail/version.rb +8 -15
  136. data/lib/mail/yaml.rb +30 -0
  137. data/lib/mail.rb +9 -32
  138. metadata +127 -79
  139. data/CHANGELOG.rdoc +0 -742
  140. data/CONTRIBUTING.md +0 -45
  141. data/Dependencies.txt +0 -3
  142. data/Gemfile +0 -32
  143. data/Rakefile +0 -21
  144. data/TODO.rdoc +0 -9
  145. data/lib/VERSION +0 -4
  146. data/lib/load_parsers.rb +0 -35
  147. data/lib/mail/core_extensions/nil.rb +0 -19
  148. data/lib/mail/core_extensions/object.rb +0 -13
  149. data/lib/mail/core_extensions/smtp.rb +0 -24
  150. data/lib/mail/core_extensions/string/access.rb +0 -145
  151. data/lib/mail/core_extensions/string/multibyte.rb +0 -78
  152. data/lib/mail/core_extensions/string.rb +0 -33
  153. data/lib/mail/fields/common/address_container.rb +0 -16
  154. data/lib/mail/fields/common/common_address.rb +0 -140
  155. data/lib/mail/fields/common/common_date.rb +0 -42
  156. data/lib/mail/fields/common/common_field.rb +0 -57
  157. data/lib/mail/fields/common/common_message_id.rb +0 -48
  158. data/lib/mail/multibyte/exceptions.rb +0 -8
  159. data/lib/mail/parsers/address_lists.rb +0 -64
  160. data/lib/mail/parsers/address_lists.treetop +0 -19
  161. data/lib/mail/parsers/content_disposition.rb +0 -535
  162. data/lib/mail/parsers/content_disposition.treetop +0 -46
  163. data/lib/mail/parsers/content_location.rb +0 -139
  164. data/lib/mail/parsers/content_location.treetop +0 -20
  165. data/lib/mail/parsers/content_transfer_encoding.rb +0 -201
  166. data/lib/mail/parsers/content_transfer_encoding.treetop +0 -18
  167. data/lib/mail/parsers/content_type.rb +0 -971
  168. data/lib/mail/parsers/content_type.treetop +0 -68
  169. data/lib/mail/parsers/date_time.rb +0 -114
  170. data/lib/mail/parsers/date_time.treetop +0 -11
  171. data/lib/mail/parsers/envelope_from.rb +0 -194
  172. data/lib/mail/parsers/envelope_from.treetop +0 -32
  173. data/lib/mail/parsers/message_ids.rb +0 -45
  174. data/lib/mail/parsers/message_ids.treetop +0 -15
  175. data/lib/mail/parsers/mime_version.rb +0 -144
  176. data/lib/mail/parsers/mime_version.treetop +0 -19
  177. data/lib/mail/parsers/phrase_lists.rb +0 -45
  178. data/lib/mail/parsers/phrase_lists.treetop +0 -15
  179. data/lib/mail/parsers/received.rb +0 -71
  180. data/lib/mail/parsers/received.treetop +0 -11
  181. data/lib/mail/parsers/rfc2045.rb +0 -421
  182. data/lib/mail/parsers/rfc2045.treetop +0 -35
  183. data/lib/mail/parsers/rfc2822.rb +0 -5397
  184. data/lib/mail/parsers/rfc2822.treetop +0 -408
  185. data/lib/mail/parsers/rfc2822_obsolete.rb +0 -3768
  186. data/lib/mail/parsers/rfc2822_obsolete.treetop +0 -241
  187. data/lib/mail/patterns.rb +0 -35
  188. data/lib/mail/version_specific/ruby_1_8.rb +0 -119
  189. data/lib/mail/version_specific/ruby_1_9.rb +0 -147
  190. data/lib/tasks/corpus.rake +0 -125
  191. data/lib/tasks/treetop.rake +0 -10
data/lib/mail/version.rb CHANGED
@@ -1,24 +1,17 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
2
  module Mail
3
3
  module VERSION
4
-
5
- version = {}
6
- File.read(File.join(File.dirname(__FILE__), '../', 'VERSION')).each_line do |line|
7
- type, value = line.chomp.split(":")
8
- next if type =~ /^\s+$/ || value =~ /^\s+$/
9
- version[type] = value
10
- end
11
-
12
- MAJOR = version['major']
13
- MINOR = version['minor']
14
- PATCH = version['patch']
15
- BUILD = version['build']
4
+
5
+ MAJOR = 2
6
+ MINOR = 8
7
+ PATCH = 1
8
+ BUILD = nil
16
9
 
17
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
18
-
11
+
19
12
  def self.version
20
13
  STRING
21
14
  end
22
-
15
+
23
16
  end
24
17
  end
data/lib/mail/yaml.rb ADDED
@@ -0,0 +1,30 @@
1
+ require 'yaml'
2
+
3
+ module Mail
4
+ module YAML
5
+ def self.load(yaml)
6
+ permitted_classes = [
7
+ Symbol,
8
+
9
+ Mail::Body,
10
+
11
+ # Delivery methods as listed in mail/configuration.rb
12
+ Mail::SMTP,
13
+ Mail::Sendmail,
14
+ Mail::Exim,
15
+ Mail::FileDelivery,
16
+ Mail::SMTPConnection,
17
+ Mail::TestMailer,
18
+ Mail::LoggerDelivery,
19
+
20
+ Mail.delivery_method.class,
21
+ ]
22
+
23
+ if Gem::Version.new(Psych::VERSION) >= Gem::Version.new('3.1.0.pre1')
24
+ ::YAML.safe_load(yaml, :permitted_classes => permitted_classes)
25
+ else
26
+ ::YAML.safe_load(yaml, permitted_classes)
27
+ end
28
+ end
29
+ end
30
+ end
data/lib/mail.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  module Mail # :doc:
3
4
 
4
5
  require 'date'
@@ -6,42 +7,15 @@ module Mail # :doc:
6
7
 
7
8
  require 'uri'
8
9
  require 'net/smtp'
9
- require 'mime/types'
10
-
11
- if RUBY_VERSION <= '1.8.6'
12
- begin
13
- require 'tlsmail'
14
- rescue LoadError
15
- raise "You need to install tlsmail if you are using ruby <= 1.8.6"
16
- end
17
- end
18
-
19
- if RUBY_VERSION >= "1.9.0"
20
- require 'mail/version_specific/ruby_1_9'
21
- RubyVer = Ruby19
22
- else
23
- require 'mail/version_specific/ruby_1_8'
24
- RubyVer = Ruby18
25
- end
10
+ require 'mini_mime'
26
11
 
27
12
  require 'mail/version'
28
13
 
29
- require 'mail/core_extensions/nil'
30
- require 'mail/core_extensions/object'
31
- require 'mail/core_extensions/string'
32
- require 'mail/core_extensions/smtp' if RUBY_VERSION < '1.9.3'
33
14
  require 'mail/indifferent_hash'
34
15
 
35
- # Only load our multibyte extensions if AS is not already loaded
36
- if defined?(ActiveSupport)
37
- require 'active_support/inflector'
38
- else
39
- require 'mail/core_extensions/string/access'
40
- require 'mail/core_extensions/string/multibyte'
41
- require 'mail/multibyte'
42
- end
16
+ require 'mail/multibyte'
43
17
 
44
- require 'mail/patterns'
18
+ require 'mail/constants'
45
19
  require 'mail/utilities'
46
20
  require 'mail/configuration'
47
21
 
@@ -76,15 +50,18 @@ module Mail # :doc:
76
50
 
77
51
  require 'mail/envelope'
78
52
 
79
- require 'load_parsers'
80
-
81
53
  # Autoload header field elements and transfer encodings.
82
54
  require 'mail/elements'
83
55
  require 'mail/encodings'
84
56
  require 'mail/encodings/base64'
85
57
  require 'mail/encodings/quoted_printable'
58
+ require 'mail/encodings/unix_to_unix'
86
59
 
87
60
  require 'mail/matchers/has_sent_mail'
61
+ require 'mail/matchers/attachment_matchers.rb'
62
+
63
+ # Deprecated will be removed in 3.0 release
64
+ require 'mail/check_delivery_params'
88
65
 
89
66
  # Finally... require all the Mail.methods
90
67
  require 'mail/mail'
metadata CHANGED
@@ -1,43 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.5
4
+ version: 2.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikel Lindsaar
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-09 00:00:00.000000000 Z
11
+ date: 2023-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: mime-types
14
+ name: mini_mime
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: 0.1.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: 0.1.1
27
27
  - !ruby/object:Gem::Dependency
28
- name: treetop
28
+ name: net-smtp
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.4.8
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: net-imap
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: net-pop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
39
67
  - !ruby/object:Gem::Version
40
- version: 1.4.8
68
+ version: '0'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: bundler
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +100,28 @@ dependencies:
72
100
  requirements:
73
101
  - - "~>"
74
102
  - !ruby/object:Gem::Version
75
- version: 2.12.0
103
+ version: '3.0'
76
104
  type: :development
77
105
  prerelease: false
78
106
  version_requirements: !ruby/object:Gem::Requirement
79
107
  requirements:
80
108
  - - "~>"
81
109
  - !ruby/object:Gem::Version
82
- version: 2.12.0
110
+ version: '3.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec-benchmark
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
83
125
  - !ruby/object:Gem::Dependency
84
126
  name: rdoc
85
127
  requirement: !ruby/object:Gem::Requirement
@@ -94,37 +136,35 @@ dependencies:
94
136
  - - ">="
95
137
  - !ruby/object:Gem::Version
96
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rufo
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
97
153
  description: A really Ruby Mail handler.
98
154
  email: raasdnil@gmail.com
99
155
  executables: []
100
156
  extensions: []
101
157
  extra_rdoc_files:
102
158
  - README.md
103
- - CONTRIBUTING.md
104
- - CHANGELOG.rdoc
105
- - TODO.rdoc
106
159
  files:
107
- - CHANGELOG.rdoc
108
- - CONTRIBUTING.md
109
- - Dependencies.txt
110
- - Gemfile
111
160
  - MIT-LICENSE
112
161
  - README.md
113
- - Rakefile
114
- - TODO.rdoc
115
- - lib/VERSION
116
- - lib/load_parsers.rb
117
162
  - lib/mail.rb
118
163
  - lib/mail/attachments_list.rb
119
164
  - lib/mail/body.rb
120
165
  - lib/mail/check_delivery_params.rb
121
166
  - lib/mail/configuration.rb
122
- - lib/mail/core_extensions/nil.rb
123
- - lib/mail/core_extensions/object.rb
124
- - lib/mail/core_extensions/smtp.rb
125
- - lib/mail/core_extensions/string.rb
126
- - lib/mail/core_extensions/string/access.rb
127
- - lib/mail/core_extensions/string/multibyte.rb
167
+ - lib/mail/constants.rb
128
168
  - lib/mail/elements.rb
129
169
  - lib/mail/elements/address.rb
130
170
  - lib/mail/elements/address_list.rb
@@ -143,8 +183,10 @@ files:
143
183
  - lib/mail/encodings/8bit.rb
144
184
  - lib/mail/encodings/base64.rb
145
185
  - lib/mail/encodings/binary.rb
186
+ - lib/mail/encodings/identity.rb
146
187
  - lib/mail/encodings/quoted_printable.rb
147
188
  - lib/mail/encodings/transfer_encoding.rb
189
+ - lib/mail/encodings/unix_to_unix.rb
148
190
  - lib/mail/envelope.rb
149
191
  - lib/mail/field.rb
150
192
  - lib/mail/field_list.rb
@@ -152,12 +194,10 @@ files:
152
194
  - lib/mail/fields/bcc_field.rb
153
195
  - lib/mail/fields/cc_field.rb
154
196
  - lib/mail/fields/comments_field.rb
155
- - lib/mail/fields/common/address_container.rb
156
- - lib/mail/fields/common/common_address.rb
157
- - lib/mail/fields/common/common_date.rb
158
- - lib/mail/fields/common/common_field.rb
159
- - lib/mail/fields/common/common_message_id.rb
160
- - lib/mail/fields/common/parameter_hash.rb
197
+ - lib/mail/fields/common_address_field.rb
198
+ - lib/mail/fields/common_date_field.rb
199
+ - lib/mail/fields/common_field.rb
200
+ - lib/mail/fields/common_message_id_field.rb
161
201
  - lib/mail/fields/content_description_field.rb
162
202
  - lib/mail/fields/content_disposition_field.rb
163
203
  - lib/mail/fields/content_id_field.rb
@@ -170,7 +210,10 @@ files:
170
210
  - lib/mail/fields/keywords_field.rb
171
211
  - lib/mail/fields/message_id_field.rb
172
212
  - lib/mail/fields/mime_version_field.rb
213
+ - lib/mail/fields/named_structured_field.rb
214
+ - lib/mail/fields/named_unstructured_field.rb
173
215
  - lib/mail/fields/optional_field.rb
216
+ - lib/mail/fields/parameter_hash.rb
174
217
  - lib/mail/fields/received_field.rb
175
218
  - lib/mail/fields/references_field.rb
176
219
  - lib/mail/fields/reply_to_field.rb
@@ -190,16 +233,17 @@ files:
190
233
  - lib/mail/header.rb
191
234
  - lib/mail/indifferent_hash.rb
192
235
  - lib/mail/mail.rb
236
+ - lib/mail/matchers/attachment_matchers.rb
193
237
  - lib/mail/matchers/has_sent_mail.rb
194
238
  - lib/mail/message.rb
195
239
  - lib/mail/multibyte.rb
196
240
  - lib/mail/multibyte/chars.rb
197
- - lib/mail/multibyte/exceptions.rb
198
241
  - lib/mail/multibyte/unicode.rb
199
242
  - lib/mail/multibyte/utils.rb
200
243
  - lib/mail/network.rb
201
244
  - lib/mail/network/delivery_methods/exim.rb
202
245
  - lib/mail/network/delivery_methods/file_delivery.rb
246
+ - lib/mail/network/delivery_methods/logger_delivery.rb
203
247
  - lib/mail/network/delivery_methods/sendmail.rb
204
248
  - lib/mail/network/delivery_methods/smtp.rb
205
249
  - lib/mail/network/delivery_methods/smtp_connection.rb
@@ -208,66 +252,70 @@ files:
208
252
  - lib/mail/network/retriever_methods/imap.rb
209
253
  - lib/mail/network/retriever_methods/pop3.rb
210
254
  - lib/mail/network/retriever_methods/test_retriever.rb
211
- - lib/mail/parsers/address_lists.rb
212
- - lib/mail/parsers/address_lists.treetop
213
- - lib/mail/parsers/content_disposition.rb
214
- - lib/mail/parsers/content_disposition.treetop
215
- - lib/mail/parsers/content_location.rb
216
- - lib/mail/parsers/content_location.treetop
217
- - lib/mail/parsers/content_transfer_encoding.rb
218
- - lib/mail/parsers/content_transfer_encoding.treetop
219
- - lib/mail/parsers/content_type.rb
220
- - lib/mail/parsers/content_type.treetop
221
- - lib/mail/parsers/date_time.rb
222
- - lib/mail/parsers/date_time.treetop
223
- - lib/mail/parsers/envelope_from.rb
224
- - lib/mail/parsers/envelope_from.treetop
225
- - lib/mail/parsers/message_ids.rb
226
- - lib/mail/parsers/message_ids.treetop
227
- - lib/mail/parsers/mime_version.rb
228
- - lib/mail/parsers/mime_version.treetop
229
- - lib/mail/parsers/phrase_lists.rb
230
- - lib/mail/parsers/phrase_lists.treetop
231
- - lib/mail/parsers/received.rb
232
- - lib/mail/parsers/received.treetop
233
- - lib/mail/parsers/rfc2045.rb
234
- - lib/mail/parsers/rfc2045.treetop
235
- - lib/mail/parsers/rfc2822.rb
236
- - lib/mail/parsers/rfc2822.treetop
237
- - lib/mail/parsers/rfc2822_obsolete.rb
238
- - lib/mail/parsers/rfc2822_obsolete.treetop
255
+ - lib/mail/parser_tools.rb
256
+ - lib/mail/parsers.rb
257
+ - lib/mail/parsers/address_lists_parser.rb
258
+ - lib/mail/parsers/address_lists_parser.rl
259
+ - lib/mail/parsers/content_disposition_parser.rb
260
+ - lib/mail/parsers/content_disposition_parser.rl
261
+ - lib/mail/parsers/content_location_parser.rb
262
+ - lib/mail/parsers/content_location_parser.rl
263
+ - lib/mail/parsers/content_transfer_encoding_parser.rb
264
+ - lib/mail/parsers/content_transfer_encoding_parser.rl
265
+ - lib/mail/parsers/content_type_parser.rb
266
+ - lib/mail/parsers/content_type_parser.rl
267
+ - lib/mail/parsers/date_time_parser.rb
268
+ - lib/mail/parsers/date_time_parser.rl
269
+ - lib/mail/parsers/envelope_from_parser.rb
270
+ - lib/mail/parsers/envelope_from_parser.rl
271
+ - lib/mail/parsers/message_ids_parser.rb
272
+ - lib/mail/parsers/message_ids_parser.rl
273
+ - lib/mail/parsers/mime_version_parser.rb
274
+ - lib/mail/parsers/mime_version_parser.rl
275
+ - lib/mail/parsers/phrase_lists_parser.rb
276
+ - lib/mail/parsers/phrase_lists_parser.rl
277
+ - lib/mail/parsers/received_parser.rb
278
+ - lib/mail/parsers/received_parser.rl
279
+ - lib/mail/parsers/rfc2045_content_transfer_encoding.rl
280
+ - lib/mail/parsers/rfc2045_content_type.rl
281
+ - lib/mail/parsers/rfc2045_mime.rl
282
+ - lib/mail/parsers/rfc2183_content_disposition.rl
283
+ - lib/mail/parsers/rfc3629_utf8.rl
284
+ - lib/mail/parsers/rfc5234_abnf_core_rules.rl
285
+ - lib/mail/parsers/rfc5322.rl
286
+ - lib/mail/parsers/rfc5322_address.rl
287
+ - lib/mail/parsers/rfc5322_date_time.rl
288
+ - lib/mail/parsers/rfc5322_lexical_tokens.rl
239
289
  - lib/mail/part.rb
240
290
  - lib/mail/parts_list.rb
241
- - lib/mail/patterns.rb
291
+ - lib/mail/smtp_envelope.rb
242
292
  - lib/mail/utilities.rb
243
293
  - lib/mail/values/unicode_tables.dat
244
294
  - lib/mail/version.rb
245
- - lib/mail/version_specific/ruby_1_8.rb
246
- - lib/mail/version_specific/ruby_1_9.rb
247
- - lib/tasks/corpus.rake
248
- - lib/tasks/treetop.rake
249
- homepage: http://github.com/mikel/mail
295
+ - lib/mail/yaml.rb
296
+ homepage: https://github.com/mikel/mail
250
297
  licenses:
251
298
  - MIT
252
299
  metadata: {}
253
- post_install_message:
254
- rdoc_options: []
300
+ post_install_message:
301
+ rdoc_options:
302
+ - "--exclude"
303
+ - lib/mail/values/unicode_tables.dat
255
304
  require_paths:
256
305
  - lib
257
306
  required_ruby_version: !ruby/object:Gem::Requirement
258
307
  requirements:
259
308
  - - ">="
260
309
  - !ruby/object:Gem::Version
261
- version: '0'
310
+ version: '2.5'
262
311
  required_rubygems_version: !ruby/object:Gem::Requirement
263
312
  requirements:
264
313
  - - ">="
265
314
  - !ruby/object:Gem::Version
266
315
  version: '0'
267
316
  requirements: []
268
- rubyforge_project:
269
- rubygems_version: 2.6.11
270
- signing_key:
317
+ rubygems_version: 3.1.6
318
+ signing_key:
271
319
  specification_version: 4
272
320
  summary: Mail provides a nice Ruby DSL for making, sending and reading emails.
273
321
  test_files: []