1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

IMAP: merge fix from Kolos, search command with message sequence set

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1493 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-10-05 21:52:39 +00:00
parent a643b5741d
commit 4df643eea1

View File

@ -879,10 +879,11 @@ public class ImapConnection extends AbstractConnection {
appendMailEnvelopeHeader(buffer, mimeMessage.getHeader("From", ","));
appendMailEnvelopeHeader(buffer, mimeMessage.getHeader("Sender", ","));
appendMailEnvelopeHeader(buffer, mimeMessage.getHeader("Reply-To", ","));
appendMailEnvelopeHeader(buffer, mimeMessage.getHeader("To", ","));
appendMailEnvelopeHeader(buffer, mimeMessage.getHeader("CC", ","));
appendMailEnvelopeHeader(buffer, mimeMessage.getHeader("BCC", ","));
appendMailEnvelopeHeader(buffer, mimeMessage.getHeader("In-Reply-To", ","));
appendEnvelopeHeader(buffer, mimeMessage.getHeader("Messagee-Id"));
appendEnvelopeHeader(buffer, mimeMessage.getHeader("Message-Id"));
} catch (MessagingException me) {
DavGatewayTray.warn(me);
@ -1159,7 +1160,7 @@ public class ImapConnection extends AbstractConnection {
}
} else if ("OLD".equals(token) || "RECENT".equals(token) || "ALL".equals(token)) {
// ignore
} else if (token.indexOf(':') >= 0) {
} else if (token.indexOf(':') >= 0 || token.matches("\\d+")) {
// range search
conditions.indexRange = token;
} else {