Author: norman
Date: Mon Oct 10 18:11:39 2011
New Revision: 1181108
URL: http://svn.apache.org/viewvc?rev=1181108&view=rev
Log:
FetchProcessor should skip messages that can't get parsed. See IMAP-347
Modified:
james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/fetch/FetchProcessor.java
Modified:
james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/fetch/FetchProcessor.java
URL:
http://svn.apache.org/viewvc/james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/fetch/FetchProcessor.java?rev=1181108&r1=1181107&r2=1181108&view=diff
==============================================================================
---
james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/fetch/FetchProcessor.java
(original)
+++
james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/fetch/FetchProcessor.java
Mon Oct 10 18:11:39 2011
@@ -172,6 +172,14 @@ public class FetchProcessor extends Abst
if (session.getLog().isDebugEnabled()) {
session.getLog().debug("Unable to find message with
uid " + result.getUid(), e);
}
+ } catch (MailboxException e) {
+ // we can't for whatever reason find parse all requested
parts of the message. This may because it was deleted while try to access the
parts.
+ // So we just skip it
+ //
+ // See IMAP-347
+ if (session.getLog().isDebugEnabled()) {
+ session.getLog().debug("Unable to fetch message with
uid " + result.getUid() + ", so skip it", e);
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]