[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c, 1.109, 1.110

cras at dovecot.org cras at dovecot.org
Wed Feb 15 21:37:40 EET 2006


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

Modified Files:
	maildir-storage.c 
Log Message:
Allow creating mailbox names with '*' and '%' characters. They don't break
anything anyway.



Index: maildir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- maildir-storage.c	5 Feb 2006 13:03:41 -0000	1.109
+++ maildir-storage.c	15 Feb 2006 19:37:38 -0000	1.110
@@ -184,8 +184,7 @@
 
 	len = strlen(name);
 	if (len == 0 || len > MAILDIR_MAX_MAILBOX_NAME_LENGTH ||
-	    name[0] == MAILDIR_FS_SEP || name[len-1] == MAILDIR_FS_SEP ||
-	    strchr(name, '*') != NULL || strchr(name, '%') != NULL)
+	    name[0] == MAILDIR_FS_SEP || name[len-1] == MAILDIR_FS_SEP)
 		return FALSE;
 
 	if ((storage->flags & MAIL_STORAGE_FLAG_FULL_FS_ACCESS) != 0)



More information about the dovecot-cvs mailing list