Re: Laying groundwork

2015-05-26 Thread Bron Gondwana
On Wed, May 27, 2015, at 01:50 AM, Thomas Jarosch wrote: > that's a sound API improvement. I already reviewed the concept > last week but never gotten around to actually send the email :) Thanks :) Next is actually making use of it! I'm getting side-tracked a bit adding CalDAV/CardDAV/JMAP cli

Re: Laying groundwork

2015-05-26 Thread Thomas Jarosch
Hi Bron, On Saturday, 16. May 2015 09:46:40 Bron Gondwana wrote: > So the way to work through all the records in a mailbox was: > > int r; > uint32_t recno; > struct index_record record; > > for (recno = 1; recno <= mailbox->i.num_records; recno++) { > r = mailbox_read_index_record(mailbox,

Laying groundwork

2015-05-16 Thread Bron Gondwana
Way back in the distant past (2010) I rewrote everything which read records from cyrus.index to go through one API call: mailbox_read_index_record(mailbox, recno, &record); So the way to work through all the records in a mailbox was: int r; uint32_t recno; struct index_record record; for (recn