[#23231] What do you think about changing the return value of Kernel#require and Kernel#load to the source encoding of the required file? — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>

Dear Ruby developers and users!

8 messages 2009/04/17

[#23318] [Feature #1408] 0.1.to_r not equal to (1/10) — Heesob Park <redmine@...>

Feature #1408: 0.1.to_r not equal to (1/10)

19 messages 2009/04/26

[ruby-core:23112] [Feature #1349] Net::SMTP open_message and send_message always require from_addr, *to_addrs

From: Steve Jorgensen <redmine@...>
Date: 2009-04-03 18:54:59 UTC
List: ruby-core #23112
Feature #1349: Net::SMTP open_message and send_message always require from_addr, *to_addrs
http://redmine.ruby-lang.org/issues/show/1349

Author: Steve Jorgensen
Status: Open, Priority: Normal

The open_message and send_message methods for Net::SMTP each require a from_addr argument and at least one to_addr argument in all cases, even though these values may already be contained in headers in the message stream.

This becomes an issue when, for instance, a batch of message streams has been written to .eml files, and we now just want to send them.  Currently, we have to parse the headers of each message to retrieve the e-mail addresses to pass the values as argument to open_message or send_message.

I think the preferred behavior would be to have from_addr be an optional argument, and only check whether from_addr and to_addr values are needed after the message header lines have been read and found not to include the values.

(Sorry - I posed this first at rubyforge.org before noticing the admonishment not to report bugs there)


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next