Rely on a generic transport trait and allow passing in one. This
will enable use cases where we don't have a real Tokio TCP stream,
or have to bind a specific source address before establishing
the connection.
In contexts where FIPS certification is mandatory, having the
ability to use the certified boring TLS library is sometimes necessary.
Added initial support for it, only one TLS toolkit can be enabled at
one time.
This adds a `local_address: Option<IpAddr>` parameter to the synchronous, and tokio connect functions.
(As far as I can see there is no current way to support this in async-std, because the library doesn't provide any way to do an async connect for an existing socket)
* Add async-std support to smtp transport
* fix Tls import
* fix copy paste
* too many imports
* Temporarely skip async-std native-tls support
* Fix panic message
* TlsParameters: use rustls when async-std is enabled
* Wip CI refactor, Fix cargo hack test --each-feature
* CI Refactor
* Update .github/workflows/test.yml
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
* Update .github/workflows/test.yml
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
* Update .github/workflows/test.yml
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
* Update .github/workflows/test.yml
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
* Update .github/workflows/test.yml
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
* Update .github/workflows/test.yml
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
* Update .github/workflows/test.yml
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
* Update src/transport/stub/mod.rs
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
* Adress code review comment
* Update .github/workflows/test.yml
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
* Adress review comment
* Add necessary sudo command to install postfix
* Set the action name which setup the cache to Setup cache
* Fix delimiter error
* Fix cargo hack test --each-feature
* Remove blanks before no_run
* Remove useless # before imports in doc tests
* Add builder as required feature for all the examples
* Remove blanks before no_run
* Add builder to the test cfg
* Fix building with tokio03-rustls-tls
* Minor improvements
* Use cargo hack only for check in stable
* Improve chache key
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
* Tokio 0.3 support
* Tokio 0.3 TLS support
* Tokio 0.3 sendmail transport
* Tokio 0.3 file transport
* Forgotten re-exports
* Tokio 0.3 examples
* fix tokio 0.2 file-transport
* It works
* Update dependencies (#386)
* Update dependencies and set MSRV to 1.40
* update hyperx
* Use display instead of description for errors
* Make hostname an optional feature
* Envelope from headers
* Update hyperx to 1.0
* rename builder to message
* Cleanup and make Transport send Messages
* Update rustls from 0.16 to 0.17
* Move transports into a common folder
* Merge imports from same crate
* Add message creation example to the site
* Hide "extern crate" in doc examples
* Add References and In-Reply-To methods
* Add message-id header
* Add blog posts and improve doc examples