[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c,
1.95, 1.96
cras at dovecot.org
cras at dovecot.org
Sun Sep 5 21:37:19 EEST 2004
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-index-lock.c, 1.31,
1.32 mail-index-private.h, 1.27, 1.28 mail-index-sync-update.c,
1.41, 1.42 mail-index-sync.c, 1.30,
1.31 mail-index-transaction-private.h, 1.10,
1.11 mail-index-transaction-view.c, 1.3,
1.4 mail-index-transaction.c, 1.20,
1.21 mail-index-view-private.h, 1.8,
1.9 mail-index-view-sync.c, 1.19, 1.20 mail-index-view.c, 1.19,
1.20 mail-index.c, 1.144, 1.145 mail-index.h, 1.126,
1.127 mail-transaction-log-view.c, 1.24,
1.25 mail-transaction-log.c, 1.53, 1.54 mail-transaction-log.h,
1.16, 1.17 mail-transaction-util.c, 1.16,
1.17 mail-transaction-util.h, 1.8, 1.9
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index/maildir
maildir-uidlist.c, 1.29, 1.30
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv8846/lib-storage/index/mbox
Modified Files:
mbox-storage.c
Log Message:
Don't allow renaming mailboxes under INBOX.
Index: mbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- mbox-storage.c 5 Sep 2004 17:53:46 -0000 1.95
+++ mbox-storage.c 5 Sep 2004 18:37:17 -0000 1.96
@@ -501,7 +501,8 @@
in the root mail directory. that would anyway be a special
case which would require special handling elsewhere, so just
don't allow it. */
- mail_storage_set_error(_storage, "Mailbox already exists");
+ mail_storage_set_error(_storage,
+ "Mailbox doesn't allow inferior mailboxes");
return -1;
}
@@ -665,6 +666,13 @@
return -1;
}
+ if (strncasecmp(newname, "INBOX/", 6) == 0) {
+ /* Not allowed - see explanation in mbox_mailbox_create */
+ mail_storage_set_error(_storage,
+ "Target mailbox doesn't allow inferior mailboxes");
+ return -1;
+ }
+
oldpath = mbox_get_path(storage, oldname);
newpath = mbox_get_path(storage, newname);
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-index-lock.c, 1.31,
1.32 mail-index-private.h, 1.27, 1.28 mail-index-sync-update.c,
1.41, 1.42 mail-index-sync.c, 1.30,
1.31 mail-index-transaction-private.h, 1.10,
1.11 mail-index-transaction-view.c, 1.3,
1.4 mail-index-transaction.c, 1.20,
1.21 mail-index-view-private.h, 1.8,
1.9 mail-index-view-sync.c, 1.19, 1.20 mail-index-view.c, 1.19,
1.20 mail-index.c, 1.144, 1.145 mail-index.h, 1.126,
1.127 mail-transaction-log-view.c, 1.24,
1.25 mail-transaction-log.c, 1.53, 1.54 mail-transaction-log.h,
1.16, 1.17 mail-transaction-util.c, 1.16,
1.17 mail-transaction-util.h, 1.8, 1.9
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index/maildir
maildir-uidlist.c, 1.29, 1.30
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list