$OpenBSD: patch-src_lib-storage_mail-storage_h,v 1.2 2004/07/21 14:19:19 brad Exp $
--- src/lib-storage/mail-storage.h.orig	Tue Jul 13 06:57:22 2004
+++ src/lib-storage/mail-storage.h	Thu Jul 15 00:12:05 2004
@@ -5,6 +5,12 @@ struct message_size;
 
 #include "imap-util.h"
 
+enum mailbox_open_flags {
+	MAILBOX_OPEN_READONLY		= 0x01,
+	MAILBOX_OPEN_FAST		= 0x02,
+	MAILBOX_OPEN_MMAP_INVALIDATE	= 0x04
+};
+
 enum mailbox_list_flags {
 	MAILBOX_LIST_SUBSCRIBED	= 0x01,
 	MAILBOX_LIST_FAST_FLAGS	= 0x02,
@@ -149,7 +155,7 @@ struct mail_storage {
 	   with possibly different readonly-state. */
 	struct mailbox *(*open_mailbox)(struct mail_storage *storage,
 					const char *name,
-					int readonly, int fast);
+					enum mailbox_open_flags flags);
 
 	/* name is allowed to contain multiple new hierarchy levels.
 	   If only_hierarchy is TRUE, the mailbox itself isn't created, just
