]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Added MAIL_STORAGE_FLAG_NO_AUTOVERIFY to skip checking storage root...
authorTimo Sirainen <tss@iki.fi>
Fri, 15 Oct 2010 13:56:05 +0000 (14:56 +0100)
committerTimo Sirainen <tss@iki.fi>
Fri, 15 Oct 2010 13:56:05 +0000 (14:56 +0100)
src/lib-storage/mail-storage.c
src/lib-storage/mail-storage.h

index ae4f7a2b318d048ba8c68c7c329080c41ffa2fff..957e68c2cd449c36440e994bfc2528a406a62d86 100644 (file)
@@ -190,6 +190,9 @@ mail_storage_create_root(struct mailbox_list *list,
        mode_t mode;
        gid_t gid;
 
+       if ((flags & MAIL_STORAGE_FLAG_NO_AUTOVERIFY) != 0)
+               return 0;
+
        root_dir = mailbox_list_get_path(list, NULL,
                                         MAILBOX_LIST_PATH_TYPE_MAILBOX);
        if (root_dir == NULL) {
index f68f79ff1ac329a869e9f7cc02236a42d0be74ae..ee50737d28ab16042db8f48250b6d9fa077cbfad 100644 (file)
@@ -20,7 +20,10 @@ enum mail_storage_flags {
        MAIL_STORAGE_FLAG_NO_AUTODETECTION      = 0x02,
        /* Don't autocreate any directories. If they don't exist,
           fail to create the storage. */
-       MAIL_STORAGE_FLAG_NO_AUTOCREATE         = 0x04
+       MAIL_STORAGE_FLAG_NO_AUTOCREATE         = 0x04,
+       /* Don't verify existence or accessibility of any directories.
+          Create the storage in any case. */
+       MAIL_STORAGE_FLAG_NO_AUTOVERIFY         = 0x08
 };
 
 enum mailbox_flags {