return ret;
}
-bool cmd_sync_delayed(struct client *client)
+static bool cmd_sync_delayed_real(struct client *client)
{
struct client_command_context *cmd, *first_expunge, *first_nonexpunge;
i_assert(client->mailbox != NULL);
return cmd_sync_client(cmd);
}
+
+bool cmd_sync_delayed(struct client *client)
+{
+ bool ret;
+
+ T_BEGIN {
+ ret = cmd_sync_delayed_real(client);
+ } T_END;
+ return ret;
+}
if (mail_transaction_log_append_begin(log->index, external, &ctx) < 0)
return -1;
ret = mail_transaction_log_file_refresh(t, ctx);
- if (ret > 0) {
+ if (ret > 0) T_BEGIN {
mail_index_transaction_finish(t);
mail_index_transaction_export(t, ctx);
- }
+ } T_END;
mail_transaction_log_get_head(log, &log_seq1, &log_offset1);
if (mail_transaction_log_append_commit(&ctx) < 0 || ret < 0)
else
setproctitle("%s", title);
#elif defined(PROCTITLE_HACK)
- proctitle_hack_set(t_strconcat(process_name, " ", title, NULL));
+ T_BEGIN {
+ proctitle_hack_set(t_strconcat(process_name, " ", title, NULL));
+ } T_END;
#endif
}