Commit Graph

91 Commits

Author SHA1 Message Date
David Heinemeier Hansson
3cf7a0a460 Added Kernel#silence_warnings and puts it into use throughout the framework
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 04:58:27 +00:00
Jamis Buck
873be1258e Fix vendor require paths to prevent files being required twice
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-05 09:06:55 +00:00
Jamis Buck
8373b55055 * Don't add charset to content-type header for a part that contains subparts (for AOL compatibility) #2013 [John Long]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2091 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-01 16:00:08 +00:00
Jamis Buck
a322514871 Preserve underscores when unquoting message bodies #1930
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2089 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-01 14:45:10 +00:00
Jamis Buck
ca410998ab Encode multibyte characters correctly #1894
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2088 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-01 14:26:13 +00:00
Jamis Buck
dca4d4e86d Multipart messages specify a MIME-Version header automatically #2003 [John Long]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2038 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-22 23:53:04 +00:00
Jamis Buck
ae1e85200e Add a unified render method to ActionMailer (delegates to ActionView::Base#render)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2037 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-22 21:17:01 +00:00
Jamis Buck
516d920dc3 Fixture for tests in [2034]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-22 21:05:44 +00:00
Jamis Buck
f474f337b1 Move mailer initialization to a separate (overridable) method, so that subclasses may alter the various defaults #1727
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2035 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-22 20:53:27 +00:00
Jamis Buck
b13efaf985 Look at content-location header (if available) to determine filename of attachments #1670
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2034 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-22 20:43:43 +00:00
Jamis Buck
eda1719470 ActionMailer::Base.deliver(email) had been accidentally removed, but was documented in the Rails book #1849
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1958 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-31 08:26:32 +00:00
Jamis Buck
8b1b72bb0d Remove duplicated file contents
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-22 09:39:33 +00:00
David Heinemeier Hansson
bb62568cc3 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]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1849 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-17 09:27:02 +00:00
David Heinemeier Hansson
4259199c2c Made ready for release of 0.13.1
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1814 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-11 07:36:18 +00:00
David Heinemeier Hansson
0fe8e3d6c2 Added a config example in README #1626 [courtenay]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1788 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-09 17:18:01 +00:00
David Heinemeier Hansson
a0d31fcd81 Pegged the versions for release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-06 12:48:14 +00:00
Jamis Buck
bde3df2bec Correctly normalize newlines in outgoing emails before encoding the body [John Long]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1732 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-06 09:53:34 +00:00
David Heinemeier Hansson
2789b5d2ce Tuned documentation for release (AM)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-06 08:22:56 +00:00
Jamis Buck
e85369ed7a Added unit test to confirm that #1393 is fixed in HEAD
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-04 16:21:11 +00:00
Jamis Buck
06052cb34c Avoid adding nil values to mail headers #1392
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-04 16:11:22 +00:00
Jamis Buck
5c981528f2 Better multipart support with implicit multipart/alternative and sorting of subparts [John Long]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1586 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-01 20:43:40 +00:00
Jamis Buck
5ddffc8c24 Allow for nested parts in multipart mails #1570 [Flurin Egger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1581 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-01 13:17:44 +00:00
Jamis Buck
24a8cb1e56 Normalize line endings in outgoing mail bodies to "\n" #1536 [John Long]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1576 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-30 21:40:43 +00:00
Jamis Buck
813a8b9d2a Allow template to be explicitly specified #1448 [tuxie@dekadance.se]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1575 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-30 21:21:54 +00:00
Jamis Buck
3b4eb7aece Allow specific "multipart/xxx" content-type to be set on multipart messages #1412 [Flurin Egger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-24 12:15:45 +00:00
Jamis Buck
053cb22c17 Use the real charset for parts generated by a template, instead of the string "charset".
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1478 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-22 10:12:06 +00:00
Jamis Buck
996fa1526d Unquoted @ chars in received email headers are parsed properly in spite of RFC 822 (#1206)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1476 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-22 09:59:14 +00:00
Jamis Buck
ef141e8536 Updated CHANGELOG
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1447 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-16 11:40:00 +00:00
Jamis Buck
5ec990af9e Helper support for ActionMailer
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1446 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-16 11:39:29 +00:00
David Heinemeier Hansson
bdf51f9582 Revealed the man behind the mask!
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1443 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-16 06:46:22 +00:00
David Heinemeier Hansson
bca13f727e Changed test requests to come from 0.0.0.0 instead of 127.0.0.1 such that they don't trigger debugging screens on exceptions, but instead call rescue_action_in_public
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1415 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-14 08:04:49 +00:00
Jamis Buck
6cff8487ed Fixture for new test in [1395]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1396 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-08 10:29:17 +00:00
Jamis Buck
29d6d15fc3 Silently ignore Errno::EINVAL errors when converting between charsets. Some mail clients apprently send X-UNKNOWN to represent unknown charsets, and this caused the conversion to blow up.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-08 10:18:26 +00:00
Jamis Buck
5c2e0fe649 Add a test case for malformed email headers
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1391 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-06 16:47:20 +00:00
Jamis Buck
481d579734 Don't error while processing encoded attachment names #1340 [lon@speedymac.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-06 16:12:38 +00:00
Jamis Buck
cf1e2a84ff Handle parsing of recursively multipart messages
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-06 16:06:26 +00:00
Jamis Buck
508c26c0bb BCC headers are removed when sending via SMTP
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1387 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-06 09:32:52 +00:00
Jamis Buck
100fd72699 Added a "content_type" accessor to allow messages to explicitly specify a content-type other than "text/plain" (the default).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1382 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-03 10:57:06 +00:00
Jamis Buck
887497b0bb Don't apply a charset to attachments. Wrap base64-encoded lines.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1381 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-03 09:05:06 +00:00
Jamis Buck
19da52d69d Ignore Iconv::IllegalSequence errors when converting text #1341 [lon@speedymac.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1374 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-30 23:09:50 +00:00
Jamis Buck
359caef33c A very thorough refactoring, resulting in new mail property setters and support for attachments and multipart messages.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-29 16:36:22 +00:00
David Heinemeier Hansson
6ea6a725c4 Push to .org instead
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 16:42:47 +00:00
David Heinemeier Hansson
ee6882614f Step cautiously around subheaders in TMail #1285 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-10 15:30:18 +00:00
David Heinemeier Hansson
9c92867102 Fix attachments and content-type problems #1276 [Jamis Buck] 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]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1300 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-10 13:40:26 +00:00
David Heinemeier Hansson
483931ea61 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] Added unquoting even if the iconv lib can't be loaded--in that case, only the charset conversion is skipped #1265 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1290 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-06 10:39:00 +00:00
David Heinemeier Hansson
ea85fb6322 Missing test data
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 17:18:53 +00:00
David Heinemeier Hansson
a2eb744dfb Added automatic decoding of base64 bodies #1214 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1275 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 17:15:21 +00:00
David Heinemeier Hansson
74a612c4a1 Added that delivery errors are caught in a way so the mail is still returned whether the delivery was successful or not
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1272 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 15:03:13 +00:00
David Heinemeier Hansson
be27caf92d 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]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:21:54 +00:00
David Heinemeier Hansson
77af61be40 Added xml_http_request/xhr method for simulating XMLHttpRequest in functional tests #1151 [Sam Stephenson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 16:34:44 +00:00