1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

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

View File

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