Mercurial > dovecot > original-hg > dovecot-1.2
view src/imap/common.h @ 9191:b340ecb24469 HEAD
Fix VPATH build of RQUOTA support.
Some rpcgen derive #include "..." paths from the infile argument.
This will be off for VPATH builds, as the generated rquota_xdr.c
code will look in $(srcdir), but we'll generate the rquota.h file in
$(builddir). Play safe and copy rquota.x to $(builddir) first.
This fixes the build on openSUSE 11.1.
author | Matthias Andree <matthias.andree@gmx.de> |
---|---|
date | Tue, 07 Jul 2009 21:01:36 +0200 |
parents | ca2ff54ee9b4 |
children |
line wrap: on
line source
#ifndef COMMON_H #define COMMON_H #include "lib.h" #include "client.h" /* Disconnect client after idling this many milliseconds */ #define CLIENT_IDLE_TIMEOUT_MSECS (60*30*1000) /* If we can't send anything to client for this long, disconnect the client */ #define CLIENT_OUTPUT_TIMEOUT_MSECS (5*60*1000) /* Stop buffering more data into output stream after this many bytes */ #define CLIENT_OUTPUT_OPTIMAL_SIZE 2048 /* Disconnect client when it sends too many bad commands in a row */ #define CLIENT_MAX_BAD_COMMANDS 20 /* RFC-2683 recommends at least 8000 bytes. Some clients however don't break large message sets to multiple commands, so we're pretty liberal by default. */ #define DEFAULT_IMAP_MAX_LINE_LENGTH 65536 enum client_workarounds { WORKAROUND_DELAY_NEWMAIL = 0x01, WORKAROUND_NETSCAPE_EOH = 0x04, WORKAROUND_TB_EXTRA_MAILBOX_SEP = 0x08 }; extern struct ioloop *ioloop; extern unsigned int imap_max_line_length; extern enum client_workarounds client_workarounds; extern const char *logout_format; extern const char *imap_id_send, *imap_id_log; extern string_t *capability_string; extern void (*hook_client_created)(struct client **client); #endif