1 #ifndef MANAGESIEVE_COMMON_H
2 #define MANAGESIEVE_COMMON_H
3 
4 #include "pigeonhole-config.h"
5 
6 /* Disconnect client after idling this many milliseconds */
7 #define CLIENT_IDLE_TIMEOUT_MSECS (60*30*1000)
8 
9 /* If we can't send anything to client for this long, disconnect the client */
10 #define CLIENT_OUTPUT_TIMEOUT_MSECS (5*60*1000)
11 
12 /* Stop buffering more data into output stream after this many bytes */
13 #define CLIENT_OUTPUT_OPTIMAL_SIZE 2048
14 
15 /* Disconnect client when it sends too many bad commands in a row */
16 #define CLIENT_MAX_BAD_COMMANDS 20
17 
18 #define CRITICAL_MSG \
19   "Internal error occurred. Refer to server log for more information."
20 #define CRITICAL_MSG_STAMP CRITICAL_MSG " [%Y-%m-%d %H:%M:%S]"
21 
22 #include "lib.h"
23 #include "managesieve-client.h"
24 #include "managesieve-settings.h"
25 
26 extern void (*hook_client_created)(struct client **client);
27 extern struct event_category event_category_managesieve;
28 
29 void managesieve_refresh_proctitle(void);
30 
31 #endif
32