Net::SMTP open_message and send_message always require from_addr, *to_addrs
The openmessage and sendmessage methods for Net::SMTP each require a fromaddr argument and at least one toaddr 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 openmessage or sendmessage.
I think the preferred behavior would be to have fromaddr be an optional argument, and only check whether fromaddr 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)