[dovecot-cvs] dovecot/src/pop3 client.c, 1.65, 1.66 common.h, 1.11, 1.12 main.c, 1.42, 1.43

cras at dovecot.org cras at dovecot.org
Sun Apr 9 18:50:56 EEST 2006


Update of /var/lib/cvs/dovecot/src/pop3
In directory talvi:/tmp/cvs-serv5647/src/pop3

Modified Files:
	client.c common.h main.c 
Log Message:
Added pop3_lock_session setting.



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/client.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- client.c	1 Apr 2006 09:57:55 -0000	1.65
+++ client.c	9 Apr 2006 15:50:54 -0000	1.66
@@ -152,6 +152,8 @@
 	flags = 0;
 	if (no_flag_updates)
 		flags |= MAILBOX_OPEN_KEEP_RECENT;
+	if (lock_session)
+		flags |= MAILBOX_OPEN_KEEP_LOCKED;
 	client->mailbox = mailbox_open(storage, "INBOX", NULL, flags);
 	if (client->mailbox == NULL) {
 		i_error("Couldn't open INBOX: %s",

Index: common.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/common.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- common.h	13 Jan 2006 20:26:48 -0000	1.11
+++ common.h	9 Apr 2006 15:50:54 -0000	1.12
@@ -18,7 +18,7 @@
 
 extern struct ioloop *ioloop;
 extern enum client_workarounds client_workarounds;
-extern bool enable_last_command, no_flag_updates, reuse_xuidl;
+extern bool enable_last_command, no_flag_updates, reuse_xuidl, lock_session;
 extern const char *uidl_format, *logout_format;
 extern enum uidl_keys uidl_keymask;
 

Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/main.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- main.c	9 Apr 2006 14:48:23 -0000	1.42
+++ main.c	9 Apr 2006 15:50:54 -0000	1.43
@@ -45,6 +45,7 @@
 bool enable_last_command = FALSE;
 bool no_flag_updates = FALSE;
 bool reuse_xuidl = FALSE;
+bool lock_session = FALSE;
 const char *uidl_format, *logout_format;
 enum uidl_keys uidl_keymask;
 
@@ -207,6 +208,7 @@
 	enable_last_command = getenv("POP3_ENABLE_LAST") != NULL;
 	no_flag_updates = getenv("POP3_NO_FLAG_UPDATES") != NULL;
 	reuse_xuidl = getenv("POP3_REUSE_XUIDL") != NULL;
+	lock_session = getenv("POP3_LOCK_SESSION") != NULL;
 
 	uidl_format = getenv("POP3_UIDL_FORMAT");
 	if (uidl_format == NULL || *uidl_format == '\0')



More information about the dovecot-cvs mailing list