<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body dir="auto"><div dir="auto">Aki,</div><div dir="auto"><br></div><div dir="auto">Thank you very much for the detailed information.</div><div dir="auto"><br></div><div dir="auto">Do you know if it also allows for placing an attachment inside that message?</div><div dir="auto"><br></div><div dir="auto">Thanks again,</div><div dir="auto"><br></div><div dir="auto">Oren</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div id="composer_signature" dir="auto"><div style="font-size:85%;color:#575757" dir="auto">Sent from Samsung Galaxy smartphone.</div></div><div dir="auto"><br></div><div><br></div><div align="left" dir="auto" style="font-size:100%;color:#000000"><div>-------- Original message --------</div><div>From: Aki Tuomi <aki.tuomi@open-xchange.com> </div><div>Date: 11/4/20  1:38 AM  (GMT-05:00) </div><div>To: Oren Yehezkely <orenyny@gmail.com>, dovecot@dovecot.org </div><div>Subject: Re: API support for placing a message for a specific user </div><div><br></div></div><br>> On 03/11/2020 02:24 Oren Yehezkely <orenyny@gmail.com> wrote:<br>> <br>> <br>> Hello,<br>> <br>> I am trying to find out if Dovecot API allows placing a message directly in a customer's mailbox, without needing to send the email via SMTP.<br>> <br>> Thanks for your help,<br>> <br>> Oren<br><br>`doveadm save` is available from HTTP API, but seems to be missing from documentation.<br><br>Example:<br><br>curl --user doveadm:password http://localhost:1122/doveadm/v1 -d '[["save",{"user":"testuser","file":"Hello, world"},"c0d0"]]'<br><br>note that despite being called 'file', is it actually the mail contents.<br><br>Aki<br><br>API for the SAVE command:<br><br>{<br>  "command": "save",<br>  "parameters": [<br>    {<br>      "name": "allUsers",<br>      "type": "boolean"<br>    },<br>    {<br>      "name": "socketPath",<br>      "type": "string"<br>    },<br>    {<br>      "name": "user",<br>      "type": "string"<br>    },<br>    {<br>      "name": "transFlags",<br>      "type": "integer"<br>    },<br>    {<br>      "name": "userFile",<br>      "type": "string"<br>    },<br>    {<br>      "name": "mailbox",<br>      "type": "string"<br>    },<br>    {<br>      "name": "file",<br>      "type": "string"<br>    }<br>  ]<br>}<br></body></html>