[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c, 1.159, 1.160
tss at dovecot.org
tss at dovecot.org
Fri Mar 30 21:32:10 EEST 2007
Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv29314/index/maildir
Modified Files:
maildir-storage.c
Log Message:
mailbox_open/create: Moved the mailbox name validation and error clearing
into common mail-storage.c
Index: maildir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -d -r1.159 -r1.160
--- maildir-storage.c 30 Mar 2007 14:12:51 -0000 1.159
+++ maildir-storage.c 30 Mar 2007 18:32:07 -0000 1.160
@@ -537,8 +537,6 @@
const char *path;
struct stat st;
- mail_storage_clear_error(_storage);
-
if (input != NULL) {
mail_storage_set_critical(_storage,
"Maildir doesn't support streamed mailboxes");
@@ -551,11 +549,6 @@
return maildir_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) {
@@ -631,13 +624,6 @@
const char *path, *root_dir, *shared_path;
int fd;
- 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);
root_dir = mailbox_list_get_path(_storage->list, NULL,
More information about the dovecot-cvs
mailing list