IMAP: Send the Message-ID as quoted string in getUidFromMessageId()

This commit is contained in:
cketti 2012-02-19 19:51:06 +01:00
parent 8e32320f5d
commit fbc187a3e2
1 changed files with 1 additions and 1 deletions

View File

@ -1913,7 +1913,7 @@ public class ImapStore extends Store {
List<ImapResponse> responses =
executeSimpleCommand(
String.format("UID SEARCH HEADER MESSAGE-ID %s", messageId));
String.format("UID SEARCH HEADER MESSAGE-ID %s", encodeString(messageId)));
for (ImapResponse response1 : responses) {
if (response1.mTag == null && ImapResponseParser.equalsIgnoreCase(response1.get(0), "SEARCH")
&& response1.size() > 1) {