[ 
https://issues.apache.org/jira/browse/JAMES-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tellier Benoit reassigned JAMES-2864:
-------------------------------------

    Assignee: Tellier Benoit

> 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
>
> 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": "[email protected]",
>        "recipients": ["[email protected]", "[email protected]"]
>    },
>    "content": "mail content here"
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to