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 "Tellier Benoit (JIRA)" <ji...@apache.org> on 2015/01/20 18:11:34 UTC
[jira] [Updated] (MAILBOX-205) Messages get copied instead of moved
when moveBatchSize is set in StoreMailboxManager
[ https://issues.apache.org/jira/browse/MAILBOX-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tellier Benoit updated MAILBOX-205:
-----------------------------------
Attachment: MAILBOX-205.patch
Here is the patch solving the problem :
It simply remplaces the wrong call to copyTo to a call to moveTo.
> Messages get copied instead of moved when moveBatchSize is set in StoreMailboxManager
> -------------------------------------------------------------------------------------
>
> Key: MAILBOX-205
> URL: https://issues.apache.org/jira/browse/MAILBOX-205
> Project: James Mailbox
> Issue Type: Bug
> Environment: Any
> Reporter: Tellier Benoit
> Attachments: MAILBOX-205.patch
>
>
> I was working on MAILBOX-146 to add a batch size where needed in the StoreMessageManager ( setFlags, deleteMarkedInMailbox, recent, copy, move ) and I add a look at the code of the StoreMailboxManager.
> I found a call to a method named **copyTo** in an other method named **moveMessages**...
> I might have missed something, but I think this might create a bug when moveBatchSize is not null....
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org