imap-common.h revision 93f0b2f8b3a4b1afe39a7bbcf7c4c251f3ca8e48
df74b8f6ff432d9a26727669dfed9a15d77efb55Aki Tuomi/* Disconnect client after idling this many milliseconds */
df74b8f6ff432d9a26727669dfed9a15d77efb55Aki Tuomi/* If we can't send anything to client for this long, disconnect the client */
df74b8f6ff432d9a26727669dfed9a15d77efb55Aki Tuomi/* Stop buffering more data into output stream after this many bytes */
df74b8f6ff432d9a26727669dfed9a15d77efb55Aki Tuomi/* Disconnect client when it sends too many bad commands in a row */
df74b8f6ff432d9a26727669dfed9a15d77efb55Aki Tuomitypedef void imap_client_created_func_t(struct client **client);
df74b8f6ff432d9a26727669dfed9a15d77efb55Aki Tuomiextern imap_client_created_func_t *hook_client_created;
df74b8f6ff432d9a26727669dfed9a15d77efb55Aki Tuomi/* Sets the hook_client_created and returns the previous hook,
df74b8f6ff432d9a26727669dfed9a15d77efb55Aki Tuomi which the new_hook should call if it's non-NULL. */