Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
What is sub addressing
https://en.wikipedia.org/wiki/Email_address#Sub-addressing
An SMTP email address uses the basic syntax: <local-part>@<domain>. For example, sean@contoso.com.
Plus addressing uses the syntax: <local-part>+<tag>@<domain>. For example, sean+newsletter@contoso.com.
The original email address must be valid. The sub-address can be used for classification purposes.
Story
As a James user I want to send email to sub-adresses:
- [ ] Using SMTP
- [ ] Using JMAP
- [ ] I can define a redirection / forward to an address containing a `+`
Out of scope: sub addressing is not-to-be-supported for now. When sending an email to a local user sub-address, the user willl not be found, resulting in an SMTP error.
Definition of done
Integration tests for relaying sub addresses emails in SMTP and JMAP and for forwards.
Integration test for sub address (non) handling for local users (see above).
How
- 1. Modify (relax) the MailAddress POJO to support usage of `+` in local part.
Example of valid mail address: `bob+tag@domain.tld`
Ensure that `+` can still not be used in user names.
- 2. Write the JMAP/SMTP/Forward tests