You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Tellier Benoit (Jira)" <se...@james.apache.org> on 2019/08/26 11:40:00 UTC
[jira] [Closed] (JAMES-2864) POJO for Mock Smtp server behavior,
receive email
[ https://issues.apache.org/jira/browse/JAMES-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tellier Benoit closed JAMES-2864.
---------------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
https://github.com/linagora/james-project/pull/2610 solved this
> POJO for Mock Smtp server behavior, receive email
> -------------------------------------------------
>
> Key: JAMES-2864
> URL: https://issues.apache.org/jira/browse/JAMES-2864
> Project: James Server
> Issue Type: Sub-task
> Components: Remote Delivery, tests
> Reporter: Tellier Benoit
> Assignee: Tellier Benoit
> Priority: Major
> Fix For: 3.4.0
>
>
> Designing POJO models be used by the MockSMTPServer and the HttpRoutes.
> {code:java}
> We will merge the java bean (POJO) and DTO into one so no need to the translator.
> ### The final MockSetup format:
> {
> "command": "RCPT",
> "condition": {
> "operator": "contains",
> "matchingValue": "pippin got the ring"
> },
> "response": {
> "code": 504,
> "rejected": false,
> "message": "server is out of memory"
> },
> "numberOfAnswer": 7
> }
> ### The MockMail format this will be used in the route of getting all stored email of the SMTP server
> {
> "envelope": {
> "from": "from@domain.tld",
> "recipients": ["recipient1@domain.tld", "recipient2@domain.tld"]
> },
> "content": "mail content here"
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org