dovecot-1.1: Maildir: Create maildirfolder file also when doveco...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 23 06:53:00 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/d8f03b3d48f8
changeset: 7709:d8f03b3d48f8
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 23 06:52:55 2008 +0300
description:
Maildir: Create maildirfolder file also when dovecot-shared file exists when
creating new mailboxes.
diffstat:
1 file changed, 7 insertions(+), 6 deletions(-)
src/lib-storage/index/maildir/maildir-storage.c | 13 +++++++------
diffs (23 lines):
diff -r 65c19e970618 -r d8f03b3d48f8 src/lib-storage/index/maildir/maildir-storage.c
--- a/src/lib-storage/index/maildir/maildir-storage.c Sun Jun 22 14:02:54 2008 +0300
+++ b/src/lib-storage/index/maildir/maildir-storage.c Mon Jun 23 06:52:55 2008 +0300
@@ -581,12 +581,13 @@ static int maildir_mailbox_create(struct
its permissions and gid, and copy the dovecot-shared inside it. */
shared_path = t_strconcat(root_dir, "/dovecot-shared", NULL);
if (stat(shared_path, &st) == 0) {
- return maildir_create_shared(_storage, path,
- st.st_mode & 0666, st.st_gid);
- }
-
- if (create_maildir(_storage, path, FALSE) < 0)
- return -1;
+ if (maildir_create_shared(_storage, path,
+ st.st_mode & 0666, st.st_gid) < 0)
+ return -1;
+ } else {
+ if (create_maildir(_storage, path, FALSE) < 0)
+ return -1;
+ }
/* Maildir++ spec want that maildirfolder named file is created for
all subfolders. */
More information about the dovecot-cvs
mailing list