From: adam Date: Sat, 30 Oct 2004 05:47:43 +0000 (+0000) Subject: fixed query inversion bug in IMAP X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=81dc410a556a5b441913f8e4a62363d0385b903b;p=org.ibex.mail.git fixed query inversion bug in IMAP darcs-hash:20041030054743-5007d-08272edad49412f63ab6743e02e1d6a87043ac69.gz --- 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); }