ce0e017
Patch by Robert Scheck <robert@fedoraproject.org> for Zarafa <= 7.1.10 which fixes the RFC-
ce0e017
violating reply of the Zarafa IMAP gateway in response to a failed SEARCH CHARSET request.
ce0e017
This is documented at http://tools.ietf.org/html/rfc3501#page-64: "BADCHARSET: Optionally
ce0e017
followed by a parenthesized list of charsets. [...]". This patch adds missing parenthesis.
ce0e017
ce0e017
Proposed to upstream via e-mail on Sun, 27 Jul 2014 23:58:01 +0200, patch was put into the
ce0e017
upstream ticket https://jira.zarafa.com/browse/ZCP-12504.
ce0e017
ce0e017
--- zarafa-7.1.10/gateway/IMAP.cpp			2014-05-23 15:56:37.000000000 +0200
ce0e017
+++ zarafa-7.1.10/gateway/IMAP.cpp.imap-badcharset	2014-07-27 23:42:30.000000000 +0200
ce0e017
@@ -2409,7 +2409,7 @@
ce0e017
 		if (lstSearchCriteria[1] != "WINDOWS-1252") {
ce0e017
 			iconv = new ECIConv("windows-1252", lstSearchCriteria[1]);
ce0e017
 			if (!iconv->canConvert()) {
ce0e017
-				hr2 = HrResponse(RESP_TAGGED_NO, strTag, "[BADCHARSET WINDOWS-1252] "+strMode+"SEARCH charset not supported");
ce0e017
+				hr2 = HrResponse(RESP_TAGGED_NO, strTag, "[BADCHARSET (WINDOWS-1252)] "+strMode+"SEARCH charset not supported");
ce0e017
 				hr = MAPI_E_CALL_FAILED;
ce0e017
 				goto exit;
ce0e017
 			}