These directions apply to the desktop version of Yahoo Mail.
SelectSettings(the gear icon).
In theEdit Filtersection, enter the filter criteria.
There’s no need to make this folder manually.
The folder you specify will be made automatically upon completion of the next step.
Every email that meets the filter criteria will be filed automatically in the folder you designated.