Automatically marking junk mail as read
Go To Mail -> Preferences -> Junk

When junk mail arrives, say:
Perform Custom actions

Click on the Advanced button at the bottom, which just turned up to be active.



Then say "Mark as read" in one of your actions: