[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c, 1.119, 1.120

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


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

Modified Files:
	maildir-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: maildir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -d -r1.119 -r1.120
--- maildir-storage.c	8 Jun 2006 16:56:45 -0000	1.119
+++ maildir-storage.c	17 Jun 2006 13:04:26 -0000	1.120
@@ -207,6 +207,9 @@
 		return FALSE;
 	}
 
+	if (mailbox_name_is_too_large(name, '.'))
+		return FALSE;
+
 	return TRUE;
 }
 



More information about the dovecot-cvs mailing list