New versions of Mail should automatically apply rules once created (or at least prompt you to do so), otherwise, go into your inbox, select all the messages and from a menu up top (can't remember off the top of my head) there will be a "Apply rules..." option you can select that will apply it retroactively for all old mail highlighted.