rack-mail_exception 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.document +5 -0
- data/.gitignore +22 -0
- data/LICENSE +20 -0
- data/README.rdoc +38 -0
- data/Rakefile +56 -0
- data/VERSION +1 -0
- data/lib/rack/mail_exception.rb +103 -0
- data/test/helper.rb +13 -0
- data/test/test_rack_mail_exception.rb +93 -0
- data/vendor/mail/.bundle/config +2 -0
- data/vendor/mail/CHANGELOG.rdoc +370 -0
- data/vendor/mail/Dependencies.txt +3 -0
- data/vendor/mail/Gemfile +17 -0
- data/vendor/mail/README.rdoc +572 -0
- data/vendor/mail/ROADMAP +92 -0
- data/vendor/mail/Rakefile +41 -0
- data/vendor/mail/TODO.rdoc +9 -0
- data/vendor/mail/lib/mail.rb +76 -0
- data/vendor/mail/lib/mail/attachments_list.rb +99 -0
- data/vendor/mail/lib/mail/body.rb +287 -0
- data/vendor/mail/lib/mail/configuration.rb +67 -0
- data/vendor/mail/lib/mail/core_extensions/blank.rb +26 -0
- data/vendor/mail/lib/mail/core_extensions/nil.rb +11 -0
- data/vendor/mail/lib/mail/core_extensions/string.rb +27 -0
- data/vendor/mail/lib/mail/elements.rb +14 -0
- data/vendor/mail/lib/mail/elements/address.rb +306 -0
- data/vendor/mail/lib/mail/elements/address_list.rb +74 -0
- data/vendor/mail/lib/mail/elements/content_disposition_element.rb +30 -0
- data/vendor/mail/lib/mail/elements/content_location_element.rb +25 -0
- data/vendor/mail/lib/mail/elements/content_transfer_encoding_element.rb +24 -0
- data/vendor/mail/lib/mail/elements/content_type_element.rb +35 -0
- data/vendor/mail/lib/mail/elements/date_time_element.rb +26 -0
- data/vendor/mail/lib/mail/elements/envelope_from_element.rb +34 -0
- data/vendor/mail/lib/mail/elements/message_ids_element.rb +29 -0
- data/vendor/mail/lib/mail/elements/mime_version_element.rb +26 -0
- data/vendor/mail/lib/mail/elements/phrase_list.rb +21 -0
- data/vendor/mail/lib/mail/elements/received_element.rb +30 -0
- data/vendor/mail/lib/mail/encodings.rb +258 -0
- data/vendor/mail/lib/mail/encodings/7bit.rb +31 -0
- data/vendor/mail/lib/mail/encodings/8bit.rb +31 -0
- data/vendor/mail/lib/mail/encodings/base64.rb +33 -0
- data/vendor/mail/lib/mail/encodings/binary.rb +31 -0
- data/vendor/mail/lib/mail/encodings/quoted_printable.rb +38 -0
- data/vendor/mail/lib/mail/encodings/transfer_encoding.rb +58 -0
- data/vendor/mail/lib/mail/envelope.rb +35 -0
- data/vendor/mail/lib/mail/field.rb +223 -0
- data/vendor/mail/lib/mail/field_list.rb +33 -0
- data/vendor/mail/lib/mail/fields.rb +35 -0
- data/vendor/mail/lib/mail/fields/bcc_field.rb +56 -0
- data/vendor/mail/lib/mail/fields/cc_field.rb +55 -0
- data/vendor/mail/lib/mail/fields/comments_field.rb +41 -0
- data/vendor/mail/lib/mail/fields/common/address_container.rb +16 -0
- data/vendor/mail/lib/mail/fields/common/common_address.rb +125 -0
- data/vendor/mail/lib/mail/fields/common/common_date.rb +42 -0
- data/vendor/mail/lib/mail/fields/common/common_field.rb +50 -0
- data/vendor/mail/lib/mail/fields/common/common_message_id.rb +43 -0
- data/vendor/mail/lib/mail/fields/common/parameter_hash.rb +52 -0
- data/vendor/mail/lib/mail/fields/content_description_field.rb +19 -0
- data/vendor/mail/lib/mail/fields/content_disposition_field.rb +69 -0
- data/vendor/mail/lib/mail/fields/content_id_field.rb +63 -0
- data/vendor/mail/lib/mail/fields/content_location_field.rb +42 -0
- data/vendor/mail/lib/mail/fields/content_transfer_encoding_field.rb +50 -0
- data/vendor/mail/lib/mail/fields/content_type_field.rb +185 -0
- data/vendor/mail/lib/mail/fields/date_field.rb +55 -0
- data/vendor/mail/lib/mail/fields/from_field.rb +55 -0
- data/vendor/mail/lib/mail/fields/in_reply_to_field.rb +55 -0
- data/vendor/mail/lib/mail/fields/keywords_field.rb +44 -0
- data/vendor/mail/lib/mail/fields/message_id_field.rb +83 -0
- data/vendor/mail/lib/mail/fields/mime_version_field.rb +53 -0
- data/vendor/mail/lib/mail/fields/optional_field.rb +13 -0
- data/vendor/mail/lib/mail/fields/received_field.rb +67 -0
- data/vendor/mail/lib/mail/fields/references_field.rb +55 -0
- data/vendor/mail/lib/mail/fields/reply_to_field.rb +55 -0
- data/vendor/mail/lib/mail/fields/resent_bcc_field.rb +55 -0
- data/vendor/mail/lib/mail/fields/resent_cc_field.rb +55 -0
- data/vendor/mail/lib/mail/fields/resent_date_field.rb +35 -0
- data/vendor/mail/lib/mail/fields/resent_from_field.rb +55 -0
- data/vendor/mail/lib/mail/fields/resent_message_id_field.rb +34 -0
- data/vendor/mail/lib/mail/fields/resent_sender_field.rb +62 -0
- data/vendor/mail/lib/mail/fields/resent_to_field.rb +55 -0
- data/vendor/mail/lib/mail/fields/return_path_field.rb +64 -0
- data/vendor/mail/lib/mail/fields/sender_field.rb +67 -0
- data/vendor/mail/lib/mail/fields/structured_field.rb +51 -0
- data/vendor/mail/lib/mail/fields/subject_field.rb +16 -0
- data/vendor/mail/lib/mail/fields/to_field.rb +55 -0
- data/vendor/mail/lib/mail/fields/unstructured_field.rb +166 -0
- data/vendor/mail/lib/mail/header.rb +262 -0
- data/vendor/mail/lib/mail/mail.rb +234 -0
- data/vendor/mail/lib/mail/message.rb +1867 -0
- data/vendor/mail/lib/mail/network.rb +9 -0
- data/vendor/mail/lib/mail/network/delivery_methods/file_delivery.rb +40 -0
- data/vendor/mail/lib/mail/network/delivery_methods/sendmail.rb +62 -0
- data/vendor/mail/lib/mail/network/delivery_methods/smtp.rb +110 -0
- data/vendor/mail/lib/mail/network/delivery_methods/test_mailer.rb +40 -0
- data/vendor/mail/lib/mail/network/retriever_methods/imap.rb +18 -0
- data/vendor/mail/lib/mail/network/retriever_methods/pop3.rb +149 -0
- data/vendor/mail/lib/mail/parsers/address_lists.rb +64 -0
- data/vendor/mail/lib/mail/parsers/address_lists.treetop +19 -0
- data/vendor/mail/lib/mail/parsers/content_disposition.rb +387 -0
- data/vendor/mail/lib/mail/parsers/content_disposition.treetop +46 -0
- data/vendor/mail/lib/mail/parsers/content_location.rb +139 -0
- data/vendor/mail/lib/mail/parsers/content_location.treetop +20 -0
- data/vendor/mail/lib/mail/parsers/content_transfer_encoding.rb +162 -0
- data/vendor/mail/lib/mail/parsers/content_transfer_encoding.treetop +20 -0
- data/vendor/mail/lib/mail/parsers/content_type.rb +539 -0
- data/vendor/mail/lib/mail/parsers/content_type.treetop +58 -0
- data/vendor/mail/lib/mail/parsers/date_time.rb +114 -0
- data/vendor/mail/lib/mail/parsers/date_time.treetop +11 -0
- data/vendor/mail/lib/mail/parsers/envelope_from.rb +194 -0
- data/vendor/mail/lib/mail/parsers/envelope_from.treetop +32 -0
- data/vendor/mail/lib/mail/parsers/message_ids.rb +45 -0
- data/vendor/mail/lib/mail/parsers/message_ids.treetop +15 -0
- data/vendor/mail/lib/mail/parsers/mime_version.rb +144 -0
- data/vendor/mail/lib/mail/parsers/mime_version.treetop +19 -0
- data/vendor/mail/lib/mail/parsers/phrase_lists.rb +45 -0
- data/vendor/mail/lib/mail/parsers/phrase_lists.treetop +15 -0
- data/vendor/mail/lib/mail/parsers/received.rb +71 -0
- data/vendor/mail/lib/mail/parsers/received.treetop +11 -0
- data/vendor/mail/lib/mail/parsers/rfc2045.rb +464 -0
- data/vendor/mail/lib/mail/parsers/rfc2045.treetop +36 -0
- data/vendor/mail/lib/mail/parsers/rfc2822.rb +5318 -0
- data/vendor/mail/lib/mail/parsers/rfc2822.treetop +410 -0
- data/vendor/mail/lib/mail/parsers/rfc2822_obsolete.rb +3757 -0
- data/vendor/mail/lib/mail/parsers/rfc2822_obsolete.treetop +241 -0
- data/vendor/mail/lib/mail/part.rb +102 -0
- data/vendor/mail/lib/mail/parts_list.rb +34 -0
- data/vendor/mail/lib/mail/patterns.rb +30 -0
- data/vendor/mail/lib/mail/utilities.rb +181 -0
- data/vendor/mail/lib/mail/version.rb +10 -0
- data/vendor/mail/lib/mail/version_specific/ruby_1_8.rb +97 -0
- data/vendor/mail/lib/mail/version_specific/ruby_1_9.rb +87 -0
- data/vendor/mail/lib/tasks/corpus.rake +125 -0
- data/vendor/mail/lib/tasks/treetop.rake +10 -0
- data/vendor/mail/mail.gemspec +20 -0
- data/vendor/mail/reference/US ASCII Table.txt +130 -0
- data/vendor/mail/reference/rfc1035 Domain Implementation and Specification.txt +3083 -0
- data/vendor/mail/reference/rfc1049 Content-Type Header Field for Internet Messages.txt +451 -0
- data/vendor/mail/reference/rfc1344 Implications of MIME for Internet Mail Gateways.txt +586 -0
- data/vendor/mail/reference/rfc1345 Character Mnemonics & Character Sets.txt +5761 -0
- data/vendor/mail/reference/rfc1524 A User Agent Configuration Mechanism For Multimedia Mail Format Information.txt +675 -0
- data/vendor/mail/reference/rfc1652 SMTP Service Extension for 8bit-MIMEtransport.txt +339 -0
- data/vendor/mail/reference/rfc1892 Multipart Report .txt +227 -0
- data/vendor/mail/reference/rfc1893 Mail System Status Codes.txt +843 -0
- data/vendor/mail/reference/rfc2045 Multipurpose Internet Mail Extensions (1).txt +1739 -0
- data/vendor/mail/reference/rfc2046 Multipurpose Internet Mail Extensions (2).txt +2467 -0
- data/vendor/mail/reference/rfc2047 Multipurpose Internet Mail Extensions (3).txt +843 -0
- data/vendor/mail/reference/rfc2048 Multipurpose Internet Mail Extensions (4).txt +1180 -0
- data/vendor/mail/reference/rfc2049 Multipurpose Internet Mail Extensions (5).txt +1347 -0
- data/vendor/mail/reference/rfc2111 Content-ID and Message-ID URLs.txt +283 -0
- data/vendor/mail/reference/rfc2183 Content-Disposition Header Field.txt +675 -0
- data/vendor/mail/reference/rfc2231 MIME Parameter Value and Encoded Word Extensions.txt +563 -0
- data/vendor/mail/reference/rfc2387 MIME Multipart-Related Content-type.txt +563 -0
- data/vendor/mail/reference/rfc2821 Simple Mail Transfer Protocol.txt +3711 -0
- data/vendor/mail/reference/rfc2822 Internet Message Format.txt +2859 -0
- data/vendor/mail/reference/rfc3462 Reporting of Mail System Administrative Messages.txt +396 -0
- data/vendor/mail/reference/rfc3696 Checking and Transformation of Names.txt +898 -0
- data/vendor/mail/reference/rfc4155 The application-mbox Media Type.txt +502 -0
- data/vendor/mail/reference/rfc4234 Augmented BNF for Syntax Specifications: ABNF.txt +899 -0
- data/vendor/mail/reference/rfc822 Standard for the Format of ARPA Internet Text Messages.txt +2900 -0
- data/vendor/mail/spec/environment.rb +15 -0
- data/vendor/mail/spec/features/making_a_new_message.feature +14 -0
- data/vendor/mail/spec/features/steps/env.rb +6 -0
- data/vendor/mail/spec/features/steps/making_a_new_message_steps.rb +11 -0
- data/vendor/mail/spec/fixtures/attachments/basic_email.eml +31 -0
- data/vendor/mail/spec/fixtures/attachments/test.gif +0 -0
- data/vendor/mail/spec/fixtures/attachments/test.jpg +0 -0
- data/vendor/mail/spec/fixtures/attachments/test.pdf +0 -0
- data/vendor/mail/spec/fixtures/attachments/test.png +0 -0
- data/vendor/mail/spec/fixtures/attachments/test.tiff +0 -0
- data/vendor/mail/spec/fixtures/attachments/test.zip +0 -0
- data/vendor/mail/spec/fixtures/attachments//343/201/246/343/201/231/343/201/250.txt +2 -0
- data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_content_disposition.eml +29 -0
- data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_content_location.eml +32 -0
- data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_message_rfc822.eml +92 -0
- data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_only_email.eml +17 -0
- data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_pdf.eml +70 -0
- data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_with_encoded_name.eml +47 -0
- data/vendor/mail/spec/fixtures/emails/attachment_emails/attachment_with_quoted_filename.eml +60 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/cant_parse_from.eml +33 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_7-bit.eml +231 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_empty.eml +33 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_plain.eml +148 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_qp_with_space.eml +53 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_spam.eml +44 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_text-html.eml +50 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_with_8bits.eml +770 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_with_semi_colon.eml +269 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/content_transfer_encoding_x_uuencode.eml +79 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/empty_group_lists.eml +162 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/header_fields_with_empty_values.eml +33 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/missing_body.eml +16 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/missing_content_disposition.eml +43 -0
- data/vendor/mail/spec/fixtures/emails/error_emails/multiple_content_types.eml +25 -0
- data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email11.eml +34 -0
- data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email12.eml +32 -0
- data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email2.eml +114 -0
- data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email4.eml +59 -0
- data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email7.eml +66 -0
- data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email_encoded_stack_level_too_deep.eml +53 -0
- data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email_with_illegal_boundary.eml +58 -0
- data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email_with_mimepart_without_content_type.eml +94 -0
- data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email_with_multipart_mixed_quoted_boundary.eml +50 -0
- data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email_with_nested_attachment.eml +100 -0
- data/vendor/mail/spec/fixtures/emails/mime_emails/raw_email_with_quoted_illegal_boundary.eml +58 -0
- data/vendor/mail/spec/fixtures/emails/mime_emails/sig_only_email.eml +29 -0
- data/vendor/mail/spec/fixtures/emails/mime_emails/two_from_in_message.eml +42 -0
- data/vendor/mail/spec/fixtures/emails/multi_charset/japanese.eml +9 -0
- data/vendor/mail/spec/fixtures/emails/multi_charset/japanese_attachment.eml +27 -0
- data/vendor/mail/spec/fixtures/emails/multi_charset/japanese_attachment_long_name.eml +44 -0
- data/vendor/mail/spec/fixtures/emails/multipart_report_emails/multi_address_bounce1.eml +179 -0
- data/vendor/mail/spec/fixtures/emails/multipart_report_emails/multi_address_bounce2.eml +179 -0
- data/vendor/mail/spec/fixtures/emails/multipart_report_emails/report_422.eml +98 -0
- data/vendor/mail/spec/fixtures/emails/multipart_report_emails/report_530.eml +97 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/basic_email.eml +31 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email.eml +14 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email10.eml +20 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email5.eml +19 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email6.eml +20 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email8.eml +47 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_bad_time.eml +62 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_double_at_in_header.eml +14 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_incorrect_header.eml +28 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_multiple_from.eml +30 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_quoted_with_0d0a.eml +14 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_reply.eml +32 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_simple.eml +11 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_string_in_date_field.eml +17 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_trailing_dot.eml +21 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_with_bad_date.eml +48 -0
- data/vendor/mail/spec/fixtures/emails/plain_emails/raw_email_with_partially_quoted_subject.eml +14 -0
- data/vendor/mail/spec/fixtures/emails/rfc2822/example01.eml +8 -0
- data/vendor/mail/spec/fixtures/emails/rfc2822/example02.eml +9 -0
- data/vendor/mail/spec/fixtures/emails/rfc2822/example03.eml +7 -0
- data/vendor/mail/spec/fixtures/emails/rfc2822/example04.eml +7 -0
- data/vendor/mail/spec/fixtures/emails/rfc2822/example05.eml +8 -0
- data/vendor/mail/spec/fixtures/emails/rfc2822/example06.eml +10 -0
- data/vendor/mail/spec/fixtures/emails/rfc2822/example07.eml +9 -0
- data/vendor/mail/spec/fixtures/emails/rfc2822/example08.eml +12 -0
- data/vendor/mail/spec/fixtures/emails/rfc2822/example09.eml +15 -0
- data/vendor/mail/spec/fixtures/emails/rfc2822/example10.eml +15 -0
- data/vendor/mail/spec/fixtures/emails/rfc2822/example11.eml +6 -0
- data/vendor/mail/spec/fixtures/emails/rfc2822/example12.eml +8 -0
- data/vendor/mail/spec/fixtures/emails/rfc2822/example13.eml +10 -0
- data/vendor/mail/spec/fixtures/emails/sample_output_multipart +0 -0
- data/vendor/mail/spec/mail/attachments_list_spec.rb +214 -0
- data/vendor/mail/spec/mail/body_spec.rb +385 -0
- data/vendor/mail/spec/mail/configuration_spec.rb +19 -0
- data/vendor/mail/spec/mail/core_extensions/string_spec.rb +62 -0
- data/vendor/mail/spec/mail/core_extensions_spec.rb +99 -0
- data/vendor/mail/spec/mail/elements/address_list_spec.rb +109 -0
- data/vendor/mail/spec/mail/elements/address_spec.rb +609 -0
- data/vendor/mail/spec/mail/elements/date_time_element_spec.rb +20 -0
- data/vendor/mail/spec/mail/elements/envelope_from_element_spec.rb +31 -0
- data/vendor/mail/spec/mail/elements/message_ids_element_spec.rb +43 -0
- data/vendor/mail/spec/mail/elements/phrase_list_spec.rb +22 -0
- data/vendor/mail/spec/mail/elements/received_element_spec.rb +34 -0
- data/vendor/mail/spec/mail/encoding_spec.rb +189 -0
- data/vendor/mail/spec/mail/encodings/base64_spec.rb +25 -0
- data/vendor/mail/spec/mail/encodings/quoted_printable_spec.rb +25 -0
- data/vendor/mail/spec/mail/encodings_spec.rb +664 -0
- data/vendor/mail/spec/mail/example_emails_spec.rb +303 -0
- data/vendor/mail/spec/mail/field_list_spec.rb +33 -0
- data/vendor/mail/spec/mail/field_spec.rb +198 -0
- data/vendor/mail/spec/mail/fields/bcc_field_spec.rb +89 -0
- data/vendor/mail/spec/mail/fields/cc_field_spec.rb +79 -0
- data/vendor/mail/spec/mail/fields/comments_field_spec.rb +25 -0
- data/vendor/mail/spec/mail/fields/common/address_container_spec.rb +18 -0
- data/vendor/mail/spec/mail/fields/common/common_address_spec.rb +132 -0
- data/vendor/mail/spec/mail/fields/common/common_date_spec.rb +25 -0
- data/vendor/mail/spec/mail/fields/common/common_field_spec.rb +69 -0
- data/vendor/mail/spec/mail/fields/common/common_message_id_spec.rb +30 -0
- data/vendor/mail/spec/mail/fields/common/parameter_hash_spec.rb +56 -0
- data/vendor/mail/spec/mail/fields/content_description_field_spec.rb +39 -0
- data/vendor/mail/spec/mail/fields/content_disposition_field_spec.rb +55 -0
- data/vendor/mail/spec/mail/fields/content_id_field_spec.rb +117 -0
- data/vendor/mail/spec/mail/fields/content_location_field_spec.rb +46 -0
- data/vendor/mail/spec/mail/fields/content_transfer_encoding_field_spec.rb +113 -0
- data/vendor/mail/spec/mail/fields/content_type_field_spec.rb +678 -0
- data/vendor/mail/spec/mail/fields/date_field_spec.rb +73 -0
- data/vendor/mail/spec/mail/fields/envelope_spec.rb +48 -0
- data/vendor/mail/spec/mail/fields/from_field_spec.rb +89 -0
- data/vendor/mail/spec/mail/fields/in_reply_to_field_spec.rb +62 -0
- data/vendor/mail/spec/mail/fields/keywords_field_spec.rb +66 -0
- data/vendor/mail/spec/mail/fields/message_id_field_spec.rb +147 -0
- data/vendor/mail/spec/mail/fields/mime_version_field_spec.rb +166 -0
- data/vendor/mail/spec/mail/fields/received_field_spec.rb +44 -0
- data/vendor/mail/spec/mail/fields/references_field_spec.rb +35 -0
- data/vendor/mail/spec/mail/fields/reply_to_field_spec.rb +67 -0
- data/vendor/mail/spec/mail/fields/resent_bcc_field_spec.rb +66 -0
- data/vendor/mail/spec/mail/fields/resent_cc_field_spec.rb +66 -0
- data/vendor/mail/spec/mail/fields/resent_date_field_spec.rb +39 -0
- data/vendor/mail/spec/mail/fields/resent_from_field_spec.rb +66 -0
- data/vendor/mail/spec/mail/fields/resent_message_id_field_spec.rb +24 -0
- data/vendor/mail/spec/mail/fields/resent_sender_field_spec.rb +58 -0
- data/vendor/mail/spec/mail/fields/resent_to_field_spec.rb +66 -0
- data/vendor/mail/spec/mail/fields/return_path_field_spec.rb +52 -0
- data/vendor/mail/spec/mail/fields/sender_field_spec.rb +58 -0
- data/vendor/mail/spec/mail/fields/structured_field_spec.rb +72 -0
- data/vendor/mail/spec/mail/fields/to_field_spec.rb +92 -0
- data/vendor/mail/spec/mail/fields/unstructured_field_spec.rb +134 -0
- data/vendor/mail/spec/mail/header_spec.rb +578 -0
- data/vendor/mail/spec/mail/mail_spec.rb +34 -0
- data/vendor/mail/spec/mail/message_spec.rb +1409 -0
- data/vendor/mail/spec/mail/mime_messages_spec.rb +435 -0
- data/vendor/mail/spec/mail/multipart_report_spec.rb +112 -0
- data/vendor/mail/spec/mail/network/delivery_methods/file_delivery_spec.rb +79 -0
- data/vendor/mail/spec/mail/network/delivery_methods/sendmail_spec.rb +125 -0
- data/vendor/mail/spec/mail/network/delivery_methods/smtp_spec.rb +133 -0
- data/vendor/mail/spec/mail/network/delivery_methods/test_mailer_spec.rb +57 -0
- data/vendor/mail/spec/mail/network/retriever_methods/pop3_spec.rb +180 -0
- data/vendor/mail/spec/mail/network_spec.rb +359 -0
- data/vendor/mail/spec/mail/parsers/address_lists_parser_spec.rb +15 -0
- data/vendor/mail/spec/mail/parsers/content_transfer_encoding_parser_spec.rb +72 -0
- data/vendor/mail/spec/mail/part_spec.rb +129 -0
- data/vendor/mail/spec/mail/parts_list_spec.rb +12 -0
- data/vendor/mail/spec/mail/round_tripping_spec.rb +44 -0
- data/vendor/mail/spec/mail/utilities_spec.rb +327 -0
- data/vendor/mail/spec/mail/version_specific/escape_paren_1_8_spec.rb +32 -0
- data/vendor/mail/spec/matchers/break_down_to.rb +35 -0
- data/vendor/mail/spec/spec_helper.rb +163 -0
- metadata +442 -0
@@ -0,0 +1,339 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
Network Working Group J. Klensin, WG Chair
|
8
|
+
Request for Comments: 1652 MCI
|
9
|
+
Obsoletes: 1426 N. Freed, Editor
|
10
|
+
Category: Standards Track Innosoft
|
11
|
+
M. Rose
|
12
|
+
Dover Beach Consulting, Inc.
|
13
|
+
E. Stefferud
|
14
|
+
Network Management Associates, Inc.
|
15
|
+
D. Crocker
|
16
|
+
Silicon Graphics, Inc.
|
17
|
+
July 1994
|
18
|
+
|
19
|
+
|
20
|
+
SMTP Service Extension for 8bit-MIMEtransport
|
21
|
+
|
22
|
+
Status of this Memo
|
23
|
+
|
24
|
+
This document specifies an Internet standards track protocol for the
|
25
|
+
Internet community, and requests discussion and suggestions for
|
26
|
+
improvements. Please refer to the current edition of the "Internet
|
27
|
+
Official Protocol Standards" (STD 1) for the standardization state
|
28
|
+
and status of this protocol. Distribution of this memo is unlimited.
|
29
|
+
|
30
|
+
Abstract
|
31
|
+
|
32
|
+
This memo defines an extension to the SMTP service whereby an SMTP
|
33
|
+
content body consisting of text containing octets outside of the US-
|
34
|
+
ASCII octet range (hex 00-7F) may be relayed using SMTP.
|
35
|
+
|
36
|
+
1. Introduction
|
37
|
+
|
38
|
+
Although SMTP is widely and robustly deployed, various extensions
|
39
|
+
have been requested by parts of the Internet community. In
|
40
|
+
particular, a significant portion of the Internet community wishes to
|
41
|
+
exchange messages in which the content body consists of a MIME
|
42
|
+
message [3] containing arbitrary octet-aligned material. This memo
|
43
|
+
uses the mechanism described in [5] to define an extension to the
|
44
|
+
SMTP service whereby such contents may be exchanged. Note that this
|
45
|
+
extension does NOT eliminate the possibility of an SMTP server
|
46
|
+
limiting line length; servers are free to implement this extension
|
47
|
+
but nevertheless set a line length limit no lower than 1000 octets.
|
48
|
+
Given that this restriction still applies, this extension does NOT
|
49
|
+
provide a means for transferring unencoded binary via SMTP.
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
Klensin, Freed, Rose, Stefferud & Crocker [Page 1]
|
59
|
+
|
60
|
+
RFC 1652 SMTP 8bit-MIMEtransport July 1994
|
61
|
+
|
62
|
+
|
63
|
+
2. Framework for the 8bit MIME Transport Extension
|
64
|
+
|
65
|
+
The 8bit MIME transport extension is laid out as follows:
|
66
|
+
|
67
|
+
(1) the name of the SMTP service extension defined here is
|
68
|
+
8bit-MIMEtransport;
|
69
|
+
|
70
|
+
(2) the EHLO keyword value associated with the extension is
|
71
|
+
8BITMIME;
|
72
|
+
|
73
|
+
(3) no parameter is used with the 8BITMIME EHLO keyword;
|
74
|
+
|
75
|
+
(4) one optional parameter using the keyword BODY is added to
|
76
|
+
the MAIL FROM command. The value associated with this
|
77
|
+
parameter is a keyword indicating whether a 7bit message
|
78
|
+
(in strict compliance with [1]) or a MIME message (in
|
79
|
+
strict compliance with [3]) with arbitrary octet content
|
80
|
+
is being sent. The syntax of the value is as follows,
|
81
|
+
using the ABNF notation of [2]:
|
82
|
+
|
83
|
+
body-value ::= "7BIT" / "8BITMIME"
|
84
|
+
|
85
|
+
(5) no additional SMTP verbs are defined by this extension;
|
86
|
+
and,
|
87
|
+
|
88
|
+
(6) the next section specifies how support for the extension
|
89
|
+
affects the behavior of a server and client SMTP.
|
90
|
+
|
91
|
+
3. The 8bit-MIMEtransport service extension
|
92
|
+
|
93
|
+
When a client SMTP wishes to submit (using the MAIL command) a
|
94
|
+
content body consisting of a MIME message containing arbitrary lines
|
95
|
+
of octet-aligned material, it first issues the EHLO command to the
|
96
|
+
server SMTP. If the server SMTP responds with code 250 to the EHLO
|
97
|
+
command, and the response includes the EHLO keyword value 8BITMIME,
|
98
|
+
then the server SMTP is indicating that it supports the extended MAIL
|
99
|
+
command and will accept MIME messages containing arbitrary octet-
|
100
|
+
aligned material.
|
101
|
+
|
102
|
+
The extended MAIL command is issued by a client SMTP when it wishes
|
103
|
+
to transmit a content body consisting of a MIME message containing
|
104
|
+
arbitrary lines of octet-aligned material. The syntax for this
|
105
|
+
command is identical to the MAIL command in [1], except that a BODY
|
106
|
+
parameter must appear after the address. Only one BODY parameter may
|
107
|
+
be used in a single MAIL command.
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
Klensin, Freed, Rose, Stefferud & Crocker [Page 2]
|
115
|
+
|
116
|
+
RFC 1652 SMTP 8bit-MIMEtransport July 1994
|
117
|
+
|
118
|
+
|
119
|
+
The complete syntax of this extended command is defined in [5]. The
|
120
|
+
esmtp-keyword is BODY and the syntax for esmtp-value is given by the
|
121
|
+
syntax for body-value shown above.
|
122
|
+
|
123
|
+
The value associated with the BODY parameter indicates whether the
|
124
|
+
content body which will be passed using the DATA command consists of
|
125
|
+
a MIME message containing some arbitrary octet-aligned material
|
126
|
+
("8BITMIME") or is encoded entirely in accordance with [1] ("7BIT").
|
127
|
+
|
128
|
+
A server which supports the 8-bit MIME transport service extension
|
129
|
+
shall preserve all bits in each octet passed using the DATA command.
|
130
|
+
|
131
|
+
Naturally, the usual SMTP data-stuffing algorithm applies so that a
|
132
|
+
content which contains the five-character sequence of
|
133
|
+
|
134
|
+
<CR> <LF> <DOT> <CR> <LF>
|
135
|
+
|
136
|
+
or a content that begins with the three-character sequence of
|
137
|
+
|
138
|
+
<DOT> <CR> <LF>
|
139
|
+
|
140
|
+
does not prematurely terminate the transfer of the content. Further,
|
141
|
+
it should be noted that the CR-LF pair immediately preceeding the
|
142
|
+
final dot is considered part of the content. Finally, although the
|
143
|
+
content body contains arbitrary lines of octet-aligned material, the
|
144
|
+
length of each line (number of octets between two CR-LF pairs), is
|
145
|
+
still subject to SMTP server line length restrictions (which may
|
146
|
+
allow as few as 1000 octets on a single line). This restriction means
|
147
|
+
that this extension MAY provide the necessary facilities for
|
148
|
+
transferring a MIME object with the 8BIT content-transfer-encoding,
|
149
|
+
it DOES NOT provide a means of transferring an object with the BINARY
|
150
|
+
content-transfer-encoding.
|
151
|
+
|
152
|
+
Once a server SMTP supporting the 8bit-MIMEtransport service
|
153
|
+
extension accepts a content body containing octets with the high-
|
154
|
+
order (8th) bit set, the server SMTP must deliver or relay the
|
155
|
+
content in such a way as to preserve all bits in each octet.
|
156
|
+
|
157
|
+
If a server SMTP does not support the 8-bit MIME transport extension
|
158
|
+
(either by not responding with code 250 to the EHLO command, or by
|
159
|
+
not including the EHLO keyword value 8BITMIME in its response), then
|
160
|
+
the client SMTP must not, under any circumstances, attempt to
|
161
|
+
transfer a content which contains characters outside the US-ASCII
|
162
|
+
octet range (hex 00-7F).
|
163
|
+
|
164
|
+
A client SMTP has two options in this case: first, it may implement a
|
165
|
+
gateway transformation to convert the message into valid 7bit MIME,
|
166
|
+
or second, or may treat this as a permanent error and handle it in
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
Klensin, Freed, Rose, Stefferud & Crocker [Page 3]
|
171
|
+
|
172
|
+
RFC 1652 SMTP 8bit-MIMEtransport July 1994
|
173
|
+
|
174
|
+
|
175
|
+
the usual manner for delivery failures. The specifics of the
|
176
|
+
transformation from 8bit MIME to 7bit MIME are not described by this
|
177
|
+
RFC; the conversion is nevertheless constrained in the following
|
178
|
+
ways:
|
179
|
+
|
180
|
+
(1) it must cause no loss of information; MIME transport
|
181
|
+
encodings must be employed as needed to insure this is
|
182
|
+
the case, and
|
183
|
+
|
184
|
+
(2) the resulting message must be valid 7bit MIME.
|
185
|
+
|
186
|
+
4. Usage Example
|
187
|
+
|
188
|
+
The following dialogue illustrates the use of the 8bit-MIMEtransport
|
189
|
+
service extension:
|
190
|
+
|
191
|
+
S: <wait for connection on TCP port 25>
|
192
|
+
C: <open connection to server>
|
193
|
+
S: 220 dbc.mtview.ca.us SMTP service ready
|
194
|
+
C: EHLO ymir.claremont.edu
|
195
|
+
S: 250-dbc.mtview.ca.us says hello
|
196
|
+
S: 250 8BITMIME
|
197
|
+
C: MAIL FROM:<ned@ymir.claremont.edu> BODY=8BITMIME
|
198
|
+
S: 250 <ned@ymir.claremont.edu>... Sender and 8BITMIME ok
|
199
|
+
C: RCPT TO:<mrose@dbc.mtview.ca.us>
|
200
|
+
S: 250 <mrose@dbc.mtview.ca.us>... Recipient ok
|
201
|
+
C: DATA
|
202
|
+
S: 354 Send 8BITMIME message, ending in CRLF.CRLF.
|
203
|
+
...
|
204
|
+
C: .
|
205
|
+
S: 250 OK
|
206
|
+
C: QUIT
|
207
|
+
S: 250 Goodbye
|
208
|
+
|
209
|
+
5. Security Considerations
|
210
|
+
|
211
|
+
This RFC does not discuss security issues and is not believed to
|
212
|
+
raise any security issues not already endemic in electronic mail and
|
213
|
+
present in fully conforming implementations of [1].
|
214
|
+
|
215
|
+
6. Acknowledgements
|
216
|
+
|
217
|
+
This document represents a synthesis of the ideas of many people and
|
218
|
+
reactions to the ideas and proposals of others. Randall Atkinson,
|
219
|
+
Craig Everhart, Risto Kankkunen, and Greg Vaudreuil contributed ideas
|
220
|
+
and text sufficient to be considered co-authors. Other important
|
221
|
+
suggestions, text, or encouragement came from Harald Alvestrand, Jim
|
222
|
+
Conklin, Mark Crispin, Frank da Cruz, 'Olafur Gudmundsson, Per
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
Klensin, Freed, Rose, Stefferud & Crocker [Page 4]
|
227
|
+
|
228
|
+
RFC 1652 SMTP 8bit-MIMEtransport July 1994
|
229
|
+
|
230
|
+
|
231
|
+
Hedeland, Christian Huitma, Neil Katin, Eliot Lear, Harold A.
|
232
|
+
Miller, Keith Moore, Dan Oscarsson, Julian Onions, Neil Rickert, John
|
233
|
+
Wagner, Rayan Zachariassen, and the contributions of the entire IETF
|
234
|
+
SMTP Working Group. Of course, none of the individuals are
|
235
|
+
necessarily responsible for the combination of ideas represented
|
236
|
+
here. Indeed, in some cases, the response to a particular criticism
|
237
|
+
was to accept the problem identification but to include an entirely
|
238
|
+
different solution from the one originally proposed.
|
239
|
+
|
240
|
+
7. References
|
241
|
+
|
242
|
+
[1] Postel, J., "Simple Mail Transfer Protocol", STD 10, RFC 821,
|
243
|
+
USC/Information Sciences Institute, August 1982.
|
244
|
+
|
245
|
+
[2] Crocker, D., "Standard for the Format of ARPA Internet Text
|
246
|
+
Messages", STD 11, RFC 822, UDEL, August 1982.
|
247
|
+
|
248
|
+
[3] Borenstein, N., and N. Freed, "Multipurpose Internet Mail
|
249
|
+
Extensions", RFC 1521, Bellcore, Innosoft, September 1993.
|
250
|
+
|
251
|
+
[4] Moore, K., "Representation of Non-ASCII Text in Internet Message
|
252
|
+
Headers", RFC 1522, University of Tennessee, September 1993.
|
253
|
+
|
254
|
+
[5] Klensin, J., Freed, N., Rose, M., Stefferud, E., and D. Crocker,
|
255
|
+
"SMTP Service Extensions", RFC 1651, MCI, Innosoft, Dover Beach
|
256
|
+
Consulting, Inc., Network Management Associates, Inc., Silicon
|
257
|
+
Graphics, Inc., July 1994.
|
258
|
+
|
259
|
+
[6] Partridge, C., "Mail Routing and the Domain System", STD 14, RFC
|
260
|
+
974, BBN, January 1986.
|
261
|
+
|
262
|
+
8. Chair, Editor, and Authors' Addresses
|
263
|
+
|
264
|
+
John Klensin, WG Chair
|
265
|
+
MCI Data Services Division
|
266
|
+
2100 Reston Parkway, 6th floor
|
267
|
+
Reston, VA 22091
|
268
|
+
USA
|
269
|
+
|
270
|
+
Phone:: 1 703 715 7361
|
271
|
+
Fax: +1 703 715 7435
|
272
|
+
EMail: klensin@mci.net
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
Klensin, Freed, Rose, Stefferud & Crocker [Page 5]
|
283
|
+
|
284
|
+
RFC 1652 SMTP 8bit-MIMEtransport July 1994
|
285
|
+
|
286
|
+
|
287
|
+
Ned Freed, Editor
|
288
|
+
Innosoft International, Inc.
|
289
|
+
1050 East Garvey Avenue South
|
290
|
+
West Covina, CA 91790
|
291
|
+
USA
|
292
|
+
|
293
|
+
Phone:: +1 818 919 3600
|
294
|
+
Fax: +1 818 919 3614
|
295
|
+
EMail: ned@innosoft.com
|
296
|
+
|
297
|
+
|
298
|
+
Marshall T. Rose
|
299
|
+
Dover Beach Consulting, Inc.
|
300
|
+
420 Whisman Court
|
301
|
+
Moutain View, CA 94043-2186
|
302
|
+
USA
|
303
|
+
|
304
|
+
Phone: +1 415 968 1052
|
305
|
+
Fax: +1 415 968 2510
|
306
|
+
EMail: mrose@dbc.mtview.ca.us
|
307
|
+
|
308
|
+
|
309
|
+
Einar A. Stefferud
|
310
|
+
Network Management Associates, Inc.
|
311
|
+
17301 Drey Lane
|
312
|
+
Huntington Beach, CA, 92647-5615
|
313
|
+
USA
|
314
|
+
|
315
|
+
Phone: +1 714 842 3711
|
316
|
+
Fax: +1 714 848 2091
|
317
|
+
EMail: stef@nma.com
|
318
|
+
|
319
|
+
|
320
|
+
Dave Crocker
|
321
|
+
Silicon Graphics, Inc.
|
322
|
+
2011 N. Shoreline Blvd.
|
323
|
+
P.O. Box 7311
|
324
|
+
Mountain View, CA 94039
|
325
|
+
USA
|
326
|
+
|
327
|
+
Phone: +1 415 390 1804
|
328
|
+
Fax: +1 415 962 8404
|
329
|
+
EMail: dcrocker@sgi.com
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
Klensin, Freed, Rose, Stefferud & Crocker [Page 6]
|
339
|
+
|
@@ -0,0 +1,227 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
Network Working Group G. Vaudreuil
|
8
|
+
Request for Comments: 1892 Octel Network Services
|
9
|
+
Category: Standards Track January 1996
|
10
|
+
|
11
|
+
|
12
|
+
The Multipart/Report Content Type
|
13
|
+
for the Reporting of
|
14
|
+
Mail System Administrative Messages
|
15
|
+
|
16
|
+
Status of this Memo
|
17
|
+
|
18
|
+
This document specifies an Internet standards track protocol for the
|
19
|
+
Internet community, and requests discussion and suggestions for
|
20
|
+
improvements. Please refer to the current edition of the "Internet
|
21
|
+
Official Protocol Standards" (STD 1) for the standardization state
|
22
|
+
and status of this protocol. Distribution of this memo is unlimited.
|
23
|
+
|
24
|
+
1. The Multipart/Report MIME content-type
|
25
|
+
|
26
|
+
The Multipart/Report MIME content-type is a general "family" or
|
27
|
+
"container" type for electronic mail reports of any kind. Although
|
28
|
+
this memo defines only the use of the Multipart/Report content-type
|
29
|
+
with respect to delivery status reports, mail processing programs
|
30
|
+
will benefit if a single content-type is used to for all kinds of
|
31
|
+
reports.
|
32
|
+
|
33
|
+
The Multipart/Report content-type is defined as follows:
|
34
|
+
|
35
|
+
MIME type name: multipart
|
36
|
+
MIME subtype name: report
|
37
|
+
Required parameters: boundary, report-type
|
38
|
+
Optional parameters: none
|
39
|
+
Encoding considerations: 7bit should always be adequate
|
40
|
+
Security considerations: see section 4 of this memo.
|
41
|
+
|
42
|
+
The syntax of Multipart/Report is identical to the Multipart/Mixed
|
43
|
+
content type defined in [MIME]. When used to send a report, the
|
44
|
+
Multipart/Report content-type must be the top-level MIME content type
|
45
|
+
for any report message. The report-type parameter identifies the
|
46
|
+
type of report. The parameter is the MIME content sub-type of the
|
47
|
+
second body part of the Multipart/Report.
|
48
|
+
|
49
|
+
User agents and gateways must be able to automatically determine
|
50
|
+
that a message is a mail system report and should be processed as
|
51
|
+
such. Placing the Multipart/Report as the outermost content
|
52
|
+
provides a mechanism whereby an auto-processor may detect through
|
53
|
+
parsing the RFC 822 headers that the message is a report.
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
Vaudreuil Standards Track [Page 1]
|
59
|
+
|
60
|
+
RFC 1892 Multipart/Report January 1996
|
61
|
+
|
62
|
+
|
63
|
+
The Multipart/Report content-type contains either two or three sub-
|
64
|
+
parts, in the following order:
|
65
|
+
|
66
|
+
(1) [required] The first body part contains human readable message.
|
67
|
+
The purpose of this message is to provide an easily-understood
|
68
|
+
description of the condition(s) that caused the report to be
|
69
|
+
generated, for a human reader who may not have an user agent
|
70
|
+
capable of interpreting the second section of the
|
71
|
+
Multipart/Report.
|
72
|
+
|
73
|
+
The text in the first section may be in any MIME standards-track
|
74
|
+
content-type, charset, or language. Where a description of the
|
75
|
+
error is desired in several languages or several media, a
|
76
|
+
Multipart/Alternative construct may be used.
|
77
|
+
|
78
|
+
This body part may also be used to send detailed information
|
79
|
+
that cannot be easily formatted into a Message/Report body part.
|
80
|
+
|
81
|
+
(2) [required] A machine parsable body part containing an account
|
82
|
+
of the reported message handling event. The purpose of this body
|
83
|
+
part is to provide a machine-readable description of the
|
84
|
+
condition(s) which caused the report to be generated, along with
|
85
|
+
details not present in the first body part that may be useful to
|
86
|
+
human experts. An initial body part, Message/delivery-status is
|
87
|
+
defined in [DSN]
|
88
|
+
|
89
|
+
(3) [optional] A body part containing the returned message or a
|
90
|
+
portion thereof. This information may be useful to aid human
|
91
|
+
experts in diagnosing problems. (Although it may also be useful
|
92
|
+
to allow the sender to identify the message which the report was
|
93
|
+
issued, it is hoped that the envelope-id and original-recipient-
|
94
|
+
address returned in the Message/Report body part will replace
|
95
|
+
the traditional use of the returned content for this purpose.)
|
96
|
+
|
97
|
+
Return of content may be wasteful of network bandwidth and a variety
|
98
|
+
of implementation strategies can be used. Generally the sender
|
99
|
+
should choose the appropriate strategy and inform the recipient of
|
100
|
+
the required level of returned content required. In the absence of
|
101
|
+
an explicit request for level of return of content such as that
|
102
|
+
provided in [DRPT], the agent which generated the delivery service
|
103
|
+
report should return the full message content.
|
104
|
+
|
105
|
+
When data not encoded in 7 bits is to be returned, and the return
|
106
|
+
path is not guaranteed to be 8-bit capable, two options are
|
107
|
+
available. The origional message MAY be reencoded into a legal 7 bit
|
108
|
+
MIME message or the Text/RFC822-Headers content-type MAY be used to
|
109
|
+
return only the origional message headers.
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
Vaudreuil Standards Track [Page 2]
|
115
|
+
|
116
|
+
RFC 1892 Multipart/Report January 1996
|
117
|
+
|
118
|
+
|
119
|
+
2. The Text/RFC822-Headers MIME content-type
|
120
|
+
|
121
|
+
The Text/RFC822-Headers MIME content-type provides a mechanism to
|
122
|
+
label and return only the RFC 822 headers of a failed message. These
|
123
|
+
headers are not the complete message and should not be returned as a
|
124
|
+
Message/RFC822. The returned headers are useful for identifying the
|
125
|
+
failed message and for diagnostics based on the received: lines.
|
126
|
+
|
127
|
+
The Text/RFC822-Headers content-type is defined as follows:
|
128
|
+
|
129
|
+
MIME type name: Text
|
130
|
+
MIME subtype name: RFC822-Headers
|
131
|
+
Required parameters: None
|
132
|
+
Optional parameters: none
|
133
|
+
Encoding considerations: 7 bit is sufficient for normal RFC822
|
134
|
+
headers, however, if the headers are broken and require
|
135
|
+
encoding, they may be encoded in quoted-printable.
|
136
|
+
Security considerations: see section 4 of this memo.
|
137
|
+
|
138
|
+
The Text/RFC822-headers body part should contain all the RFC822
|
139
|
+
header lines from the message which caused the report. The RFC822
|
140
|
+
headers include all lines prior to the blank line in the message.
|
141
|
+
They include the MIME-Version and MIME Content- headers.
|
142
|
+
|
143
|
+
3. References
|
144
|
+
|
145
|
+
[DSN] Moore, K., and G. Vaudreuil, "An Extensible Message Format for
|
146
|
+
Delivery Status Notifications", RFC 1894, University of
|
147
|
+
Tennessee, Octel Network Services, January 1996.
|
148
|
+
|
149
|
+
[RFC822] Crocker, D., "Standard for the format of ARPA Internet Text
|
150
|
+
Messages", STD 11, RFC 822, UDEL, August 1982.
|
151
|
+
|
152
|
+
[MIME] Borenstein, N., and N. Freed, "Multipurpose Internet Mail
|
153
|
+
Extensions", RFC 1521, Bellcore, Innosoft, June 1992.
|
154
|
+
|
155
|
+
[DRPT] Moore, K., "SMTP Service Extension for Delivery Status
|
156
|
+
Notifications", RFC 1891, University of Tennessee, January 1996.
|
157
|
+
|
158
|
+
4. Security Considerations
|
159
|
+
|
160
|
+
Automated use of report types without authentication presents several
|
161
|
+
security issues. Forging negative reports presents the opportunity
|
162
|
+
for denial-of-service attacks when the reports are used for automated
|
163
|
+
maintenance of directories or mailing lists. Forging positive
|
164
|
+
reports may cause the sender to incorrectly believe a message was
|
165
|
+
delivered when it was not.
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
Vaudreuil Standards Track [Page 3]
|
171
|
+
|
172
|
+
RFC 1892 Multipart/Report January 1996
|
173
|
+
|
174
|
+
|
175
|
+
5. Author's Address
|
176
|
+
|
177
|
+
Gregory M. Vaudreuil
|
178
|
+
Octel Network Services
|
179
|
+
17060 Dallas Parkway
|
180
|
+
Dallas, TX 75248-1905
|
181
|
+
|
182
|
+
Phone: +1-214-733-2722
|
183
|
+
EMail: Greg.Vaudreuil@Octel.com
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
Vaudreuil Standards Track [Page 4]
|
227
|
+
|