From fbc187a3e2577b48db408296ad2473cf6d2ab1f1 Mon Sep 17 00:00:00 2001 From: cketti Date: Sun, 19 Feb 2012 19:51:06 +0100 Subject: [PATCH] IMAP: Send the Message-ID as quoted string in getUidFromMessageId() --- src/com/fsck/k9/mail/store/ImapStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/mail/store/ImapStore.java b/src/com/fsck/k9/mail/store/ImapStore.java index 17441a600..cc3681706 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -1913,7 +1913,7 @@ public class ImapStore extends Store { List 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) {