actionmailer 3.1.1 → 3.1.2.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionmailer might be problematic. Click here for more details.

Files changed (4) hide show
  1. data/CHANGELOG.md +454 -0
  2. data/lib/action_mailer/version.rb +2 -2
  3. metadata +34 -30
  4. data/CHANGELOG +0 -454
data/CHANGELOG.md ADDED
@@ -0,0 +1,454 @@
1
+ ## Rails 3.1.1 (October 7, 2011) ##
2
+
3
+ * No changes
4
+
5
+
6
+ ## Rails 3.1.0 (August 30, 2011) ##
7
+
8
+ * No changes
9
+
10
+
11
+ ## Rails 3.0.7 (April 18, 2011) ##
12
+
13
+ * remove AM delegating register_observer and register_interceptor to Mail *Josh Kalderimis*
14
+
15
+
16
+ * Rails 3.0.6 (April 5, 2011)
17
+
18
+ * Don't allow i18n to change the minor version, version now set to ~> 0.5.0 *Santiago Pastorino*
19
+
20
+
21
+ ## Rails 3.0.5 (February 26, 2011) ##
22
+
23
+ * No changes.
24
+
25
+
26
+ ## Rails 3.0.4 (February 8, 2011) ##
27
+
28
+ * No changes.
29
+
30
+
31
+ ## Rails 3.0.3 (November 16, 2010) ##
32
+
33
+ * No changes.
34
+
35
+
36
+ ## Rails 3.0.2 (November 15, 2010) ##
37
+
38
+ * No changes
39
+
40
+
41
+ ## Rails 3.0.1 (October 15, 2010) ##
42
+
43
+ * No Changes, just a version bump.
44
+
45
+
46
+ ## Rails 3.0.0 (August 29, 2010) ##
47
+
48
+ * subject is automatically looked up on I18n using mailer_name and action_name as scope as in t(".subject") *JK*
49
+
50
+ * Changed encoding behaviour of mail, so updated tests in actionmailer and bumped mail version to 2.2.1 *ML*
51
+
52
+ * Added ability to pass Proc objects to the defaults hash *ML*
53
+
54
+ * Removed all quoting.rb type files from ActionMailer and put Mail 2.2.0 in instead *ML*
55
+
56
+ * Lot of updates to various test cases that now work better with the new Mail and so have different expectations
57
+
58
+ * Added interceptors and observers from Mail *ML*
59
+
60
+ ActionMailer::Base.register_interceptor calls Mail.register_interceptor
61
+ ActionMailer::Base.register_observer calls Mail.register_observer
62
+
63
+ * Mail::Part now no longer has nil as a default charset, it is always set to something, and defaults to UTF-8
64
+
65
+ * Added explict setting of charset in set_fields! method to make sure Mail has the user defined default
66
+
67
+ * Removed quoting.rb and refactored for Mail to take responsibility of all quoting and auto encoding requirements for the header.
68
+
69
+ * Fixed several tests which had incorrect encoding.
70
+
71
+ * Changed all utf-8 to UTF-8 for consistency
72
+
73
+ * Whole new API added with tests. See base.rb for full details. Old API is deprecated.
74
+
75
+ * The Mail::Message class has helped methods for all the field types that return 'common' defaults for the common use case, so to get the subject, mail.subject will give you a string, mail.date will give you a DateTime object, mail.from will give you an array of address specs (mikel@test.lindsaar.net) etc. If you want to access the field object itself, call mail[:field_name] which will return the field object you want, which you can then chain, like mail[:from].formatted
76
+
77
+ * Mail#content_type now returns the content_type field as a string. If you want the mime type of a mail, then you call Mail#mime_type (eg, text/plain), if you want the parameters of the content type field, you call Mail#content_type_parameters which gives you a hash, eg {'format' => 'flowed', 'charset' => 'utf-8'}
78
+
79
+ * ActionMailer::Base :default_implicit_parts_order now is in the sequence of the order you want, no reversing of ordering takes place. The default order now is text/plain, then text/enriched, then text/html and then any other part that is not one of these three.
80
+
81
+ * Mail does not have "quoted_body", "quoted_subject" etc. All of these are accessed via body.encoded, subject.encoded etc
82
+
83
+ * Every object in a Mail object returns an object, never a string. So Mail.body returns a Mail::Body class object, need to call #encoded or #decoded to get the string you want.
84
+ * Mail::Message#set_content_type does not exist, it is simply Mail::Message#content_type
85
+
86
+ * Every mail message gets a unique message_id unless you specify one, had to change all the tests that check for equality with expected.encoded == actual.encoded to first replace their message_ids with control values
87
+
88
+ * Mail now has a proper concept of parts, remove the ActionMailer::Part and ActionMailer::PartContainer classes
89
+
90
+ * Calling #encoded on any object returns it as a string ready to go into the output stream of an email, this means it includes the \r\n at the end of the lines and the object is pre-wrapped with \r\n\t if it is a header field. Also, the "encoded" value includes the field name if it is a header field.
91
+
92
+ * Attachments are only the actual attachment, with filename etc. A part contains an attachment. The part has the content_type etc. So attachments.last.content_type is invalid. But parts.last.content_type
93
+
94
+ * There is no idea of a "sub_head" in Mail. A part is just a Message with some extra functionality, so it just has a "header" like a normal mail message
95
+
96
+
97
+ ## 2.3.2 Final (March 15, 2009) ##
98
+
99
+ * Fixed that ActionMailer should send correctly formatted Return-Path in MAIL FROM for SMTP #1842 *Matt Jones*
100
+
101
+ * Fixed RFC-2045 quoted-printable bug #1421 *squadette*
102
+
103
+ * Fixed that no body charset would be set when there are attachments present #740 *Paweł Kondzior*
104
+
105
+
106
+ ## 2.2.1 RC2 (November 14th, 2008) ##
107
+
108
+ * Turn on STARTTLS if it is available in Net::SMTP (added in Ruby 1.8.7) and the SMTP server supports it (This is required for Gmail's SMTP server) #1336 *Grant Hollingworth*
109
+
110
+
111
+ ## 2.2.0 RC1 (October 24th, 2008) ##
112
+
113
+ * Add layout functionality to mailers *Pratik Naik*
114
+
115
+ Mailer layouts behaves just like controller layouts, except layout names need to
116
+ have '_mailer' postfix for them to be automatically picked up.
117
+
118
+
119
+ ## 2.1.0 (May 31st, 2008) ##
120
+
121
+ * Fixed that a return-path header would be ignored #7572 *joost*
122
+
123
+ * Less verbose mail logging: just recipients for :info log level; the whole email for :debug only. #8000 *iaddict, Tarmo Tänav*
124
+
125
+ * Updated TMail to version 1.2.1 *Mikel Lindsaar*
126
+
127
+ * Fixed that you don't have to call super in ActionMailer::TestCase#setup #10406 *jamesgolick*
128
+
129
+
130
+ ## 2.0.2 (December 16th, 2007) ##
131
+
132
+ * Included in Rails 2.0.2
133
+
134
+
135
+ ## 2.0.1 (December 7th, 2007) ##
136
+
137
+ * Update ActionMailer so it treats ActionView the same way that ActionController does. Closes #10244 *Rick Olson*
138
+
139
+ * Pass the template_root as an array as ActionView's view_path
140
+ * Request templates with the "#{mailer_name}/#{action}" as opposed to just "#{action}"
141
+
142
+ * Fixed that partials would be broken when using text.plain.erb as the extension #10130 *java*
143
+
144
+ * Update README to use new smtp settings configuration API. Closes #10060 *psq*
145
+
146
+ * Allow ActionMailer subclasses to individually set their delivery method (so two subclasses can have different delivery methods) #10033 *Zach Dennis*
147
+
148
+ * Update TMail to v1.1.0. Use an updated version of TMail if available. *Mikel Lindsaar*
149
+
150
+ * Introduce a new base test class for testing Mailers. ActionMailer::TestCase *Michael Koziarski*
151
+
152
+ * Fix silent failure of rxml templates. #9879 *jstewart*
153
+
154
+ * Fix attachment decoding when using the TMail C extension. #7861 *orangechicken*
155
+
156
+ * Increase mail delivery test coverage. #8692 *Kamal Fariz Mahyuddin*
157
+
158
+ * Register alternative template engines using ActionMailer::Base.register_template_extension('haml'). #7534 *cwd, Josh Peek*
159
+
160
+ * Only load ActionController::UrlWriter if ActionController is present *Rick Olson*
161
+
162
+ * Make sure parsed emails recognized attachments nested inside multipart parts. #6714 *Jamis Buck*
163
+
164
+ * Allow mailer actions named send by using __send__ internally. #6467 *iGEL*
165
+
166
+ * Add assert_emails and assert_no_emails to test the number of emails delivered. #6479 *Jonathan Viney*
167
+ # Assert total number of emails delivered:
168
+ assert_emails 0
169
+ ContactMailer.deliver_contact
170
+ assert_emails 1
171
+
172
+ # Assert number of emails delivered within a block:
173
+ assert_emails 1 do
174
+ post :signup, :name => 'Jonathan'
175
+ end
176
+
177
+
178
+ ## 1.3.3 (March 12th, 2007) ##
179
+
180
+ * Depend on Action Pack 1.13.3
181
+
182
+
183
+ ## 1.3.2 (February 5th, 2007) ##
184
+
185
+ * Deprecate server_settings renaming it to smtp_settings, add sendmail_settings to allow you to override the arguments to and location of the sendmail executable. *Michael Koziarski*
186
+
187
+
188
+ ## 1.3.1 (January 16th, 2007) ##
189
+
190
+ * Depend on Action Pack 1.13.1
191
+
192
+
193
+ ## 1.3.0 (January 16th, 2007) ##
194
+
195
+ * Make mime version default to 1.0. closes #2323 *ror@andreas-s.net*
196
+
197
+ * Make sure quoted-printable text is decoded correctly when only portions of the text are encoded. closes #3154. *jon@siliconcircus.com*
198
+
199
+ * Make sure DOS newlines in quoted-printable text are normalized to unix newlines before unquoting. closes #4166 and #4452. *Jamis Buck*
200
+
201
+ * Fixed that iconv decoding should catch InvalidEncoding #3153 *jon@siliconcircus.com*
202
+
203
+ * Tighten rescue clauses. #5985 *james@grayproductions.net*
204
+
205
+ * Automatically included ActionController::UrlWriter, such that URL generation can happen within ActionMailer controllers. *David Heinemeier Hansson*
206
+
207
+ * Replace Reloadable with Reloadable::Deprecated. *Nicholas Seckar*
208
+
209
+ * Mailer template root applies to a class and its subclasses rather than acting globally. #5555 *somekool@gmail.com*
210
+
211
+ * Resolve action naming collision. #5520 *ssinghi@kreeti.com*
212
+
213
+ * ActionMailer::Base documentation rewrite. Closes #4991 *Kevin Clark, Marcel Molina Jr.*
214
+
215
+ * Replace alias method chaining with Module#alias_method_chain. *Marcel Molina Jr.*
216
+
217
+ * Replace Ruby's deprecated append_features in favor of included. *Marcel Molina Jr.*
218
+
219
+ * Correct spurious documentation example code which results in a SyntaxError. *Marcel Molina Jr.*
220
+
221
+
222
+ ## 1.2.1 (April 6th, 2006) ##
223
+
224
+ * Be part of Rails 1.1.1
225
+
226
+
227
+ ## 1.2.0 (March 27th, 2006) ##
228
+
229
+ * Nil charset caused subject line to be improperly quoted in implicitly multipart messages #2662 *ehalvorsen+rails@runbox.com*
230
+
231
+ * Parse content-type apart before using it so that sub-parts of the header can be set correctly #2918 *Jamis Buck*
232
+
233
+ * Make custom headers work in subparts #4034 *elan@bluemandrill.com*
234
+
235
+ * Template paths with dot chars in them no longer mess up implicit template selection for multipart messages #3332 *Chad Fowler*
236
+
237
+ * Make sure anything with content-disposition of "attachment" is passed to the attachment presenter when parsing an email body *Jamis Buck*
238
+
239
+ * Make sure TMail#attachments includes anything with content-disposition of "attachment", regardless of content-type *Jamis Buck*
240
+
241
+
242
+ ## 1.1.5 (December 13th, 2005) ##
243
+
244
+ * Become part of Rails 1.0
245
+
246
+
247
+ ## 1.1.4 (December 7th, 2005) ##
248
+
249
+ * Rename Version constant to VERSION. #2802 *Marcel Molina Jr.*
250
+
251
+ * Stricter matching for implicitly multipart filenames excludes files ending in unsupported extensions (such as foo.rhtml.bak) and without a two-part content type (such as foo.text.rhtml or foo.text.really.plain.rhtml). #2398 *Dave Burt <dave@burt.id.au>, Jeremy Kemper*
252
+
253
+
254
+ ## 1.1.3 (November 7th, 2005) ##
255
+
256
+ * Allow Mailers to have custom initialize methods that set default instance variables for all mail actions #2563 *mrj@bigpond.net.au*
257
+
258
+
259
+ ## 1.1.2 (October 26th, 2005) ##
260
+
261
+ * Upgraded to Action Pack 1.10.2
262
+
263
+
264
+ ## 1.1.1 (October 19th, 2005) ##
265
+
266
+ * Upgraded to Action Pack 1.10.1
267
+
268
+
269
+ ## 1.1.0 (October 16th, 2005) ##
270
+
271
+ * Update and extend documentation (rdoc)
272
+
273
+ * Minero Aoki made TMail available to Rails/ActionMailer under the MIT license (instead of LGPL) *RubyConf '05*
274
+
275
+ * Austin Ziegler made Text::Simple available to Rails/ActionMailer under a MIT-like licens *See rails ML, subject "Text::Format Licence Exception" on Oct 15, 2005*
276
+
277
+ * Fix vendor require paths to prevent files being required twice
278
+
279
+ * Don't add charset to content-type header for a part that contains subparts (for AOL compatibility) #2013 *John Long*
280
+
281
+ * Preserve underscores when unquoting message bodies #1930
282
+
283
+ * Encode multibyte characters correctly #1894
284
+
285
+ * Multipart messages specify a MIME-Version header automatically #2003 *John Long*
286
+
287
+ * Add a unified render method to ActionMailer (delegates to ActionView::Base#render)
288
+
289
+ * Move mailer initialization to a separate (overridable) method, so that subclasses may alter the various defaults #1727
290
+
291
+ * Look at content-location header (if available) to determine filename of attachments #1670
292
+
293
+ * ActionMailer::Base.deliver(email) had been accidentally removed, but was documented in the Rails book #1849
294
+
295
+ * Fix problem with sendmail delivery where headers should be delimited by \n characters instead of \r\n, which confuses some mail readers #1742 *Kent Sibilev*
296
+
297
+
298
+ ## 1.0.1 (11 July, 2005) ##
299
+
300
+ * Bind to Action Pack 1.9.1
301
+
302
+
303
+ ## 1.0.0 (6 July, 2005) ##
304
+
305
+ * Avoid adding nil header values #1392
306
+
307
+ * Better multipart support with implicit multipart/alternative and sorting of subparts *John Long*
308
+
309
+ * Allow for nested parts in multipart mails #1570 *Flurin Egger*
310
+
311
+ * Normalize line endings in outgoing mail bodies to "\n" #1536 *John Long*
312
+
313
+ * Allow template to be explicitly specified #1448 *tuxie@dekadance.se*
314
+
315
+ * Allow specific "multipart/xxx" content-type to be set on multipart messages #1412 *Flurin Egger*
316
+
317
+ * Unquoted @ characters in headers are now accepted in spite of RFC 822 #1206
318
+
319
+ * Helper support (borrowed from ActionPack)
320
+
321
+ * Silently ignore Errno::EINVAL errors when converting text.
322
+
323
+ * Don't cause an error when parsing an encoded attachment name #1340 *lon@speedymac.com*
324
+
325
+ * Nested multipart message parts are correctly processed in TMail::Mail#body
326
+
327
+ * BCC headers are removed when sending via SMTP #1402
328
+
329
+ * Added 'content_type' accessor, to allow content type to be set on a per-message basis. content_type defaults to "text/plain".
330
+
331
+ * Silently ignore Iconv::IllegalSequence errors when converting text #1341 *lon@speedymac.com*
332
+
333
+ * Support attachments and multipart messages.
334
+
335
+ * Added new accessors for the various mail properties.
336
+
337
+ * Fix to only perform the charset conversion if a 'from' and a 'to' charset are given (make no assumptions about what the charset was) #1276 *Jamis Buck*
338
+
339
+ * Fix attachments and content-type problems #1276 *Jamis Buck*
340
+
341
+ * Fixed the TMail#body method to look at the content-transfer-encoding header and unquote the body according to the rules it specifies #1265 *Jamis Buck*
342
+
343
+ * Added unquoting even if the iconv lib can't be loaded--in that case, only the charset conversion is skipped #1265 *Jamis Buck*
344
+
345
+ * Added automatic decoding of base64 bodies #1214 *Jamis Buck*
346
+
347
+ * Added that delivery errors are caught in a way so the mail is still returned whether the delivery was successful or not
348
+
349
+ * Fixed that email address like "Jamis Buck, M.D." <wild.medicine@example.net> would cause the quoter to generate emails resulting in "bad address" errors from the mail server #1220 *Jamis Buck*
350
+
351
+
352
+ ## 0.9.1 (20th April, 2005) ##
353
+
354
+ * Depend on Action Pack 1.8.1
355
+
356
+
357
+ ## 0.9.0 (19th April, 2005) ##
358
+
359
+ * Added that deliver_* will now return the email that was sent
360
+
361
+ * Added that quoting to UTF-8 only happens if the characters used are in that range #955 *Jamis Buck*
362
+
363
+ * Fixed quoting for all address headers, not just to #955 *Jamis Buck*
364
+
365
+ * Fixed unquoting of emails that doesn't have an explicit charset #1036 *wolfgang@stufenlos.net*
366
+
367
+
368
+ ## 0.8.1 (27th March, 2005) ##
369
+
370
+ * Fixed that if charset was found that the end of a mime part declaration TMail would throw an error #919 *lon@speedymac.com*
371
+
372
+ * Fixed that TMail::Unquoter would fail to recognize quoting method if it was in lowercase #919 *lon@speedymac.com*
373
+
374
+ * Fixed that TMail::Encoder would fail when it attempts to parse e-mail addresses which are encoded using something other than the messages encoding method #919 *lon@speedymac.com*
375
+
376
+ * Added rescue for missing iconv library and throws warnings if subject/body is called on a TMail object without it instead
377
+
378
+
379
+ ## 0.8.0 (22th March, 2005) ##
380
+
381
+ * Added framework support for processing incoming emails with an Action Mailer class. See example in README.
382
+
383
+
384
+ ## 0.7.1 (7th March, 2005) ##
385
+
386
+ * Bind to newest Action Pack (1.5.1)
387
+
388
+
389
+ ## 0.7.0 (24th February, 2005) ##
390
+
391
+ * Added support for charsets for both subject and body. The default charset is now UTF-8 #673 [Jamis Buck]. Examples:
392
+
393
+ def iso_charset(recipient)
394
+ @recipients = recipient
395
+ @subject = "testing iso charsets"
396
+ @from = "system@loudthinking.com"
397
+ @body = "Nothing to see here."
398
+ @charset = "iso-8859-1"
399
+ end
400
+
401
+ def unencoded_subject(recipient)
402
+ @recipients = recipient
403
+ @subject = "testing unencoded subject"
404
+ @from = "system@loudthinking.com"
405
+ @body = "Nothing to see here."
406
+ @encode_subject = false
407
+ @charset = "iso-8859-1"
408
+ end
409
+
410
+
411
+ ## 0.6.1 (January 18th, 2005) ##
412
+
413
+ * Fixed sending of emails to use Tmail#from not the deprecated Tmail#from_address
414
+
415
+
416
+ ## 0.6 (January 17th, 2005) ##
417
+
418
+ * Fixed that bcc and cc should be settable through @bcc and @cc -- not just @headers["Bcc"] and @headers["Cc"] #453 *Eric Hodel*
419
+
420
+ * Fixed Action Mailer to be "warnings safe" so you can run with ruby -w and not get framework warnings #453 *Eric Hodel*
421
+
422
+
423
+ ## 0.5 ##
424
+
425
+ * Added access to custom headers, like cc, bcc, and reply-to #268 [Andreas Schwarz]. Example:
426
+
427
+ def post_notification(recipients, post)
428
+ @recipients = recipients
429
+ @from = post.author.email_address_with_name
430
+ @headers["bcc"] = SYSTEM_ADMINISTRATOR_EMAIL
431
+ @headers["reply-to"] = "notifications@example.com"
432
+ @subject = "[#{post.account.name} #{post.title}]"
433
+ @body["post"] = post
434
+ end
435
+
436
+ ## 0.4 (5) ##
437
+
438
+ * Consolidated the server configuration options into Base#server_settings= and expanded that with controls for authentication and more *Marten*
439
+ NOTE: This is an API change that could potentially break your application if you used the old application form. Please do change!
440
+
441
+ * Added Base#deliveries as an accessor for an array of emails sent out through that ActionMailer class when using the :test delivery option. *Jeremy Kemper*
442
+
443
+ * Added Base#perform_deliveries= which can be set to false to turn off the actual delivery of the email through smtp or sendmail.
444
+ This is especially useful for functional testing that shouldn't send off real emails, but still trigger delivery_* methods.
445
+
446
+ * Added option to specify delivery method with Base#delivery_method=. Default is :smtp and :sendmail is currently the only other option.
447
+ Sendmail is assumed to be present at "/usr/sbin/sendmail" if that option is used. *Kent Sibilev*
448
+
449
+ * Dropped "include TMail" as it added to much baggage into the default namespace (like Version) *Chad Fowler*
450
+
451
+
452
+ ## 0.3 ##
453
+
454
+ * First release
@@ -2,8 +2,8 @@ module ActionMailer
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- TINY = 1
6
- PRE = nil
5
+ TINY = 2
6
+ PRE = "rc1"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,13 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionmailer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease: false
4
+ hash: 15424119
5
+ prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 1
9
+ - 2
10
+ - rc
9
11
  - 1
10
- version: 3.1.1
12
+ version: 3.1.2.rc1
11
13
  platform: ruby
12
14
  authors:
13
15
  - David Heinemeier Hansson
@@ -15,29 +17,31 @@ autorequire:
15
17
  bindir: bin
16
18
  cert_chain: []
17
19
 
18
- date: 2011-10-07 00:00:00 -02:00
19
- default_executable:
20
+ date: 2011-11-14 00:00:00 Z
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: actionpack
24
+ type: :runtime
23
25
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
26
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
27
  none: false
26
28
  requirements:
27
29
  - - "="
28
30
  - !ruby/object:Gem::Version
29
- hash: 1
31
+ hash: 15424119
30
32
  segments:
31
33
  - 3
32
34
  - 1
35
+ - 2
36
+ - rc
33
37
  - 1
34
- version: 3.1.1
35
- type: :runtime
36
- version_requirements: *id001
38
+ version: 3.1.2.rc1
39
+ requirement: *id001
37
40
  - !ruby/object:Gem::Dependency
38
41
  name: mail
42
+ type: :runtime
39
43
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
44
+ version_requirements: &id002 !ruby/object:Gem::Requirement
41
45
  none: false
42
46
  requirements:
43
47
  - - ~>
@@ -48,8 +52,7 @@ dependencies:
48
52
  - 3
49
53
  - 0
50
54
  version: 2.3.0
51
- type: :runtime
52
- version_requirements: *id002
55
+ requirement: *id002
53
56
  description: Email on Rails. Compose, deliver, receive, and test emails using the familiar controller/view pattern. First-class support for multipart email and attachments.
54
57
  email: david@loudthinking.com
55
58
  executables: []
@@ -59,26 +62,25 @@ extensions: []
59
62
  extra_rdoc_files: []
60
63
 
61
64
  files:
62
- - CHANGELOG
65
+ - CHANGELOG.md
63
66
  - README.rdoc
64
67
  - MIT-LICENSE
65
- - lib/action_mailer/adv_attr_accessor.rb
66
- - lib/action_mailer/base.rb
67
- - lib/action_mailer/collector.rb
68
68
  - lib/action_mailer/delivery_methods.rb
69
- - lib/action_mailer/log_subscriber.rb
70
- - lib/action_mailer/mail_helper.rb
71
- - lib/action_mailer/old_api.rb
72
- - lib/action_mailer/railtie.rb
73
69
  - lib/action_mailer/test_case.rb
74
- - lib/action_mailer/test_helper.rb
75
70
  - lib/action_mailer/tmail_compat.rb
71
+ - lib/action_mailer/log_subscriber.rb
76
72
  - lib/action_mailer/version.rb
77
- - lib/action_mailer.rb
78
- - lib/rails/generators/mailer/mailer_generator.rb
73
+ - lib/action_mailer/railtie.rb
74
+ - lib/action_mailer/test_helper.rb
75
+ - lib/action_mailer/collector.rb
76
+ - lib/action_mailer/old_api.rb
77
+ - lib/action_mailer/base.rb
78
+ - lib/action_mailer/mail_helper.rb
79
+ - lib/action_mailer/adv_attr_accessor.rb
79
80
  - lib/rails/generators/mailer/templates/mailer.rb
80
81
  - lib/rails/generators/mailer/USAGE
81
- has_rdoc: true
82
+ - lib/rails/generators/mailer/mailer_generator.rb
83
+ - lib/action_mailer.rb
82
84
  homepage: http://www.rubyonrails.org
83
85
  licenses: []
84
86
 
@@ -101,16 +103,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
103
  required_rubygems_version: !ruby/object:Gem::Requirement
102
104
  none: false
103
105
  requirements:
104
- - - ">="
106
+ - - ">"
105
107
  - !ruby/object:Gem::Version
106
- hash: 3
108
+ hash: 25
107
109
  segments:
108
- - 0
109
- version: "0"
110
+ - 1
111
+ - 3
112
+ - 1
113
+ version: 1.3.1
110
114
  requirements:
111
115
  - none
112
116
  rubyforge_project:
113
- rubygems_version: 1.3.7
117
+ rubygems_version: 1.8.6
114
118
  signing_key:
115
119
  specification_version: 3
116
120
  summary: Email composition, delivery, and receiving framework (part of Rails).
data/CHANGELOG DELETED
@@ -1,454 +0,0 @@
1
- *Rails 3.1.1 (unreleased)*
2
-
3
- * No changes
4
-
5
-
6
- *Rails 3.1.0 (August 30, 2011)*
7
-
8
- * No changes
9
-
10
-
11
- *Rails 3.0.7 (April 18, 2011)*
12
-
13
- * remove AM delegating register_observer and register_interceptor to Mail [Josh Kalderimis]
14
-
15
-
16
- *Rails 3.0.6 (April 5, 2011)
17
-
18
- * Don't allow i18n to change the minor version, version now set to ~> 0.5.0 [Santiago Pastorino]
19
-
20
-
21
- *Rails 3.0.5 (February 26, 2011)*
22
-
23
- * No changes.
24
-
25
-
26
- *Rails 3.0.4 (February 8, 2011)*
27
-
28
- * No changes.
29
-
30
-
31
- *Rails 3.0.3 (November 16, 2010)*
32
-
33
- * No changes.
34
-
35
-
36
- *Rails 3.0.2 (November 15, 2010)*
37
-
38
- * No changes
39
-
40
-
41
- *Rails 3.0.1 (October 15, 2010)*
42
-
43
- * No Changes, just a version bump.
44
-
45
-
46
- *Rails 3.0.0 (August 29, 2010)*
47
-
48
- * subject is automatically looked up on I18n using mailer_name and action_name as scope as in t(".subject") [JK]
49
-
50
- * Changed encoding behaviour of mail, so updated tests in actionmailer and bumped mail version to 2.2.1 [ML]
51
-
52
- * Added ability to pass Proc objects to the defaults hash [ML]
53
-
54
- * Removed all quoting.rb type files from ActionMailer and put Mail 2.2.0 in instead [ML]
55
-
56
- * Lot of updates to various test cases that now work better with the new Mail and so have different expectations
57
-
58
- * Added interceptors and observers from Mail [ML]
59
-
60
- ActionMailer::Base.register_interceptor calls Mail.register_interceptor
61
- ActionMailer::Base.register_observer calls Mail.register_observer
62
-
63
- * Mail::Part now no longer has nil as a default charset, it is always set to something, and defaults to UTF-8
64
-
65
- * Added explict setting of charset in set_fields! method to make sure Mail has the user defined default
66
-
67
- * Removed quoting.rb and refactored for Mail to take responsibility of all quoting and auto encoding requirements for the header.
68
-
69
- * Fixed several tests which had incorrect encoding.
70
-
71
- * Changed all utf-8 to UTF-8 for consistency
72
-
73
- * Whole new API added with tests. See base.rb for full details. Old API is deprecated.
74
-
75
- * The Mail::Message class has helped methods for all the field types that return 'common' defaults for the common use case, so to get the subject, mail.subject will give you a string, mail.date will give you a DateTime object, mail.from will give you an array of address specs (mikel@test.lindsaar.net) etc. If you want to access the field object itself, call mail[:field_name] which will return the field object you want, which you can then chain, like mail[:from].formatted
76
-
77
- * Mail#content_type now returns the content_type field as a string. If you want the mime type of a mail, then you call Mail#mime_type (eg, text/plain), if you want the parameters of the content type field, you call Mail#content_type_parameters which gives you a hash, eg {'format' => 'flowed', 'charset' => 'utf-8'}
78
-
79
- * ActionMailer::Base :default_implicit_parts_order now is in the sequence of the order you want, no reversing of ordering takes place. The default order now is text/plain, then text/enriched, then text/html and then any other part that is not one of these three.
80
-
81
- * Mail does not have "quoted_body", "quoted_subject" etc. All of these are accessed via body.encoded, subject.encoded etc
82
-
83
- * Every object in a Mail object returns an object, never a string. So Mail.body returns a Mail::Body class object, need to call #encoded or #decoded to get the string you want.
84
- * Mail::Message#set_content_type does not exist, it is simply Mail::Message#content_type
85
-
86
- * Every mail message gets a unique message_id unless you specify one, had to change all the tests that check for equality with expected.encoded == actual.encoded to first replace their message_ids with control values
87
-
88
- * Mail now has a proper concept of parts, remove the ActionMailer::Part and ActionMailer::PartContainer classes
89
-
90
- * Calling #encoded on any object returns it as a string ready to go into the output stream of an email, this means it includes the \r\n at the end of the lines and the object is pre-wrapped with \r\n\t if it is a header field. Also, the "encoded" value includes the field name if it is a header field.
91
-
92
- * Attachments are only the actual attachment, with filename etc. A part contains an attachment. The part has the content_type etc. So attachments.last.content_type is invalid. But parts.last.content_type
93
-
94
- * There is no idea of a "sub_head" in Mail. A part is just a Message with some extra functionality, so it just has a "header" like a normal mail message
95
-
96
-
97
- *2.3.2 [Final] (March 15, 2009)*
98
-
99
- * Fixed that ActionMailer should send correctly formatted Return-Path in MAIL FROM for SMTP #1842 [Matt Jones]
100
-
101
- * Fixed RFC-2045 quoted-printable bug #1421 [squadette]
102
-
103
- * Fixed that no body charset would be set when there are attachments present #740 [Paweł Kondzior]
104
-
105
-
106
- *2.2.1 [RC2] (November 14th, 2008)*
107
-
108
- * Turn on STARTTLS if it is available in Net::SMTP (added in Ruby 1.8.7) and the SMTP server supports it (This is required for Gmail's SMTP server) #1336 [Grant Hollingworth]
109
-
110
-
111
- *2.2.0 [RC1] (October 24th, 2008)*
112
-
113
- * Add layout functionality to mailers [Pratik Naik]
114
-
115
- Mailer layouts behaves just like controller layouts, except layout names need to
116
- have '_mailer' postfix for them to be automatically picked up.
117
-
118
-
119
- *2.1.0 (May 31st, 2008)*
120
-
121
- * Fixed that a return-path header would be ignored #7572 [joost]
122
-
123
- * Less verbose mail logging: just recipients for :info log level; the whole email for :debug only. #8000 [iaddict, Tarmo Tänav]
124
-
125
- * Updated TMail to version 1.2.1 [Mikel Lindsaar]
126
-
127
- * Fixed that you don't have to call super in ActionMailer::TestCase#setup #10406 [jamesgolick]
128
-
129
-
130
- *2.0.2* (December 16th, 2007)
131
-
132
- * Included in Rails 2.0.2
133
-
134
-
135
- *2.0.1* (December 7th, 2007)
136
-
137
- * Update ActionMailer so it treats ActionView the same way that ActionController does. Closes #10244 [Rick Olson]
138
-
139
- * Pass the template_root as an array as ActionView's view_path
140
- * Request templates with the "#{mailer_name}/#{action}" as opposed to just "#{action}"
141
-
142
- * Fixed that partials would be broken when using text.plain.erb as the extension #10130 [java]
143
-
144
- * Update README to use new smtp settings configuration API. Closes #10060 [psq]
145
-
146
- * Allow ActionMailer subclasses to individually set their delivery method (so two subclasses can have different delivery methods) #10033 [Zach Dennis]
147
-
148
- * Update TMail to v1.1.0. Use an updated version of TMail if available. [Mikel Lindsaar]
149
-
150
- * Introduce a new base test class for testing Mailers. ActionMailer::TestCase [Michael Koziarski]
151
-
152
- * Fix silent failure of rxml templates. #9879 [jstewart]
153
-
154
- * Fix attachment decoding when using the TMail C extension. #7861 [orangechicken]
155
-
156
- * Increase mail delivery test coverage. #8692 [Kamal Fariz Mahyuddin]
157
-
158
- * Register alternative template engines using ActionMailer::Base.register_template_extension('haml'). #7534 [cwd, Josh Peek]
159
-
160
- * Only load ActionController::UrlWriter if ActionController is present [Rick Olson]
161
-
162
- * Make sure parsed emails recognized attachments nested inside multipart parts. #6714 [Jamis Buck]
163
-
164
- * Allow mailer actions named send by using __send__ internally. #6467 [iGEL]
165
-
166
- * Add assert_emails and assert_no_emails to test the number of emails delivered. #6479 [Jonathan Viney]
167
- # Assert total number of emails delivered:
168
- assert_emails 0
169
- ContactMailer.deliver_contact
170
- assert_emails 1
171
-
172
- # Assert number of emails delivered within a block:
173
- assert_emails 1 do
174
- post :signup, :name => 'Jonathan'
175
- end
176
-
177
-
178
- *1.3.3* (March 12th, 2007)
179
-
180
- * Depend on Action Pack 1.13.3
181
-
182
-
183
- *1.3.2* (February 5th, 2007)
184
-
185
- * Deprecate server_settings renaming it to smtp_settings, add sendmail_settings to allow you to override the arguments to and location of the sendmail executable. [Michael Koziarski]
186
-
187
-
188
- *1.3.1* (January 16th, 2007)
189
-
190
- * Depend on Action Pack 1.13.1
191
-
192
-
193
- *1.3.0* (January 16th, 2007)
194
-
195
- * Make mime version default to 1.0. closes #2323 [ror@andreas-s.net]
196
-
197
- * Make sure quoted-printable text is decoded correctly when only portions of the text are encoded. closes #3154. [jon@siliconcircus.com]
198
-
199
- * Make sure DOS newlines in quoted-printable text are normalized to unix newlines before unquoting. closes #4166 and #4452. [Jamis Buck]
200
-
201
- * Fixed that iconv decoding should catch InvalidEncoding #3153 [jon@siliconcircus.com]
202
-
203
- * Tighten rescue clauses. #5985 [james@grayproductions.net]
204
-
205
- * Automatically included ActionController::UrlWriter, such that URL generation can happen within ActionMailer controllers. [David Heinemeier Hansson]
206
-
207
- * Replace Reloadable with Reloadable::Deprecated. [Nicholas Seckar]
208
-
209
- * Mailer template root applies to a class and its subclasses rather than acting globally. #5555 [somekool@gmail.com]
210
-
211
- * Resolve action naming collision. #5520 [ssinghi@kreeti.com]
212
-
213
- * ActionMailer::Base documentation rewrite. Closes #4991 [Kevin Clark, Marcel Molina Jr.]
214
-
215
- * Replace alias method chaining with Module#alias_method_chain. [Marcel Molina Jr.]
216
-
217
- * Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.]
218
-
219
- * Correct spurious documentation example code which results in a SyntaxError. [Marcel Molina Jr.]
220
-
221
-
222
- *1.2.1* (April 6th, 2006)
223
-
224
- * Be part of Rails 1.1.1
225
-
226
-
227
- *1.2.0* (March 27th, 2006)
228
-
229
- * Nil charset caused subject line to be improperly quoted in implicitly multipart messages #2662 [ehalvorsen+rails@runbox.com]
230
-
231
- * Parse content-type apart before using it so that sub-parts of the header can be set correctly #2918 [Jamis Buck]
232
-
233
- * Make custom headers work in subparts #4034 [elan@bluemandrill.com]
234
-
235
- * Template paths with dot chars in them no longer mess up implicit template selection for multipart messages #3332 [Chad Fowler]
236
-
237
- * Make sure anything with content-disposition of "attachment" is passed to the attachment presenter when parsing an email body [Jamis Buck]
238
-
239
- * Make sure TMail#attachments includes anything with content-disposition of "attachment", regardless of content-type [Jamis Buck]
240
-
241
-
242
- *1.1.5* (December 13th, 2005)
243
-
244
- * Become part of Rails 1.0
245
-
246
-
247
- *1.1.4* (December 7th, 2005)
248
-
249
- * Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
250
-
251
- * Stricter matching for implicitly multipart filenames excludes files ending in unsupported extensions (such as foo.rhtml.bak) and without a two-part content type (such as foo.text.rhtml or foo.text.really.plain.rhtml). #2398 [Dave Burt <dave@burt.id.au>, Jeremy Kemper]
252
-
253
-
254
- *1.1.3* (November 7th, 2005)
255
-
256
- * Allow Mailers to have custom initialize methods that set default instance variables for all mail actions #2563 [mrj@bigpond.net.au]
257
-
258
-
259
- *1.1.2* (October 26th, 2005)
260
-
261
- * Upgraded to Action Pack 1.10.2
262
-
263
-
264
- *1.1.1* (October 19th, 2005)
265
-
266
- * Upgraded to Action Pack 1.10.1
267
-
268
-
269
- *1.1.0* (October 16th, 2005)
270
-
271
- * Update and extend documentation (rdoc)
272
-
273
- * Minero Aoki made TMail available to Rails/ActionMailer under the MIT license (instead of LGPL) [RubyConf '05]
274
-
275
- * Austin Ziegler made Text::Simple available to Rails/ActionMailer under a MIT-like licens [See rails ML, subject "Text::Format Licence Exception" on Oct 15, 2005]
276
-
277
- * Fix vendor require paths to prevent files being required twice
278
-
279
- * Don't add charset to content-type header for a part that contains subparts (for AOL compatibility) #2013 [John Long]
280
-
281
- * Preserve underscores when unquoting message bodies #1930
282
-
283
- * Encode multibyte characters correctly #1894
284
-
285
- * Multipart messages specify a MIME-Version header automatically #2003 [John Long]
286
-
287
- * Add a unified render method to ActionMailer (delegates to ActionView::Base#render)
288
-
289
- * Move mailer initialization to a separate (overridable) method, so that subclasses may alter the various defaults #1727
290
-
291
- * Look at content-location header (if available) to determine filename of attachments #1670
292
-
293
- * ActionMailer::Base.deliver(email) had been accidentally removed, but was documented in the Rails book #1849
294
-
295
- * Fix problem with sendmail delivery where headers should be delimited by \n characters instead of \r\n, which confuses some mail readers #1742 [Kent Sibilev]
296
-
297
-
298
- *1.0.1* (11 July, 2005)
299
-
300
- * Bind to Action Pack 1.9.1
301
-
302
-
303
- *1.0.0* (6 July, 2005)
304
-
305
- * Avoid adding nil header values #1392
306
-
307
- * Better multipart support with implicit multipart/alternative and sorting of subparts [John Long]
308
-
309
- * Allow for nested parts in multipart mails #1570 [Flurin Egger]
310
-
311
- * Normalize line endings in outgoing mail bodies to "\n" #1536 [John Long]
312
-
313
- * Allow template to be explicitly specified #1448 [tuxie@dekadance.se]
314
-
315
- * Allow specific "multipart/xxx" content-type to be set on multipart messages #1412 [Flurin Egger]
316
-
317
- * Unquoted @ characters in headers are now accepted in spite of RFC 822 #1206
318
-
319
- * Helper support (borrowed from ActionPack)
320
-
321
- * Silently ignore Errno::EINVAL errors when converting text.
322
-
323
- * Don't cause an error when parsing an encoded attachment name #1340 [lon@speedymac.com]
324
-
325
- * Nested multipart message parts are correctly processed in TMail::Mail#body
326
-
327
- * BCC headers are removed when sending via SMTP #1402
328
-
329
- * Added 'content_type' accessor, to allow content type to be set on a per-message basis. content_type defaults to "text/plain".
330
-
331
- * Silently ignore Iconv::IllegalSequence errors when converting text #1341 [lon@speedymac.com]
332
-
333
- * Support attachments and multipart messages.
334
-
335
- * Added new accessors for the various mail properties.
336
-
337
- * Fix to only perform the charset conversion if a 'from' and a 'to' charset are given (make no assumptions about what the charset was) #1276 [Jamis Buck]
338
-
339
- * Fix attachments and content-type problems #1276 [Jamis Buck]
340
-
341
- * Fixed the TMail#body method to look at the content-transfer-encoding header and unquote the body according to the rules it specifies #1265 [Jamis Buck]
342
-
343
- * Added unquoting even if the iconv lib can't be loaded--in that case, only the charset conversion is skipped #1265 [Jamis Buck]
344
-
345
- * Added automatic decoding of base64 bodies #1214 [Jamis Buck]
346
-
347
- * Added that delivery errors are caught in a way so the mail is still returned whether the delivery was successful or not
348
-
349
- * Fixed that email address like "Jamis Buck, M.D." <wild.medicine@example.net> would cause the quoter to generate emails resulting in "bad address" errors from the mail server #1220 [Jamis Buck]
350
-
351
-
352
- *0.9.1* (20th April, 2005)
353
-
354
- * Depend on Action Pack 1.8.1
355
-
356
-
357
- *0.9.0* (19th April, 2005)
358
-
359
- * Added that deliver_* will now return the email that was sent
360
-
361
- * Added that quoting to UTF-8 only happens if the characters used are in that range #955 [Jamis Buck]
362
-
363
- * Fixed quoting for all address headers, not just to #955 [Jamis Buck]
364
-
365
- * Fixed unquoting of emails that doesn't have an explicit charset #1036 [wolfgang@stufenlos.net]
366
-
367
-
368
- *0.8.1* (27th March, 2005)
369
-
370
- * Fixed that if charset was found that the end of a mime part declaration TMail would throw an error #919 [lon@speedymac.com]
371
-
372
- * Fixed that TMail::Unquoter would fail to recognize quoting method if it was in lowercase #919 [lon@speedymac.com]
373
-
374
- * Fixed that TMail::Encoder would fail when it attempts to parse e-mail addresses which are encoded using something other than the messages encoding method #919 [lon@speedymac.com]
375
-
376
- * Added rescue for missing iconv library and throws warnings if subject/body is called on a TMail object without it instead
377
-
378
-
379
- *0.8.0* (22th March, 2005)
380
-
381
- * Added framework support for processing incoming emails with an Action Mailer class. See example in README.
382
-
383
-
384
- *0.7.1* (7th March, 2005)
385
-
386
- * Bind to newest Action Pack (1.5.1)
387
-
388
-
389
- *0.7.0* (24th February, 2005)
390
-
391
- * Added support for charsets for both subject and body. The default charset is now UTF-8 #673 [Jamis Buck]. Examples:
392
-
393
- def iso_charset(recipient)
394
- @recipients = recipient
395
- @subject = "testing iso charsets"
396
- @from = "system@loudthinking.com"
397
- @body = "Nothing to see here."
398
- @charset = "iso-8859-1"
399
- end
400
-
401
- def unencoded_subject(recipient)
402
- @recipients = recipient
403
- @subject = "testing unencoded subject"
404
- @from = "system@loudthinking.com"
405
- @body = "Nothing to see here."
406
- @encode_subject = false
407
- @charset = "iso-8859-1"
408
- end
409
-
410
-
411
- *0.6.1* (January 18th, 2005)
412
-
413
- * Fixed sending of emails to use Tmail#from not the deprecated Tmail#from_address
414
-
415
-
416
- *0.6* (January 17th, 2005)
417
-
418
- * Fixed that bcc and cc should be settable through @bcc and @cc -- not just @headers["Bcc"] and @headers["Cc"] #453 [Eric Hodel]
419
-
420
- * Fixed Action Mailer to be "warnings safe" so you can run with ruby -w and not get framework warnings #453 [Eric Hodel]
421
-
422
-
423
- *0.5*
424
-
425
- * Added access to custom headers, like cc, bcc, and reply-to #268 [Andreas Schwarz]. Example:
426
-
427
- def post_notification(recipients, post)
428
- @recipients = recipients
429
- @from = post.author.email_address_with_name
430
- @headers["bcc"] = SYSTEM_ADMINISTRATOR_EMAIL
431
- @headers["reply-to"] = "notifications@example.com"
432
- @subject = "[#{post.account.name} #{post.title}]"
433
- @body["post"] = post
434
- end
435
-
436
- *0.4* (5)
437
-
438
- * Consolidated the server configuration options into Base#server_settings= and expanded that with controls for authentication and more [Marten]
439
- NOTE: This is an API change that could potentially break your application if you used the old application form. Please do change!
440
-
441
- * Added Base#deliveries as an accessor for an array of emails sent out through that ActionMailer class when using the :test delivery option. [Jeremy Kemper]
442
-
443
- * Added Base#perform_deliveries= which can be set to false to turn off the actual delivery of the email through smtp or sendmail.
444
- This is especially useful for functional testing that shouldn't send off real emails, but still trigger delivery_* methods.
445
-
446
- * Added option to specify delivery method with Base#delivery_method=. Default is :smtp and :sendmail is currently the only other option.
447
- Sendmail is assumed to be present at "/usr/sbin/sendmail" if that option is used. [Kent Sibilev]
448
-
449
- * Dropped "include TMail" as it added to much baggage into the default namespace (like Version) [Chad Fowler]
450
-
451
-
452
- *0.3*
453
-
454
- * First release