Re: Writing an custom imap command

2021-05-10 Thread Timo Sirainen
On 5. May 2021, at 17.28, Ryan Beethe wrote: > You probably shold look some much more simple commands as insipiration. Try looking e.g. how cmd_id is implemented instead. >>> >>> I implemented a simpler command as well, but because it was simple I >>> didn't have any questions :) >>>

Re: Writing an custom imap command

2021-05-05 Thread Aki Tuomi
> On 05/05/2021 18:28 Ryan Beethe wrote: > > > On Wed, May 05, 2021 at 10:53:30AM +0300, Aki Tuomi wrote: > > > > > On 04/05/2021 16:42 Ryan Beethe wrote: > > > > > > > > > On Mon, May 03, 2021 at 09:14:13AM +0300, Aki Tuomi wrote: > > > > > > > > > On 01/05/2021 18:32 Ryan Beethe wrote: >

Re: Writing an custom imap command

2021-05-05 Thread Ryan Beethe
On Wed, May 05, 2021 at 10:53:30AM +0300, Aki Tuomi wrote: > > > On 04/05/2021 16:42 Ryan Beethe wrote: > > > > > > On Mon, May 03, 2021 at 09:14:13AM +0300, Aki Tuomi wrote: > > > > > > > On 01/05/2021 18:32 Ryan Beethe wrote: > > > > > > > > 1. Why does cmd-idle.c sometimes call

Re: Writing an custom imap command

2021-05-05 Thread Aki Tuomi
> On 04/05/2021 16:42 Ryan Beethe wrote: > > > On Mon, May 03, 2021 at 09:14:13AM +0300, Aki Tuomi wrote: > > > > > On 01/05/2021 18:32 Ryan Beethe wrote: > > > > > > 1. Why does cmd-idle.c sometimes call client_command_free()? But > > > sometimes it doesn't? > > > > > > For example,

Re: Writing an custom imap command

2021-05-04 Thread Ryan Beethe
On Mon, May 03, 2021 at 09:14:13AM +0300, Aki Tuomi wrote: > > > On 01/05/2021 18:32 Ryan Beethe wrote: > > > > 1. Why does cmd-idle.c sometimes call client_command_free()? But > > sometimes it doesn't? > > > > For example, cmd_idle_continue() frees it in some branches but not > >

Re: Writing an custom imap command

2021-05-03 Thread Aki Tuomi
> On 01/05/2021 18:32 Ryan Beethe wrote: > > > I'm interested in writing a custom imap command that behaves a bit like > IDLE but synchronizes some state that is specific to my mail client / > mail server. > > I found that stateless commands were trivial to underst

Writing an custom imap command

2021-05-01 Thread Ryan Beethe
I'm interested in writing a custom imap command that behaves a bit like IDLE but synchronizes some state that is specific to my mail client / mail server. I found that stateless commands were trivial to understand, and I really like the plugin pattern for registering custom commands. But I have