[
https://issues.apache.org/jira/browse/IMAP-345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Charles reopened IMAP-345:
-------------------------------
Hi, I have upgraded my imap (didn't run yet with IMAP-345), and I have logs
such as
INFO 18:54:58,532 | james.imapserver | ID=2110824148 Unable to uid for unseen
message 2274 in mailbox #private:[email protected]:INBOX....
These messages are shown for each of my folders, and it seems that the "repair
folder" function stops when it encounters such a event.
The log is produces in the AbstractSelectionProcessor:
// try to write the UNSEEN message to the client and retry if we fail
because of concurrent sessions.
//
// See IMAP-345
int retryCount = 0;
while(unseen(responder, firstUnseen, selected,
ImapSessionUtils.getMailboxSession(session)) == false) {
// if we not was able to get find the unseen within 5 retries we
should just not send it
if (retryCount == 5) {
if (session.getLog().isInfoEnabled()) {
session.getLog().info("Unable to uid for unseen message " +
firstUnseen + " in mailbox " + selected.getPath());
}
break;
}
firstUnseen = selectMailbox(fullMailboxPath,
session).getFirstUnseen();
retryCount++;
}
> AbstractSelectionProcessor.unseen(..) may throws MailboxException if the
> message was deleted by an other session
> ----------------------------------------------------------------------------------------------------------------
>
> Key: IMAP-345
> URL: https://issues.apache.org/jira/browse/IMAP-345
> Project: JAMES Imap
> Issue Type: Bug
> Components: Processor
> Affects Versions: 0.2.1
> Reporter: Norman Maurer
> Assignee: Norman Maurer
> Fix For: 0.3
>
>
> See this exception:
> org.apache.james.mailbox.MailboxException: No message found with uid 505 in
> mailbox #private.INBOX.james-apache-org
> at
> org.apache.james.imap.processor.AbstractSelectionProcessor.unseen(AbstractSelectionProcessor.java:357)
> at
> org.apache.james.imap.processor.AbstractSelectionProcessor.respond(AbstractSelectionProcessor.java:134)
> at
> org.apache.james.imap.processor.AbstractSelectionProcessor.doProcess(AbstractSelectionProcessor.java:92)
> at
> We should better retry to get the first unseen in this case and only error
> out if we not was able to get it within x tries.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]