mail 2.6.5 → 2.7.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.
Files changed (163) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +75 -102
  4. data/lib/mail/attachments_list.rb +8 -4
  5. data/lib/mail/body.rb +50 -38
  6. data/lib/mail/check_delivery_params.rb +49 -10
  7. data/lib/mail/configuration.rb +2 -0
  8. data/lib/mail/constants.rb +1 -1
  9. data/lib/mail/core_extensions/smtp.rb +19 -16
  10. data/lib/mail/core_extensions/string.rb +0 -4
  11. data/lib/mail/elements/address.rb +28 -22
  12. data/lib/mail/elements/address_list.rb +10 -18
  13. data/lib/mail/elements/content_disposition_element.rb +8 -15
  14. data/lib/mail/elements/content_location_element.rb +5 -10
  15. data/lib/mail/elements/content_transfer_encoding_element.rb +5 -10
  16. data/lib/mail/elements/content_type_element.rb +8 -19
  17. data/lib/mail/elements/date_time_element.rb +6 -14
  18. data/lib/mail/elements/envelope_from_element.rb +14 -21
  19. data/lib/mail/elements/message_ids_element.rb +8 -12
  20. data/lib/mail/elements/mime_version_element.rb +6 -14
  21. data/lib/mail/elements/phrase_list.rb +6 -9
  22. data/lib/mail/elements/received_element.rb +9 -15
  23. data/lib/mail/encodings/7bit.rb +5 -15
  24. data/lib/mail/encodings/8bit.rb +2 -21
  25. data/lib/mail/encodings/base64.rb +11 -12
  26. data/lib/mail/encodings/binary.rb +3 -22
  27. data/lib/mail/encodings/identity.rb +24 -0
  28. data/lib/mail/encodings/quoted_printable.rb +6 -6
  29. data/lib/mail/encodings/transfer_encoding.rb +38 -29
  30. data/lib/mail/encodings/unix_to_unix.rb +3 -1
  31. data/lib/mail/encodings.rb +99 -43
  32. data/lib/mail/envelope.rb +1 -1
  33. data/lib/mail/field.rb +96 -59
  34. data/lib/mail/fields/bcc_field.rb +2 -2
  35. data/lib/mail/fields/cc_field.rb +1 -1
  36. data/lib/mail/fields/comments_field.rb +1 -1
  37. data/lib/mail/fields/common/common_address.rb +32 -7
  38. data/lib/mail/fields/common/common_field.rb +1 -10
  39. data/lib/mail/fields/common/parameter_hash.rb +1 -1
  40. data/lib/mail/fields/content_description_field.rb +1 -1
  41. data/lib/mail/fields/content_disposition_field.rb +3 -3
  42. data/lib/mail/fields/content_id_field.rb +2 -2
  43. data/lib/mail/fields/content_location_field.rb +1 -1
  44. data/lib/mail/fields/content_transfer_encoding_field.rb +1 -1
  45. data/lib/mail/fields/content_type_field.rb +4 -9
  46. data/lib/mail/fields/date_field.rb +2 -3
  47. data/lib/mail/fields/from_field.rb +1 -1
  48. data/lib/mail/fields/in_reply_to_field.rb +1 -1
  49. data/lib/mail/fields/keywords_field.rb +1 -1
  50. data/lib/mail/fields/message_id_field.rb +1 -1
  51. data/lib/mail/fields/mime_version_field.rb +1 -1
  52. data/lib/mail/fields/optional_field.rb +4 -1
  53. data/lib/mail/fields/received_field.rb +1 -1
  54. data/lib/mail/fields/references_field.rb +1 -1
  55. data/lib/mail/fields/reply_to_field.rb +1 -1
  56. data/lib/mail/fields/resent_bcc_field.rb +1 -1
  57. data/lib/mail/fields/resent_cc_field.rb +1 -1
  58. data/lib/mail/fields/resent_date_field.rb +0 -1
  59. data/lib/mail/fields/resent_from_field.rb +1 -1
  60. data/lib/mail/fields/resent_message_id_field.rb +1 -1
  61. data/lib/mail/fields/resent_sender_field.rb +1 -1
  62. data/lib/mail/fields/resent_to_field.rb +1 -1
  63. data/lib/mail/fields/return_path_field.rb +1 -1
  64. data/lib/mail/fields/sender_field.rb +1 -1
  65. data/lib/mail/fields/subject_field.rb +1 -1
  66. data/lib/mail/fields/to_field.rb +1 -1
  67. data/lib/mail/fields/unstructured_field.rb +21 -4
  68. data/lib/mail/header.rb +10 -8
  69. data/lib/mail/mail.rb +2 -10
  70. data/lib/mail/matchers/has_sent_mail.rb +21 -1
  71. data/lib/mail/message.rb +78 -68
  72. data/lib/mail/multibyte/chars.rb +29 -28
  73. data/lib/mail/multibyte/unicode.rb +10 -10
  74. data/lib/mail/multibyte.rb +64 -15
  75. data/lib/mail/network/delivery_methods/exim.rb +6 -10
  76. data/lib/mail/network/delivery_methods/file_delivery.rb +4 -8
  77. data/lib/mail/network/delivery_methods/logger_delivery.rb +37 -0
  78. data/lib/mail/network/delivery_methods/sendmail.rb +16 -11
  79. data/lib/mail/network/delivery_methods/smtp.rb +59 -53
  80. data/lib/mail/network/delivery_methods/smtp_connection.rb +10 -6
  81. data/lib/mail/network/delivery_methods/test_mailer.rb +5 -8
  82. data/lib/mail/network/retriever_methods/imap.rb +18 -5
  83. data/lib/mail/network/retriever_methods/pop3.rb +3 -1
  84. data/lib/mail/network.rb +1 -0
  85. data/lib/mail/parser_tools.rb +15 -0
  86. data/lib/mail/parsers/address_lists_parser.rb +33207 -104
  87. data/lib/mail/parsers/address_lists_parser.rl +172 -0
  88. data/lib/mail/parsers/content_disposition_parser.rb +876 -49
  89. data/lib/mail/parsers/content_disposition_parser.rl +82 -0
  90. data/lib/mail/parsers/content_location_parser.rb +803 -23
  91. data/lib/mail/parsers/content_location_parser.rl +71 -0
  92. data/lib/mail/parsers/content_transfer_encoding_parser.rb +501 -19
  93. data/lib/mail/parsers/content_transfer_encoding_parser.rl +64 -0
  94. data/lib/mail/parsers/content_type_parser.rb +1023 -48
  95. data/lib/mail/parsers/content_type_parser.rl +83 -0
  96. data/lib/mail/parsers/date_time_parser.rb +870 -24
  97. data/lib/mail/parsers/date_time_parser.rl +62 -0
  98. data/lib/mail/parsers/envelope_from_parser.rb +3569 -34
  99. data/lib/mail/parsers/envelope_from_parser.rl +82 -0
  100. data/lib/mail/parsers/message_ids_parser.rb +2839 -25
  101. data/lib/mail/parsers/message_ids_parser.rl +82 -0
  102. data/lib/mail/parsers/mime_version_parser.rb +491 -26
  103. data/lib/mail/parsers/mime_version_parser.rl +61 -0
  104. data/lib/mail/parsers/phrase_lists_parser.rb +860 -18
  105. data/lib/mail/parsers/phrase_lists_parser.rl +83 -0
  106. data/lib/mail/parsers/received_parser.rb +8764 -37
  107. data/lib/mail/parsers/received_parser.rl +84 -0
  108. data/lib/mail/parsers/rfc2045_content_transfer_encoding.rl +13 -0
  109. data/lib/mail/parsers/rfc2045_content_type.rl +25 -0
  110. data/lib/mail/parsers/rfc2045_mime.rl +16 -0
  111. data/lib/mail/parsers/rfc2183_content_disposition.rl +15 -0
  112. data/lib/mail/parsers/rfc3629_utf8.rl +19 -0
  113. data/lib/mail/parsers/rfc5234_abnf_core_rules.rl +22 -0
  114. data/lib/mail/parsers/rfc5322.rl +59 -0
  115. data/lib/mail/parsers/rfc5322_address.rl +72 -0
  116. data/lib/mail/parsers/{ragel/date_time.rl → rfc5322_date_time.rl} +8 -1
  117. data/lib/mail/parsers/rfc5322_lexical_tokens.rl +60 -0
  118. data/lib/mail/parsers.rb +16 -24
  119. data/lib/mail/part.rb +3 -3
  120. data/lib/mail/parts_list.rb +5 -6
  121. data/lib/mail/utilities.rb +59 -28
  122. data/lib/mail/version.rb +2 -2
  123. data/lib/mail/version_specific/ruby_1_8.rb +40 -3
  124. data/lib/mail/version_specific/ruby_1_9.rb +61 -9
  125. data/lib/mail.rb +3 -16
  126. metadata +44 -53
  127. data/CHANGELOG.rdoc +0 -795
  128. data/CONTRIBUTING.md +0 -60
  129. data/Dependencies.txt +0 -2
  130. data/Gemfile +0 -14
  131. data/Rakefile +0 -29
  132. data/TODO.rdoc +0 -9
  133. data/lib/mail/core_extensions/string/access.rb +0 -146
  134. data/lib/mail/core_extensions/string/multibyte.rb +0 -79
  135. data/lib/mail/multibyte/exceptions.rb +0 -9
  136. data/lib/mail/parsers/ragel/common.rl +0 -185
  137. data/lib/mail/parsers/ragel/parser_info.rb +0 -61
  138. data/lib/mail/parsers/ragel/ruby/machines/address_lists_machine.rb +0 -14864
  139. data/lib/mail/parsers/ragel/ruby/machines/address_lists_machine.rb.rl +0 -37
  140. data/lib/mail/parsers/ragel/ruby/machines/content_disposition_machine.rb +0 -751
  141. data/lib/mail/parsers/ragel/ruby/machines/content_disposition_machine.rb.rl +0 -37
  142. data/lib/mail/parsers/ragel/ruby/machines/content_location_machine.rb +0 -614
  143. data/lib/mail/parsers/ragel/ruby/machines/content_location_machine.rb.rl +0 -37
  144. data/lib/mail/parsers/ragel/ruby/machines/content_transfer_encoding_machine.rb +0 -447
  145. data/lib/mail/parsers/ragel/ruby/machines/content_transfer_encoding_machine.rb.rl +0 -37
  146. data/lib/mail/parsers/ragel/ruby/machines/content_type_machine.rb +0 -825
  147. data/lib/mail/parsers/ragel/ruby/machines/content_type_machine.rb.rl +0 -37
  148. data/lib/mail/parsers/ragel/ruby/machines/date_time_machine.rb +0 -817
  149. data/lib/mail/parsers/ragel/ruby/machines/date_time_machine.rb.rl +0 -37
  150. data/lib/mail/parsers/ragel/ruby/machines/envelope_from_machine.rb +0 -2149
  151. data/lib/mail/parsers/ragel/ruby/machines/envelope_from_machine.rb.rl +0 -37
  152. data/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb +0 -1570
  153. data/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb.rl +0 -37
  154. data/lib/mail/parsers/ragel/ruby/machines/mime_version_machine.rb +0 -440
  155. data/lib/mail/parsers/ragel/ruby/machines/mime_version_machine.rb.rl +0 -37
  156. data/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb +0 -564
  157. data/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl +0 -37
  158. data/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl +0 -51
  159. data/lib/mail/parsers/ragel/ruby/machines/received_machine.rb +0 -5144
  160. data/lib/mail/parsers/ragel/ruby/machines/received_machine.rb.rl +0 -37
  161. data/lib/mail/parsers/ragel/ruby/parser.rb.rl.erb +0 -37
  162. data/lib/mail/parsers/ragel/ruby.rb +0 -40
  163. data/lib/mail/parsers/ragel.rb +0 -18
