[dovecot-cvs] dovecot/src/pop3 main.c,1.20,1.21

cras at dovecot.org cras at dovecot.org
Wed Dec 29 21:10:31 EET 2004


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

Modified Files:
	main.c 
Log Message:
Added mail_debug setting. Moved full_filesystem_access from global variable
to flag in mail_create*() functions.



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/main.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- main.c	19 Dec 2004 06:36:13 -0000	1.20
+++ main.c	29 Dec 2004 19:10:28 -0000	1.21
@@ -141,6 +141,7 @@
 
 static int main_init(void)
 {
+        enum mail_storage_flags flags;
 	struct mail_storage *storage;
 	const char *mail;
 
@@ -172,7 +173,13 @@
 		uidl_format = "%v.%u";
 	uidl_keymask = parse_uidl_keymask(uidl_format);
 
-	storage = mail_storage_create_with_data(mail, getenv("USER"));
+	flags = 0;
+	if (getenv("FULL_FILESYSTEM_ACCESS") != NULL)
+		flags |= MAIL_STORAGE_FLAG_FULL_FS_ACCESS;
+	if (getenv("DEBUG") != NULL)
+		flags |= MAIL_STORAGE_FLAG_DEBUG;
+
+	storage = mail_storage_create_with_data(mail, getenv("USER"), flags);
 	if (storage == NULL) {
 		/* failed */
 		if (mail != NULL && *mail != '\0')



More information about the dovecot-cvs mailing list