diff --git a/src/java/davmail/BundleMessage.java b/src/java/davmail/BundleMessage.java index 7752326d..849d965d 100644 --- a/src/java/davmail/BundleMessage.java +++ b/src/java/davmail/BundleMessage.java @@ -24,13 +24,14 @@ import java.text.MessageFormat; import java.util.ArrayList; import java.util.Locale; import java.util.ResourceBundle; +import java.io.Serializable; /** * Internationalization message. */ -public class BundleMessage { +public class BundleMessage implements Serializable { /** - * Root locale to get english messages for logging. + * Root locale to get english messages for logging. */ public static final Locale ROOT_LOCALE = new Locale("", ""); protected static final String MESSAGE_BUNDLE_NAME = "davmailmessages"; diff --git a/src/java/davmail/ldap/LdapConnection.java b/src/java/davmail/ldap/LdapConnection.java index eb5c7189..1d86c69d 100644 --- a/src/java/davmail/ldap/LdapConnection.java +++ b/src/java/davmail/ldap/LdapConnection.java @@ -575,8 +575,6 @@ public class LdapConnection extends AbstractConnection { // append personal contacts first String filter = ldapFilter.getContactSearchFilter(); - DavGatewayTray.debug(new BundleMessage("LOG_LDAP_REQ_SEARCH", currentMessageId, dn, scope, sizeLimit, timelimit, filter, returningAttributes)); - for (Map person : session.contactFind(filter).values()) { persons.put(person.get("uid"), person); @@ -974,15 +972,15 @@ public class LdapConnection extends AbstractConnection { } static interface LdapFilter { - public String getContactSearchFilter(); + String getContactSearchFilter(); - public Map> findInGAL(ExchangeSession session) throws IOException; + Map> findInGAL(ExchangeSession session) throws IOException; - public void add(LdapFilter filter); + void add(LdapFilter filter); - public boolean isFullSearch(); + boolean isFullSearch(); - public boolean isMatch(Map person); + boolean isMatch(Map person); } static class CompoundFilter implements LdapFilter {