dball-mail 2.2.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/CHANGELOG.rdoc +459 -0
  2. data/README.rdoc +582 -0
  3. data/Rakefile +66 -0
  4. data/TODO.rdoc +9 -0
  5. data/lib/VERSION +4 -0
  6. data/lib/mail/attachments_list.rb +105 -0
  7. data/lib/mail/body.rb +286 -0
  8. data/lib/mail/configuration.rb +71 -0
  9. data/lib/mail/core_extensions/nil.rb +11 -0
  10. data/lib/mail/core_extensions/string.rb +27 -0
  11. data/lib/mail/elements/address.rb +306 -0
  12. data/lib/mail/elements/address_list.rb +74 -0
  13. data/lib/mail/elements/content_disposition_element.rb +30 -0
  14. data/lib/mail/elements/content_location_element.rb +25 -0
  15. data/lib/mail/elements/content_transfer_encoding_element.rb +24 -0
  16. data/lib/mail/elements/content_type_element.rb +35 -0
  17. data/lib/mail/elements/date_time_element.rb +26 -0
  18. data/lib/mail/elements/envelope_from_element.rb +34 -0
  19. data/lib/mail/elements/message_ids_element.rb +29 -0
  20. data/lib/mail/elements/mime_version_element.rb +26 -0
  21. data/lib/mail/elements/phrase_list.rb +21 -0
  22. data/lib/mail/elements/received_element.rb +30 -0
  23. data/lib/mail/elements.rb +14 -0
  24. data/lib/mail/encodings/7bit.rb +31 -0
  25. data/lib/mail/encodings/8bit.rb +31 -0
  26. data/lib/mail/encodings/base64.rb +33 -0
  27. data/lib/mail/encodings/binary.rb +31 -0
  28. data/lib/mail/encodings/quoted_printable.rb +38 -0
  29. data/lib/mail/encodings/transfer_encoding.rb +58 -0
  30. data/lib/mail/encodings.rb +268 -0
  31. data/lib/mail/envelope.rb +35 -0
  32. data/lib/mail/field.rb +223 -0
  33. data/lib/mail/field_list.rb +33 -0
  34. data/lib/mail/fields/bcc_field.rb +56 -0
  35. data/lib/mail/fields/cc_field.rb +55 -0
  36. data/lib/mail/fields/comments_field.rb +41 -0
  37. data/lib/mail/fields/common/address_container.rb +16 -0
  38. data/lib/mail/fields/common/common_address.rb +125 -0
  39. data/lib/mail/fields/common/common_date.rb +42 -0
  40. data/lib/mail/fields/common/common_field.rb +50 -0
  41. data/lib/mail/fields/common/common_message_id.rb +44 -0
  42. data/lib/mail/fields/common/parameter_hash.rb +58 -0
  43. data/lib/mail/fields/content_description_field.rb +19 -0
  44. data/lib/mail/fields/content_disposition_field.rb +69 -0
  45. data/lib/mail/fields/content_id_field.rb +63 -0
  46. data/lib/mail/fields/content_location_field.rb +42 -0
  47. data/lib/mail/fields/content_transfer_encoding_field.rb +50 -0
  48. data/lib/mail/fields/content_type_field.rb +198 -0
  49. data/lib/mail/fields/date_field.rb +55 -0
  50. data/lib/mail/fields/from_field.rb +55 -0
  51. data/lib/mail/fields/in_reply_to_field.rb +55 -0
  52. data/lib/mail/fields/keywords_field.rb +44 -0
  53. data/lib/mail/fields/message_id_field.rb +83 -0
  54. data/lib/mail/fields/mime_version_field.rb +53 -0
  55. data/lib/mail/fields/optional_field.rb +13 -0
  56. data/lib/mail/fields/received_field.rb +67 -0
  57. data/lib/mail/fields/references_field.rb +55 -0
  58. data/lib/mail/fields/reply_to_field.rb +55 -0
  59. data/lib/mail/fields/resent_bcc_field.rb +55 -0
  60. data/lib/mail/fields/resent_cc_field.rb +55 -0
  61. data/lib/mail/fields/resent_date_field.rb +35 -0
  62. data/lib/mail/fields/resent_from_field.rb +55 -0
  63. data/lib/mail/fields/resent_message_id_field.rb +34 -0
  64. data/lib/mail/fields/resent_sender_field.rb +62 -0
  65. data/lib/mail/fields/resent_to_field.rb +55 -0
  66. data/lib/mail/fields/return_path_field.rb +64 -0
  67. data/lib/mail/fields/sender_field.rb +67 -0
  68. data/lib/mail/fields/structured_field.rb +51 -0
  69. data/lib/mail/fields/subject_field.rb +16 -0
  70. data/lib/mail/fields/to_field.rb +55 -0
  71. data/lib/mail/fields/unstructured_field.rb +179 -0
  72. data/lib/mail/fields.rb +35 -0
  73. data/lib/mail/header.rb +264 -0
  74. data/lib/mail/mail.rb +255 -0
  75. data/lib/mail/message.rb +1972 -0
  76. data/lib/mail/network/delivery_methods/file_delivery.rb +40 -0
  77. data/lib/mail/network/delivery_methods/sendmail.rb +62 -0
  78. data/lib/mail/network/delivery_methods/smtp.rb +136 -0
  79. data/lib/mail/network/delivery_methods/test_mailer.rb +40 -0
  80. data/lib/mail/network/retriever_methods/imap.rb +213 -0
  81. data/lib/mail/network/retriever_methods/pop3.rb +194 -0
  82. data/lib/mail/network/retriever_methods/test_retriever.rb +31 -0
  83. data/lib/mail/network.rb +10 -0
  84. data/lib/mail/parsers/address_lists.rb +64 -0
  85. data/lib/mail/parsers/address_lists.treetop +19 -0
  86. data/lib/mail/parsers/content_disposition.rb +535 -0
  87. data/lib/mail/parsers/content_disposition.treetop +46 -0
  88. data/lib/mail/parsers/content_location.rb +139 -0
  89. data/lib/mail/parsers/content_location.treetop +20 -0
  90. data/lib/mail/parsers/content_transfer_encoding.rb +162 -0
  91. data/lib/mail/parsers/content_transfer_encoding.treetop +20 -0
  92. data/lib/mail/parsers/content_type.rb +967 -0
  93. data/lib/mail/parsers/content_type.treetop +68 -0
  94. data/lib/mail/parsers/date_time.rb +114 -0
  95. data/lib/mail/parsers/date_time.treetop +11 -0
  96. data/lib/mail/parsers/envelope_from.rb +194 -0
  97. data/lib/mail/parsers/envelope_from.treetop +32 -0
  98. data/lib/mail/parsers/message_ids.rb +45 -0
  99. data/lib/mail/parsers/message_ids.treetop +15 -0
  100. data/lib/mail/parsers/mime_version.rb +144 -0
  101. data/lib/mail/parsers/mime_version.treetop +19 -0
  102. data/lib/mail/parsers/phrase_lists.rb +45 -0
  103. data/lib/mail/parsers/phrase_lists.treetop +15 -0
  104. data/lib/mail/parsers/received.rb +71 -0
  105. data/lib/mail/parsers/received.treetop +11 -0
  106. data/lib/mail/parsers/rfc2045.rb +464 -0
  107. data/lib/mail/parsers/rfc2045.treetop +36 -0
  108. data/lib/mail/parsers/rfc2822.rb +5318 -0
  109. data/lib/mail/parsers/rfc2822.treetop +410 -0
  110. data/lib/mail/parsers/rfc2822_obsolete.rb +3757 -0
  111. data/lib/mail/parsers/rfc2822_obsolete.treetop +241 -0
  112. data/lib/mail/part.rb +116 -0
  113. data/lib/mail/parts_list.rb +43 -0
  114. data/lib/mail/patterns.rb +34 -0
  115. data/lib/mail/utilities.rb +211 -0
  116. data/lib/mail/version.rb +24 -0
  117. data/lib/mail/version_specific/ruby_1_8.rb +97 -0
  118. data/lib/mail/version_specific/ruby_1_9.rb +87 -0
  119. data/lib/mail.rb +80 -0
  120. data/lib/tasks/corpus.rake +125 -0
  121. data/lib/tasks/treetop.rake +10 -0
  122. metadata +255 -0
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,459 @@
1
+ == Mon Nov 8 15:13:13 EST 2010 Donald Ball <donald.ball@gmail.com>
2
+
3
+ * Add test retriever
4
+ * Fix comma bug in References and In-Reply-To headers
5
+ * Add message#reply method
6
+
7
+ == Tue Oct 26 07:14:36 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
8
+
9
+ * Version Bump to 2.2.9 and tag
10
+ * Updating Gemfile and gemspec to include i18n and sync dependency versions
11
+ * Added work from Kendall Gifford closing issues #104, #107 and #117
12
+ * Always encode mailbox names with UTF-7 (github: fasta)
13
+
14
+ == Tue Oct 26 06:43:17 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
15
+
16
+ * Added updates from Donald Ball (github: dball) to improve 1.8.6 support
17
+ * Added patch from Ryan Bigg (github: ryanb) for #mark_for_delete
18
+
19
+ == Thu Oct 7 15:44:31 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
20
+
21
+ * Version Bump to 2.2.7
22
+ * Release 2.2.7
23
+
24
+ == Thu Oct 7 15:42:57 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
25
+
26
+ * Added fix for Windows using 'rb' flags, thanks to Luis Lavena and dzhang for pointing it out
27
+ * Fixed up Rakefile to require bundler to run specs and give more appropriate errors messages if this fails
28
+
29
+ == Tue Sep 28 14:59:03 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
30
+
31
+ * Merged POP3 delete support work from Michael Prendergast
32
+ * Merged IMAP support work from Fabian Staubli
33
+
34
+ == Mon Sep 13 02:31:21 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
35
+
36
+ * Replace some missing documentation
37
+ * Version bump to 2.2.6.1
38
+
39
+ == Sat 11 Sep 2010 05:13:36 UTC Mikel Lindsaar <mikel@rubyx.com>
40
+
41
+ * Fixed parsing an email with an empty In-Reply-To header (Reported by Eugene Pimenov)
42
+ * Adding address spec for groupname+domain.com@example.com format emails
43
+ * Version bump to 2.2.6
44
+
45
+ == Sat Sep 11 01:56:59 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
46
+
47
+ * Added new way to do versioning for rubygems
48
+ * Added additional specs for Content-Disposition: inline which are not being encoded correctly - Shawn Pyle
49
+ * Make sure Mail::Message#attachment? returns true/false - Simone Carletti
50
+ * Replace hard-coded references to Mail with more generic self references to allow easier inheritance (closes #61) - Simone Carletti
51
+ * Force encoding on Regexp for Ruby 1.9 to avoid encoding conflicts - Golubev Pavel
52
+ * 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)
53
+ * Added Mail.read_from_string as an explicit method (mcansky)
54
+ * Fixed bounce detection for multipart reports that contain a human readable report status part
55
+ * Closed Issue #65 found (incredibly) by quetz - major Kudos for bug hunting
56
+ * Fixed missing trailing CRLF in content type field - Closes issue #57 - Kudos to Henry Flower for finding it
57
+ * Version bump to 2.2.5.2
58
+
59
+ == Sat Sep 11 01:32:13 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
60
+
61
+ * Closed issue #58 - Content Type not parsing unless lower case.
62
+ * Version bump to 2.2.5.1
63
+
64
+ == Thu 17 Jun 2010 22:13:18 UTC Mikel Lindsaar <mikel@rubyx.com>
65
+
66
+ * Added Mail::POP3.delete_all, including specs (Martijn Storck)
67
+ * Lars Pind updates on header folding
68
+ * Version bump to 2.2.5
69
+
70
+ == Tue Jun 8 01:55:21 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
71
+
72
+ * Added inline attachment support to mail (mikel)
73
+
74
+ == Mon Jun 7 18:00:39 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
75
+
76
+ * Updating versioning so we only have one source, VERSION.yml (mikel)
77
+ * Changed activesupport dependency to 2.3.6 to fix #53, #64, and def #67. (Artem Titoulenko)
78
+ * Fixing typo in break_down_to.rb. (mikel)
79
+
80
+ == Mon Jun 7 18:07:16 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
81
+
82
+ * fixing a typo when generating docs. (Andrew Bloom)
83
+ * Changing \r\n\t to \r\n\s throughout mail (mikel)
84
+ * Handle multiple quoted words in Encodings.unquote_and_convert_to (Eric Kidd)
85
+ * Ruby 1.9: mark source encoding so it's usable with -Ks, -Ke, etc (Jeremy Kemper)
86
+ * Add #include? to mail body for convenience (Maxim Chernyak)
87
+ * Use Mail::TestMailer.deliveries in README example (John Trupiano)
88
+ * Allow bundler to automatically build a gem directly from git (Eric Kidd)
89
+
90
+ == Sun Apr 11 07:49:15 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
91
+
92
+ * Lots of updates on encoding and decoding of headers and unstructured fields. This
93
+ is now a lot cleaner and nicer. Also more predictable.
94
+ * Merged encoding branch back into head
95
+ * Version bump to 2.2.0
96
+ * Tagged 2.2.0
97
+
98
+ == Sun Apr 4 06:41:46 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
99
+
100
+ * Created non-ascii header auto encoding for address fields and unstructured fields
101
+ * Changed default behaviour of mail, if you specify a charset, it will use that charset
102
+ regardless of what is in the body. Previously, if the body was all US-ASCII, it would
103
+ set the charset to US-ASCII in preference.
104
+ * Many internal version jumps from 2.1.5.3 => 2.1.5.8 - unreleased development versions
105
+
106
+ == Mon 29 Mar 2010 07:04:34 UTC Mikel Lindsaar <raasdnil@gmail.com>
107
+
108
+ * Version bump to 2.1.5.3
109
+ * No longer depend on vendor'd treetop as treetop now has optional loading of parts of the library
110
+ * Change treetop dependency to 1.4.5
111
+
112
+ == Sun 28 Mar 2010 10:31:33 UTC Mikel Lindsaar <raasdnil@gmail.com>
113
+
114
+ * Version bump to 2.1.5.2
115
+ * Fixed up preserve case in header fields when assigned from a message closes issue #46
116
+
117
+ == Sun 28 Mar 2010 09:02:20 UTC Mikel Lindsaar <raasdnil@gmail.com>
118
+
119
+ * Version bump to 2.1.5.1
120
+ * Fixed net/pop3.rb regression for Ruby 1.8.6
121
+ * Merged in Jeremy Kemper's updates:
122
+ * Bump vendored treetop to 1.4.4
123
+ * Use Mikel's treetop for cucumber workaround
124
+ * Use LOAD_PATH for spec_helper instead of relative requires
125
+ * Force treetop from git so cucumber doesn't pull in old version
126
+
127
+ == Sun Mar 28 07:01:07 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
128
+
129
+ * Version bump to 2.1.5
130
+ * Changed guess encoding to short circuit to binary if the mime type is unknown, should be safe
131
+ * Renaming spec to match the file for attachment_lists.rb
132
+ * Adding Message#decoded returns Message#body#decoded if the message is not multipart
133
+
134
+ == Sun Mar 28 02:55:42 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
135
+
136
+ * Version bump to 2.1.4
137
+
138
+ == Sun Mar 28 00:26:27 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
139
+
140
+ * Merged in Jeremy/treetop to vendored treetop
141
+ * Merged in nathansobo/treetop to vendored treetop
142
+ * Merged in pzbowen/mail into mail - Adds body auto encoding - awesome work
143
+ * Fixed content-transfer-encoding parser to be more compliant per RFC, also now handles trailing semi-colons correctly
144
+ * Fixed content-transfer-encoding parser to handle weird "from the wild" misspellings
145
+ * Added message.errors, header.errors arrays, returns array of [field_name, value, error_object] for each field that failed to parse
146
+ * Removed bundler require from Rakefile
147
+
148
+ == Sun Mar 17 03:03:03 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
149
+
150
+ * Keep header name case when failing to unstructured field
151
+
152
+ == Wed Feb 24 09:14:56 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
153
+
154
+ * Fixed multiaddress bounce messages crashing when calling .bounced? Now just take the first report and return that.
155
+ * Closes issue 38 - final_recipient method give problem when one bounce email for multiple email ids
156
+ * Fixing up TODO and Docs
157
+
158
+ == Sun Mar 22 03:24:15 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
159
+
160
+ * Version bump to 2.1.3
161
+
162
+ == Thu Jan 28 00:25:02 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
163
+
164
+ * Added TMM1's patch to not raise errors if a email is not multipart/report
165
+ * 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.
166
+ * Cleaning up register_interceptor and register_observer including documentation
167
+ * Renamed #register_for_delivery_notification to #register_observer
168
+ * Renamed #register_for_delivery_interception to #register_interceptor
169
+ * Adding spec to check for folding of non ASCII words that have been encoded
170
+ * Updating Message#inspect to be a bit more friendly... it is for us mere mortals after all
171
+ * Version bump to 2.1.2
172
+
173
+ == Sun Jan 28 02:59:34 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
174
+
175
+ * Removed old method of setting delivery_method
176
+
177
+ == Mon Jan 25 11:36:13 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
178
+
179
+ * Added ability for address fields to init on an array instead of just a string.
180
+ * Version bump to 2.1.1
181
+
182
+ == Mon Jan 25 10:36:33 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
183
+
184
+ * 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
185
+ * 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)
186
+ * Version bump to 2.1.0
187
+
188
+ == Mon Jan 25 01:44:13 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
189
+
190
+ * 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.
191
+ * 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.
192
+ * 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
193
+
194
+ == Sat Jan 23 23:49:50 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
195
+
196
+ * Version bump to 2.0.5
197
+ * 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
198
+
199
+ == Sat Jan 23 23:28:42 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
200
+
201
+ * Version bump to 2.0.4
202
+ * 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.
203
+ * 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)
204
+ * 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
205
+
206
+ == Sat Jan 23 05:32:53 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
207
+
208
+ * Version bump to 2.0.3
209
+ * Made body.sort_parts! recursive, to do the entire body
210
+ * Added ability to use << on the results returned by the various address fields, ie, mail.to << 'new@address' now works
211
+ * Message now adds multipart/mixed as the content type if nothing is set and there are parts to the message
212
+ * Added #display_names and #addrs to all address fields. #addrs returns the actual Mail::Address object for each address in the field.
213
+ * Body should call to_s on given input... incase someone gave it an IO.readlines result (Array)
214
+ *
215
+
216
+ == Thu Jan 21 05:27:17 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
217
+
218
+ * Version bump to 2.0.2
219
+ * Major change to attachments, add_file now only accepts
220
+ {:filename => 'full/path/to/file.png'} or
221
+ {:filename => 'file.png', :content => 'string of file content'}
222
+ you can also now do mail.attachments['filename.png'] = File.read('path/to/file.png')
223
+ which is nice too!
224
+
225
+ == Fri Jan 15 09:20:51 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
226
+
227
+ * Rewrote all network classes to not use singletons. Means different Mail::Message objects can have different delivery methods.
228
+ * Added examples for how to send via GMail, MobileMe, Sendmail, File etc.
229
+ * Version bump to 2.0.0 as Network API changed drastically, now not a singleton class.
230
+ * Fixed that return-path should only return one address
231
+
232
+ == Thu Jan 14 10:41:22 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
233
+
234
+ * Version update to 1.6.0 - API change on mail.address_fields to always return arrays
235
+ * Updated all message.address_field methods to always return arrays, so mail.from #=> ['one@address.com'] now, is least surprise
236
+ * Updated handling of empty group lists so it didn't crash
237
+
238
+ == Thu Jan 12 10:41:47 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
239
+
240
+ * Version 1.5.3, handling invalid input on fields. Highly recommended update
241
+ * 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.
242
+
243
+ == Fri 8 Jan 2010 00:00:08 UTC Mikel Lindsaar <raasdnil@gmail.com>
244
+
245
+ * Version bump to 1.5.2
246
+
247
+ == Fri 8 Jan 8:55:49 2010 +1100 Mikel Lindsaar <raasdnil@gmail.com>
248
+
249
+ * Updated Sendmail and SMTP delivery methods to use return-path if present
250
+ * Fix up a lot of content-type parsing problems
251
+ * Updating compat listing
252
+ * Moving error emails into one directory
253
+ * Moving error emails into one directory
254
+ * Initializing @tls variable to remove warnings
255
+ * Moved default corpus directory
256
+ * Fixed up git ignore file
257
+
258
+ == Thu 6 Jan 2010 23:59:29 UTC Mikel Lindsaar <raasdnil@gmail.com>
259
+
260
+ * Added compatibility list to Readme.rdoc
261
+ * Fixing encoding of return path to be per RFC 2822, adding angle brackets around the addr_spec
262
+ * Specs covering return path setting and preserving
263
+
264
+ == Thu 5 Jan 2010 23:59:48 UTC Mikel Lindsaar <raasdnil@gmail.com>
265
+
266
+ * Moving the require for tlsmail for Ruby 1.8.6 into mail.rb
267
+
268
+ == Sun Jan 3 00:08:06 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
269
+
270
+ * Version bump to 1.5.0
271
+
272
+ * 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'].
273
+
274
+ == Sat Jan 2 04:12:53 UTC 2010 Mikel Lindsaar <raasdnil@gmail.com>
275
+
276
+ * 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."
277
+
278
+ * 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.
279
+
280
+ * 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']
281
+
282
+ == Mon 28 Dec 2009 01:21:52 UTC Mikel Lindsaar <raasdnil@gmail.com>
283
+
284
+ * 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)
285
+ * Version bump to 1.4.2
286
+
287
+ == Sun Dec 27 10:38:24 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
288
+
289
+ * Updating treetop and mail to initialize uninitialized instance variables to
290
+ nil
291
+ * Version bump to 1.4.1
292
+
293
+ == Sun Dec 27 09:51:27 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
294
+
295
+ * Version bump to 1.4 because now :to_s calls :decoded for all fields and body
296
+ while :to_s calls :encoded for Message and Header containers. Makes sense...
297
+ really.
298
+
299
+ == Sun Dec 27 07:30:02 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
300
+
301
+ * Changed fields to default to :decoded on :to_s, all container objects
302
+ retain :encoded as the default for :to_s
303
+
304
+ == Thu Dec 17 06:35:05 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
305
+
306
+ * Fixed parsing error 'Subject: =?ISO-8859-1?Q?Re=3A_ol=E1?=' (has a new line embedded)
307
+
308
+ == Thu Dec 17 02:14:23 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
309
+
310
+ * Version 1.3.4
311
+ * Vendor'd treetop
312
+
313
+ == Thu Dec 17 01:32:00 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
314
+
315
+ * Version 1.3.3
316
+ * Removed dependency on treetop, don't need it at runtime
317
+
318
+ == Wed Dec 16 23:48:46 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
319
+
320
+ * Version 1.3.2
321
+ * Resolved Ruby 1.9.1-head not working because File.basename only accepts US-ASCII or 8Bit
322
+
323
+ == Sun Dec 13 01:06:17 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
324
+
325
+ * Version 1.3.1
326
+ * Resolved Issue #18 - Wrong instance variable name
327
+ * Resolved Issue #15 - Duplicate block call
328
+
329
+ == Thu Dec 10 21:25:37 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
330
+
331
+ * Resolved Issue #13 - replacing From field results in from field becoming optional field.
332
+
333
+ == Thu 3 Dec 2009 00:52:12 UTC Mikel Lindsaar <raasdnil@gmail.com>
334
+
335
+ * Added POP upgrades from Nicolas Fouché
336
+ * Added patch to handle multiple from lines in email from Luke Grimstrup
337
+
338
+ == Mon Nov 23 23:34:22 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
339
+
340
+ * Resolved Issue #12 - Wrong comment in smtp.rb
341
+
342
+ == Mon Nov 23 22:35:50 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
343
+
344
+ * Changed the way attachments are added so that it does not break depending on the order of the Hash passed in.
345
+ * Version bump to 1.3.0 - Now works with Edge ActionMailer, MRI 1.8.6, 1.8.7, 1.9.1, all tests passing
346
+
347
+ == Sun Nov 22 12:19:44 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
348
+
349
+ * Added check on add_part to make sure if there is already a body, and if so, make a text_part of the body
350
+ * Fixing up attachment adding and making sure multipart emails always have boundaries
351
+ * Change Message#attachments to now recursively return all attachments in the email in an ordered flattened array
352
+ * Added ability for Mail::Message to accept {:headers => {'custom-header' => 'value', 'another-custom-header' => 'value'}} as a param on init
353
+ * Adding ability to Mail::Message to add a part via :part(params) with optional block
354
+ * Fixed up QP encoding forcing underscores into everything with a space
355
+ * Added ReturnPathField#address
356
+ * Updating gem loads and active support loads
357
+
358
+ == Sat Nov 21 12:52:46 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
359
+
360
+ * Changed Mail::Encodings to clean it up, added in unquote_and_convert_to as well as refactor in this area
361
+
362
+ == Thu Nov 19 04:16:10 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
363
+
364
+ * Added sendmail support from (Simon Rozet)
365
+ * Changed to bundler for gem dependancies and moved gem generation into rakefile (Simon Rozet)
366
+ * Bumped to 1.2.6 for sendmail support
367
+
368
+ == Wed Nov 18 04:26:21 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
369
+
370
+ * Changed Encodings.param_encode(string) so it intelligently encodes and quotes needed
371
+ items and leaves plain, no special char, US-ASCII alone unquoted.
372
+
373
+ == Sat Nov 14 08:20:21 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
374
+
375
+ * Resolved Issue #10 - empty/nil cc/bcc field causes exception (Mail::Field::ParseError)
376
+
377
+ == Fri Nov 13 00:31:04 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
378
+
379
+ * Hacked and mutilated the network section, made it easier to extend out with other
380
+ delivery and retriever methods. API changed SLIGHTLY with this. Please check the
381
+ readme
382
+ * Resolved Issue #8 - Mail::SMTP now delivers to all mail.destinations
383
+ * Version bump to 1.2.5
384
+
385
+ == Thu Nov 12 02:58:01 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
386
+
387
+ * Resolved Issue #5 - Message ID not handling multiple periods in left hand side
388
+ * Resolved Issue #6 - Ordering of add_file and body items causes invalid emails
389
+
390
+ == Tue Nov 10 08:15:14 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
391
+
392
+ * Resolved Issue #5 - Message ID generation issue
393
+ * Resolved Issue #7 - README add_file examples don't seem to work - Updated readme and
394
+ rdoc in Message#add_file
395
+
396
+ == Mon Nov 9 23:38:33 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
397
+
398
+ * Added ability to create new email via a hash or hash-like object. <mikel>
399
+ * Moved all of the Part init into the Message class. Part now just uses Message's init,
400
+ also moved all the attachment related functions into Message. As Part is a subclass
401
+ of message, you shouldn't see any interface changes here.
402
+
403
+ == Fri Nov 6 22:52:10 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
404
+
405
+ * a6ef2b4: Fixed Issue #4 - Can't call encoding on non existant
406
+ content-transer-encoding header
407
+
408
+ == Fri Nov 6 00:51:55 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
409
+
410
+ * Handled unstructured field folding "blank" lines
411
+ * Fixed error in header.rb that created fields into an array, instead of a FieldList, resulting
412
+ in mail.encode returning a random sort order on the header.
413
+ * Made unstructured fields attempt to decode their values on :decode
414
+
415
+ == Thu Nov 5 04:45:31 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
416
+
417
+ * 2acb70a: Closes Issue #1 - Handling badly formatted content-type fields <mikel>
418
+
419
+ == Wed Nov 4 23:24:32 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
420
+
421
+ * 2b5d608: Closes Issue #2 - Empty header field values not parsing <mikel>
422
+ * Version bumb to 1.2.1
423
+
424
+ == Wed Nov 4 12:54:43 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
425
+
426
+ * Renamed Mail::Message.encode! to Mail::Message.ready_to_send!, deprecated :encode! <mikel>
427
+ * Rewrote encoding and decoding methods on all classes. Adds a lot of boiler plate code, but allows us to
428
+ be really precise in each field type that needs custom encoding. Now all encoding is done by the field_type
429
+ itself. Need to follow through on the body. <mikel>
430
+ * Bump version to 1.2.0 due to changes of :encoded, :decoded behaviour <mikel>
431
+
432
+ == Tue Nov 3 00:59:45 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
433
+
434
+ * Tested mail against entire Enron set (2.3gb) and the Trec 2005 set (0.5gb), ~ half a million emails without crashing <jlindley>
435
+ * Some headers only can appear once, enforce during header parse assignment. <jlindley>
436
+ * Convert empty bodies into empty arrays instead of nil. <jlindley>
437
+ * Handle blank content dispositions. <jlindley>
438
+ * Mention Trec 2005 Spam Corpus in readme <jlindley>
439
+ * Add 'rake corpus:verify_all' to allow parse checks in bulk. <jlindley>
440
+ * Added handling of multi value parameters, like filename*1*="us-ascii'en'blah" filename*2="bleh" <mikel>
441
+ * Added dependency on ActiveSupport 2.3 or higher <mikel>
442
+
443
+ == Sun Nov 1 12:00:00 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
444
+
445
+ * handle OpenSSL::SSL::VERIFY_NONE returning 0 <jlindley>
446
+ * doing Mail.new { content_type [text, plain, { charset => UTF-8 }] } is now
447
+ possible (content type accepts an array) <mikel>
448
+
449
+ == Sat Oct 31 11:00:41 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
450
+
451
+ * Fixed attachment handling, so mail can find attachment from a content-type,
452
+ content-disposition or content-location
453
+ * Added content-location field and parser
454
+ * Added message.has_attachments? for ActionMailer friendliness
455
+ * Added attachment.original_filename for ActionMailer friendliness
456
+
457
+ == Sat Oct 25 13:38:01 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
458
+
459
+ * Birthday, Mail released as a gem... phew