How to group mails in gmail based on multiple accounts

The joys of managing multiple email accounts in Gmail!

To group emails from multiple accounts in Gmail, you can use filters, labels, and labels' hierarchy. Here's a step-by-step guide to help you achieve this:

Prerequisites:

  1. You have multiple email accounts set up in your Gmail account (e.g., [email protected], [email protected], etc.).
  2. You have enabled IMAP (Internet Message Access Protocol) for each account. This allows Gmail to access and manage emails from each account.

Step 1: Create filters for each account

  1. Go to your Gmail account and click on the gear icon () in the upper right corner.
  2. Select "See all settings" from the dropdown menu.
  3. Click on the "Filters and Blocked Addresses" tab.
  4. Click on "Create a new filter" at the bottom of the page.
  5. Enter the email address of the account you want to filter (e.g., [email protected]).
  6. Click "Create filter" and then select "Apply the label" and choose a label (e.g., "Account 1").
  7. Repeat this process for each account, creating a separate filter for each one.

Step 2: Create a label hierarchy

  1. Go back to the "Labels" tab in your Gmail settings.
  2. Click on "New label" and create a top-level label (e.g., "Multiple Accounts").
  3. Create sub-labels under the top-level label for each account (e.g., "Account 1", "Account 2", etc.).

Step 3: Apply filters to labels

  1. Go back to the "Filters and Blocked Addresses" tab.
  2. Find the filter you created for each account and click on the "Edit" button.
  3. In the "Apply the label" section, select the sub-label you created for each account (e.g., "Account 1" under "Multiple Accounts").
  4. Click "Update filter" to save the changes.

Step 4: View emails grouped by account

  1. Go to your Gmail inbox and click on the "Multiple Accounts" label.
  2. You should see a list of emails from all accounts, grouped under the respective sub-labels (e.g., "Account 1", "Account 2", etc.).

Tips and Variations:

By following these steps, you should be able to group emails from multiple accounts in Gmail using filters, labels, and labels' hierarchy.