You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by jo...@apache.org on 2006/12/05 22:11:03 UTC
svn commit: r482782 -
/james/server/trunk/src/java/org/apache/james/mailboxmanager/wrapper/ImapMailboxSessionWrapper.java
Author: joachim
Date: Tue Dec 5 13:11:01 2006
New Revision: 482782
URL: http://svn.apache.org/viewvc?view=rev&rev=482782
Log:
fixed search (was null) + ASF Header
Modified:
james/server/trunk/src/java/org/apache/james/mailboxmanager/wrapper/ImapMailboxSessionWrapper.java
Modified: james/server/trunk/src/java/org/apache/james/mailboxmanager/wrapper/ImapMailboxSessionWrapper.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/mailboxmanager/wrapper/ImapMailboxSessionWrapper.java?view=diff&rev=482782&r1=482781&r2=482782
==============================================================================
--- james/server/trunk/src/java/org/apache/james/mailboxmanager/wrapper/ImapMailboxSessionWrapper.java (original)
+++ james/server/trunk/src/java/org/apache/james/mailboxmanager/wrapper/ImapMailboxSessionWrapper.java Tue Dec 5 13:11:01 2006
@@ -1,9 +1,27 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
+
package org.apache.james.mailboxmanager.wrapper;
import javax.mail.search.SearchTerm;
import org.apache.james.mailboxmanager.GeneralMessageSet;
-import org.apache.james.mailboxmanager.MailboxListener;
import org.apache.james.mailboxmanager.MailboxManagerException;
import org.apache.james.mailboxmanager.MessageResult;
import org.apache.james.mailboxmanager.Quota;
@@ -11,6 +29,7 @@
import org.apache.james.mailboxmanager.impl.MailboxEventDispatcher;
import org.apache.james.mailboxmanager.mailbox.ImapMailbox;
import org.apache.james.mailboxmanager.mailbox.ImapMailboxSession;
+import org.apache.james.mailboxmanager.mailbox.SearchableMailbox;
public class ImapMailboxSessionWrapper extends FlaggedSessionMailboxWrapper
implements ImapMailboxSession {
@@ -46,9 +65,8 @@
return ((ImapMailbox) mailbox).getUidNext();
}
- public MessageResult[] search(GeneralMessageSet set, SearchTerm searchTerm, int result) {
- // TODO Auto-generated method stub
- return null;
+ public MessageResult[] search(GeneralMessageSet set, SearchTerm searchTerm, int result) throws MailboxManagerException {
+ return addMsnToResults(((SearchableMailbox)mailbox).search(set, searchTerm, noMsnResult(result)),result);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org