91933d365c
default to totally negate the chance of index corruption at the cost of performance. ok naddy@
22 lines
766 B
Plaintext
22 lines
766 B
Plaintext
$OpenBSD: patch-src_imap_main_c,v 1.2 2003/08/30 00:11:31 jolan Exp $
|
|
--- src/imap/main.c.orig 2003-05-26 10:27:13.000000000 -0500
|
|
+++ src/imap/main.c 2003-08-28 20:15:40.000000000 -0500
|
|
@@ -21,6 +21,7 @@
|
|
|
|
struct ioloop *ioloop;
|
|
unsigned int max_custom_flag_length, mailbox_check_interval;
|
|
+enum mailbox_open_flags mailbox_open_flags;
|
|
|
|
static struct module *modules;
|
|
static char log_prefix[128]; /* syslog() needs this to be permanent */
|
|
@@ -130,6 +131,9 @@ static void main_init(void)
|
|
mailbox_check_interval = str == NULL ? 0 :
|
|
(unsigned int)strtoul(str, NULL, 10);
|
|
|
|
+ mailbox_open_flags = getenv("MMAP_INVALIDATE") != NULL ?
|
|
+ MAILBOX_OPEN_MMAP_INVALIDATE : 0;
|
|
+
|
|
client = client_create(hin, hout, storage);
|
|
|
|
o_stream_cork(client->output);
|