1
/* Copyright (c) 2002-2009 Dovecot Sieve authors, see the included COPYING file
10
/* Disconnect client after idling this many milliseconds */
11
#define CLIENT_IDLE_TIMEOUT_MSECS (60*30*1000)
13
/* If we can't send anything to client for this long, disconnect the client */
14
#define CLIENT_OUTPUT_TIMEOUT_MSECS (5*60*1000)
16
/* Stop buffering more data into output stream after this many bytes */
17
#define CLIENT_OUTPUT_OPTIMAL_SIZE 2048
19
/* Disconnect client when it sends too many bad commands in a row */
20
#define CLIENT_MAX_BAD_COMMANDS 20
22
/* RFC-2683 recommends at least 8000 bytes. Some clients however don't
23
break large message sets to multiple commands, so we're pretty liberal
25
#define DEFAULT_MANAGESIEVE_MAX_LINE_LENGTH 65536
27
#define DEFAULT_MANAGESIEVE_IMPLEMENTATION_STRING PACKAGE
29
#define DEFAULT_MANAGESIEVE_SIEVE_MAX_ERRORS 10
31
enum client_workarounds {
32
WORKAROUND_NONE = 0x00,
35
extern struct ioloop *ioloop;
36
extern unsigned int managesieve_max_line_length;
37
extern const char *managesieve_implementation_string;
38
extern enum client_workarounds client_workarounds;
39
extern const char *logout_format;
41
//extern void (*hook_mail_storage_created)(struct sieve_storage *storage);
42
extern void (*hook_client_created)(struct client **client);