To classify emails falling under specific criteria to separate folders, you can make use of the
Filters option. You can set up filters such that emails with certain conditions get moved to a folder of your choice. Learn more on creating filters
here.