Commit 2d3ed9b0 authored by Zied SELLAMI's avatar Zied SELLAMI
Browse files

Update README.md

parent eb66c02a
......@@ -28,7 +28,15 @@ docker run -it -p 5551:9991 demo:priorityInbox
```
curl -X POST 'http://0.0.0.0:5551/rest/priorityinbox/parsejson' -F "file=@/path/to/email.json"
```
Sample of json file :
Sample of json file:
**Note that** the fields **user**, **alternativeAddress**, **from** and at least one of **to**, **cc** or **bcc** are required.
1. **user** is the name of the INBOX user. For instance Jhon Doe.
2. **alternativeAddress** is the differents email address for the INBOX. For instance jhon.doe@test.com or jdoe@test.com or doe@test.com.
**Note that** the field **emailFolder** is the folder in which the email is located. By default, please fill the string "**INBOX**"
```
{
"messageId" : "messageId",
......@@ -69,7 +77,6 @@ Sample of json file :
"user" : "first_name last_name of to1",
"alternativeAddress" : [ "t1@test.com", "first_name.last_name@test.com" ],
"X-Spam-Flag" : "NO"
}
```
Expected result:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment