Alexis Mousset
648cf4ce5e
Prepare 0.10.0-alpha.4 release
2020-11-11 17:18:02 +01:00
Alexis Mousset
4a9d4fbf7e
fix(transport-sendmail): Capture sendmail stderr to make possible to debug
2020-11-11 17:14:58 +01:00
Alexis Mousset
a0da9fc2b9
fix(transport-sendmail): Only pass -f option to sendmail when needed
2020-11-11 17:14:58 +01:00
Alexis Mousset
aa31e4fff6
fix(transport-sendmail): Stop argument parsing before destination addresses
2020-11-11 17:14:58 +01:00
Paolo Barbolini
b187885e70
Upgrade to nom 6
2020-11-02 10:00:45 +01:00
Manuel Pelloni and Paolo Barbolini
0de49c000c
Refactor CI configuration and fix building with some combination of features ( #494 )
...
* 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 >
2020-10-29 21:08:29 +01:00
Benjamin Beckwith
13b48b656d
Replace unwrap in doc examples ( #491 )
...
Replace any `unwrap` calls in documentation examples by `?` per
the guidance here:
https://rust-lang.github.io/api-guidelines/documentation.html#examples-use--not-try-not-unwrap-c-question-mark
2020-10-23 08:17:39 +00:00
Manuel Pelloni
2ac6a72a8e
chore(all): Remove rarely used top level re-exports
2020-10-21 22:08:56 +02:00
Alexis Mousset
f1e86c809d
chore(all): Prepare 0.10.0-alpha.3 release
2020-10-21 22:08:56 +02:00
Manuel Pelloni
0b8d5d20ad
Refactor address module and move Envelope into it ( #488 )
2020-10-21 17:44:51 +02:00
Paolo Barbolini
313eb74ea5
Fix MSRV in docs
2020-10-20 09:31:27 +02:00
ghizzo01
6afc078545
Avoid boxing the rustls stream ( #486 )
2020-10-19 21:21:22 +02:00
Paolo Barbolini
697da9f7db
Tokio 0.3 support ( #485 )
...
* 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
2020-10-19 10:07:36 +02:00
Paolo Barbolini
1ea562b15a
Stop exposing internal encoder implementation
2020-10-13 23:52:45 +02:00
Paolo Barbolini
b43c69af47
Allow changing defaults for the connection pool configuration
2020-10-13 09:33:00 +02:00
RotationMatrix
449f317246
Add doc_cfg attributes ( #483 )
...
* docs(Cargo.toml): Add `cfg(docsrs)` to `rustdoc` args
* docs(all): Enable doc_cfg crate feature
* docs(transport): Add doc_cfg to Transport traits
* docs(all): Add doc_cfg to public modules
* docs(transport-async): Add doc_cfg to Tokio02Connector
* docs(transport-smtp): Add doc_cfg to Smtp Error
* docs(transport-smtp): Add doc_cfg to TlsParameters
2020-10-13 09:18:41 +02:00
Paolo Barbolini
17d644181a
Fix building with no default features
2020-10-13 09:10:46 +02:00
Paolo Barbolini
583df6af18
Fix Rust 2018 Idioms
2020-10-13 09:03:32 +02:00
Paolo Barbolini
ed9ca92de8
Bump our MSRV to 1.45.2
2020-10-13 09:03:32 +02:00
Paolo Barbolini
6526eff5b2
Allow configuring a custom root certificate in TlsParametersBuilder
2020-10-04 10:17:09 +02:00
dvermd
e00eff8b2a
Implement From for Credentials
2020-10-02 08:52:56 +02:00
Alexander Jackson
5beef57c18
fix(email): Make doctest rustc-1.40 compatible
2020-09-29 19:48:10 +02:00
Alexander Jackson
b10b04ada8
docs(email): Add doctests/examples
...
Add doctests/examples for `Address`, `Mailbox`, `Mailboxes` and
`Envelope`.
2020-09-29 19:48:10 +02:00
Paolo Barbolini
30a8797acf
Add TlsParametersBuilder with dangerous options
2020-09-23 19:18:24 +02:00
Julien Blatecky
c5fef28ac9
Add Content-ID header for attachments
2020-09-23 19:17:34 +02:00
Paolo Barbolini
bf32554e51
chore: fix unused mut warning
2020-09-09 13:12:26 +02:00
Paolo Barbolini
e156520feb
clippy: fix warnings in tests
...
Makes running 'cargo clippy --all-features --tests' work
2020-09-09 13:12:26 +02:00
Paolo Barbolini
ec7d63c8de
chore: AsRef is part of Rust's prelude
2020-09-09 13:12:26 +02:00
Paolo Barbolini
e5460c4ba1
Implement Clone for SendmailTransport
2020-09-09 13:12:26 +02:00
Paolo Barbolini
d2912a3e3f
fix: Default impl for SendmailTransport
2020-09-09 13:12:26 +02:00
Alexis Mousset
990de687aa
chore(all): Prepare 0.10.0-alpha.2 release
2020-09-09 09:53:54 +02:00
Alexis Mousset
31a3be1cba
run cargo fmt
2020-09-09 09:46:53 +02:00
Alexis Mousset
47dfdf7ee8
Add back removed examples
2020-09-09 09:46:53 +02:00
Manuel Pelloni and Paolo Barbolini
47c4077b14
Improve documentation
...
Co-authored-by: Paolo Barbolini <paolo@paolo565.org >
2020-09-09 09:46:53 +02:00
Manuel Pelloni
8869c7fdb4
Remove no_run from examples
2020-09-09 09:46:53 +02:00
Manuel Pelloni
3cf89935af
Improve documentation
2020-09-09 09:46:53 +02:00
Paolo Barbolini
f87c80e05c
Update rustdoc html_favicon_url to use the new lettre.rs domain
2020-09-08 22:48:37 +02:00
Paolo Barbolini
1c4a3f0fb3
chore: remove SmtpClient from the public API
...
We don't provide a method to construct it anyway, so it doesn't make sense
to expose it.
2020-09-08 22:48:37 +02:00
Paolo Barbolini
393d414700
Improve documentation for SmtpTransport methods
2020-09-08 22:48:37 +02:00
Paolo Barbolini
a83f927109
pool: document pool defaults
2020-09-08 21:49:09 +02:00
Paolo Barbolini
c59f67d808
pool: use better defaults
...
* increases the max_size to r2d2' default of 10
* decreases the min_idle number of connections to 0 (was equal to max_size before)
* decreases the idle timeout from 10 minutes to 1 minute
2020-09-08 21:49:09 +02:00
Paolo Barbolini
69d48c4be7
Don't require Transport::{Ok, Error} to inherit specific traits
2020-09-07 22:35:46 +02:00
Paolo Barbolini
04b42879b0
refactor: optimize parts of the code
...
Uses the much faster `slice::is_ascii` implementation and avoids copying `v` in `utf8_b.rs`
2020-09-01 15:36:27 +02:00
Paolo Barbolini
542ea4ffd2
refactor(logging): move from log to tracing
2020-08-28 12:36:58 +02:00
Alexis Mousset
41d68616e0
Remove ClientId::new_domain
2020-08-28 11:56:22 +02:00
Alexis Mousset
36aab20086
Mark ClientId::new as deprecated
2020-08-28 11:56:22 +02:00
Alexis Mousset
98f09117f7
fix(transport-smtp): Use 127.0.0.1 literal as EHLO parameter when we have no hostname
...
Also fix formatting of address literals
Comes from https://github.com/async-email/async-smtp/commit/2275fd8d13e39b2c58d6605c786ff06ff9e05708
with a different approach for default value.
2020-08-28 11:56:22 +02:00
Paolo Barbolini
c0ef9a38a1
Implement async smtp via tokio 0.2
2020-08-22 18:44:36 +02:00
Paolo Barbolini
694a6d2852
Optimize Address implementation
...
This reduces the mem::size_of::<Address>() from 72 to 32 and removes
two heap allocations of String when constructing a new instance of Address.
2020-08-22 15:29:11 +02:00
Manuel Pelloni
f865fc1bce
Implement creating SmtpTransport using STARTTLS
2020-08-19 12:12:59 +02:00