From 0410b144d9281748b2f95d6255ec63e8f721970e Mon Sep 17 00:00:00 2001 From: mguessan Date: Thu, 19 Mar 2009 13:46:45 +0000 Subject: [PATCH] IMAP: fix regression on SEARCH after refactoring git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@466 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/imap/ImapConnection.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index 8a8a51a3..ac3e1c2a 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -675,7 +675,7 @@ public class ImapConnection extends AbstractConnection { } else if ("LARGER".equals(token)) { conditions.append(operator).append("\"http://schemas.microsoft.com/mapi/proptag/x0e080003\" >= ").append(Long.parseLong(tokens.nextToken())).append(""); } else if ("SMALLER".equals(token)) { - conditions.append(operator).append("\"http://schemas.microsoft.com/mapi/proptag/x0e080003\" < ").append(Long.parseLong(tokens.nextToken())).append(""); + conditions.append(operator).append("\"http://schemas.microsoft.com/mapi/proptag/x0e080003\" < ").append(Long.parseLong(tokens.nextToken())).append(""); } else if (token.startsWith("SENT")) { conditions.append(operator); appendDateSearchParam(tokens, token, conditions); @@ -713,7 +713,7 @@ public class ImapConnection extends AbstractConnection { dateFormatter.setTimeZone(ExchangeSession.GMT_TIMEZONE); try { Date date = parser.parse(tokens.nextToken()); - conditions.append(operator).append("\"urn:schemas:httpmail:datereceived\"<'").append(dateFormatter.format(date)).append("'"); + conditions.append(operator).append("\"urn:schemas:httpmail:datereceived\"<'").append(dateFormatter.format(date)).append("'"); } catch (ParseException e) { throw new IOException("Invalid search parameters"); } @@ -741,17 +741,17 @@ public class ImapConnection extends AbstractConnection { throw new IOException("Invalid search parameters"); } if ("SENTON".equals(token)) { - conditions.append("(\"urn:schemas:httpmail:date\" > '") + conditions.append("(\"urn:schemas:httpmail:date\" > '") .append(dateFormatter.format(startDate)) - .append("' AND \"urn:schemas:httpmail:date\" < '") + .append("' AND \"urn:schemas:httpmail:date\" < '") .append(dateFormatter.format(endDate)) .append("')"); } else if ("SENTBEFORE".equals(token)) { - conditions.append("\"urn:schemas:httpmail:date\" < '") + conditions.append("\"urn:schemas:httpmail:date\" < '") .append(dateFormatter.format(startDate)) .append("'"); } else if ("SENTSINCE".equals(token)) { - conditions.append("\"urn:schemas:httpmail:date\" >= '") + conditions.append("\"urn:schemas:httpmail:date\" >= '") .append(dateFormatter.format(startDate)) .append("'"); }