If you use Google’s label system to sort your Gmail messages, you can create a mail filter to apply one of those labels to new messages that meet the filter’s rules — like the name of the sender. If you do not have a label for the recipient set up before creating the filter, you can make them both at once.

To set up a filter for a regular email correspondent or group of contacts, log into your Gmail account on the web, click the gear icon on the right side of the window and select Settings. At the top of the Settings screen, click “Filters and blocked addresses.”

When you set up a filter in Gmail for messages from specific senders, you can choose an existing label or make a new one.

At the bottom of the screen, click “Create a new filter.” In the Filter box, fill in the information for the email senders you want to group under a filter. When you are finished, click “Create a filter with this search” in the bottom right corner of the box.

As an alternative, you can set up a filter from the search box in your Gmail inbox. Enter your keywords, click the magnifying-glass icon and then the small black arrow in the search windows to get the “Create a new filter” link.

Once you have clicked the “Create a filter with this search” link and have proceeded to the next screen, turn on the checkbox next to “Apply the label” and choose a label from the drop-down menu next to it. If you do not have a ready-made label in the list, choose “New label” and create one.

When you have all the rules in place, click the “Create filter” button at the bottom of the box to sort incoming messages. If you want to modify a filter’s behavior, return to the “Filters and blocked addresses” tab in the Gmail settings, find the filter in the list and click the edit (or delete) button to the right.