[dovecot-cvs] dovecot/src/lib-storage mail-storage.c, 1.24, 1.25 mail-storage.h, 1.70, 1.71

cras at dovecot.org cras at dovecot.org
Sat Jul 10 20:24:11 EEST 2004


Update of /home/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv6888/src/lib-storage

Modified Files:
	mail-storage.c mail-storage.h 
Log Message:
Split client_workarounds to imap_ and pop3_ ones. Added outlook-no-nuls POP3
workaround.



Index: mail-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- mail-storage.c	22 Jun 2004 07:48:18 -0000	1.24
+++ mail-storage.c	10 Jul 2004 17:24:08 -0000	1.25
@@ -18,44 +18,12 @@
 	struct mail_storage *storage;
 };
 
-struct client_workaround_list {
-	const char *name;
-	enum client_workarounds num;
-};
-
-struct client_workaround_list client_workaround_list[] = {
-	{ "oe6-fetch-no-newmail", WORKAROUND_OE6_FETCH_NO_NEWMAIL },
-	{ "outlook-idle", WORKAROUND_OUTLOOK_IDLE },
-	{ NULL, 0 }
-};
-
 static struct mail_storage_list *storages = NULL;
-enum client_workarounds client_workarounds = 0;
 int full_filesystem_access = FALSE;
 
 void mail_storage_init(void)
 {
-        struct client_workaround_list *list;
-	const char *env;
-	const char *const *str;
-
         full_filesystem_access = getenv("FULL_FILESYSTEM_ACCESS") != NULL;
-
-	env = getenv("CLIENT_WORKAROUNDS");
-	if (env == NULL)
-		return;
-
-	for (str = t_strsplit_spaces(env, " "); *str != NULL; str++) {
-		list = client_workaround_list;
-		for (; list->name != NULL; list++) {
-			if (strcasecmp(*str, list->name) == 0) {
-				client_workarounds |= list->num;
-				break;
-			}
-		}
-		if (list->name == NULL)
-			i_fatal("Unknown client workaround: %s", *str);
-	}
 }
 
 void mail_storage_deinit(void)

Index: mail-storage.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- mail-storage.h	23 Jun 2004 18:33:22 -0000	1.70
+++ mail-storage.h	10 Jul 2004 17:24:08 -0000	1.71
@@ -89,11 +89,6 @@
 	MAILBOX_SYNC_AUTO_STOP		= 0x04
 };
 
-enum client_workarounds {
-	WORKAROUND_OE6_FETCH_NO_NEWMAIL		= 0x01,
-	WORKAROUND_OUTLOOK_IDLE			= 0x02
-};
-
 struct mail_storage;
 struct mail_storage_callbacks;
 struct mailbox_list;
@@ -159,7 +154,6 @@
 
 };
 
-extern enum client_workarounds client_workarounds;
 extern int full_filesystem_access;
 
 void mail_storage_init(void);



More information about the dovecot-cvs mailing list