[#106355] [Ruby master Bug#18373] RBS build failure: '/include/x86_64-linux/ruby/config.h', needed by 'constants.o'. — "vo.x (Vit Ondruch)" <noreply@...>
Issue #18373 has been reported by vo.x (Vit Ondruch).
28 messages
2021/12/01
[ruby-core:106482] [Ruby master Feature#17047] Support parameters for MAIL FROM and RCPT TO
From:
"tommy (Masahiro Tomita)" <noreply@...>
Date:
2021-12-04 12:48:18 UTC
List:
ruby-core #106482
Issue #17047 has been updated by tommy (Masahiro Tomita).
How about this: https://github.com/ruby/net-smtp/pull/34
For example, to send `MAIL FROM:<sender@example.com> size=12345`:
```
smtp.mailfrom(Address.new("sender@example.com", size: 12345))
```
----------------------------------------
Feature #17047: Support parameters for MAIL FROM and RCPT TO
https://bugs.ruby-lang.org/issues/17047#change-95140
* Author: c960657 (Christian Schmidt)
* Status: Open
* Priority: Normal
----------------------------------------
## Proposal
In `Net::SMTP`, add support for parameters for `MAIL FROM` and `RCPT TO`, such as [SMTPUTF8](https://tools.ietf.org/html/rfc6531) and [REQUIRETLS](https://tools.ietf.org/html/rfc8689).
I suggest extending `Net::SMTP#mailfrom` and `Net::SMTP#rcpto` so they accept an additional optional Array or Hash of parameters.
For `Net::SMTP#send_message` and `Net::SMTP#open_message_stream`, I suggest that in addition to a String email address (or arrays of Strings), these methods should accept a pair (or arrays of pairs) of `[addr, params]`, where `addr` is the String email address, and `params` is an Array or Hash of parameters.
In order for the parameters to be useful, we should expose the capabilities reported by `EHLO`, so `capable?` should be made public.
Pull request: https://github.com/ruby/ruby/pull/3359
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>