I have an email wildcard *.example.com set up for my private domain so that all messages, regardless of the prefix will be forwarded to my Gmail account.

I use this so I can give different email addresses to different people and companies without needing to set them up individually.

My question is, in Gmail, is there any way to display the specific "To" address without first having to open the email?

For example, is there something that can add a label that matches the "To" address or alternatively show the "To" column in the inbox?

1 Answer 1


You cannot change the columns that are displayed in Gmail but you can add a label to incoming messages based on the TO address.

Filter Based on TO Address

  1. Create a filter based on the address you want to apply a label to. The simplest way is probably to start with a search, such as:

    to:[email protected]
  2. Next, press the down-pointing arrow to the right of the search field to open the advanced search form and then click "Create a filter with this search".

  3. On the next window, click "Apply the label:" and choose the label you want to use (or create a new one).

  4. Select any other things you might want to happen.

  5. Optionally, to label messages already received, check "Also apply filter to matching conversations"

  6. Save the filter.

Now, when a message comes in addressed to [email protected] the filter will apply your label.


  1. You can also include messages where the address is included on the CC and/or BCC fields. For example:
    to:[email protected] OR cc:[email protected] OR bcc:[email protected]
    or the equivalent
    {to:[email protected] cc:[email protected] bcc:[email protected]}
  2. You will need a separate filter for each address that needs a unique label, however you can use a single filter for multiple addresses that share a common label. For example:
    to:({[email protected] [email protected] [email protected]})
  3. You can create a single filter for all prefixes from the same domain by leaving out the prefix from the search. For example:*
  4. If you need to create many filters, you can save time by doing it in a text editor.
    1. Create the first filter.
    2. Export your filter(s)
    3. Edit the XML file to add additional filters using the first filter as an example/template.
    4. Import the edited XML file back into Gmail.

Gmail Resources

* credit to @JPvdB for pointing out the wildcard aporoach

  • But this means I have to specify one for EVERY email address I want to use, correct? Feb 26, 2014 at 14:11
  • If you want to use the same label for multiple addresses, you can use to:[email protected] OR to:[email protected] OR to:[email protected]. If you want one label per address, then yes, you need a separate filter for each.
    – ale
    Feb 26, 2014 at 14:19
  • You could save time by creating one such filter, exporting your filters, editing the export file (it's just XML) to create more filters, then re-importing it.
    – ale
    Feb 26, 2014 at 14:20
  • Yeah but the thing is I want this added dynamically. I dont want to have to add a list of email addresses as it will be ever growing. Feb 26, 2014 at 17:59
  • Then what you're looking to do won't be possible with just Gmail alone. You'd need some other tool.
    – ale
    Feb 26, 2014 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.