[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c,
1.145.2.1, 1.145.2.2
cras at dovecot.org
cras at dovecot.org
Sat Jun 17 16:03:43 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv5644/index/mbox
Modified Files:
Tag: branch_1_0
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.145.2.1
retrieving revision 1.145.2.2
diff -u -d -r1.145.2.1 -r1.145.2.2
--- mbox-storage.c 12 May 2006 08:13:01 -0000 1.145.2.1
+++ mbox-storage.c 17 Jun 2006 13:03:22 -0000 1.145.2.2
@@ -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