Click the Settings Gear icon, select the view all settings link.
Navigate to mail rules.
Click the add new rule button.
Choose both the conditions that trigger the rule and the actions the rule will.
There you can edit rules, sort rules by priority, or delete them among other things.
Now, if we want to create and rule for mail, right click on mail and select the option advanced action. Click on create rule, choose Option Inbox and select more option. Write the name of your rule.
Fill the option below and select run rule now and save it.