dovecot-1.2: imap: CONTEXT search return option wasn't handled a...

dovecot at dovecot.org dovecot at dovecot.org
Sun Jan 29 00:01:38 EET 2012


details:   http://hg.dovecot.org/dovecot-1.2/rev/031a4c2fabea
changeset: 9652:031a4c2fabea
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jan 28 23:58:50 2012 +0200
description:
imap: CONTEXT search return option wasn't handled at all.

diffstat:

 src/imap/imap-search.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 9ab1c8a10944 -r 031a4c2fabea src/imap/imap-search.c
--- a/src/imap/imap-search.c	Wed Jan 25 23:45:02 2012 +0200
+++ b/src/imap/imap-search.c	Sat Jan 28 23:58:50 2012 +0200
@@ -65,7 +65,9 @@
 			ctx->return_options |= SEARCH_RETURN_COUNT;
 		else if (strcmp(name, "SAVE") == 0)
 			ctx->return_options |= SEARCH_RETURN_SAVE;
-		else if (strcmp(name, "UPDATE") == 0)
+		else if (strcmp(name, "CONTEXT") == 0) {
+			/* no-op */
+		} else if (strcmp(name, "UPDATE") == 0)
 			ctx->return_options |= SEARCH_RETURN_UPDATE;
 		else if (strcmp(name, "PARTIAL") == 0) {
 			if (ctx->partial1 != 0) {


More information about the dovecot-cvs mailing list