data/CHANGELOG.rdoc DELETED
@@ -1,795 +0,0 @@
1
- == Version 2.6.5 - 2017-04-26 Jeremy Daer <jeremydaer@gmail.com>
2
-
3
- Features:
4
- * #1053 - Ruby 2.4.0 compatibility. Fixnum+Bignum unified as Integer. (peterkovacs)
5
-
6
- Bugs:
7
- * #605 - Fix Mail::Address#name for nil addresses (peterkovacs)
8
- * #1003 - Fix decoding some b encoded headers on specific rubies that don't account for lack of base64 padding (kjg)
9
- * #1023 - Fix double-quoting in display names. (garethrees)
10
-
11
- == Version 2.6.4 - Wed Mar 23 08:16 -0700 2016 Jeremy Daer <jeremydaer@gmail.com>
12
-
13
- Features:
14
- * #772 - Normalize encoding matchers (grosser)
15
- * #775 - Avoid failed encodings / stop bad charsets early (grosser)
16
- * #782 – Make the gem compatible with Rubinius (robin850)
17
- * #865 - Allow a body with an invalid encoding to be round tripped (kjg)
18
- * #866 - Support decoding message bodies with non-Ruby-standard charsets (jeremy)
19
- * #868 - Use the Ruby19.charset_encoder when decoding message bodies (kjg)
20
- * #872 - Low-level option to include BCC field in the encoded message (grossadamm)
21
- * #901 - Allow mail.text_part = '…' and mail.html_part = '<p>…</p>' (taavo)
22
- * #924 - Matcher for having attachments (schepedw)
23
-
24
- Performance:
25
- * #956 - Use native String#encode for CR/LF conversion (carsonreinke)
26
- * #970 - Support Ruby 2.3+ frozen string literals (twalpole)
27
-
28
- Bugs:
29
- * #719 - Fix to not extract header content that looks like its field name (kjg)
30
- * #789 - Fix encoding collapsing not dealing with multiple encodings in 1 line (grosser)
31
- * #808 - Mail::Field correctly responds_to? the methods of its instantiated field (thegcat)
32
- * #849 - Handle calling Part#inline? when the Content-Disposition field couldn't be parsed (kjg)
33
- * #874 – Stay under 1000-char SMTP line length limits (pushrax)
34
- * #877 - Make Mail::Field == other take the field value into account (kjg)
35
- * #907 - Mail::ContentDispositionField should work with nil value (kjg)
36
- * #910 - Mail::Address should handle b_value_encoded local and domain parts (kjg)
37
- * #918 - Account for possibility of absent delivery-status headers (kjg)
38
-
39
- == Version 2.6.3 - Mon Nov 3 23:53 +1100 2014 Mikel Lindsaar <mikel@reinteractive.net>
40
-
41
- * #796 support uu encoding (grosser)
42
-
43
- == Version 2.6.2 (Unreleased) - Wed Oct 22 13:42 -0500 2014 Benjamin Fleischer <github@benjaminfleischer.com>
44
-
45
- Performance:
46
- * #681 - fewer hotspot object allocations (srawlins)
47
- * #815 - autoload parsers for load-time speed and memory usage (grosser)
48
-
49
- Bugs:
50
- * #736 - Mail.new copes with non-UTF8 messages marked as UTF8 (jeremy)
51
-
52
- == Version 2.6.1 - Sun Jun 8 15:34 +1100 2014 Mikel Lindsaar <mikel@reinteractive.net>
53
-
54
- Features:
55
- * Silence warnings on loading ragel-generated parsers (bf4)
56
-
57
- == Version 2.6.0 - Mon Jun 2 22:49 +1100 2014 Mikel Lindsaar <mikel@reinteractive.net>
58
-
59
- Features:
60
- * Allow interceptors and observers to be unregistered (zuhao)
61
- * Added feature to find the mail in uid (taketin)
62
- * Save settings passed to TestMailer#new (svanderbleek)
63
- * Allow the setting of envelope from directly (jeremy)
64
- * Accept other IETF/IANA-registered Content-Types and Content-Transfer-Encodings (jeremy)
65
- * Alias shift-jis charset to Shift_JIS Ruby encoding (jeremy)
66
- * Add support for ks_c_5601-1987 charset, aliased to CP949 Ruby encoding (jeremy)
67
- * Don't allow colons in header names (jeremy)
68
- * Can assign arrays of Message-IDs to References and In-Reply-To (jeremy)
69
- * Setting the html_ or text_part sets a default text/html or text/plain content type (jeremy)
70
- * Setting the html_ or text_part to nil removes it (jeremy)
71
- * Addresses without a parsable email or display name still format as their raw text (jeremy)
72
- * Close pull request 504 - Alias GB2312 charset to GB18030 Ruby encoding (bpot)
73
- * Close pull request 399 - Accept :ca_path and :ca_file options for SMTP delivery (ndbroadbent)
74
- * Close pull request 389 - Don't add superfluous message headers to MIME parts (djmaze, jeremy)
75
-
76
- Performance:
77
- * Migrate to RAGEL based parser, awesome work by (bpot)
78
- * Performance improvements for people parsing email headers (ConradIrwin)
79
- * Close pull request 488 - Speed up field construction & comparison (bpot)
80
-
81
- Bugs:
82
- * Fix for when content looks like field name (kjg)
83
- * Don't change original when you change a copy (TylerRick)
84
- * Don't include separating semicolon in paramter value when sanitizing (bpot)
85
- * Fix fencepost encoding problem with binhex strings and only one token (drasch)
86
- * Fix sendmail delivery to addresses with a leading hyphen (lifo, jeremy)
87
- * Correctly format mbox From headers per RFC4155 (bpot, jeremy)
88
- * Fix bogus '=' at the end of some quoted-printable messages (jeremy)
89
- * Shouldn't be fooled into encoding strings on 1.8 by unrelated Encoding constant (emiellohr, jeremy)
90
- * Header encoding should be US-ASCII, not the default external encoding (jeremy)
91
- * Address elements should return decoded display names by default (jeremy)
92
- * Fix up tests that depend on utf-8 external encoding; read fixtures as binary (jeremy)
93
- * Capture stderr from Sendmail and Exim deliveries (jeremy)
94
- * RFC2822 quoted_string content may be empty (jeremy)
95
- * Calling #to_s on a field with a nil value returns an empty string instead of nil (jeremy)
96
- * The Received header may contain zero name/value pairs, qmail-style (jeremy)
97
- * Fix that setting an attachment with a :mime_type and :encoding would override the :encoding (jeremy)
98
- * Fix that declaring an html_part but no text_part would use multipart/alternative anyway (jeremy)
99
- * Close pull request 508 - Don't add an extra CRLF to MIME parts; split MIME parts on correct CRLF boundaries (Aalanar)
100
- * Close pull request 506 - Escape backslashes in quoted strings (ConradIrwin)
101
- * Close pull request 496 - Correctly handle quoted-printable line breaks (jeremy)
102
- * Close pull request 493 - Repair misencoded quoted-printable line breaks (jeremy)
103
- * Close pull request 487 - Extract comments from group email addresses (bpot)
104
- * Close pull request 481 - Correctly quote filename attributes (bpot)
105
- * Close pull request 480 - Support mixed encodings in a single header body (adamvaughan)
106
- * Close pull request 471 - Fix Ruby 1.8 build when UTF16/32 default to little-endian (kennyj)
107
-
108
- Coping with third-party bugs:
109
- * Parse multipart boundary from Content-Type headers containing extra semicolons (jeremy)
110
- * Close pull request 389 - Only add Content-ID to inline attachments to appease Outlook (djmaze, jeremy)
111
-
112
- Housekeeping:
113
- * Add development gem dependency on rdoc (jeremy)
114
- * Refresh Bundler dependencies & setup (jeremy)
115
- * Remove i18n dependency and last vestiges of activesupport dependency in specs (jeremy)
116
- * Clarify that Sender is a single address, not an address list (jeremy)
117
- * Add an MIT-LICENSE file to make licensing clear & obvious; update to 2013 (jeremy)
118
- * Close pull request 501 - Tighten up header/body whitespace splitting (ConradIrwin)
119
- * Close pull request 499 - Clean up some dead code (ConradIrwin)
120
- * Close pull request 489, 495 - Docs typos (JackDanger, francois)
121
- * Close pull request 485 - Be explicit about unsupported address parsing (bpot)
122
- * Close pull request 484 - Remove #tree specs in preparation for deprecation removal (bpot)
123
- * Close pull request 482 - Update address field specs to reflect to #initialize API (bpot)
124
- * Close pull request 475 - Shush warning on Object#blank? redefinition (amatsuda)
125
- * Close pull request 472 - Clean up UTF8/UTF-8 internals (kennyj)
126
-
127
- == Version 2.5.3 - Sun Dec 4 15:52:00 +1100 2012 Mikel Lindsaar <mikel@reinteractive.net>
128
-
129
- * Close pull request 468 - Remove debug output to STDOUT (tadman)
130
- * Fix up spec warnings
131
- * Remove un needed require
132
- * Ensure spec_helper constants only defined once
133
- * Use stub against time instead of DateTime to avoid double redefinition error
134
-
135
- == Version 2.5.2 - Sun Nov 18 15:01:00 +1100 2012 Mikel Lindsaar <mikel@reinteractive.net>
136
-
137
- * Removing double loading of treetop parsers to remove warnings
138
- * Making parsers auto compile on spec suite and load in production code to avoid error that caused yank of 2.5.0
139
- * Reapply pull request 443 - CC fields with semicolon are now parsed right (paulwittmann)
140
-
141
- == Version 2.5.1 - Sun Nov 18 14:01:00 +1100 2012 Mikel Lindsaar <mikel@reinteractive.net>
142
-
143
- * Yanked 2.5.0
144
- * Reverted pull request 443 - CC fields with semicolon are now parsed right (paulwittmann)
145
-
146
- == Version 2.5.0 - Sun Nov 18 12:20:00 +1100 2012 Mikel Lindsaar <mikel@reinteractive.net>
147
-
148
- Features:
149
- * Close pull request 406 - Add Mail#eager_autoload! to load all autoloaded files on demand (bpot)
150
- * Close pull request 461 - Allow string as delivery_method (skyeagle, radar)
151
- * Close pull request 407 - Do not require Net::IMAP or Net::POP if they're already loaded (bpot)
152
- * Close pull request 400 - Raise exception if delivery values or from values are missing completely from an email that is getting delivered (dmathieu)
153
- * Close pull request 397 - Support dots in local part of the addresses (eac)
154
- * Close pull request 477 - Fixed handling content_type with superfluous spaces (ledermann)
155
- * Close pull request 451 - Ignore nil in addresses so things do not blow up when e.g. a user had no email (grosser)
156
- * Close pull request 362 - Enable TLS in Ruby 1.8 (kingargyle)
157
- * Close pull request 358 - Fix Mail::CommonAddress#value=, Mail::CommonAddress#<< and Mail::Encodings.encode_non_usascii (mrkn)
158
- * Close pull request 350 - Makes mail Header object ennumerable (ged)
159
-
160
- Performance:
161
- * Close pull request 369 - Mail::Header#charset is called pretty often during header parser work (bogdan)
162
- * Close pull request 368 - Improve existing code by moving some objects to contstant instead of constructing them over and over again. (bogdan)
163
- * Close pull request 366 - Headers parsing performance optimization (bogdan)
164
- * Close pull request 365 - Add maximum_amount of parsed headers configuration parameter (bogdan)
165
-
166
- Bugs:
167
- * Close pull request 444 - Fix typo in spec (cczona)
168
- * Close pull request 439 - Fix Ruby 1.9 behaviour to match 1.8.7 behaviour on ignoring invalid or undefined characters (ochko)
169
- * Close pull request 430 - Unstructured field converts to string before calling encoding on it (brupm mikel)
170
- * Close pull request 424 - Use String#to_crlf instead of String#gsub (okkez)
171
- * Close pull request 429 - Fix an obvious bug in exim delivery_method (dskim)
172
- * Close pull request 425 - Remove Gemfile.lock from generated gem (kbackowski)
173
- * Close pull request 414 - Fix typo on "ignoring" (derwiki)
174
- * Close pull request 405 - Fix stack overflow (RegexpError) triggered by large emails with an envelope (bpot)
175
- * Close pull request 402 - Prevent InReplyTo, Keyword, References or ResentMessageId fields from generating lines longer than 998 chars (pplr)
176
- * Close pull request 391 - Fixed failed attachment parsing when file name in headers contains spaces and is not wrapped in quotes (danieltreacy)
177
- * Close pull request 385 - Fix Multibyte::Chars#upcase/downcase (technoweenie)
178
- * Close pull request 384 - copy dat unicode over from active support (technoweenie)
179
- * Close pull request 380 - Split strictly on MIME boundary lines (ConradIrwin)
180
- * Close pull request 277 - Fix specific email decoding failure example (yalab)
181
- * Close pull request 361 - Support 8bit encoding for ruby 1.9 (bogdan)
182
- * Close pull request 346 - Fix two bugs of TestRetriever (ermaker)
183
- * Close pull request 337 - Make the behavior of value_decode the same between Ruby 1.8 and Ruby 1.9. (kennyj)
184
- * Close pull request 336 - Fix more warning: possibly useless use of == in void context (kennyj)
185
- * Close pull request 293 - make charset and mime type more resliant to bad header values (kmeehl)
186
- * Fix failing spec Issue 453 on Ruby 1.9.3
187
- * Fix mail reading: don't raise invalid byte sequence in UTF-8 when reading non-UTF-8 emails (mreinsch)
188
- * Close pull request 353 - define NilClass#blank? only if not defined yet (amatsuda)
189
- * Close pull request 357 - Fixes #349 an inverted condition on imap open read_only (felixroeser)
190
- * Remove duplicated line feed from regexp
191
- * Remove unused variable
192
- * Updated IMAP documentation
193
- * Tweak publisher
194
-
195
- == Version 2.4.4 - Wed Mar 14 22:44:00 +1100 2012 Mikel Lindsaar <mikel@reinteractive.net>
196
-
197
- * Fix security vulnerability allowing command line exploit when using file delivery method
198
-
199
- == Version 2.4.3 - Tue Mar 6 19:38:00 UTC 2012 Mikel Lindsaar <mikel@reinteractive.net>
200
-
201
- * Fix security vulnerability allowing command line exploit when using exim or sendmail from the command line
202
- * Change Mail#deliver! to also inform the interceptors
203
- * Encodings.value_decode(str): Treat lines with mixed encoding correctly when the line ends with a plain text part.
204
-
205
- == Version 2.4.1 - Thu Jan 19 13:49:34 UTC 2012 Mikel Lindsaar <mikel@reinteractive.net>
206
-
207
- * Fix non ascii character folding problems
208
- * Handle multipart mail in Mail::Message#to_yaml / #from_yaml
209
- * More warning fixes
210
- * Normalize the Parse Error class and messages
211
- * Fix for Mail::Encodings.unquote_and_convert not handling unquoted characters mixed in between quoted strings
212
- * Updated treetop to latest version, specs now run approximately 25-30% faster!
213
- * Version bump to 2.4.1 and gem release
214
-
215
- == Version 2.4.0 - Sun Jan 15 18:15:56 UTC 2011 Mikel Lindsaar <mikel@reinteractive.net>
216
-
217
- * Speed up reading of messages by about 12x
218
- * Added Message#without_attachments! that removes all message's attachments
219
- * Added shoulda-style RSpec matchers
220
- * Added support for @ in display name
221
- * Added support for the :tls and :ssl options
222
- * Added UTF-16 and UTF-32 support
223
- * Added Exim as it's own delivery manager
224
- * Added Ruby 1.9.3 compatibility
225
- * Fix for Sendmail return-path escaping
226
- * Fix for alias for SJIS was changed from shift_jis to windows-31J in Ruby 1.9.3
227
- * Fix for undefined method 'constantize' error when no ActiveSupport loaded
228
- * Fix Mail::Field#== comparison
229
- * Fixed Regexp warning: character class has duplicated range
230
- * Fixed encoding non-latin names in addresses
231
- * Fixed issue with non-7bit attachment filenames
232
- * Now define String#blank? only if not defined yet
233
- * Decoding text parts using charset from Content-Type field
234
- * Per RFC 5322, do not accept emails with consecutive dots
235
- * Bunch of bug fixes from contributed pull requests
236
- * Travis CI setup and passing on 6 rubies
237
- * Upgrade RSpec to 2.8.0
238
- * Lots of warnings fixed
239
- * Version bump to 2.4.0 and gem release
240
-
241
- == Version 2.3.0 - Tue Apr 26 09:59:56 UTC 2011 Mikel Lindsaar <mikel@rubyx.com>
242
-
243
- * Remove ActiveSupport from the dependencies, load Active Support if present, or use internals if not
244
- * Created v2.2 branch for all 2.2 related commits
245
- * Update activesupport require to use inflector - closes #217
246
- * Version bump to 2.3 and gem release
247
-
248
- == Tue Apr 26 06:18:19 UTC 2011 Mikel Lindsaar <mikel@rubyx.com>
249
-
250
- * Fixed charset warning issue with multipart messages - https://github.com/arvindsv
251
- * Version bump to 2.2.18 and gem release
252
-
253
- == Wed 20 Apr 2011 15:16:20 UTC Mikel Lindsaar <mikel@rubyx.com>
254
-
255
- * Mail::Field.new("Subject: foobar", 'iso-2022-jp') does not set charset - https://github.com/yalab
256
-
257
- == Tue Apr 19 00:20:54 UTC 2011 Mikel Lindsaar <mikel@rubyx.com>
258
-
259
- * Fixed an exception with nil in Reply-To and References field - https://github.com/dcormier
260
- * Version bump to 2.2.17 and gem release
261
-
262
- == Sat Apr 16 12:57:27 UTC 2011 Mikel Lindsaar <mikel@rubyx.com>
263
-
264
- * Added support for open SMTP connections and returning the Mail server's response - https://github.com/spiegela
265
- * RE: not appended to subject when replying to a reply - https://github.com/prateekdayal
266
- * Support not ascii compatible charset mail send - https://github.com/yalab
267
- * Fix for issue 208 "mail.body after mail.add_file truncates message body" - https://github.com/glongman
268
- * Handle bad subject encoding (or ":invalid => :replace" is ineffective for utf-8 to utf-8 encoding) - https://github.com/choonkeat
269
- * Handle blank Received header field - https://github.com/bcantin
270
- * Handle part with missing content type - https://github.com/bcantin
271
- * Handle a "<>" Return field - https://github.com/bcantin
272
- * Performance improvements for 1.9 - https://github.com/nobu
273
- * Fix heavy CPU issues when messages are missing a space - https://github.com/scsmith
274
- * Tighten up allowed encodings - https://github.com/scsmith
275
- * Added to_yaml & from_yaml (as well as to_hash & from_hash) - https://github.com/srushti
276
- * Fix up some comments - https://github.com/takahashim
277
- * Version bump to 2.2.16 and gem release
278
-
279
- == Wed 26 Jan 2011 02:23:09 UTC Mikel Lindsaar <mikel@rubyx.com>
280
-
281
- * Update addresses passed into sendmail to escape them (Andy Lindeman)
282
- * Version bump to 2.2.15 and gem release
283
-
284
- == Mon 3 Jan 2011 12:48:59 UTC Mikel Lindsaar <mikel@rubyx.com>
285
-
286
- * Update field_spec to handle encodings, closes issues 44 and 120 (Luis Lopez)
287
- * Version bump to 2.2.14 and gem release
288
-
289
- == Mon 3 Jan 2011 00:09:27 UTC Mikel Lindsaar <mikel@rubyx.com>
290
-
291
- * Use default IANA port on the IMAP retriever_method (Adrian Silva)
292
- * Updated README to reflect latest ruby versions we test against (mikel)
293
- * Only remove tlsconnect if it exists (mikel)
294
-
295
- == Thu 23 Dec 2010 09:15:58 UTC Mikel Lindsaar <mikel@rubyx.com>
296
-
297
- * Added backport fix for net/smtp bug (Aaron Patterson)
298
- * Changed "Mail#text_part" so that it does not return a plain text attachment (Anton Mironov)
299
- * Added in rescue blocks for badly formatted dates as well as encoding problems (Karl Baum)
300
- * Fixed warning errors of duplicated regular expressions (Kouhei Sutou)
301
- * Removed duplication from Regex's containing [\w\d]+ as \w contains \d (mikel)
302
- * Add authentication selection for imap retriever (Björn Albers)
303
- * Removing warning on @name not being initialized (mikel)
304
- * Version bump to 2.2.13 and gem release
305
-
306
- == Fri 10 Dec 2010 09:06:49 UTC Mikel Lindsaar <mikel@rubyx.com>
307
-
308
- * Fixing problems with multibyte filenamed attachment (amatsuda)
309
- * Providing IMAP uid and imap object as options to IMAP calls (dball)
310
- * Fixing filename for windows (mikel)
311
-
312
- == Sun Dec 5 02:24:55 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
313
-
314
- * Updating requirement on i18n to be more relaxed for now until we nuke ActiveSupport dependency (Mikel)
315
- * Version bump to 2.2.12 and gem release
316
-
317
- == Tue 30 Nov 2010 00:36:11 UTC Mikel Lindsaar <mikel@rubyx.com>
318
-
319
- * Allow address lists to handle and ignore empty addresses (Donald Ball)
320
- * Allow address lists to handle repeating strings of commas (Donald Ball)
321
- * Noting pending test for malformed folding whitespace (Donald Ball)
322
- * Adding spec to test error email for missing addresses in to header (Mikel)
323
- * Bumping i18n dependency to ~> 0.5.0
324
- * Version bump to 2.2.11 and gem release
325
-
326
- == Wed 17 Nov 2010 00:43:31 UTC Mikel Lindsaar <mikel@rubyx.com>
327
-
328
- * Added test retriever and updated documentation (Donald Ball)
329
- * Fix test suite to work in any timezone (Donald Ball)
330
- * Added dependency for tlsmail for Ruby 1.8.6 (Donald Ball)
331
- * Added new feature, replies for mail message
332
- * Fix references header to use CFWS instead of comma as the separator per RFC2822
333
- * Version Bum to 2.2.10 and pushed.
334
-
335
- == Mon Nov 15 13:04:41 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
336
-
337
- * Add find_and_delete convenience method for consistency with POP3, document delete_after_find option (Donald Ball)
338
- * Documenting the openssl_verify_mode setting (Donald Ball)
339
- * Added ruby-1.8.6 back into the list of tested platforms (Donald Ball)
340
- * Relax i18n dependency until we remove active support requirement
341
- * Version Bump to 2.2.9.1 to include new i18n dependency
342
-
343
- == Tue Oct 26 07:14:36 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
344
-
345
- * Version Bump to 2.2.9 and tag
346
- * Updating Gemfile and gemspec to include i18n and sync dependency versions
347
- * Added work from Kendall Gifford closing issues #104, #107 and #117
348
- * Always encode mailbox names with UTF-7 (github: fasta)
349
-
350
- == Tue Oct 26 06:43:17 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
351
-
352
- * Added updates from Donald Ball (github: dball) to improve 1.8.6 support
353
- * Added patch from Ryan Bigg (github: ryanb) for #mark_for_delete
354
-
355
- == Thu Oct 7 15:44:31 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
356
-
357
- * Version Bump to 2.2.7
358
- * Release 2.2.7
359
-
360
- == Thu Oct 7 15:42:57 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
361
-
362
- * Added fix for Windows using 'rb' flags, thanks to Luis Lavena and dzhang for pointing it out
363
- * Fixed up Rakefile to require bundler to run specs and give more appropriate errors messages if this fails
364
-
365
- == Tue Sep 28 14:59:03 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
366
-
367
- * Merged POP3 delete support work from Michael Prendergast
368
- * Merged IMAP support work from Fabian Staubli
369
-
370
- == Mon Sep 13 02:31:21 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
371
-
372
- * Replace some missing documentation
373
- * Version bump to 2.2.6.1
374
-
375
- == Sat 11 Sep 2010 05:13:36 UTC Mikel Lindsaar <mikel@rubyx.com>
376
-
377
- * Fixed parsing an email with an empty In-Reply-To header (Reported by Eugene Pimenov)
378
- * Adding address spec for groupname+domain.com@example.com format emails
379
- * Version bump to 2.2.6
380
-
381
- == Sat Sep 11 01:56:59 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
382
-
383
- * Added new way to do versioning for rubygems
384
- * Added additional specs for Content-Disposition: inline which are not being encoded correctly - Shawn Pyle
385
- * Make sure Mail::Message#attachment? returns true/false - Simone Carletti
386
- * Replace hard-coded references to Mail with more generic self references to allow easier inheritance (closes #61) - Simone Carletti
387
- * Force encoding on Regexp for Ruby 1.9 to avoid encoding conflicts - Golubev Pavel
388
- * Added lazy evaluation to message body: body is not parsed until need. It greatly improves performance with big mails if you don't need to read the body (yet)
389
- * Added Mail.read_from_string as an explicit method (mcansky)
390
- * Fixed bounce detection for multipart reports that contain a human readable report status part
391
- * Closed Issue #65 found (incredibly) by quetz - major Kudos for bug hunting
392
- * Fixed missing trailing CRLF in content type field - Closes issue #57 - Kudos to Henry Flower for finding it
393
- * Version bump to 2.2.5.2
394
-
395
- == Sat Sep 11 01:32:13 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
396
-
397
- * Closed issue #58 - Content Type not parsing unless lower case.
398
- * Version bump to 2.2.5.1
399
-
400
- == Thu 17 Jun 2010 22:13:18 UTC Mikel Lindsaar <mikel@rubyx.com>
401
-
402
- * Added Mail::POP3.delete_all, including specs (Martijn Storck)
403
- * Lars Pind updates on header folding
404
- * Version bump to 2.2.5
405
-
406
- == Tue Jun 8 01:55:21 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
407
-
408
- * Added inline attachment support to mail (mikel)
409
-
410
- == Mon Jun 7 18:00:39 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
411
-
412
- * Updating versioning so we only have one source, VERSION.yml (mikel)
413
- * Changed activesupport dependency to 2.3.6 to fix #53, #64, and def #67. (Artem Titoulenko)
414
- * Fixing typo in break_down_to.rb. (mikel)
415
-
416
- == Mon Jun 7 18:07:16 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
417
-
418
- * fixing a typo when generating docs. (Andrew Bloom)
419
- * Changing \r\n\t to \r\n\s throughout mail (mikel)
420
- * Handle multiple quoted words in Encodings.unquote_and_convert_to (Eric Kidd)
421
- * Ruby 1.9: mark source encoding so it's usable with -Ks, -Ke, etc (Jeremy Kemper)
422
- * Add #include? to mail body for convenience (Maxim Chernyak)
423
- * Use Mail::TestMailer.deliveries in README example (John Trupiano)
424
- * Allow bundler to automatically build a gem directly from git (Eric Kidd)
425
-
426
- == Sun Apr 11 07:49:15 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
427
-
428
- * Lots of updates on encoding and decoding of headers and unstructured fields. This
429
- is now a lot cleaner and nicer. Also more predictable.
430
- * Merged encoding branch back into head
431
- * Version bump to 2.2.0
432
- * Tagged 2.2.0
433
-
434
- == Sun Apr 4 06:41:46 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
435
-
436
- * Created non-ascii header auto encoding for address fields and unstructured fields
437
- * Changed default behaviour of mail, if you specify a charset, it will use that charset
438
- regardless of what is in the body. Previously, if the body was all US-ASCII, it would
439
- set the charset to US-ASCII in preference.
440
- * Many internal version jumps from 2.1.5.3 => 2.1.5.8 - unreleased development versions
441
-
442
- == Mon 29 Mar 2010 07:04:34 UTC Mikel Lindsaar <raasdnil@gmail.com>
443
-
444
- * Version bump to 2.1.5.3
445
- * No longer depend on vendor'd treetop as treetop now has optional loading of parts of the library
446
- * Change treetop dependency to 1.4.5
447
-
448
- == Sun 28 Mar 2010 10:31:33 UTC Mikel Lindsaar <raasdnil@gmail.com>
449
-
450
- * Version bump to 2.1.5.2
451
- * Fixed up preserve case in header fields when assigned from a message closes issue #46
452
-
453
- == Sun 28 Mar 2010 09:02:20 UTC Mikel Lindsaar <raasdnil@gmail.com>
454
-
455
- * Version bump to 2.1.5.1
456
- * Fixed net/pop3.rb regression for Ruby 1.8.6
457
- * Merged in Jeremy Kemper's updates:
458
- * Bump vendored treetop to 1.4.4
459
- * Use Mikel's treetop for cucumber workaround
460
- * Use LOAD_PATH for spec_helper instead of relative requires
461
- * Force treetop from git so cucumber doesn't pull in old version
462
-
463
- == Sun Mar 28 07:01:07 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
464
-
465
- * Version bump to 2.1.5
466
- * Changed guess encoding to short circuit to binary if the mime type is unknown, should be safe
467
- * Renaming spec to match the file for attachment_lists.rb
468
- * Adding Message#decoded returns Message#body#decoded if the message is not multipart
469
-
470
- == Sun Mar 28 02:55:42 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
471
-
472
- * Version bump to 2.1.4
473
-
474
- == Sun Mar 28 00:26:27 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
475
-
476
- * Merged in Jeremy/treetop to vendored treetop
477
- * Merged in nathansobo/treetop to vendored treetop
478
- * Merged in pzbowen/mail into mail - Adds body auto encoding - awesome work
479
- * Fixed content-transfer-encoding parser to be more compliant per RFC, also now handles trailing semi-colons correctly
480
- * Fixed content-transfer-encoding parser to handle weird "from the wild" misspellings
481
- * Added message.errors, header.errors arrays, returns array of [field_name, value, error_object] for each field that failed to parse
482
- * Removed bundler require from Rakefile
483
-
484
- == Sun Mar 17 03:03:03 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
485
-
486
- * Keep header name case when failing to unstructured field
487
-
488
- == Wed Feb 24 09:14:56 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
489
-
490
- * Fixed multiaddress bounce messages crashing when calling .bounced? Now just take the first report and return that.
491
- * Closes issue 38 - final_recipient method give problem when one bounce email for multiple email ids
492
- * Fixing up TODO and Docs
493
-
494
- == Sun Mar 22 03:24:15 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
495
-
496
- * Version bump to 2.1.3
497
-
498
- == Thu Jan 28 00:25:02 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
499
-
500
- * Added TMM1's patch to not raise errors if a email is not multipart/report
501
- * Added html_part and text_part now return the first text/html or text/plain part they find. Order is from top to bottom of the email, all parts, flattened.
502
- * Cleaning up register_interceptor and register_observer including documentation
503
- * Renamed #register_for_delivery_notification to #register_observer
504
- * Renamed #register_for_delivery_interception to #register_interceptor
505
- * Adding spec to check for folding of non ASCII words that have been encoded
506
- * Updating Message#inspect to be a bit more friendly... it is for us mere mortals after all
507
- * Version bump to 2.1.2
508
-
509
- == Sun Jan 28 02:59:34 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
510
-
511
- * Removed old method of setting delivery_method
512
-
513
- == Mon Jan 25 11:36:13 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
514
-
515
- * Added ability for address fields to init on an array instead of just a string.
516
- * Version bump to 2.1.1
517
-
518
- == Mon Jan 25 10:36:33 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
519
-
520
- * Now passes a block to the delivery handler, which can just call yield if it want's Mail to just do it's normal delivery method
521
- * Moved Mail.deliveries into Mail::TestMailer.deliveries. Now only gets mail appended to it if you are sending with the :test delivery_method (only for testing)
522
- * Version bump to 2.1.0
523
-
524
- == Mon Jan 25 01:44:13 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
525
-
526
- * Change :deliver! to deliver a mail object, bypassing the :perform_deliveries and :raise_delivery_errors flags, also does not append the mail object to Mail.deliveries, thus the ! (dangerous). The intended use for :deliver! is for people wanting to have their own delivery_handler (like ActionMailer uses) to track and handle delivery failures.
527
- * Added :delivery_handler to Message. Allows you to pass an object that will be sent :deliver_mail(self) by the Mail::Message instance when it is sent :deliver and bypasses the usual delivery method.
528
- * Changed :perform_deliveries flag to be more consistent with it's name, mail will not append itself to the Mail.deliveries collection if :perform_deliveries is false
529
-
530
- == Sat Jan 23 23:49:50 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
531
-
532
- * Version bump to 2.0.5
533
- * Added :raise_delivery_errors to Mail::Message, if set to false will silently rescue all errors raised by the delivery methods, set to true by default
534
-
535
- == Sat Jan 23 23:28:42 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
536
-
537
- * Version bump to 2.0.4
538
- * Added :perform_deliveries to mail, will not actually call deliver on the delivery method if this is set to false, set to true by default.
539
- * Added @delivery_notification_observers to mail messages, you can register an observer with mail by calling mail.register_for_delivery_notification(observer) and then when mail is told to :deliver it will call your observer with observer.delivered_email(self). It will call your observer if it actually performed the delivery or not (that is, irregardless of the :perform_deliveries flag)
540
- * Added ability to overwrite the Mail.deliveries store with an object of your choice instead of just an array, this is a good way to find out if something actually got delivered as if :perform_deliveries is false, this collection will not get the mail message appended
541
-
542
- == Sat Jan 23 05:32:53 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
543
-
544
- * Version bump to 2.0.3
545
- * Made body.sort_parts! recursive, to do the entire body
546
- * Added ability to use << on the results returned by the various address fields, ie, mail.to << 'new@address' now works
547
- * Message now adds multipart/mixed as the content type if nothing is set and there are parts to the message
548
- * Added #display_names and #addrs to all address fields. #addrs returns the actual Mail::Address object for each address in the field.
549
- * Body should call to_s on given input... incase someone gave it an IO.readlines result (Array)
550
- *
551
-
552
- == Thu Jan 21 05:27:17 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
553
-
554
- * Version bump to 2.0.2
555
- * Major change to attachments, add_file now only accepts
556
- {:filename => 'full/path/to/file.png'} or
557
- {:filename => 'file.png', :content => 'string of file content'}
558
- you can also now do mail.attachments['filename.png'] = File.read('path/to/file.png')
559
- which is nice too!
560
-
561
- == Fri Jan 15 09:20:51 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
562
-
563
- * Rewrote all network classes to not use singletons. Means different Mail::Message objects can have different delivery methods.
564
- * Added examples for how to send via GMail, MobileMe, Sendmail, File etc.
565
- * Version bump to 2.0.0 as Network API changed drastically, now not a singleton class.
566
- * Fixed that return-path should only return one address
567
-
568
- == Thu Jan 14 10:41:22 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
569
-
570
- * Version update to 1.6.0 - API change on mail.address_fields to always return arrays
571
- * Updated all message.address_field methods to always return arrays, so mail.from #=> ['one@address.com'] now, is least surprise
572
- * Updated handling of empty group lists so it didn't crash
573
-
574
- == Thu Jan 12 10:41:47 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
575
-
576
- * Version 1.5.3, handling invalid input on fields. Highly recommended update
577
- * Updated fields to always try parsing the given data (unless blank). This allows mail to catch invalid input and return UnstructuredFields. Makes mail a lot more resistant to invalid input.
578
-
579
- == Fri 8 Jan 2010 00:00:08 UTC Mikel Lindsaar <raasdnil@gmail.com>
580
-
581
- * Version bump to 1.5.2
582
-
583
- == Fri 8 Jan 8:55:49 2010 +1100 Mikel Lindsaar <raasdnil@gmail.com>
584
-
585
- * Updated Sendmail and SMTP delivery methods to use return-path if present
586
- * Fix up a lot of content-type parsing problems
587
- * Updating compat listing
588
- * Moving error emails into one directory
589
- * Moving error emails into one directory
590
- * Initializing @tls variable to remove warnings
591
- * Moved default corpus directory
592
- * Fixed up git ignore file
593
-
594
- == Thu 6 Jan 2010 23:59:29 UTC Mikel Lindsaar <raasdnil@gmail.com>
595
-
596
- * Added compatibility list to Readme.rdoc
597
- * Fixing encoding of return path to be per RFC 2822, adding angle brackets around the addr_spec
598
- * Specs covering return path setting and preserving
599
-
600
- == Thu 5 Jan 2010 23:59:48 UTC Mikel Lindsaar <raasdnil@gmail.com>
601
-
602
- * Moving the require for tlsmail for Ruby 1.8.6 into mail.rb
603
-
604
- == Sun Jan 3 00:08:06 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
605
-
606
- * Version bump to 1.5.0
607
-
608
- * Major API change in Message#field_name. This WILL break your applications that use Mail. Message#field_name now returns good, intelligent, default values. You can still access the field object by calling Message#[:field_name] or Message#['field_name'].
609
-
610
- == Sat Jan 2 04:12:53 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
611
-
612
- * Message-ID, Content-ID, References et al, now return the default value of the message ID without the angle brackets, as per RFC 2822, "Semantically, the angle bracket characters are not part of the msg-id; the msg-id is what is contained between the two angle bracket characters."
613
-
614
- * Message class now has getter and setter methods for all the supported field types explicitly. This allows us to return a "default" value for all fields.
615
-
616
- * All address fields, when called from Message#to or Message#from or the like, return either a string of the address spec (mikel@test.lindsaar.net) if it is a single entry, or an array of address specs if there is more than one ['mikel@test.lindsaar.net', 'ada@test.lindsaar.net']
617
-
618
- == Mon 28 Dec 2009 01:21:52 UTC Mikel Lindsaar <raasdnil@gmail.com>
619
-
620
- * Added sorting of parts, default is text/plain, then text/enriched and text/html. Access through Body#set_sort_order and Body#sort_parts! (called from Body#encode automatically)
621
- * Version bump to 1.4.2
622
-
623
- == Sun Dec 27 10:38:24 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
624
-
625
- * Updating treetop and mail to initialize uninitialized instance variables to
626
- nil
627
- * Version bump to 1.4.1
628
-
629
- == Sun Dec 27 09:51:27 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
630
-
631
- * Version bump to 1.4 because now :to_s calls :decoded for all fields and body
632
- while :to_s calls :encoded for Message and Header containers. Makes sense...
633
- really.
634
-
635
- == Sun Dec 27 07:30:02 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
636
-
637
- * Changed fields to default to :decoded on :to_s, all container objects
638
- retain :encoded as the default for :to_s
639
-
640
- == Thu Dec 17 06:35:05 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
641
-
642
- * Fixed parsing error 'Subject: =?ISO-8859-1?Q?Re=3A_ol=E1?=' (has a new line embedded)
643
-
644
- == Thu Dec 17 02:14:23 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
645
-
646
- * Version 1.3.4
647
- * Vendor'd treetop
648
-
649
- == Thu Dec 17 01:32:00 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
650
-
651
- * Version 1.3.3
652
- * Removed dependency on treetop, don't need it at runtime
653
-
654
- == Wed Dec 16 23:48:46 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
655
-
656
- * Version 1.3.2
657
- * Resolved Ruby 1.9.1-head not working because File.basename only accepts US-ASCII or 8Bit
658
-
659
- == Sun Dec 13 01:06:17 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
660
-
661
- * Version 1.3.1
662
- * Resolved Issue #18 - Wrong instance variable name
663
- * Resolved Issue #15 - Duplicate block call
664
-
665
- == Thu Dec 10 21:25:37 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
666
-
667
- * Resolved Issue #13 - replacing From field results in from field becoming optional field.
668
-
669
- == Thu 3 Dec 2009 00:52:12 UTC Mikel Lindsaar <raasdnil@gmail.com>
670
-
671
- * Added POP upgrades from Nicolas Fouché
672
- * Added patch to handle multiple from lines in email from Luke Grimstrup
673
-
674
- == Mon Nov 23 23:34:22 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
675
-
676
- * Resolved Issue #12 - Wrong comment in smtp.rb
677
-
678
- == Mon Nov 23 22:35:50 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
679
-
680
- * Changed the way attachments are added so that it does not break depending on the order of the Hash passed in.
681
- * Version bump to 1.3.0 - Now works with Edge ActionMailer, MRI 1.8.6, 1.8.7, 1.9.1, all tests passing
682
-
683
- == Sun Nov 22 12:19:44 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
684
-
685
- * Added check on add_part to make sure if there is already a body, and if so, make a text_part of the body
686
- * Fixing up attachment adding and making sure multipart emails always have boundaries
687
- * Change Message#attachments to now recursively return all attachments in the email in an ordered flattened array
688
- * Added ability for Mail::Message to accept {:headers => {'custom-header' => 'value', 'another-custom-header' => 'value'}} as a param on init
689
- * Adding ability to Mail::Message to add a part via :part(params) with optional block
690
- * Fixed up QP encoding forcing underscores into everything with a space
691
- * Added ReturnPathField#address
692
- * Updating gem loads and active support loads
693
-
694
- == Sat Nov 21 12:52:46 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
695
-
696
- * Changed Mail::Encodings to clean it up, added in unquote_and_convert_to as well as refactor in this area
697
-
698
- == Thu Nov 19 04:16:10 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
699
-
700
- * Added sendmail support from (Simon Rozet)
701
- * Changed to bundler for gem dependancies and moved gem generation into rakefile (Simon Rozet)
702
- * Bumped to 1.2.6 for sendmail support
703
-
704
- == Wed Nov 18 04:26:21 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
705
-
706
- * Changed Encodings.param_encode(string) so it intelligently encodes and quotes needed
707
- items and leaves plain, no special char, US-ASCII alone unquoted.
708
-
709
- == Sat Nov 14 08:20:21 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
710
-
711
- * Resolved Issue #10 - empty/nil cc/bcc field causes exception (Mail::Field::ParseError)
712
-
713
- == Fri Nov 13 00:31:04 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
714
-
715
- * Hacked and mutilated the network section, made it easier to extend out with other
716
- delivery and retriever methods. API changed SLIGHTLY with this. Please check the
717
- readme
718
- * Resolved Issue #8 - Mail::SMTP now delivers to all mail.destinations
719
- * Version bump to 1.2.5
720
-
721
- == Thu Nov 12 02:58:01 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
722
-
723
- * Resolved Issue #5 - Message ID not handling multiple periods in left hand side
724
- * Resolved Issue #6 - Ordering of add_file and body items causes invalid emails
725
-
726
- == Tue Nov 10 08:15:14 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
727
-
728
- * Resolved Issue #5 - Message ID generation issue
729
- * Resolved Issue #7 - README add_file examples don't seem to work - Updated readme and
730
- rdoc in Message#add_file
731
-
732
- == Mon Nov 9 23:38:33 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
733
-
734
- * Added ability to create new email via a hash or hash-like object. <mikel>
735
- * Moved all of the Part init into the Message class. Part now just uses Message's init,
736
- also moved all the attachment related functions into Message. As Part is a subclass
737
- of message, you shouldn't see any interface changes here.
738
-
739
- == Fri Nov 6 22:52:10 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
740
-
741
- * a6ef2b4: Fixed Issue #4 - Can't call encoding on non existant
742
- content-transer-encoding header
743
-
744
- == Fri Nov 6 00:51:55 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
745
-
746
- * Handled unstructured field folding "blank" lines
747
- * Fixed error in header.rb that created fields into an array, instead of a FieldList, resulting
748
- in mail.encode returning a random sort order on the header.
749
- * Made unstructured fields attempt to decode their values on :decode
750
-
751
- == Thu Nov 5 04:45:31 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
752
-
753
- * 2acb70a: Closes Issue #1 - Handling badly formatted content-type fields <mikel>
754
-
755
- == Wed Nov 4 23:24:32 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
756
-
757
- * 2b5d608: Closes Issue #2 - Empty header field values not parsing <mikel>
758
- * Version bumb to 1.2.1
759
-
760
- == Wed Nov 4 12:54:43 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
761
-
762
- * Renamed Mail::Message.encode! to Mail::Message.ready_to_send!, deprecated :encode! <mikel>
763
- * Rewrote encoding and decoding methods on all classes. Adds a lot of boiler plate code, but allows us to
764
- be really precise in each field type that needs custom encoding. Now all encoding is done by the field_type
765
- itself. Need to follow through on the body. <mikel>
766
- * Bump version to 1.2.0 due to changes of :encoded, :decoded behaviour <mikel>
767
-
768
- == Tue Nov 3 00:59:45 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
769
-
770
- * Tested mail against entire Enron set (2.3gb) and the Trec 2005 set (0.5gb), ~ half a million emails without crashing <jlindley>
771
- * Some headers only can appear once, enforce during header parse assignment. <jlindley>
772
- * Convert empty bodies into empty arrays instead of nil. <jlindley>
773
- * Handle blank content dispositions. <jlindley>
774
- * Mention Trec 2005 Spam Corpus in readme <jlindley>
775
- * Add 'rake corpus:verify_all' to allow parse checks in bulk. <jlindley>
776
- * Added handling of multi value parameters, like filename*1*="us-ascii'en'blah" filename*2="bleh" <mikel>
777
- * Added dependency on ActiveSupport 2.3 or higher <mikel>
778
-
779
- == Sun Nov 1 12:00:00 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
780
-
781
- * handle OpenSSL::SSL::VERIFY_NONE returning 0 <jlindley>
782
- * doing Mail.new { content_type [text, plain, { charset => UTF-8 }] } is now
783
- possible (content type accepts an array) <mikel>
784
-
785
- == Sat Oct 31 11:00:41 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
786
-
787
- * Fixed attachment handling, so mail can find attachment from a content-type,
788
- content-disposition or content-location
789
- * Added content-location field and parser
790
- * Added message.has_attachments? for ActionMailer friendliness
791
- * Added attachment.original_filename for ActionMailer friendliness
792
-
793
- == Sat Oct 25 13:38:01 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
794
-
795
- * Birthday, Mail released as a gem... phew