rack-mail_exception 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (321) hide show
  1. data/.document +5 -0
  2. data/.gitignore +22 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +38 -0
  5. data/Rakefile +56 -0
  6. data/VERSION +1 -0
  7. data/lib/rack/mail_exception.rb +103 -0
  8. data/test/helper.rb +13 -0
  9. data/test/test_rack_mail_exception.rb +93 -0
  10. data/vendor/mail/.bundle/config +2 -0
  11. data/vendor/mail/CHANGELOG.rdoc +370 -0
  12. data/vendor/mail/Dependencies.txt +3 -0
  13. data/vendor/mail/Gemfile +17 -0
  14. data/vendor/mail/README.rdoc +572 -0
  15. data/vendor/mail/ROADMAP +92 -0
  16. data/vendor/mail/Rakefile +41 -0
  17. data/vendor/mail/TODO.rdoc +9 -0
  18. data/vendor/mail/lib/mail.rb +76 -0
  19. data/vendor/mail/lib/mail/attachments_list.rb +99 -0
  20. data/vendor/mail/lib/mail/body.rb +287 -0
  21. data/vendor/mail/lib/mail/configuration.rb +67 -0
  22. data/vendor/mail/lib/mail/core_extensions/blank.rb +26 -0
  23. data/vendor/mail/lib/mail/core_extensions/nil.rb +11 -0
  24. data/vendor/mail/lib/mail/core_extensions/string.rb +27 -0
  25. data/vendor/mail/lib/mail/elements.rb +14 -0
  26. data/vendor/mail/lib/mail/elements/address.rb +306 -0
  27. data/vendor/mail/lib/mail/elements/address_list.rb +74 -0
  28. data/vendor/mail/lib/mail/elements/content_disposition_element.rb +30 -0
  29. data/vendor/mail/lib/mail/elements/content_location_element.rb +25 -0
  30. data/vendor/mail/lib/mail/elements/content_transfer_encoding_element.rb +24 -0
  31. data/vendor/mail/lib/mail/elements/content_type_element.rb +35 -0
  32. data/vendor/mail/lib/mail/elements/date_time_element.rb +26 -0
  33. data/vendor/mail/lib/mail/elements/envelope_from_element.rb +34 -0
  34. data/vendor/mail/lib/mail/elements/message_ids_element.rb +29 -0
  35. data/vendor/mail/lib/mail/elements/mime_version_element.rb +26 -0
  36. data/vendor/mail/lib/mail/elements/phrase_list.rb +21 -0
  37. data/vendor/mail/lib/mail/elements/received_element.rb +30 -0
  38. data/vendor/mail/lib/mail/encodings.rb +258 -0
  39. data/vendor/mail/lib/mail/encodings/7bit.rb +31 -0
  40. data/vendor/mail/lib/mail/encodings/8bit.rb +31 -0
  41. data/vendor/mail/lib/mail/encodings/base64.rb +33 -0
  42. data/vendor/mail/lib/mail/encodings/binary.rb +31 -0
  43. data/vendor/mail/lib/mail/encodings/quoted_printable.rb +38 -0
  44. data/vendor/mail/lib/mail/encodings/transfer_encoding.rb +58 -0
  45. data/vendor/mail/lib/mail/envelope.rb +35 -0
  46. data/vendor/mail/lib/mail/field.rb +223 -0
  47. data/vendor/mail/lib/mail/field_list.rb +33 -0
  48. data/vendor/mail/lib/mail/fields.rb +35 -0
  49. data/vendor/mail/lib/mail/fields/bcc_field.rb +56 -0
  50. data/vendor/mail/lib/mail/fields/cc_field.rb +55 -0
  51. data/vendor/mail/lib/mail/fields/comments_field.rb +41 -0
  52. data/vendor/mail/lib/mail/fields/common/address_container.rb +16 -0
  53. data/vendor/mail/lib/mail/fields/common/common_address.rb +125 -0
  54. data/vendor/mail/lib/mail/fields/common/common_date.rb +42 -0
  55. data/vendor/mail/lib/mail/fields/common/common_field.rb +50 -0
  56. data/vendor/mail/lib/mail/fields/common/common_message_id.rb +43 -0
  57. data/vendor/mail/lib/mail/fields/common/parameter_hash.rb +52 -0
  58. data/vendor/mail/lib/mail/fields/content_description_field.rb +19 -0
  59. data/vendor/mail/lib/mail/fields/content_disposition_field.rb +69 -0
  60. data/vendor/mail/lib/mail/fields/content_id_field.rb +63 -0
  61. data/vendor/mail/lib/mail/fields/content_location_field.rb +42 -0
  62. data/vendor/mail/lib/mail/fields/content_transfer_encoding_field.rb +50 -0
  63. data/vendor/mail/lib/mail/fields/content_type_field.rb +185 -0
  64. data/vendor/mail/lib/mail/fields/date_field.rb +55 -0
  65. data/vendor/mail/lib/mail/fields/from_field.rb +55 -0
  66. data/vendor/mail/lib/mail/fields/in_reply_to_field.rb +55 -0
  67. data/vendor/mail/lib/mail/fields/keywords_field.rb +44 -0
  68. data/vendor/mail/lib/mail/fields/message_id_field.rb +83 -0
  69. data/vendor/mail/lib/mail/fields/mime_version_field.rb +53 -0
  70. data/vendor/mail/lib/mail/fields/optional_field.rb +13 -0
  71. data/vendor/mail/lib/mail/fields/received_field.rb +67 -0
  72. data/vendor/mail/lib/mail/fields/references_field.rb +55 -0
  73. data/vendor/mail/lib/mail/fields/reply_to_field.rb +55 -0
  74. data/vendor/mail/lib/mail/fields/resent_bcc_field.rb +55 -0
  75. data/vendor/mail/lib/mail/fields/resent_cc_field.rb +55 -0
  76. data/vendor/mail/lib/mail/fields/resent_date_field.rb +35 -0
  77. data/vendor/mail/lib/mail/fields/resent_from_field.rb +55 -0
  78. data/vendor/mail/lib/mail/fields/resent_message_id_field.rb +34 -0
  79. data/vendor/mail/lib/mail/fields/resent_sender_field.rb +62 -0
  80. data/vendor/mail/lib/mail/fields/resent_to_field.rb +55 -0
  81. data/vendor/mail/lib/mail/fields/return_path_field.rb +64 -0
  82. data/vendor/mail/lib/mail/fields/sender_field.rb +67 -0
  83. data/vendor/mail/lib/mail/fields/structured_field.rb +51 -0
  84. data/vendor/mail/lib/mail/fields/subject_field.rb +16 -0
  85. data/vendor/mail/lib/mail/fields/to_field.rb +55 -0
  86. data/vendor/mail/lib/mail/fields/unstructured_field.rb +166 -0
  87. data/vendor/mail/lib/mail/header.rb +262 -0
  88. data/vendor/mail/lib/mail/mail.rb +234 -0
  89. data/vendor/mail/lib/mail/message.rb +1867 -0
  90. data/vendor/mail/lib/mail/network.rb +9 -0
  91. data/vendor/mail/lib/mail/network/delivery_methods/file_delivery.rb +40 -0
  92. data/vendor/mail/lib/mail/network/delivery_methods/sendmail.rb +62 -0
  93. data/vendor/mail/lib/mail/network/delivery_methods/smtp.rb +110 -0
  94. data/vendor/mail/lib/mail/network/delivery_methods/test_mailer.rb +40 -0
  95. data/vendor/mail/lib/mail/network/retriever_methods/imap.rb +18 -0
  96. data/vendor/mail/lib/mail/network/retriever_methods/pop3.rb +149 -0
  97. data/vendor/mail/lib/mail/parsers/address_lists.rb +64 -0
  98. data/vendor/mail/lib/mail/parsers/address_lists.treetop +19 -0
  99. data/vendor/mail/lib/mail/parsers/content_disposition.rb +387 -0
  100. data/vendor/mail/lib/mail/parsers/content_disposition.treetop +46 -0
  101. data/vendor/mail/lib/mail/parsers/content_location.rb +139 -0
  102. data/vendor/mail/lib/mail/parsers/content_location.treetop +20 -0
  103. data/vendor/mail/lib/mail/parsers/content_transfer_encoding.rb +162 -0
  104. data/vendor/mail/lib/mail/parsers/content_transfer_encoding.treetop +20 -0
  105. data/vendor/mail/lib/mail/parsers/content_type.rb +539 -0
  106. data/vendor/mail/lib/mail/parsers/content_type.treetop +58 -0
  107. data/vendor/mail/lib/mail/parsers/date_time.rb +114 -0
  108. data/vendor/mail/lib/mail/parsers/date_time.treetop +11 -0
  109. data/vendor/mail/lib/mail/parsers/envelope_from.rb +194 -0
  110. data/vendor/mail/lib/mail/parsers/envelope_from.treetop +32 -0
  111. data/vendor/mail/lib/mail/parsers/message_ids.rb +45 -0
  112. data/vendor/mail/lib/mail/parsers/message_ids.treetop +15 -0
  113. data/vendor/mail/lib/mail/parsers/mime_version.rb +144 -0
  114. data/vendor/mail/lib/mail/parsers/mime_version.treetop +19 -0
  115. data/vendor/mail/lib/mail/parsers/phrase_lists.rb +45 -0
  116. data/vendor/mail/lib/mail/parsers/phrase_lists.treetop +15 -0
  117. data/vendor/mail/lib/mail/parsers/received.rb +71 -0
  118. data/vendor/mail/lib/mail/parsers/received.treetop +11 -0
  119. data/vendor/mail/lib/mail/parsers/rfc2045.rb +464 -0
  120. data/vendor/mail/lib/mail/parsers/rfc2045.treetop +36 -0
  121. data/vendor/mail/lib/mail/parsers/rfc2822.rb +5318 -0
  122. data/vendor/mail/lib/mail/parsers/rfc2822.treetop +410 -0
  123. data/vendor/mail/lib/mail/parsers/rfc2822_obsolete.rb +3757 -0
  124. data/vendor/mail/lib/mail/parsers/rfc2822_obsolete.treetop +241 -0
  125. data/vendor/mail/lib/mail/part.rb +102 -0
  126. data/vendor/mail/lib/mail/parts_list.rb +34 -0
  127. data/vendor/mail/lib/mail/patterns.rb +30 -0
  128. data/vendor/mail/lib/mail/utilities.rb +181 -0
  129. data/vendor/mail/lib/mail/version.rb +10 -0
  130. data/vendor/mail/lib/mail/version_specific/ruby_1_8.rb +97 -0
  131. data/vendor/mail/lib/mail/version_specific/ruby_1_9.rb +87 -0
  132. data/vendor/mail/lib/tasks/corpus.rake +125 -0
  133. data/vendor/mail/lib/tasks/treetop.rake +10 -0
  134. data/vendor/mail/mail.gemspec +20 -0
  135. data/vendor/mail/reference/US ASCII Table.txt +130 -0
  136. data/vendor/mail/reference/rfc1035 Domain Implementation and Specification.txt +3083 -0
  137. data/vendor/mail/reference/rfc1049 Content-Type Header Field for Internet Messages.txt +451 -0
  138. data/vendor/mail/reference/rfc1344 Implications of MIME for Internet Mail Gateways.txt +586 -0
  139. data/vendor/mail/reference/rfc1345 Character Mnemonics & Character Sets.txt +5761 -0
  140. data/vendor/mail/reference/rfc1524 A User Agent Configuration Mechanism For Multimedia Mail Format Information.txt +675 -0
  141. data/vendor/mail/reference/rfc1652 SMTP Service Extension for 8bit-MIMEtransport.txt +339 -0
  142. data/vendor/mail/reference/rfc1892 Multipart Report .txt +227 -0
  143. data/vendor/mail/reference/rfc1893 Mail System Status Codes.txt +843 -0
  144. data/vendor/mail/reference/rfc2045 Multipurpose Internet Mail Extensions (1).txt +1739 -0
  145. data/vendor/mail/reference/rfc2046 Multipurpose Internet Mail Extensions (2).txt +2467 -0
  146. data/vendor/mail/reference/rfc2047 Multipurpose Internet Mail Extensions (3).txt +843 -0
  147. data/vendor/mail/reference/rfc2048 Multipurpose Internet Mail Extensions (4).txt +1180 -0
  148. data/vendor/mail/reference/rfc2049 Multipurpose Internet Mail Extensions (5).txt +1347 -0
  149. data/vendor/mail/reference/rfc2111 Content-ID and Message-ID URLs.txt +283 -0
  150. data/vendor/mail/reference/rfc2183 Content-Disposition Header Field.txt +675 -0
  151. data/vendor/mail/reference/rfc2231 MIME Parameter Value and Encoded Word Extensions.txt +563 -0
  152. data/vendor/mail/reference/rfc2387 MIME Multipart-Related Content-type.txt +563 -0
  153. data/vendor/mail/reference/rfc2821 Simple Mail Transfer Protocol.txt +3711 -0
  154. data/vendor/mail/reference/rfc2822 Internet Message Format.txt +2859 -0
  155. data/vendor/mail/reference/rfc3462 Reporting of Mail System Administrative Messages.txt +396 -0
  156. data/vendor/mail/reference/rfc3696 Checking and Transformation of Names.txt +898 -0
  157. data/vendor/mail/reference/rfc4155 The application-mbox Media Type.txt +502 -0
  158. data/vendor/mail/reference/rfc4234 Augmented BNF for Syntax Specifications: ABNF.txt +899 -0
  159. data/vendor/mail/reference/rfc822 Standard for the Format of ARPA Internet Text Messages.txt +2900 -0
  160. data/vendor/mail/spec/environment.rb +15 -0
  161. data/vendor/mail/spec/features/making_a_new_message.feature +14 -0
  162. data/vendor/mail/spec/features/steps/env.rb +6 -0
  163. data/vendor/mail/spec/features/steps/making_a_new_message_steps.rb +11 -0
  164. data/vendor/mail/spec/fixtures/attachments/basic_email.eml +31 -0
  165. data/vendor/mail/spec/fixtures/attachments/test.gif +0 -0
  166. data/vendor/mail/spec/fixtures/attachments/test.jpg +0 -0
  167. data/vendor/mail/spec/fixtures/attachments/test.pdf +0 -0
  168. data/vendor/mail/spec/fixtures/attachments/test.png +0 -0
  169. data/vendor/mail/spec/fixtures/attachments/test.tiff +0 -0
  170. data/vendor/mail/spec/fixtures/attachments/test.zip +0 -0
  171. data/vendor/mail/spec/fixtures/attachments//343/201/246/343/201/231/343/201/250.txt +2 -0
  172. data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_content_disposition.eml +29 -0
  173. data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_content_location.eml +32 -0
  174. data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_message_rfc822.eml +92 -0
  175. data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_only_email.eml +17 -0
  176. data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_pdf.eml +70 -0
  177. data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_with_encoded_name.eml +47 -0
  178. data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_with_quoted_filename.eml +60 -0
  179. data/vendor/mail/spec/fixtures/emails/error_emails/cant_parse_from.eml +33 -0
  180. data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_7-bit.eml +231 -0
  181. data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_empty.eml +33 -0
  182. data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_plain.eml +148 -0
  183. data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_qp_with_space.eml +53 -0
  184. data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_spam.eml +44 -0
  185. data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_text-html.eml +50 -0
  186. data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_with_8bits.eml +770 -0
  187. data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_with_semi_colon.eml +269 -0
  188. data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_x_uuencode.eml +79 -0
  189. data/vendor/mail/spec/fixtures/emails/error_emails/empty_group_lists.eml +162 -0
  190. data/vendor/mail/spec/fixtures/emails/error_emails/header_fields_with_empty_values.eml +33 -0
  191. data/vendor/mail/spec/fixtures/emails/error_emails/missing_body.eml +16 -0
  192. data/vendor/mail/spec/fixtures/emails/error_emails/missing_content_disposition.eml +43 -0
  193. data/vendor/mail/spec/fixtures/emails/error_emails/multiple_content_types.eml +25 -0
  194. data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email11.eml +34 -0
  195. data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email12.eml +32 -0
  196. data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email2.eml +114 -0
  197. data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email4.eml +59 -0
  198. data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email7.eml +66 -0
  199. data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email_encoded_stack_level_too_deep.eml +53 -0
  200. data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email_with_illegal_boundary.eml +58 -0
  201. data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email_with_mimepart_without_content_type.eml +94 -0
  202. data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email_with_multipart_mixed_quoted_boundary.eml +50 -0
  203. data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email_with_nested_attachment.eml +100 -0
  204. data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email_with_quoted_illegal_boundary.eml +58 -0
  205. data/vendor/mail/spec/fixtures/emails/mime_emails/sig_only_email.eml +29 -0
  206. data/vendor/mail/spec/fixtures/emails/mime_emails/two_from_in_message.eml +42 -0
  207. data/vendor/mail/spec/fixtures/emails/multi_charset/japanese.eml +9 -0
  208. data/vendor/mail/spec/fixtures/emails/multi_charset/japanese_attachment.eml +27 -0
  209. data/vendor/mail/spec/fixtures/emails/multi_charset/japanese_attachment_long_name.eml +44 -0
  210. data/vendor/mail/spec/fixtures/emails/multipart_report_emails/multi_address_bounce1.eml +179 -0
  211. data/vendor/mail/spec/fixtures/emails/multipart_report_emails/multi_address_bounce2.eml +179 -0
  212. data/vendor/mail/spec/fixtures/emails/multipart_report_emails/report_422.eml +98 -0
  213. data/vendor/mail/spec/fixtures/emails/multipart_report_emails/report_530.eml +97 -0
  214. data/vendor/mail/spec/fixtures/emails/plain_emails/basic_email.eml +31 -0
  215. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email.eml +14 -0
  216. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email10.eml +20 -0
  217. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email5.eml +19 -0
  218. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email6.eml +20 -0
  219. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email8.eml +47 -0
  220. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_bad_time.eml +62 -0
  221. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_double_at_in_header.eml +14 -0
  222. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_incorrect_header.eml +28 -0
  223. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_multiple_from.eml +30 -0
  224. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_quoted_with_0d0a.eml +14 -0
  225. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_reply.eml +32 -0
  226. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_simple.eml +11 -0
  227. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_string_in_date_field.eml +17 -0
  228. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_trailing_dot.eml +21 -0
  229. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_with_bad_date.eml +48 -0
  230. data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_with_partially_quoted_subject.eml +14 -0
  231. data/vendor/mail/spec/fixtures/emails/rfc2822/example01.eml +8 -0
  232. data/vendor/mail/spec/fixtures/emails/rfc2822/example02.eml +9 -0
  233. data/vendor/mail/spec/fixtures/emails/rfc2822/example03.eml +7 -0
  234. data/vendor/mail/spec/fixtures/emails/rfc2822/example04.eml +7 -0
  235. data/vendor/mail/spec/fixtures/emails/rfc2822/example05.eml +8 -0
  236. data/vendor/mail/spec/fixtures/emails/rfc2822/example06.eml +10 -0
  237. data/vendor/mail/spec/fixtures/emails/rfc2822/example07.eml +9 -0
  238. data/vendor/mail/spec/fixtures/emails/rfc2822/example08.eml +12 -0
  239. data/vendor/mail/spec/fixtures/emails/rfc2822/example09.eml +15 -0
  240. data/vendor/mail/spec/fixtures/emails/rfc2822/example10.eml +15 -0
  241. data/vendor/mail/spec/fixtures/emails/rfc2822/example11.eml +6 -0
  242. data/vendor/mail/spec/fixtures/emails/rfc2822/example12.eml +8 -0
  243. data/vendor/mail/spec/fixtures/emails/rfc2822/example13.eml +10 -0
  244. data/vendor/mail/spec/fixtures/emails/sample_output_multipart +0 -0
  245. data/vendor/mail/spec/mail/attachments_list_spec.rb +214 -0
  246. data/vendor/mail/spec/mail/body_spec.rb +385 -0
  247. data/vendor/mail/spec/mail/configuration_spec.rb +19 -0
  248. data/vendor/mail/spec/mail/core_extensions/string_spec.rb +62 -0
  249. data/vendor/mail/spec/mail/core_extensions_spec.rb +99 -0
  250. data/vendor/mail/spec/mail/elements/address_list_spec.rb +109 -0
  251. data/vendor/mail/spec/mail/elements/address_spec.rb +609 -0
  252. data/vendor/mail/spec/mail/elements/date_time_element_spec.rb +20 -0
  253. data/vendor/mail/spec/mail/elements/envelope_from_element_spec.rb +31 -0
  254. data/vendor/mail/spec/mail/elements/message_ids_element_spec.rb +43 -0
  255. data/vendor/mail/spec/mail/elements/phrase_list_spec.rb +22 -0
  256. data/vendor/mail/spec/mail/elements/received_element_spec.rb +34 -0
  257. data/vendor/mail/spec/mail/encoding_spec.rb +189 -0
  258. data/vendor/mail/spec/mail/encodings/base64_spec.rb +25 -0
  259. data/vendor/mail/spec/mail/encodings/quoted_printable_spec.rb +25 -0
  260. data/vendor/mail/spec/mail/encodings_spec.rb +664 -0
  261. data/vendor/mail/spec/mail/example_emails_spec.rb +303 -0
  262. data/vendor/mail/spec/mail/field_list_spec.rb +33 -0
  263. data/vendor/mail/spec/mail/field_spec.rb +198 -0
  264. data/vendor/mail/spec/mail/fields/bcc_field_spec.rb +89 -0
  265. data/vendor/mail/spec/mail/fields/cc_field_spec.rb +79 -0
  266. data/vendor/mail/spec/mail/fields/comments_field_spec.rb +25 -0
  267. data/vendor/mail/spec/mail/fields/common/address_container_spec.rb +18 -0
  268. data/vendor/mail/spec/mail/fields/common/common_address_spec.rb +132 -0
  269. data/vendor/mail/spec/mail/fields/common/common_date_spec.rb +25 -0
  270. data/vendor/mail/spec/mail/fields/common/common_field_spec.rb +69 -0
  271. data/vendor/mail/spec/mail/fields/common/common_message_id_spec.rb +30 -0
  272. data/vendor/mail/spec/mail/fields/common/parameter_hash_spec.rb +56 -0
  273. data/vendor/mail/spec/mail/fields/content_description_field_spec.rb +39 -0
  274. data/vendor/mail/spec/mail/fields/content_disposition_field_spec.rb +55 -0
  275. data/vendor/mail/spec/mail/fields/content_id_field_spec.rb +117 -0
  276. data/vendor/mail/spec/mail/fields/content_location_field_spec.rb +46 -0
  277. data/vendor/mail/spec/mail/fields/content_transfer_encoding_field_spec.rb +113 -0
  278. data/vendor/mail/spec/mail/fields/content_type_field_spec.rb +678 -0
  279. data/vendor/mail/spec/mail/fields/date_field_spec.rb +73 -0
  280. data/vendor/mail/spec/mail/fields/envelope_spec.rb +48 -0
  281. data/vendor/mail/spec/mail/fields/from_field_spec.rb +89 -0
  282. data/vendor/mail/spec/mail/fields/in_reply_to_field_spec.rb +62 -0
  283. data/vendor/mail/spec/mail/fields/keywords_field_spec.rb +66 -0
  284. data/vendor/mail/spec/mail/fields/message_id_field_spec.rb +147 -0
  285. data/vendor/mail/spec/mail/fields/mime_version_field_spec.rb +166 -0
  286. data/vendor/mail/spec/mail/fields/received_field_spec.rb +44 -0
  287. data/vendor/mail/spec/mail/fields/references_field_spec.rb +35 -0
  288. data/vendor/mail/spec/mail/fields/reply_to_field_spec.rb +67 -0
  289. data/vendor/mail/spec/mail/fields/resent_bcc_field_spec.rb +66 -0
  290. data/vendor/mail/spec/mail/fields/resent_cc_field_spec.rb +66 -0
  291. data/vendor/mail/spec/mail/fields/resent_date_field_spec.rb +39 -0
  292. data/vendor/mail/spec/mail/fields/resent_from_field_spec.rb +66 -0
  293. data/vendor/mail/spec/mail/fields/resent_message_id_field_spec.rb +24 -0
  294. data/vendor/mail/spec/mail/fields/resent_sender_field_spec.rb +58 -0
  295. data/vendor/mail/spec/mail/fields/resent_to_field_spec.rb +66 -0
  296. data/vendor/mail/spec/mail/fields/return_path_field_spec.rb +52 -0
  297. data/vendor/mail/spec/mail/fields/sender_field_spec.rb +58 -0
  298. data/vendor/mail/spec/mail/fields/structured_field_spec.rb +72 -0
  299. data/vendor/mail/spec/mail/fields/to_field_spec.rb +92 -0
  300. data/vendor/mail/spec/mail/fields/unstructured_field_spec.rb +134 -0
  301. data/vendor/mail/spec/mail/header_spec.rb +578 -0
  302. data/vendor/mail/spec/mail/mail_spec.rb +34 -0
  303. data/vendor/mail/spec/mail/message_spec.rb +1409 -0
  304. data/vendor/mail/spec/mail/mime_messages_spec.rb +435 -0
  305. data/vendor/mail/spec/mail/multipart_report_spec.rb +112 -0
  306. data/vendor/mail/spec/mail/network/delivery_methods/file_delivery_spec.rb +79 -0
  307. data/vendor/mail/spec/mail/network/delivery_methods/sendmail_spec.rb +125 -0
  308. data/vendor/mail/spec/mail/network/delivery_methods/smtp_spec.rb +133 -0
  309. data/vendor/mail/spec/mail/network/delivery_methods/test_mailer_spec.rb +57 -0
  310. data/vendor/mail/spec/mail/network/retriever_methods/pop3_spec.rb +180 -0
  311. data/vendor/mail/spec/mail/network_spec.rb +359 -0
  312. data/vendor/mail/spec/mail/parsers/address_lists_parser_spec.rb +15 -0
  313. data/vendor/mail/spec/mail/parsers/content_transfer_encoding_parser_spec.rb +72 -0
  314. data/vendor/mail/spec/mail/part_spec.rb +129 -0
  315. data/vendor/mail/spec/mail/parts_list_spec.rb +12 -0
  316. data/vendor/mail/spec/mail/round_tripping_spec.rb +44 -0
  317. data/vendor/mail/spec/mail/utilities_spec.rb +327 -0
  318. data/vendor/mail/spec/mail/version_specific/escape_paren_1_8_spec.rb +32 -0
  319. data/vendor/mail/spec/matchers/break_down_to.rb +35 -0
  320. data/vendor/mail/spec/spec_helper.rb +163 -0
  321. metadata +442 -0
