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:
committed by
Gunnar Hillert
parent
0b5cabf22c
commit
c03ecebf19
@@ -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()]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user