mirror of
https://github.com/KumoCorp/kumomta.git
synced 2026-08-19 08:01:07 +00:00
937611feb9
This commit refactors the EnvelopeAddress types(!) so that the brains of them are centralized in the rfc5321 crate, removes the one from the log-types crate, and replaces the internals of the one in the message crate with the rfc5321 implementation. This revised implementation accommodates quoted local parts more consistently and exposes the local part via a normalizing accessor which is in turn used when comparing addresses for equality. This means that `"foo"@` and `foo@` now compare the same, and if you have setup a maildir that generates per-user maildirs, we'll use the normalized form of the local part rather than whatever is on the incoming address. Another side effect of this commit is that we can now accept exotic quoted addresses like `"info@"@example.com` without falsely complaining about having too many `@` signs in the address. closes: https://github.com/KumoCorp/kumomta/issues/495