james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1664979 - /james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java
Date Sun, 08 Mar 2015 12:03:22 GMT
Author: eric
Date: Sun Mar  8 12:03:22 2015
New Revision: 1664979

URL: http://svn.apache.org/r1664979
Log:
Messages get copied instead of moved, patch contributed by Benoit Tellier (MAILBOX-205)

Modified:
    james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java

Modified: james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java?rev=1664979&r1=1664978&r2=1664979&view=diff
==============================================================================
--- james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java
(original)
+++ james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java
Sun Mar  8 12:03:22 2015
@@ -480,7 +480,7 @@ public class StoreMailboxManager<Id> imp
             List<MessageRange> movedRanges = new ArrayList<MessageRange>();
             Iterator<MessageRange> ranges = set.split(moveBatchSize).iterator();
             while (ranges.hasNext()) {
-                movedRanges.addAll(fromMailbox.copyTo(ranges.next(), toMailbox, session));
+                movedRanges.addAll(fromMailbox.moveTo(ranges.next(), toMailbox, session));
             }
             return movedRanges;
         } else {



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message