Spam filtering doesn't work with 5.0.12 for emails that are downloaded from an external server for POP3 or IMAP. I searched the forums and bugzilla for this and found a few posts. I believe a change was implemented for this and then abandoned as it broke the offline client for some reason.
I am trying to make this change myself with the source code and it doesn't have to work with the offline client for me. I changed the POP3Import.java file fetchMessages method to do this
com.zimbra.cs.mailbox.Message m = RuleManager.getInstance().applyRules(
mbox.getAccount(), mbox, pm, pm.getRawSize(), dataSource.getEmailAddress(),
but it still doesn't work. Any ideas? Am i missing something? Is there more to it and this change?