This will be required by the next change.
/* listing mailboxes from index */
while (ctx->next_node != NULL) {
- mailbox_list_index_update_info(ctx);
+ T_BEGIN {
+ mailbox_list_index_update_info(ctx);
+ } T_END;
match = imap_match(_ctx->glob, ctx->info.vname);
follow_children = (match & (IMAP_MATCH_YES |
if (!mail_index_lookup_seq(view, uid, &seq)) {
/* our in-memory tree is out of sync */
ret = 1;
- } else T_BEGIN {
+ } else {
ret = box->v.list_index_has_changed == NULL ? 0 :
box->v.list_index_has_changed(box, view, seq, TRUE);
- } T_END;
+ }
if (ret != 0) {
/* error / not up to date. don't waste time with it. */
} else if (!require_refreshed) {
/* this operation doesn't need the index to be up-to-date */
ret = 0;
- } else T_BEGIN {
+ } else {
ret = box->v.list_index_has_changed == NULL ? 0 :
box->v.list_index_has_changed(box, view, seq, FALSE);
reason = "Mailbox has changed";
- } T_END;
+ }
if (ret != 0) {
/* error / mailbox has changed. we'll need to sync it. */