if (spamFilter != null) {
List l = new LinkedList();
for (int i = 0; i < messages.length; i++) {
l.add(messages[i].getMessageProxy());
}
java.util.List removed = spamFilter.performFilter(l);
if (removed != null && removed.size() > 0) {
try {
getFolderInfo().expunge();
} catch (OperationCancelledException oce) {
} catch (MessagingException me) {