mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -05:00
IMAP: workaround for Exchange 2003 search deleted support
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1691 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
56f9330a65
commit
bf570104d2
@ -980,12 +980,20 @@ public class DavExchangeSession extends ExchangeSession {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Condition isTrue(String attributeName) {
|
public Condition isTrue(String attributeName) {
|
||||||
return new MonoCondition(attributeName, Operator.IsTrue);
|
if ("Exchange2003".equals(this.serverVersion) && "deleted".equals(attributeName)) {
|
||||||
|
return isEqualTo(attributeName, "1");
|
||||||
|
} else {
|
||||||
|
return new MonoCondition(attributeName, Operator.IsTrue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Condition isFalse(String attributeName) {
|
public Condition isFalse(String attributeName) {
|
||||||
return new MonoCondition(attributeName, Operator.IsFalse);
|
if ("Exchange2003".equals(this.serverVersion) && "deleted".equals(attributeName)) {
|
||||||
|
return or(isEqualTo(attributeName, "0"), isNull(attributeName));
|
||||||
|
} else {
|
||||||
|
return new MonoCondition(attributeName, Operator.IsFalse);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user