[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-storage.c, 1.45, 1.46
tss at dovecot.org
tss at dovecot.org
Fri Mar 30 21:32:09 EEST 2007
Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv29314/index/dbox
Modified Files:
dbox-storage.c
Log Message:
mailbox_open/create: Moved the mailbox name validation and error clearing
into common mail-storage.c
Index: dbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-storage.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- dbox-storage.c 30 Mar 2007 18:28:35 -0000 1.45
+++ dbox-storage.c 30 Mar 2007 18:32:07 -0000 1.46
@@ -376,8 +376,6 @@
const char *path;
struct stat st;
- mail_storage_clear_error(_storage);
-
if (input != NULL) {
mail_storage_set_critical(_storage,
"dbox doesn't support streamed mailboxes");
@@ -387,11 +385,6 @@
if (strcmp(name, "INBOX") == 0)
return dbox_open(storage, "INBOX", flags);
- if (!mailbox_list_is_valid_existing_name(_storage->list, name)) {
- mail_storage_set_error(_storage, "Invalid mailbox name");
- return NULL;
- }
-
path = mailbox_list_get_path(_storage->list, name,
MAILBOX_LIST_PATH_TYPE_MAILBOX);
if (stat(path, &st) == 0) {
@@ -414,13 +407,6 @@
const char *path;
struct stat st;
- mail_storage_clear_error(_storage);
-
- if (!mailbox_list_is_valid_create_name(_storage->list, name)) {
- mail_storage_set_error(_storage, "Invalid mailbox name");
- return -1;
- }
-
path = mailbox_list_get_path(_storage->list, name,
MAILBOX_LIST_PATH_TYPE_MAILBOX);
if (stat(path, &st) == 0) {
More information about the dovecot-cvs
mailing list