const char *imapc_command_get_tag(struct imapc_command *cmd);
void imapc_command_abort(struct imapc_command **cmd);
+struct timeval imapc_command_get_start_time(struct imapc_command *cmd);
struct imapc_command *
imapc_client_find_command_by_tag(struct imapc_client *client, const char *tag);
imapc_command_callback_t *callback;
void *context;
+ struct timeval start_time;
+
/* This is the AUTHENTICATE command */
bool authenticate:1;
/* This is the IDLE command */
unsigned int i, count;
imapc_connection_send_idle_done(conn);
+ cmd->start_time = ioloop_timeval;
i_assert((cmd->flags & IMAPC_COMMAND_FLAG_RECONNECTED) == 0);
}
return NULL;
}
+
+struct timeval imapc_command_get_start_time(struct imapc_command *cmd)
+{
+ return cmd->start_time;
+}