Mercurial > dovecot > original-hg > dovecot-1.2
changeset 1828:7df3a022ef7d HEAD
mail_create_mode was set too late.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 20 Oct 2003 10:19:21 +0300 |
parents | b1acbfe2a7ed |
children | 19e1ec244752 |
files | src/lib-storage/index/maildir/maildir-storage.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-storage.c Mon Oct 20 10:15:37 2003 +0300 +++ b/src/lib-storage/index/maildir/maildir-storage.c Mon Oct 20 10:19:21 2003 +0300 @@ -410,11 +410,6 @@ index_storage_add(index); } - ibox = index_storage_mailbox_init(storage, &maildir_mailbox, - index, name, flags); - if (ibox != NULL) - ibox->mail_init = maildir_mail_init; - /* for shared mailboxes get the create mode from the permissions of dovecot-shared file */ if (stat(t_strconcat(path, "/dovecot-shared", NULL), &st) < 0) @@ -424,6 +419,11 @@ index->private_flags_mask = MAIL_SEEN; } + ibox = index_storage_mailbox_init(storage, &maildir_mailbox, + index, name, flags); + if (ibox != NULL) + ibox->mail_init = maildir_mail_init; + return (struct mailbox *) ibox; }