Mercurial > dovecot > core-2.2
changeset 12999:6790433a1e77
imap: RENAME and DELETE wasn't replying with NONEXISTENT resp code.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 09 May 2011 18:23:23 +0300 |
parents | 78286b1a0a16 |
children | c3f4201f9818 |
files | src/imap/cmd-delete.c src/imap/cmd-rename.c |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/cmd-delete.c Mon May 09 17:58:37 2011 +0300 +++ b/src/imap/cmd-delete.c Mon May 09 18:23:23 2011 +0300 @@ -1,6 +1,7 @@ /* Copyright (c) 2002-2011 Dovecot authors, see the included COPYING file */ #include "imap-common.h" +#include "imap-resp-code.h" #include "imap-commands.h" bool cmd_delete(struct client_command_context *cmd) @@ -31,7 +32,9 @@ case MAILBOX_NAME_VALID: case MAILBOX_NAME_INVALID: case MAILBOX_NAME_NOINFERIORS: - client_fail_mailbox_name_status(cmd, name, NULL, status); + client_fail_mailbox_name_status(cmd, name, + IMAP_RESP_CODE_NONEXISTENT, + status); return TRUE; }
--- a/src/imap/cmd-rename.c Mon May 09 17:58:37 2011 +0300 +++ b/src/imap/cmd-rename.c Mon May 09 18:23:23 2011 +0300 @@ -1,6 +1,7 @@ /* Copyright (c) 2002-2011 Dovecot authors, see the included COPYING file */ #include "imap-common.h" +#include "imap-resp-code.h" #include "mail-namespace.h" #include "imap-commands.h" @@ -26,7 +27,9 @@ case MAILBOX_NAME_VALID: case MAILBOX_NAME_INVALID: case MAILBOX_NAME_NOINFERIORS: - client_fail_mailbox_name_status(cmd, oldname, NULL, status); + client_fail_mailbox_name_status(cmd, oldname, + IMAP_RESP_CODE_NONEXISTENT, + status); return TRUE; }