dovecot-2.0: imap: RENAME and DELETE wasn't replying with NONEXI...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 9 18:23:32 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/6790433a1e77
changeset: 12777:6790433a1e77
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 09 18:23:23 2011 +0300
description:
imap: RENAME and DELETE wasn't replying with NONEXISTENT resp code.

diffstat:

 src/imap/cmd-delete.c |  5 ++++-
 src/imap/cmd-rename.c |  5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r 78286b1a0a16 -r 6790433a1e77 src/imap/cmd-delete.c
--- 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;
 	}
 
diff -r 78286b1a0a16 -r 6790433a1e77 src/imap/cmd-rename.c
--- 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;
 	}
 


More information about the dovecot-cvs mailing list