Apply rules in inbox