[dovecot-cvs] dovecot/src/imap cmd-delete.c,1.2,1.3
cras at procontrol.fi
cras at procontrol.fi
Tue Feb 18 13:44:44 EET 2003
- Previous message: [dovecot-cvs] dovecot/doc Makefile.am,1.3,1.4
- Next message: [dovecot-cvs] dovecot/src/auth db-ldap.c,1.9,1.10 db-ldap.h,1.6,1.7 passdb-ldap.c,1.3,1.4 userdb-ldap.c,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv12159
Modified Files:
cmd-delete.c
Log Message:
Don't allow deleting selected mailbox.
Index: cmd-delete.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/cmd-delete.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cmd-delete.c 5 Jan 2003 13:09:51 -0000 1.2
+++ cmd-delete.c 18 Feb 2003 11:44:42 -0000 1.3
@@ -17,6 +17,13 @@
return TRUE;
}
+ if (client->mailbox != NULL &&
+ strcmp(client->mailbox->name, mailbox) == 0) {
+ client_send_tagline(client,
+ "NO Selected mailbox can't be deleted.");
+ return TRUE;
+ }
+
if (client->storage->delete_mailbox(client->storage, mailbox))
client_send_tagline(client, "OK Delete completed.");
else
- Previous message: [dovecot-cvs] dovecot/doc Makefile.am,1.3,1.4
- Next message: [dovecot-cvs] dovecot/src/auth db-ldap.c,1.9,1.10 db-ldap.h,1.6,1.7 passdb-ldap.c,1.3,1.4 userdb-ldap.c,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list