openbsd-ports/mail/dovecot/patches/patch-src_pop3_client_c
brad 6310d9ce81 upgrade to Dovecot 0.99.10.5
--
ok MAINTAINER
2004-05-27 16:38:30 +00:00

23 lines
953 B
Plaintext

$OpenBSD: patch-src_pop3_client_c,v 1.2 2004/05/27 16:38:30 brad Exp $
--- src/pop3/client.c.orig 2004-05-25 14:26:20.000000000 -0400
+++ src/pop3/client.c 2004-05-27 01:24:18.000000000 -0400
@@ -108,6 +108,7 @@ static int init_mailbox(struct client *c
struct client *client_create(int hin, int hout, struct mail_storage *storage)
{
struct client *client;
+ enum mailbox_open_flags flags;
client = i_new(struct client, 1);
client->input = i_stream_create_file(hin, default_pool,
@@ -124,7 +125,9 @@ struct client *client_create(int hin, in
storage->set_callbacks(storage, &mail_storage_callbacks, client);
- client->mailbox = storage->open_mailbox(storage, "INBOX", FALSE, FALSE);
+ flags = getenv("MMAP_INVALIDATE") != NULL ?
+ MAILBOX_OPEN_MMAP_INVALIDATE : 0;
+ client->mailbox = storage->open_mailbox(storage, "INBOX", flags);
if (client->mailbox == NULL) {
client_send_line(client, "-ERR No INBOX for user.");
return NULL;