From 81dc410a556a5b441913f8e4a62363d0385b903b Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 30 Oct 2004 05:47:43 +0000 Subject: [PATCH] fixed query inversion bug in IMAP darcs-hash:20041030054743-5007d-08272edad49412f63ab6743e02e1d6a87043ac69.gz --- src/org/ibex/mail/protocol/IMAP.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/ibex/mail/protocol/IMAP.java b/src/org/ibex/mail/protocol/IMAP.java index 627070e..368a1b2 100644 --- a/src/org/ibex/mail/protocol/IMAP.java +++ b/src/org/ibex/mail/protocol/IMAP.java @@ -551,7 +551,7 @@ public class IMAP { else if (s.equals("SENTSINCE")) q = Query.sent(token().date(), new Date(Long.MAX_VALUE)); else if (s.equals("SENTON")) { Date d = token().date(); q = Query.sent(d, new Date(d.getTime() + 24 * 60 * 60)); } else if (s.equals("UID")) q = Query.uid(token().set()); - return q; + return not ? Query.not(q) : q; } private static void bad(String s) { throw new Server.Bad(s); } -- 1.7.10.4