Overview

Request 1035265 accepted

- Update to v2.0.0
* BREAKING: Drop Python 3.5 and 3.6 support.
* BREAKING: On connect, if the server supports STARTTLS, automatically try to upgrade the connection.
STARTTLS after connect can be turned on or off explicitly by passing start_tls=True or start_tls=False respectively.
* BREAKING: Remove deprecated loop keyword argument for the SMTP class.
* Change: The source_address argument now takes a (addr, port) tuple that is passed as the local_addr param to asyncio.create_connection,
allowing for binding to a specific IP. The new local_hostname argument that takes the value to be sent to the server with the EHLO/HELO message.
This behaviour more closely matches smtplib.
* In order to not break existing usage, passing a string instead of a tuple to source_address will give a DeprecationWarning,
and use the value as it if had been passed for local_hostname.
* Thanks @rafaelrds and @davidmcnabnz for raising and contributing work on this issue.
* Bugfix: the mail_options and rcpt_options arguments to the send coroutine no longer cause errors
* Cleanup: Refactored SMTP parent classes to remove complex inheritance structure.
* Cleanup: Switched to asyncio.run for sync client methods.
* Cleanup: Don't use private email.message.Message policy attribute (instead, set an appropriate policy based on message class)
- Update to v1.1.7
* Security: Fix a possible injection vulnerability (a variant of https://consensys.net/diligence/vulnerabilities/python-smtplib-multiple-crlf-injection/)
* Note that in order to exploit this vulnerability in aiosmtplib, the attacker would need control of the hostname or source_address parameters.
Thanks Sam Sanoop @ Snyk for bringing this to my attention.
* Bugfix: include CHANGLOG in sdist release
* Type hints: fix type hints for async context exit (credit @JelleZijlstra)

Request History
Markéta Machová's avatar

mcalabkova created request

- Update to v2.0.0
* BREAKING: Drop Python 3.5 and 3.6 support.
* BREAKING: On connect, if the server supports STARTTLS, automatically try to upgrade the connection.
STARTTLS after connect can be turned on or off explicitly by passing start_tls=True or start_tls=False respectively.
* BREAKING: Remove deprecated loop keyword argument for the SMTP class.
* Change: The source_address argument now takes a (addr, port) tuple that is passed as the local_addr param to asyncio.create_connection,
allowing for binding to a specific IP. The new local_hostname argument that takes the value to be sent to the server with the EHLO/HELO message.
This behaviour more closely matches smtplib.
* In order to not break existing usage, passing a string instead of a tuple to source_address will give a DeprecationWarning,
and use the value as it if had been passed for local_hostname.
* Thanks @rafaelrds and @davidmcnabnz for raising and contributing work on this issue.
* Bugfix: the mail_options and rcpt_options arguments to the send coroutine no longer cause errors
* Cleanup: Refactored SMTP parent classes to remove complex inheritance structure.
* Cleanup: Switched to asyncio.run for sync client methods.
* Cleanup: Don't use private email.message.Message policy attribute (instead, set an appropriate policy based on message class)
- Update to v1.1.7
* Security: Fix a possible injection vulnerability (a variant of https://consensys.net/diligence/vulnerabilities/python-smtplib-multiple-crlf-injection/)
* Note that in order to exploit this vulnerability in aiosmtplib, the attacker would need control of the hostname or source_address parameters.
Thanks Sam Sanoop @ Snyk for bringing this to my attention.
* Bugfix: include CHANGLOG in sdist release
* Type hints: fix type hints for async context exit (credit @JelleZijlstra)


Dominique Leuenberger's avatar

dimstar_suse added openSUSE:Factory:Staging:adi:17 as a reviewer

Being evaluated by staging project "openSUSE:Factory:Staging:adi:17"


Dominique Leuenberger's avatar

dimstar_suse accepted review

Picked "openSUSE:Factory:Staging:adi:17"


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Saul Goodman's avatar

licensedigger accepted review

ok


Dominique Leuenberger's avatar

dimstar accepted review


Dominique Leuenberger's avatar

dimstar_suse accepted review

Staging Project openSUSE:Factory:Staging:adi:17 got accepted.


Dominique Leuenberger's avatar

dimstar_suse approved review

Staging Project openSUSE:Factory:Staging:adi:17 got accepted.


Dominique Leuenberger's avatar

dimstar_suse accepted request

Staging Project openSUSE:Factory:Staging:adi:17 got accepted.

openSUSE Build Service is sponsored by