Skip to content

smtplib's SMTP.connect() should store the server name in ._host for .starttls() #70039

@wking

Description

@wking
mannequin
BPO 25852
Nosy @warsaw, @tiran, @bitdancer, @wking
Files
  • 0001-smtplib-Set-SMTP._host-in-.connect.patch: Patch shifting the _host save from SMTP.init to SMTP.connect
  • issue25852.diff
  • issue25852_v2.patch: Alternative patch
  • issue25852_v3_with_tests.patch: Alternative updated patch with unit test
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/bitdancer'
    closed_at = None
    created_at = <Date 2015-12-12.22:59:22.447>
    labels = ['3.7', 'type-bug', 'library', 'expert-email']
    title = "smtplib's SMTP.connect() should store the server name in ._host for .starttls()"
    updated_at = <Date 2017-09-07.02:07:21.156>
    user = 'https://github.com/wking'

    bugs.python.org fields:

    activity = <Date 2017-09-07.02:07:21.156>
    actor = 'christian.heimes'
    assignee = 'r.david.murray'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)', 'email']
    creation = <Date 2015-12-12.22:59:22.447>
    creator = 'labrat'
    dependencies = []
    files = ['41291', '41293', '42067', '44495']
    hgrepos = []
    issue_num = 25852
    keywords = ['patch']
    message_count = 5.0
    messages = ['256299', '256305', '261151', '275054', '275297']
    nosy_count = 6.0
    nosy_names = ['barry', 'christian.heimes', 'r.david.murray', 'SilentGhost', 'labrat', 'gigaplastik']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue25852'
    versions = ['Python 2.7', 'Python 3.6', 'Python 3.7']

    Linked PRs

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytopic-emailtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions