Paolo Barbolini
b3b5df285a
Bump idna to 0.3 ( #816 )
2022-09-09 07:38:59 +00:00
Tom Dryer
3c051d52e7
Remove dependency on regex crate ( #815 )
...
Replace implementation of DKIM body canonicalization to remove
dependency on the `regex` crate.
Fixes #768 .
2022-08-22 09:44:10 +02:00
André Cruz
d6128a146e
use a generic transport trait for async connections ( #805 )
...
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.
2022-07-27 09:40:13 +02:00
André Cruz
fab6680150
Fix clippy warnings ( #807 )
...
Depending on the features chosen these attributes were left
unused.
2022-07-25 18:00:17 +02:00
Paolo Barbolini
0c9fc6cb71
Prepare 0.10.1 ( #804 )
v0.10.1
2022-07-20 10:44:55 +02:00
Paolo Barbolini
2228cbdf93
Fix SMTP dot stuffing ( #803 )
2022-07-19 23:20:44 +02:00
André Cruz
17c95b0fa8
Ensure connection is closed on abort ( #801 )
...
When aborting a connection, ensure the underlying stream is closed
before we return.
2022-07-19 21:13:51 +02:00
Paolo Barbolini
62725af00a
Improve TlsVersion docs and remember to re-export it ( #800 )
2022-07-18 07:40:46 +00:00
André Cruz
758bf1a4a7
Configurable minimum TLS version ( #799 )
...
Added support for configuring the minimum accepted TLS version. The
supported versions differ between TLS toolkits.
2022-07-17 13:11:14 +02:00
Paolo Barbolini
054c79f914
Document the boring-tls features in lib.rs ( #798 )
2022-07-16 09:45:44 +00:00
André Cruz
985fa7edc4
Add support for boring TLS ( #797 )
...
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.
2022-07-16 11:28:14 +02:00
Paolo Barbolini
9004d4ccc5
Add documentation to undocumented items ( #793 )
v0.10.0
2022-06-29 22:44:29 +02:00
Paolo Barbolini
10171f8c75
Prepare 0.10.0 release ( #538 )
2022-06-29 21:17:37 +02:00
Paolo Barbolini
99e805952d
Make it possible to keep the Bcc header when building a message ( #792 )
2022-06-29 21:08:27 +02:00
Paolo Barbolini
2d21dde5a1
Add autoconfigure.rs example ( #787 )
2022-06-17 06:35:07 +00:00
Paolo Barbolini
6fec936c0c
Remove useless vec! allocations ( #786 )
2022-06-16 18:17:19 +00:00
Paolo Barbolini
22dfa5aa96
MessageBuilder: improve order headers are defined in ( #783 )
2022-06-16 17:53:54 +00:00
Paolo Barbolini
44e4cfd622
clippy: make rules stricter ( #784 )
2022-06-16 19:42:13 +02:00
Paolo Barbolini
7ea3d38a00
Mailboxes: add FromIterator impl and optimize Extend impl ( #782 )
2022-06-11 18:18:55 +00:00
Paolo Barbolini
73b89f5a9f
clippy: fix latest warnings ( #781 )
2022-06-11 16:31:12 +00:00
Paolo Barbolini
1ec1b705c9
Prepare 0.10.0-rc.7 ( #777 )
v0.10.0-rc.7
2022-06-04 11:47:50 +02:00
Paolo Barbolini
e4006518fe
Stop using the regex crate for parsing addresses ( #776 )
2022-06-03 13:39:57 +00:00
Paolo Barbolini
b33dd562fc
Fix and improve header wrapping ( #774 )
...
Instead of injecting spaces to ensure that lines stay under 76 characters only wrap at whitespace characters. This avoids changing the headers.
A best-effort to keep lines under 76 characters is still done, however it is only done at whitespace. Notably there is no hard wrap enforced. This means that it is possible for headers to break the 1000 character line-length limit in the specification. It is just hoped that the receiver will allow long lines in this case.
Closes #688
Co-authored-by: Kevin Cox <kevincox@kevincox.ca >
2022-06-03 15:24:53 +02:00
Paolo Barbolini
65958df14f
Use pretty_assertions for all message tests ( #775 )
2022-06-02 12:20:06 +00:00
James Hillyerd
50628af5fd
README.md: Use IPv4 notation for localhost ( #771 )
2022-05-30 17:20:51 +00:00
Paolo Barbolini
cf858cc682
Move most email body encoding to email-encoding ( #769 )
2022-05-30 15:12:42 +00:00
Paolo Barbolini
f9a4b5ba89
Work around async-global-executor bumping MSRV too early ( #773 )
2022-05-30 15:01:40 +00:00
Jacob Halsey
1391a834ce
#715 : Support setting the local IP address to connect from ( #762 )
...
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)
2022-05-29 07:05:39 +00:00
André Cruz
e6b4529896
use email_address crate for checking formats ( #763 )
...
The email_address crate is more strict in validating user and domain
parts of email addresses. For example, it verifies the total size
of the local part, which the current method does not, and this has
caused upstream servers to fail to accept an email.
2022-05-26 19:21:14 +02:00
Kevin Cox
ca5cb3f8f7
Fix encoded header signing. ( #765 )
...
The header needs to be properly formatted so that Unicode characters are encoded the same way they will be in the final message. Previously the logical header value was being encoded.
A notable example is that a `'` in the `To:` header needs to be encoded. This was being encoded incorrectly.
2022-05-26 07:44:14 +02:00
Kevin Cox
1e2279457e
Add editorconfig file. ( #766 )
...
Makes it easy for everyone to use the preferred settings.
https://editorconfig.org/
2022-05-18 13:07:38 +00:00
Kevin Cox
961364cc29
Remove unnecessary clone. ( #767 )
...
This is backwards-incompatible but hopefully is an acceptable change for a pre-release. The upgrade path is straight forward.
2022-05-18 10:51:02 +02:00
Paolo Barbolini
b0db759e5f
Prepare 0.10.0-rc.6 ( #761 )
v0.10.0-rc.6
2022-04-29 15:59:36 +02:00
Paolo Barbolini
5daf5d397a
Fix parsing Mailboxes with a comma in the name ( #760 )
2022-04-26 12:18:12 +02:00
Paolo Barbolini
3f1647fa48
Bump dependencies ( #759 )
2022-04-25 09:17:58 +00:00
Paolo Barbolini
fd106d9b0c
Bump rsa crate to the final 0.6.0 release ( #758 )
2022-04-14 09:39:30 +00:00
Vincent Breitmoser
c1d37d54b4
Use +0000 timezone format in Date header ( #756 )
...
Since the Date we emit is UTC, it's correct to use "+0000". The
previously used -0000 timezone indicator means "no timezone info".
2022-04-10 08:34:50 +02:00
David Krasnitsky
efa0d58778
Improve compiler error messages ( #754 )
2022-04-07 05:03:28 +00:00
Paolo Barbolini
9567b23f4d
Prepare 0.10.0-rc.5 ( #750 )
v0.10.0-rc.5
2022-04-02 10:21:38 +02:00
Paolo Barbolini
f77376fa19
Update to released email-encoding crate ( #749 )
2022-04-02 08:10:25 +00:00
Paolo Barbolini
6e35b9b30d
Bump RustCrypto crates ( #748 )
2022-04-02 07:55:36 +00:00
Sven-Hendrik Haase
c24213c850
Add message logging to StubTransport ( #744 )
...
This makes it more useful as a testing tool as it now allows you to retrieve
all messages sent via this transport.
2022-03-25 08:22:47 +01:00
fluentpwn
8b40e438fd
Year update ( #725 )
2022-03-24 06:06:24 +00:00
Paolo Barbolini
e1462b2d1b
Bump MSRV to 1.56 - Edition 2021 ( #745 )
2022-03-24 05:52:28 +00:00
Paolo Barbolini
96b42515cd
Don't run headers that don't need encoding though the encoder ( #739 )
2022-02-17 19:18:54 +00:00
Paolo Barbolini
1ea4987023
Encode mailbox headers through email-encoding ( #737 )
2022-02-17 20:00:43 +01:00
Paolo Barbolini
9273d24e54
Use nightly rustfmt features to improve code style ( #734 )
...
* format_code_in_doc_comments
* imports_granularity
* group_imports
* Add ci job
2022-02-12 20:03:37 +01:00
Paolo Barbolini
7a0dd5bd92
clippy: deny string_add ( #735 )
2022-02-12 17:12:41 +00:00
Paolo Barbolini
9a8aa46dba
Start future proofing the DKIM API ( #733 )
2022-02-12 16:41:34 +00:00
Paolo Barbolini
0377ea29b7
Dkim improvements ( #732 )
...
Some tweaks to the DKIM implementation to make it a tiny bit more readable in some places and allocate less in general.
2022-02-12 16:19:06 +00:00