ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: merch-redmine@jeremyevans.net
To: ruby-core@ruby-lang.org
Subject: [ruby-core:103442] [Ruby master Bug#17800] Cannot disable SMTP TLS through mail library
Date: Tue, 13 Apr 2021 21:30:38 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-91534.20210413213037.19316@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-17800.20210413191452.19316@ruby-lang.org

Issue #17800 has been updated by jeremyevans0 (Jeremy Evans).

Status changed from Open to Third Party's Issue

Looks like you are referring to the mail gem, which is not part of Ruby itself: https://github.com/mikel/mail/blob/8fbb17d4d5364c77cc870769d451bc2739b3a8ce/lib/mail/network/delivery_methods/smtp.rb#L112

You could try submitting an issue to that project: https://github.com/mikel/mail/issues

----------------------------------------
Bug #17800: Cannot disable SMTP TLS through mail library
https://bugs.ruby-lang.org/issues/17800#change-91534

* Author: MarkTheStrange (Mark Reed)
* Status: Third Party's Issue
* Priority: Normal
* ruby -v: ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-darwin19]
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------

Net::SMTP now defaults to automatic TLS; the **mail** interface hasn't been updated to reflect this. It will turn TLS on or to automatic if requested, but has no way to turn it off if requested, because it assumes that it defaults to off in Net::SMTP.

The **build_smtp_session** method should probably call both  **smtp.disable_tls**  and s **mtp.disable_starttls** before checking its parameters to see if it needs to turn either of those back on.




-- 
https://bugs.ruby-lang.org/

      reply	other threads:[~2021-04-13 21:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-13 19:14 [ruby-core:103438] [Ruby master Bug#17800] Cannot disable TLS through mail library markjreed
2021-04-13 21:30 ` merch-redmine [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-91534.20210413213037.19316@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).