Re: Example for doveadm-save using Doveadm HTTP API

2017-05-10 Thread Aki Tuomi
On 11.05.2017 00:36, KT Walrus wrote: >> On May 10, 2017, at 5:16 PM, Sami Ketola wrote: >> >> >>> On 10 May 2017, at 16.26, KT Walrus wrote: # curl -v -X POST -u doveadm:hellodoveadm -H "Content-Type: application/json" -d '[["save",{"user":"samik","mailbox":"INBOX/myfoldertoo"

Re: Example for doveadm-save using Doveadm HTTP API

2017-05-10 Thread KT Walrus
> On May 10, 2017, at 5:16 PM, Sami Ketola wrote: > > >> On 10 May 2017, at 16.26, KT Walrus wrote: >>> >>> # curl -v -X POST -u doveadm:hellodoveadm -H "Content-Type: >>> application/json" -d >>> '[["save",{"user":"samik","mailbox":"INBOX/myfoldertoo","file":"From: Joulu >>> Pukki \nSubje

Re: Example for doveadm-save using Doveadm HTTP API

2017-05-10 Thread Sami Ketola
> On 10 May 2017, at 16.26, KT Walrus wrote: >> >> # curl -v -X POST -u doveadm:hellodoveadm -H "Content-Type: >> application/json" -d >> '[["save",{"user":"samik","mailbox":"INBOX/myfoldertoo","file":"From: Joulu >> Pukki \nSubject: plaa\n\nmail body\n"},"bb"]]' >> http://localhost:8080/dov

Re: Example for doveadm-save using Doveadm HTTP API

2017-05-10 Thread KT Walrus
> On May 10, 2017, at 11:06 AM, Sami Ketola wrote: > > >> On 10 May 2017, at 14.57, KT Walrus wrote: >> >> I could use an example of how to use curl to save a new message to a user’s >> INBOX using the Doveadm HTTP API. >> > > Here you go: > > doveadm mailbox save > > parameters: > > {

Re: Example for doveadm-save using Doveadm HTTP API

2017-05-10 Thread Sami Ketola
> On 10 May 2017, at 14.57, KT Walrus wrote: > > I could use an example of how to use curl to save a new message to a user’s > INBOX using the Doveadm HTTP API. > Here you go: doveadm mailbox save parameters: { "command": "save", "parameters": [ { "name": "allU

Example for doveadm-save using Doveadm HTTP API

2017-05-10 Thread KT Walrus
I could use an example of how to use curl to save a new message to a user’s INBOX using the Doveadm HTTP API. https://wiki2.dovecot.org/Design/DoveadmProtocol/HTTP Do I really use the -d option and inline the entire new message in the com