INT-2991 Filtered Messages Marked SEEN

Missing else clause caused filtered email messages to
still be marked as SEEN. Also marked un-filtered messages
twice if a filter was present.

Add else; add tests.
This commit is contained in:
Gary Russell
2013-04-11 13:05:17 -04:00
committed by Gunnar Hillert
parent 0b5cabf22c
commit c03ecebf19
2 changed files with 49 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2011 the original author or authors.
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -322,7 +322,9 @@ public abstract class AbstractMailReceiver extends IntegrationObjectSupport impl
}
}
}
filteredMessages.add(message);
else {
filteredMessages.add(message);
}
}
return filteredMessages.toArray(new Message[filteredMessages.size()]);
}