[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-storage.c,
1.15.2.4, 1.15.2.5
cras at dovecot.org
cras at dovecot.org
Sat Jun 17 16:02:22 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv5644/index/dbox
Modified Files:
Tag: branch_1_0
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.15.2.4
retrieving revision 1.15.2.5
diff -u -d -r1.15.2.4 -r1.15.2.5
--- dbox-storage.c 31 May 2006 13:17:22 -0000 1.15.2.4
+++ dbox-storage.c 17 Jun 2006 13:02:03 -0000 1.15.2.5
@@ -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