Paolo Barbolini
ed454819ee
Refactor pool module ( #636 )
...
* Move pool to it's own module
* pool: deprecate configuring the connection timeout
2021-06-13 14:36:47 +02:00
Alexis Mousset
47cad567b0
Prepare 0.10.0-rc.3 ( #629 )
v0.10.0-rc.3
2021-05-22 19:52:38 +02:00
Alexis Mousset
b0e2fc9bca
fix(transport-smtp): Fix transparency codec ( #627 )
...
It fails to add transparency when a period is preceded by two
successive CRLF.
Co-authored-by: Paolo Barbolini <paolo@paolo565.org >
2021-05-22 19:41:29 +02:00
Alexis Mousset
1d8249165c
Makes more things private and add missing docs ( #621 )
2021-05-19 18:51:03 +02:00
Alexis Mousset
98fc0cb2f3
Prepare 0.10.0-rc.2 ( #624 )
v0.10.0-rc.2
2021-05-18 18:12:10 +02:00
Alexis Mousset
0439bab874
fix(builder): Don't include Bcc headers in formatted messages ( #623 )
...
fixes #622
2021-05-18 18:03:20 +02:00
Alexis Mousset
504fc51b26
Prepare 0.10.0-rc.1 ( #620 )
v0.10.0-rc.1
2021-05-14 17:48:42 +02:00
Paolo Barbolini
d54343cf00
Remove Part from the public API ( #619 )
2021-05-14 17:27:03 +02:00
Alexis Mousset
904789ac3d
feat(builder): Add helper methods for attachments and text ( #618 )
2021-05-14 16:59:08 +02:00
Paolo Barbolini
94cae6df0d
Drop tokio 0.2 support ( #617 )
2021-05-12 19:09:30 +02:00
Alexis Mousset
f17dccc46d
builder: Fix Message-ID header ( #614 )
v0.10.0-beta.4
2021-05-04 18:45:29 +02:00
Paolo Barbolini
7e7f05eb45
Prepare 0.10.0-beta.4 ( #613 )
2021-05-04 18:31:55 +02:00
Paolo Barbolini
99df9e8d7c
Headers insert_raw -> append_raw, set_raw -> insert_raw ( #612 )
2021-05-04 18:19:21 +02:00
Paolo Barbolini
1b5109b6ac
Add docs to Headers ( #610 )
2021-05-02 11:10:04 +02:00
Alexis Mousset
a4be3c4cd8
Add InvalidHeaderName error ( #608 )
...
* Add InvalidHeaderName error
2021-05-01 22:00:33 +02:00
Paolo Barbolini
4586f2ad8a
Remove useless clones ( #609 )
2021-05-01 18:22:53 +02:00
Paolo Barbolini
31de9e508b
Replace hyperx Header and Headers with our own implementation ( #607 )
...
* Replace hyperx Header and Headers with our own implementation
* Remove utf8_b
* Add RFC 1522 encoder
* Fix most tests
* Throw away old tests
* Header encoding tests
* Fix slicing in the middle of a char
* Content-Disposition after rebase
* Fix the rest of the tests
* Fix useless clone clippy warnings
* Remove Headers::get_raw_mut
* HeaderName::new_from_ascii fallible API
* Tidy up HeaderName::new_from_ascii_str
* HeaderName::new_from_ascii(_str) tests
2021-05-01 13:27:00 +02:00
Paolo Barbolini
69334fe5eb
Replace the hyperx ContentDisposition header with our own implementation ( #601 )
2021-04-24 18:21:29 +02:00
Paolo Barbolini
2ad2444183
Replace the hyperx ContentLocation header with our own implementation ( #603 )
2021-04-24 18:00:36 +02:00
Paolo Barbolini
8afa442e93
Add missing doc(cfg(..)) attributes ( #604 )
2021-04-20 19:09:28 +02:00
Paolo Barbolini
486e0f9d50
Replace hyperx ContentType header with our own implementation ( #598 )
...
* Replace hyperx ContentType header with our own implementation
* Let's not forget ContentTypeErr
* Adress code review comment
2021-04-08 08:40:07 +00:00
Paolo Barbolini
acc4ff4898
Replace hyperx Date header with our own implementation ( #597 )
2021-04-08 07:55:20 +02:00
Paolo Barbolini
1728d57c34
Stop using the uuid crate for generating the Message-Id ( #602 )
2021-04-07 18:38:56 +00:00
Alex Wennerberg
53bfb65423
Replace rand with fastrand ( #600 )
...
We don't need cryptographically secure random numbers, this simplifies
the dependency tree and speeds up builds.
2021-04-06 21:32:43 +02:00
Paolo Barbolini
61b08814c9
Avoid useless allocations while formatting headers ( #599 )
2021-04-06 17:02:37 +00:00
Paolo Barbolini
0e74042b4e
Convert String Body line-endings to CRLF ( #588 )
2021-04-01 12:29:51 +02:00
Paolo Barbolini
29affe9398
Seal header contents ( #591 )
2021-04-01 12:18:38 +02:00
Jupp56
b10f6ff8de
Fix: example does not compile ( #592 )
...
A missing simple string conversion prevented the example code from compiling.
2021-03-31 12:14:49 +02:00
Paolo Barbolini
2002a9d75a
tls: use rustls if both native-tls and rustls-tls are enabled ( #586 )
...
Co-authored-by: Alexis Mousset <contact@amousset.me >
2021-03-30 09:06:26 +00:00
Paolo Barbolini
1193e1134d
Bump MSRV to 1.46.0 ( #587 )
2021-03-30 08:40:05 +00:00
Alexis Mousset
7c6ade7afe
Add a get started doc for transports ( #577 )
...
* Add a get started doc for transports
This will help users not familiar with email infrastructure.
2021-03-19 08:34:13 +00:00
Paolo Barbolini
3bc729ca64
Remove MockStream and all internal uses of it ( #580 )
...
Co-authored-by: Alexis Mousset <contact@amousset.me >
2021-03-19 08:20:05 +00:00
Paolo Barbolini
f041c00df7
Fix a few clippy warnings ( #579 )
2021-03-19 08:03:41 +00:00
Alexis Mousset
fe8dc4967d
Prepare 0.10.0-beta.3 ( #578 )
v0.10.0-beta.3
2021-03-18 20:28:02 +00:00
Paolo Barbolini
137566a4e4
Improve docs in lib.rs ( #574 )
...
* Improve docs in lib.rs
* Typos
2021-03-18 08:02:21 +00:00
Paolo Barbolini
216c612931
Fix missing re-export of AsyncSmtpTransport when using async-std1 feature ( #573 )
2021-03-17 06:52:57 +00:00
Paolo Barbolini
a429a24913
Add missing Debug implementations ( #570 )
2021-03-14 10:17:07 +01:00
Paolo Barbolini
648bf2b2f6
chore: remove some uses of * ( #569 )
2021-03-14 09:22:59 +01:00
Alexis Mousset
509a623a27
feat(transport): Seal file and sendmail error types ( #567 )
2021-03-14 07:42:52 +00:00
Paolo Barbolini
a681c6b49d
Remove From implementations on Error for file and sendmail transport ( #566 )
2021-03-13 17:41:44 +00:00
Alexis Mousset
22efe341fe
feat(builder): Seal SMTP error type ( #564 )
...
* feat(builder): Seal SMTP error type
* More precise error types
2021-03-13 17:15:21 +00:00
Paolo Barbolini
97fba6a47e
docs: improve docs for lettre::transport ( #565 )
2021-03-13 16:03:05 +00:00
Paolo Barbolini
f7066ac858
Fix various parts of the docs ( #563 )
2021-03-12 20:02:31 +01:00
Alexis Mousset
9379f2e328
Prepare 0.10.0-beta.2
v0.10.0-beta.2
2021-03-10 21:56:00 +00:00
Paolo Barbolini
05133a7102
Test using all supported async executors
2021-03-08 13:23:27 +01:00
Paolo Barbolini
d7d05bf48a
Update deprecated imports
2021-03-08 10:59:28 +01:00
Paolo Barbolini
34ac265d60
Remove deprecated executor methods
2021-03-08 10:59:28 +01:00
Hari Konomi
bbf56de83d
feat(transport-smtp): Call conn.quit() when pooled conns are released ( #559 )
...
* Implement CustomizeConnection::on_release() for SmtpConnection
2021-03-05 19:02:01 +01:00
Alexis Mousset
b594945695
Prepare 0.10.0-beta.1 ( #555 )
v0.10.0-beta.1
2021-02-27 16:54:32 +00:00
Paolo Barbolini
5c83120986
Executor refactor ( #545 )
...
* Executor
* Move transports inside the transport module
* AsyncTransport refactor
* Update examples
* Update docs
* impl Default for AsyncSendmailTransport
* Implement AsyncFileTransport::read
* Generalize AsyncFileTransport AsyncTransport implementation
* Remove remaining uses of AsyncSmtpConnector
2021-02-27 16:36:59 +00:00