Using Filters to Sort Incoming Email
Follow the below steps:
1) In the upper-right corner of your Yahoo! Mail page, click the Options link, then select Mail Options / More Options from the menu.
2) On the left side of the page, click the Filters link.
3) On the top of the Filters page, click the Add Filter button.
4) A page appears where you can define the rule and the destination for the new filter.
5) Fill the form.
6) Save the changes.