* BREAKING: Drop Python 3.8 support
* Bugfix: Run socket.getfqdn in thread to avoid blocking event loop if local_hostname not provided (thanks @Raidzin)
* Bugfix: Clear connect lock on connection lost, allowing client reconnect
* Bugfix: Allow socket connections to use TLS by providing hostname and use_tls=True
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiosmtplib?expand=0&rev=27
* Bugfix: Type of "send" is partially unknown with pyright
* Bugfix: Fix asyncio deadlock trying to reconnect after error
* Change: Switched from Poetry to build/hatch/twine for packaging.
- Skip test_live and test_tls tests when running testsuite
- Switch package to modern Python Stack on SLE-15
* Use Python 3.11 on SLE-15 by default
* Drop support for older Python versions
- Switch build system from setuptools to pyproject.toml
* Add python-pip and python-wheel to BuildRequires
* Replace %python_build with %pyproject_wheel
* Replace %python_install with %pyproject_install
- Limit Python files matched in %files section
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiosmtplib?expand=0&rev=25
- update to 3.0.1:
* Bugfix: 'Future exception was never retrieved' warning in
SMTPProtocol after successful connection close and garbage
collection.
* Cleanup: Updated FlowControlMixin logic from stdlib
are keyword only.
* **BREAKING**: Passing ``source_address`` as a string argument
is now an error. ``source_address`` takes a (addr, port)
tuple that is used as the ``local_addr`` param of
``asyncio.create_connection``, allowing for binding
to a specific IP. The ``local_hostname`` argument takes the
value to be sent to the server with the EHLO/HELO message
(which is what ``source_address`` was used for prior to 2.0).
* Change: don't use timeout value passed to ``connect``
everywhere, only for the initial connection
* Change: removed unnecessary connection lost callback
* Change: revised handling for 'Future exception was never
retrieved' warnings in protocol
- Update to v2.0.0
- remove failing_smtpd_tests.patch: not needed
* Fix SMTPNotSupported error with UTF8 sender/recipient names
OBS-URL: https://build.opensuse.org/request/show/1126230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aiosmtplib?expand=0&rev=11
- 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)
OBS-URL: https://build.opensuse.org/request/show/1035265
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aiosmtplib?expand=0&rev=8
- 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)
OBS-URL: https://build.opensuse.org/request/show/1035109
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiosmtplib?expand=0&rev=16