@@ -0,0 +1,843 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+ Network Working Group G. Vaudreuil
8
+ Request for Comments: 1893 Octel Network Services
9
+ Category: Standards Track January 1996
10
+
11
+
12
+ Enhanced Mail System Status Codes
13
+
14
+ Status of this Memo
15
+
16
+ This document specifies an Internet standards track protocol for the
17
+ Internet community, and requests discussion and suggestions for
18
+ improvements. Please refer to the current edition of the "Internet
19
+ Official Protocol Standards" (STD 1) for the standardization state
20
+ and status of this protocol. Distribution of this memo is unlimited.
21
+
22
+ 1. Overview
23
+
24
+ There currently is not a standard mechanism for the reporting of mail
25
+ system errors except for the limited set offered by SMTP and the
26
+ system specific text descriptions sent in mail messages. There is a
27
+ pressing need for a rich machine readable status code for use in
28
+ delivery status notifications [DSN]. This document proposes a new
29
+ set of status codes for this purpose.
30
+
31
+ SMTP [SMTP] error codes have historically been used for reporting
32
+ mail system errors. Because of limitations in the SMTP code design,
33
+ these are not suitable for use in delivery status notifications.
34
+ SMTP provides about 12 useful codes for delivery reports. The
35
+ majority of the codes are protocol specific response codes such as
36
+ the 354 response to the SMTP data command. Each of the 12 useful
37
+ codes are each overloaded to indicate several error conditions each.
38
+ SMTP suffers some scars from history, most notably the unfortunate
39
+ damage to the reply code extension mechanism by uncontrolled use.
40
+ This proposal facilitates future extensibility by requiring the
41
+ client to interpret unknown error codes according to the theory of
42
+ codes while requiring servers to register new response codes.
43
+
44
+ The SMTP theory of reply codes partitioned in the number space such a
45
+ manner that the remaining available codes will not provide the space
46
+ needed. The most critical example is the existence of only 5
47
+ remaining codes for mail system errors. The mail system
48
+ classification includes both host and mailbox error conditions. The
49
+ remaining third digit space would be completely consumed as needed to
50
+ indicate MIME and media conversion errors and security system errors.
51
+
52
+ A revision to the SMTP theory of reply codes to better distribute the
53
+ error conditions in the number space will necessarily be incompatible
54
+ with SMTP. Further, consumption of the remaining reply-code number
55
+
56
+
57
+
58
+ Vaudreuil Standards Track [Page 1]
59
+
60
+ RFC 1893 Mail System Status Codes January 1996
61
+
62
+
63
+ space for delivery notification reporting will reduce the available
64
+ codes for new ESMTP extensions.
65
+
66
+ The following proposal is based on the SMTP theory of reply codes.
67
+ It adopts the success, permanent error, and transient error semantics
68
+ of the first value, with a further description and classification in
69
+ the second. This proposal re-distributes the classifications to
70
+ better distribute the error conditions, such as separating mailbox
71
+ from host errors.
72
+
73
+ 2. Status Codes
74
+
75
+ This document defines a new set of status codes to report mail system
76
+ conditions. These status codes are intended to be used for media and
77
+ language independent status reporting. They are not intended for
78
+ system specific diagnostics.
79
+
80
+ The syntax of the new status codes is defined as:
81
+
82
+ status-code = class "." subject "." detail
83
+ class = "2"/"4"/"5"
84
+ subject = 1*3digit
85
+ detail = 1*3digit
86
+
87
+ White-space characters and comments are NOT allowed within a status-
88
+ code. Each numeric sub-code within the status-code MUST be expressed
89
+ without leading zero digits.
90
+
91
+ Status codes consist of three numerical fields separated by ".". The
92
+ first sub-code indicates whether the delivery attempt was successful.
93
+ The second sub-code indicates the probable source of any delivery
94
+ anomalies, and the third sub-code indicates a precise error
95
+ condition.
96
+
97
+ The codes space defined is intended to be extensible only by
98
+ standards track documents. Mail system specific status codes should
99
+ be mapped as close as possible to the standard status codes. Servers
100
+ should send only defined, registered status codes. System specific
101
+ errors and diagnostics should be carried by means other than status
102
+ codes.
103
+
104
+ New subject and detail codes will be added over time. Because the
105
+ number space is large, it is not intended that published status codes
106
+ will ever be redefined or eliminated. Clients should preserve the
107
+ extensibility of the code space by reporting the general error
108
+ described in the subject sub-code when the specific detail is
109
+ unrecognized.
110
+
111
+
112
+
113
+
114
+ Vaudreuil Standards Track [Page 2]
115
+
116
+ RFC 1893 Mail System Status Codes January 1996
117
+
118
+
119
+ The class sub-code provides a broad classification of the status.
120
+ The enumerated values the class are defined as:
121
+
122
+ 2.X.X Success
123
+
124
+ Success specifies that the DSN is reporting a positive delivery
125
+ action. Detail sub-codes may provide notification of
126
+ transformations required for delivery.
127
+
128
+ 4.X.X Persistent Transient Failure
129
+
130
+ A persistent transient failure is one in which the message as
131
+ sent is valid, but some temporary event prevents the successful
132
+ sending of the message. Sending in the future may be successful.
133
+
134
+ 5.X.X Permanent Failure
135
+
136
+ A permanent failure is one which is not likely to be resolved by
137
+ resending the message in the current form. Some change to the
138
+ message or the destination must be made for successful delivery.
139
+
140
+ A client must recognize and report class sub-code even where
141
+ subsequent subject sub-codes are unrecognized.
142
+
143
+ The subject sub-code classifies the status. This value applies to
144
+ each of the three classifications. The subject sub-code, if
145
+ recognized, must be reported even if the additional detail provided
146
+ by the detail sub-code is not recognized. The enumerated values for
147
+ the subject sub-code are:
148
+
149
+ X.0.X Other or Undefined Status
150
+
151
+ There is no additional subject information available.
152
+
153
+ X.1.X Addressing Status
154
+
155
+ The address status reports on the originator or destination
156
+ address. It may include address syntax or validity. These
157
+ errors can generally be corrected by the sender and retried.
158
+
159
+ X.2.X Mailbox Status
160
+
161
+ Mailbox status indicates that something having to do with the
162
+ mailbox has cause this DSN. Mailbox issues are assumed to be
163
+ under the general control of the recipient.
164
+
165
+
166
+
167
+
168
+
169
+
170
+ Vaudreuil Standards Track [Page 3]
171
+
172
+ RFC 1893 Mail System Status Codes January 1996
173
+
174
+
175
+ X.3.X Mail System Status
176
+
177
+ Mail system status indicates that something having to do
178
+ with the destination system has caused this DSN. System
179
+ issues are assumed to be under the general control of the
180
+ destination system administrator.
181
+
182
+ X.4.X Network and Routing Status
183
+
184
+ The networking or routing codes report status about the
185
+ delivery system itself. These system components include any
186
+ necessary infrastructure such as directory and routing
187
+ services. Network issues are assumed to be under the
188
+ control of the destination or intermediate system
189
+ administrator.
190
+
191
+ X.5.X Mail Delivery Protocol Status
192
+
193
+ The mail delivery protocol status codes report failures
194
+ involving the message delivery protocol. These failures
195
+ include the full range of problems resulting from
196
+ implementation errors or an unreliable connection. Mail
197
+ delivery protocol issues may be controlled by many parties
198
+ including the originating system, destination system, or
199
+ intermediate system administrators.
200
+
201
+ X.6.X Message Content or Media Status
202
+
203
+ The message content or media status codes report failures
204
+ involving the content of the message. These codes report
205
+ failures due to translation, transcoding, or otherwise
206
+ unsupported message media. Message content or media issues
207
+ are under the control of both the sender and the receiver,
208
+ both of whom must support a common set of supported
209
+ content-types.
210
+
211
+ X.7.X Security or Policy Status
212
+
213
+ The security or policy status codes report failures
214
+ involving policies such as per-recipient or per-host
215
+ filtering and cryptographic operations. Security and policy
216
+ status issues are assumed to be under the control of either
217
+ or both the sender and recipient. Both the sender and
218
+ recipient must permit the exchange of messages and arrange
219
+ the exchange of necessary keys and certificates for
220
+ cryptographic operations.
221
+
222
+
223
+
224
+
225
+
226
+ Vaudreuil Standards Track [Page 4]
227
+
228
+ RFC 1893 Mail System Status Codes January 1996
229
+
230
+
231
+ 3. Enumerated Status Codes
232
+
233
+ The following section defines and describes the detail sub-code. The
234
+ detail value provides more information about the status and is
235
+ defined relative to the subject of the status.
236
+
237
+ 3.1 Other or Undefined Status
238
+
239
+ X.0.0 Other undefined Status
240
+
241
+ Other undefined status is the only undefined error code. It
242
+ should be used for all errors for which only the class of the
243
+ error is known.
244
+
245
+ 3.2 Address Status
246
+
247
+ X.1.0 Other address status
248
+
249
+ Something about the address specified in the message caused
250
+ this DSN.
251
+
252
+ X.1.1 Bad destination mailbox address
253
+
254
+ The mailbox specified in the address does not exist. For
255
+ Internet mail names, this means the address portion to the
256
+ left of the "@" sign is invalid. This code is only useful
257
+ for permanent failures.
258
+
259
+ X.1.2 Bad destination system address
260
+
261
+ The destination system specified in the address does not
262
+ exist or is incapable of accepting mail. For Internet mail
263
+ names, this means the address portion to the right of the
264
+ "@" is invalid for mail. This codes is only useful for
265
+ permanent failures.
266
+
267
+ X.1.3 Bad destination mailbox address syntax
268
+
269
+ The destination address was syntactically invalid. This can
270
+ apply to any field in the address. This code is only useful
271
+ for permanent failures.
272
+
273
+ X.1.4 Destination mailbox address ambiguous
274
+
275
+ The mailbox address as specified matches one or more
276
+ recipients on the destination system. This may result if a
277
+ heuristic address mapping algorithm is used to map the
278
+ specified address to a local mailbox name.
279
+
280
+
281
+
282
+ Vaudreuil Standards Track [Page 5]
283
+
284
+ RFC 1893 Mail System Status Codes January 1996
285
+
286
+
287
+ X.1.5 Destination address valid
288
+
289
+ This mailbox address as specified was valid. This status
290
+ code should be used for positive delivery reports.
291
+
292
+ X.1.6 Destination mailbox has moved, No forwarding address
293
+
294
+ The mailbox address provided was at one time valid, but mail
295
+ is no longer being accepted for that address. This code is
296
+ only useful for permanent failures.
297
+
298
+ X.1.7 Bad sender's mailbox address syntax
299
+
300
+ The sender's address was syntactically invalid. This can
301
+ apply to any field in the address.
302
+
303
+ X.1.8 Bad sender's system address
304
+
305
+ The sender's system specified in the address does not exist
306
+ or is incapable of accepting return mail. For domain names,
307
+ this means the address portion to the right of the "@" is
308
+ invalid for mail.
309
+
310
+ 3.3 Mailbox Status
311
+
312
+ X.2.0 Other or undefined mailbox status
313
+
314
+ The mailbox exists, but something about the destination
315
+ mailbox has caused the sending of this DSN.
316
+
317
+ X.2.1 Mailbox disabled, not accepting messages
318
+
319
+ The mailbox exists, but is not accepting messages. This may
320
+ be a permanent error if the mailbox will never be re-enabled
321
+ or a transient error if the mailbox is only temporarily
322
+ disabled.
323
+
324
+ X.2.2 Mailbox full
325
+
326
+ The mailbox is full because the user has exceeded a
327
+ per-mailbox administrative quota or physical capacity. The
328
+ general semantics implies that the recipient can delete
329
+ messages to make more space available. This code should be
330
+ used as a persistent transient failure.
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+ Vaudreuil Standards Track [Page 6]
339
+
340
+ RFC 1893 Mail System Status Codes January 1996
341
+
342
+
343
+ X.2.3 Message length exceeds administrative limit
344
+
345
+ A per-mailbox administrative message length limit has been
346
+ exceeded. This status code should be used when the
347
+ per-mailbox message length limit is less than the general
348
+ system limit. This code should be used as a permanent
349
+ failure.
350
+
351
+ X.2.4 Mailing list expansion problem
352
+
353
+ The mailbox is a mailing list address and the mailing list
354
+ was unable to be expanded. This code may represent a
355
+ permanent failure or a persistent transient failure.
356
+
357
+ 3.4 Mail system status
358
+
359
+ X.3.0 Other or undefined mail system status
360
+
361
+ The destination system exists and normally accepts mail, but
362
+ something about the system has caused the generation of this
363
+ DSN.
364
+
365
+ X.3.1 Mail system full
366
+
367
+ Mail system storage has been exceeded. The general
368
+ semantics imply that the individual recipient may not be
369
+ able to delete material to make room for additional
370
+ messages. This is useful only as a persistent transient
371
+ error.
372
+
373
+ X.3.2 System not accepting network messages
374
+
375
+ The host on which the mailbox is resident is not accepting
376
+ messages. Examples of such conditions include an immanent
377
+ shutdown, excessive load, or system maintenance. This is
378
+ useful for both permanent and permanent transient errors.
379
+
380
+ X.3.3 System not capable of selected features
381
+
382
+ Selected features specified for the message are not
383
+ supported by the destination system. This can occur in
384
+ gateways when features from one domain cannot be mapped onto
385
+ the supported feature in another.
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+ Vaudreuil Standards Track [Page 7]
395
+
396
+ RFC 1893 Mail System Status Codes January 1996
397
+
398
+
399
+ X.3.4 Message too big for system
400
+
401
+ The message is larger than per-message size limit. This
402
+ limit may either be for physical or administrative reasons.
403
+ This is useful only as a permanent error.
404
+
405
+ X.3.5 System incorrectly configured
406
+
407
+ The system is not configured in a manner which will permit
408
+ it to accept this message.
409
+
410
+ 3.5 Network and Routing Status
411
+
412
+ X.4.0 Other or undefined network or routing status
413
+
414
+ Something went wrong with the networking, but it is not
415
+ clear what the problem is, or the problem cannot be well
416
+ expressed with any of the other provided detail codes.
417
+
418
+ X.4.1 No answer from host
419
+
420
+ The outbound connection attempt was not answered, either
421
+ because the remote system was busy, or otherwise unable to
422
+ take a call. This is useful only as a persistent transient
423
+ error.
424
+
425
+ X.4.2 Bad connection
426
+
427
+ The outbound connection was established, but was otherwise
428
+ unable to complete the message transaction, either because
429
+ of time-out, or inadequate connection quality. This is
430
+ useful only as a persistent transient error.
431
+
432
+ X.4.3 Directory server failure
433
+
434
+ The network system was unable to forward the message,
435
+ because a directory server was unavailable. This is useful
436
+ only as a persistent transient error.
437
+
438
+ The inability to connect to an Internet DNS server is one
439
+ example of the directory server failure error.
440
+
441
+ X.4.4 Unable to route
442
+
443
+ The mail system was unable to determine the next hop for the
444
+ message because the necessary routing information was
445
+ unavailable from the directory server. This is useful for
446
+ both permanent and persistent transient errors.
447
+
448
+
449
+
450
+ Vaudreuil Standards Track [Page 8]
451
+
452
+ RFC 1893 Mail System Status Codes January 1996
453
+
454
+
455
+ A DNS lookup returning only an SOA (Start of Administration)
456
+ record for a domain name is one example of the unable to
457
+ route error.
458
+
459
+ X.4.5 Mail system congestion
460
+
461
+ The mail system was unable to deliver the message because
462
+ the mail system was congested. This is useful only as a
463
+ persistent transient error.
464
+
465
+ X.4.6 Routing loop detected
466
+
467
+ A routing loop caused the message to be forwarded too many
468
+ times, either because of incorrect routing tables or a user
469
+ forwarding loop. This is useful only as a persistent
470
+ transient error.
471
+
472
+ X.4.7 Delivery time expired
473
+
474
+ The message was considered too old by the rejecting system,
475
+ either because it remained on that host too long or because
476
+ the time-to-live value specified by the sender of the
477
+ message was exceeded. If possible, the code for the actual
478
+ problem found when delivery was attempted should be returned
479
+ rather than this code. This is useful only as a persistent
480
+ transient error.
481
+
482
+ 3.6 Mail Delivery Protocol Status
483
+
484
+ X.5.0 Other or undefined protocol status
485
+
486
+ Something was wrong with the protocol necessary to deliver
487
+ the message to the next hop and the problem cannot be well
488
+ expressed with any of the other provided detail codes.
489
+
490
+ X.5.1 Invalid command
491
+
492
+ A mail transaction protocol command was issued which was
493
+ either out of sequence or unsupported. This is useful only
494
+ as a permanent error.
495
+
496
+ X.5.2 Syntax error
497
+
498
+ A mail transaction protocol command was issued which could
499
+ not be interpreted, either because the syntax was wrong or
500
+ the command is unrecognized. This is useful only as a
501
+ permanent error.
502
+
503
+
504
+
505
+
506
+ Vaudreuil Standards Track [Page 9]
507
+
508
+ RFC 1893 Mail System Status Codes January 1996
509
+
510
+
511
+ X.5.3 Too many recipients
512
+
513
+ More recipients were specified for the message than could
514
+ have been delivered by the protocol. This error should
515
+ normally result in the segmentation of the message into two,
516
+ the remainder of the recipients to be delivered on a
517
+ subsequent delivery attempt. It is included in this list in
518
+ the event that such segmentation is not possible.
519
+
520
+ X.5.4 Invalid command arguments
521
+
522
+ A valid mail transaction protocol command was issued with
523
+ invalid arguments, either because the arguments were out of
524
+ range or represented unrecognized features. This is useful
525
+ only as a permanent error.
526
+
527
+ X.5.5 Wrong protocol version
528
+
529
+ A protocol version mis-match existed which could not be
530
+ automatically resolved by the communicating parties.
531
+
532
+ 3.7 Message Content or Message Media Status
533
+
534
+ X.6.0 Other or undefined media error
535
+
536
+ Something about the content of a message caused it to be
537
+ considered undeliverable and the problem cannot be well
538
+ expressed with any of the other provided detail codes.
539
+
540
+ X.6.1 Media not supported
541
+
542
+ The media of the message is not supported by either the
543
+ delivery protocol or the next system in the forwarding path.
544
+ This is useful only as a permanent error.
545
+
546
+ X.6.2 Conversion required and prohibited
547
+
548
+ The content of the message must be converted before it can
549
+ be delivered and such conversion is not permitted. Such
550
+ prohibitions may be the expression of the sender in the
551
+ message itself or the policy of the sending host.
552
+
553
+ X.6.3 Conversion required but not supported
554
+
555
+ The message content must be converted to be forwarded but
556
+ such conversion is not possible or is not practical by a
557
+ host in the forwarding path. This condition may result when
558
+ an ESMTP gateway supports 8bit transport but is not able to
559
+
560
+
561
+
562
+ Vaudreuil Standards Track [Page 10]
563
+
564
+ RFC 1893 Mail System Status Codes January 1996
565
+
566
+
567
+ downgrade the message to 7 bit as required for the next hop.
568
+
569
+ X.6.4 Conversion with loss performed
570
+
571
+ This is a warning sent to the sender when message delivery
572
+ was successfully but when the delivery required a conversion
573
+ in which some data was lost. This may also be a permanant
574
+ error if the sender has indicated that conversion with loss
575
+ is prohibited for the message.
576
+
577
+ X.6.5 Conversion Failed
578
+
579
+ A conversion was required but was unsuccessful. This may be
580
+ useful as a permanent or persistent temporary notification.
581
+
582
+ 3.8 Security or Policy Status
583
+
584
+ X.7.0 Other or undefined security status
585
+
586
+ Something related to security caused the message to be
587
+ returned, and the problem cannot be well expressed with any
588
+ of the other provided detail codes. This status code may
589
+ also be used when the condition cannot be further described
590
+ because of security policies in force.
591
+
592
+ X.7.1 Delivery not authorized, message refused
593
+
594
+ The sender is not authorized to send to the destination.
595
+ This can be the result of per-host or per-recipient
596
+ filtering. This memo does not discuss the merits of any
597
+ such filtering, but provides a mechanism to report such.
598
+ This is useful only as a permanent error.
599
+
600
+ X.7.2 Mailing list expansion prohibited
601
+
602
+ The sender is not authorized to send a message to the
603
+ intended mailing list. This is useful only as a permanent
604
+ error.
605
+
606
+ X.7.3 Security conversion required but not possible
607
+
608
+ A conversion from one secure messaging protocol to another
609
+ was required for delivery and such conversion was not
610
+ possible. This is useful only as a permanent error.
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+ Vaudreuil Standards Track [Page 11]
619
+
620
+ RFC 1893 Mail System Status Codes January 1996
621
+
622
+
623
+ X.7.4 Security features not supported
624
+
625
+ A message contained security features such as secure
626
+ authentication which could not be supported on the delivery
627
+ protocol. This is useful only as a permanent error.
628
+
629
+ X.7.5 Cryptographic failure
630
+
631
+ A transport system otherwise authorized to validate or
632
+ decrypt a message in transport was unable to do so because
633
+ necessary information such as key was not available or such
634
+ information was invalid.
635
+
636
+ X.7.6 Cryptographic algorithm not supported
637
+
638
+ A transport system otherwise authorized to validate or
639
+ decrypt a message was unable to do so because the necessary
640
+ algorithm was not supported.
641
+
642
+ X.7.7 Message integrity failure
643
+
644
+ A transport system otherwise authorized to validate a
645
+ message was unable to do so because the message was
646
+ corrupted or altered. This may be useful as a permanent,
647
+ transient persistent, or successful delivery code.
648
+
649
+ 4. References
650
+
651
+ [SMTP] Postel, J., "Simple Mail Transfer Protocol", STD 10, RFC 821,
652
+ USC/Information Sciences Institute, August 1982.
653
+
654
+ [DSN] Moore, K., and G. Vaudreuil, "An Extensible Message Format for
655
+ Delivery Status Notifications", RFC 1894, University of
656
+ Tennessee, Octel Network Services, January 1996.
657
+
658
+ 5. Security Considerations
659
+
660
+ This document describes a status code system with increased
661
+ precision. Use of these status codes may disclose additional
662
+ information about how an internal mail system is implemented beyond
663
+ that currently available.
664
+
665
+ 6. Acknowledgments
666
+
667
+ The author wishes to offer special thanks to Harald Alvestrand, Marko
668
+ Kaittola, and Keith Moore for their extensive review and constructive
669
+ suggestions.
670
+
671
+
672
+
673
+
674
+ Vaudreuil Standards Track [Page 12]
675
+
676
+ RFC 1893 Mail System Status Codes January 1996
677
+
678
+
679
+ 7. Author's Address
680
+
681
+ Gregory M. Vaudreuil
682
+ Octel Network Services
683
+ 17060 Dallas Parkway
684
+ Suite 214
685
+ Dallas, TX 75248-1905
686
+
687
+ Voice/Fax: +1-214-733-2722
688
+ EMail: Greg.Vaudreuil@Octel.com
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+
730
+ Vaudreuil Standards Track [Page 13]
731
+
732
+ RFC 1893 Mail System Status Codes January 1996
733
+
734
+
735
+ 8. Appendix - Collected Status Codes
736
+
737
+ X.1.0 Other address status
738
+ X.1.1 Bad destination mailbox address
739
+ X.1.2 Bad destination system address
740
+ X.1.3 Bad destination mailbox address syntax
741
+ X.1.4 Destination mailbox address ambiguous
742
+ X.1.5 Destination mailbox address valid
743
+ X.1.6 Mailbox has moved
744
+ X.1.7 Bad sender's mailbox address syntax
745
+ X.1.8 Bad sender's system address
746
+
747
+ X.2.0 Other or undefined mailbox status
748
+ X.2.1 Mailbox disabled, not accepting messages
749
+ X.2.2 Mailbox full
750
+ X.2.3 Message length exceeds administrative limit.
751
+ X.2.4 Mailing list expansion problem
752
+
753
+ X.3.0 Other or undefined mail system status
754
+ X.3.1 Mail system full
755
+ X.3.2 System not accepting network messages
756
+ X.3.3 System not capable of selected features
757
+ X.3.4 Message too big for system
758
+
759
+ X.4.0 Other or undefined network or routing status
760
+ X.4.1 No answer from host
761
+ X.4.2 Bad connection
762
+ X.4.3 Routing server failure
763
+ X.4.4 Unable to route
764
+ X.4.5 Network congestion
765
+ X.4.6 Routing loop detected
766
+ X.4.7 Delivery time expired
767
+
768
+ X.5.0 Other or undefined protocol status
769
+ X.5.1 Invalid command
770
+ X.5.2 Syntax error
771
+ X.5.3 Too many recipients
772
+ X.5.4 Invalid command arguments
773
+ X.5.5 Wrong protocol version
774
+
775
+ X.6.0 Other or undefined media error
776
+ X.6.1 Media not supported
777
+ X.6.2 Conversion required and prohibited
778
+ X.6.3 Conversion required but not supported
779
+ X.6.4 Conversion with loss performed
780
+ X.6.5 Conversion failed
781
+
782
+
783
+
784
+
785
+
786
+ Vaudreuil Standards Track [Page 14]
787
+
788
+ RFC 1893 Mail System Status Codes January 1996
789
+
790
+
791
+ X.7.0 Other or undefined security status
792
+ X.7.1 Delivery not authorized, message refused
793
+ X.7.2 Mailing list expansion prohibited
794
+ X.7.3 Security conversion required but not possible
795
+ X.7.4 Security features not supported
796
+ X.7.5 Cryptographic failure
797
+ X.7.6 Cryptographic algorithm not supported
798
+ X.7.7 Message integrity failure
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+
815
+
816
+
817
+
818
+
819
+
820
+
821
+
822
+
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+
836
+
837
+
838
+
839
+
840
+
841
+
842
+ Vaudreuil Standards Track [Page 15]
843
+