Hi Timo.... It's me again ! lol
the expunge command works fine in unix socket. Now, i try to do others commands, like someone that return itens...... the command that i use now is: "version\tdoveadm-server\t1\t0\nd\[email protected]\tmailbox list\t8\n" the command is OK, and i think the parameters too, but this not return the mailbox list in unix socket. how is the protocol flow to doveadm unix socket ? something like. write X Read Y shutdown socket or have another order todo this ? Tks ! 2010/11/22 Alex Baule <[email protected]> > Tks, now it's working, i need to send every in one "write", > (header+command) > > 2010/11/22 Timo Sirainen <[email protected]> > > On Mon, 2010-11-22 at 13:38 -0200, Alex Baule wrote: >> >> > Im have a situation here with the syntax for doveadm in a unix socket. >> > >> > My string have it: >> > >> > std::string ask = "d\texpunge\tu\[email protected] >> > \tmailbox\t\\*\tsavedbefore\t1s\n"; >> >> Looks like there was also a bug, fixed: >> http://hg.dovecot.org/dovecot-2.0/rev/b724ef3bdc0a >> >> So what you need to send is: >> >> VERSION\tdoveadm-server\t1\t0 >> d\tu...@domain\texpunge\tmailbox\t*\tsavedbefore\t1s >> >> There is no escaping for '*', in command line you need to do that only >> because shell otherwise expands it. >> >> >
