[jira] [Updated] (MAILBOX-220) StoreMessageManager::getMessages returns no messages when using FROM ranges.
[ https://issues.apache.org/jira/browse/MAILBOX-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Antoine Duprat updated MAILBOX-220: --- Attachment: 0001-JWC-94-UidTo-should-be-equal-to-MAX-when-creating-Me.patch Patch to be applied. StoreMessageManager::getMessages returns no messages when using FROM ranges. Key: MAILBOX-220 URL: https://issues.apache.org/jira/browse/MAILBOX-220 Project: James Mailbox Issue Type: Bug Components: store Affects Versions: 0.5 Reporter: Tellier Benoit Attachments: 0001-JWC-94-UidTo-should-be-equal-to-MAX-when-creating-Me.patch I do not get any messages using StoreMessaageManager::getMessages combined with MessageRange::from. This is due to the way StoreMessageResultIterator works : it is based on the comparaison with the TO value of the range. If this value is set to NOT_A_UID ( which is the case for the from range ), it will result in the StoreMessageResultIterator::hasNext to fail. Setting the TO value for the FROM message range to MAX_UID will solve the issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org
[jira] [Updated] (MAILBOX-220) StoreMessageManager::getMessages returns no messages when using FROM ranges.
[ https://issues.apache.org/jira/browse/MAILBOX-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tellier Benoit updated MAILBOX-220: --- Summary: StoreMessageManager::getMessages returns no messages when using FROM ranges. (was: toreMessaageManager::getMessages returns no messages when using FROM ranges.) StoreMessageManager::getMessages returns no messages when using FROM ranges. Key: MAILBOX-220 URL: https://issues.apache.org/jira/browse/MAILBOX-220 Project: James Mailbox Issue Type: Bug Components: store Affects Versions: 0.5 Reporter: Tellier Benoit I do not get any messages using StoreMessaageManager::getMessages combined with MessageRange::from. This is due to the way StoreMessageResultIterator works : it is based on the comparaison with the TO value of the range. If this value is set to NOT_A_UID ( which is the case for the from range ), it will result in the StoreMessageResultIterator::hasNext to fail. Setting the TO value for the FROM message range to MAX_UID will solve the issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org