[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-storage.c, 1.18, 1.19

cras at dovecot.org cras at dovecot.org
Sat Jun 17 16:04:18 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv6399/index/dbox

Modified Files:
	dbox-storage.c 
Log Message:
When creating a mailbox, limit the number of hierarchies (to 20) and the
length of the mailbox name within a hierarchy (to 200).                     



Index: dbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-storage.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- dbox-storage.c	8 Jun 2006 12:49:38 -0000	1.18
+++ dbox-storage.c	17 Jun 2006 13:04:08 -0000	1.19
@@ -204,6 +204,11 @@
 	    len > DBOX_MAX_MAILBOX_NAME_LENGTH)
 		return FALSE;
 
+	if ((storage->flags & MAIL_STORAGE_FLAG_FULL_FS_ACCESS) == 0) {
+		if (mailbox_name_is_too_large(name, '/'))
+		    return FALSE;
+	}
+
 	return dbox_is_valid_mask(storage, name);
 }
 



More information about the dovecot-cvs mailing list