[ 
https://issues.apache.org/jira/browse/JAMES-2861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17064957#comment-17064957
 ] 

Raphael Ouazana commented on JAMES-2861:
----------------------------------------

*IMPORTEML* imports an eml file and saves it to a mailbox. It takes 4 
arguments: *namespace*, *username*, *mailboxName*, *emlPath*.

You will write a new *EmlRoutes* to takes:
 * *namespace*: namespace of the mailbox
 * *username*: user(owner) of the mailbox
 * *mailboxName*: mailbox name
 * eml content in the body

 
{{POST 
/eml/import?namespace=#private&[email protected]&mailboxName=inboxBODY: 
eml content}}
 * 204 on imported
 * 400 on invalid or non existing mailbox path
 * 500 on internal error

> [Webadmin] corresponding routes for JMX IMPORTEML command
> ---------------------------------------------------------
>
>                 Key: JAMES-2861
>                 URL: https://issues.apache.org/jira/browse/JAMES-2861
>             Project: James Server
>          Issue Type: Improvement
>            Reporter: Trần Tiến Đức
>            Priority: Minor
>
> New Routes for importing EML file into a mailbox:
>  
> {code:java}
> POST /mailboxes/mailbox-id-in-string/messages
>  
> POST /mailboxes/78585-96969-686568/messages
> BODY: eml  
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to