> On April 5, 2016 at 12:24 PM aki.tuomi at dovecot.fi wrote: > > > > > On April 5, 2016 at 9:57 AM Tom Sommer <mail at tomsommer.dk> wrote: > > > > > > On 2016-04-05 08:44, aki.tuomi at dovecot.fi wrote: > > >> On April 5, 2016 at 9:27 AM Tom Sommer <mail at tomsommer.dk> wrote: > > >> > > >> > > >> On 2016-04-04 20:22, aki.tuomi at dovecot.fi wrote: > > >> > > >> > Since the API is still a little beta, it will not return anything in > > >> > case > > >> > doveadm does not like the arguments (that is, calls i_fatal). Also, > > >> > success is > > >> > often indicated with 200 OK along with [["doveadmResponse",[],"c01"]]. > > >> > > >> I don't see the "doveadm proxy kick" command in the list? > > > > > > Not all commands are included, unfortunately. Also, the list only > > > shows commands that are available with doveadm as per configuration. > > > > Hrmm, is it possible to add a non-http inet_listener to doveadm? And > > feed it commands directly? > > > > I really need a remote proxy kick for my director. > > Unfortunately it's not possible with 2.2.23. It has been fixed internally and will eventually pop out to public repo and into some release. > > AkiFixed hopefully in https://github.com/dovecot/core/commit/76537b1991e7815c7a867a997f7fa2b3c17412d4 Aki
On 2016-04-05 15:35, aki.tuomi at dovecot.fi wrote:>> On April 5, 2016 at 12:24 PM aki.tuomi at dovecot.fi wrote: >> >> >> >> > On April 5, 2016 at 9:57 AM Tom Sommer <mail at tomsommer.dk> wrote: >> > >> > >> > On 2016-04-05 08:44, aki.tuomi at dovecot.fi wrote: >> > >> On April 5, 2016 at 9:27 AM Tom Sommer <mail at tomsommer.dk> wrote: >> > >> >> > >> >> > >> On 2016-04-04 20:22, aki.tuomi at dovecot.fi wrote: >> > >> >> > >> > Since the API is still a little beta, it will not return anything in >> > >> > case >> > >> > doveadm does not like the arguments (that is, calls i_fatal). Also, >> > >> > success is >> > >> > often indicated with 200 OK along with [["doveadmResponse",[],"c01"]]. >> > >> >> > >> I don't see the "doveadm proxy kick" command in the list? >> > > >> > > Not all commands are included, unfortunately. Also, the list only >> > > shows commands that are available with doveadm as per configuration. >> > >> > Hrmm, is it possible to add a non-http inet_listener to doveadm? And >> > feed it commands directly? >> > >> > I really need a remote proxy kick for my director. >> >> Unfortunately it's not possible with 2.2.23. It has been fixed >> internally and will eventually pop out to public repo and into some >> release. >> >> Aki > > Fixed hopefully in > https://github.com/dovecot/core/commit/76537b1991e7815c7a867a997f7fa2b3c17412d4Works like a charm. Thank you so much.
Thanks for the new HTTP API. I get the API with some commands up and running, but I'm still not able to create folder. curl -k -H "Content-Type: application/json" -H "Authorization: Basic secret" -d '[["mailboxCreate",{"user":"user at example.org","mailbox":["INBOX/TEST"]},c01]]' https://xxx.xxx.xxx.xxx.:8080/doveadm/v1 and also curl -k -H "Content-Type: application/json" -H "Authorization: Basic secret" -d '[["mailboxList",{"user":"user at example.org","mailboxMask":["INBOX/TEST"]},c01]]' https://xxx.xxx.xxx.xxx.:8080/doveadm/v1 doesn't work. It /should/ create INBOX/TEST -- but doveadm always says it's "Invalid JSON input". What am I doing wrong? Peer