Author jpic
Recipients Dain Dwarf, Windson Yang, barry, bortzmeyer, cnicodeme, jpic, kal.sze, msapiro, ned.deily, nicoe, r.david.murray, vstinner, xtreak
Date 2019-05-04.01:10:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAC6Op1-+91hsTBodQh-yn5ibKke8pOE=XKgRvKwcy4U8x+bFhg@mail.gmail.com>
In-reply-to <CAC6Op19ABTAPENh6P=PsXAPfdPxBV8a921HvunPvh1OGHhJ_bA@mail.gmail.com>
Content
The pull request has been updated to mimic net/mail's behavior rather than
trying to workaround user input.

Before:

    >>> email.message_from_string('From: a@malicious.org@important.com',
policy=email.policy.default)['from'].addresses
    (Address(display_name='', username='a', domain='malicious.org'),)

    >>> parseaddr('a@malicious.org@important.com')
    ('', 'a@malicious.org')

After:

    >>> email.message_from_string('From: a@malicious.org@important.com',
policy=email.policy.default)['from'].addresses
    (Address(display_name='', username='', domain=''),)

    >>> parseaddr('a@malicious.org@important.com')
    ('', 'a@')

I like what I saw under the hood, please feel free to hack me for other
tasks in the email stdlib.
History
Date User Action Args
2019-05-04 01:10:58jpicsetrecipients: + jpic, barry, vstinner, msapiro, ned.deily, r.david.murray, nicoe, kal.sze, Windson Yang, xtreak, cnicodeme, bortzmeyer, Dain Dwarf
2019-05-04 01:10:58jpiclinkissue34155 messages
2019-05-04 01:10:58jpiccreate