dovecot-1.2: IMAP: Don't return APPENDUI/COPYUID if backend didn...

dovecot at dovecot.org dovecot at dovecot.org
Fri Feb 27 01:30:42 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/d153c72800e0
changeset: 8789:d153c72800e0
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 26 18:27:17 2009 -0500
description:
IMAP: Don't return APPENDUI/COPYUID if backend didn't provide them.

diffstat:

2 files changed, 5 insertions(+), 1 deletion(-)
src/imap/cmd-append.c |    4 +++-
src/imap/cmd-copy.c   |    2 ++

diffs (26 lines):

diff -r 1f2dfc6fbda9 -r d153c72800e0 src/imap/cmd-append.c
--- a/src/imap/cmd-append.c	Thu Feb 26 17:44:17 2009 -0500
+++ b/src/imap/cmd-append.c	Thu Feb 26 18:27:17 2009 -0500
@@ -259,7 +259,9 @@ static bool cmd_append_continue_parsing(
 		}
 		i_assert(ctx->count == uid2 - uid1 + 1);
 
-		if (uid1 == uid2) {
+		if (uid1 == 0)
+			msg = "OK Append completed.";
+		else if (uid1 == uid2) {
 			msg = t_strdup_printf("OK [APPENDUID %u %u] "
 					      "Append completed.",
 					      uid_validity, uid1);
diff -r 1f2dfc6fbda9 -r d153c72800e0 src/imap/cmd-copy.c
--- a/src/imap/cmd-copy.c	Thu Feb 26 17:44:17 2009 -0500
+++ b/src/imap/cmd-copy.c	Thu Feb 26 18:27:17 2009 -0500
@@ -155,6 +155,8 @@ bool cmd_copy(struct client_command_cont
 	else {
 		i_assert(copy_count == uid2 - uid1 + 1);
 
+		if (uid1 == 0)
+			msg = "OK Copy completed.";
 		if (uid1 == uid2) {
 			msg = t_strdup_printf("OK [COPYUID %u %s %u] "
 					      "Copy completed.",


More information about the dovecot-cvs mailing list