[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c, 1.147, 1.148

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


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

Modified Files:
	mbox-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: mbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- mbox-storage.c	8 Jun 2006 16:56:46 -0000	1.147
+++ mbox-storage.c	17 Jun 2006 13:04:34 -0000	1.148
@@ -407,6 +407,11 @@
 	    len > MBOX_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 mbox_is_valid_mask(storage, name);
 }
 



More information about the dovecot-cvs mailing list