[dovecot-cvs] dovecot/src/lib-storage mail-storage.c, 1.50.2.2, 1.50.2.3 mail-storage.h, 1.107.2.2, 1.107.2.3

tss at dovecot.org tss at dovecot.org
Mon Oct 9 18:08:07 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv16414

Modified Files:
      Tag: branch_1_0
	mail-storage.c mail-storage.h 
Log Message:
If the mail environment data contains mail format prefix, don't do any kind
of autodetection. Practically this means that mbox:/var/mail/user doesn't
work anymore.



Index: mail-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage.c,v
retrieving revision 1.50.2.2
retrieving revision 1.50.2.3
diff -u -d -r1.50.2.2 -r1.50.2.3
--- mail-storage.c	27 Jun 2006 10:27:11 -0000	1.50.2.2
+++ mail-storage.c	9 Oct 2006 17:08:03 -0000	1.50.2.3
@@ -170,6 +170,9 @@
 	while (i_isalnum(*p)) p++;
 
 	if (*p == ':') {
+		/* no autodetection if the storage format is given. */
+		flags |= MAIL_STORAGE_FLAG_NO_AUTODETECTION;
+
 		name = t_strdup_until(data, p);
 		storage = mail_storage_create(name, p+1, user, flags,
 					      lock_method);

Index: mail-storage.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.107.2.2
retrieving revision 1.107.2.3
diff -u -d -r1.107.2.2 -r1.107.2.3
--- mail-storage.h	7 Aug 2006 12:42:24 -0000	1.107.2.2
+++ mail-storage.h	9 Oct 2006 17:08:03 -0000	1.107.2.3
@@ -23,7 +23,10 @@
 	/* Use CRLF linefeeds when saving mails. */
 	MAIL_STORAGE_FLAG_SAVE_CRLF		= 0x40,
 	/* The storage points to shared namespaces */
-	MAIL_STORAGE_FLAG_SHARED_NAMESPACE	= 0x80
+	MAIL_STORAGE_FLAG_SHARED_NAMESPACE	= 0x80,
+	/* Don't try to autodetect anything, require that the given data 
+	   contains all the necessary information. */
+	MAIL_STORAGE_FLAG_NO_AUTODETECTION	= 0x100
 };
 
 enum mail_storage_lock_method {



More information about the dovecot-cvs mailing list