Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to set it up so that Gmail labels incoming mail based on which business email of mine the emails are sent to. I have two business emails that come to my Gmail account.

For instance, if someone emails me at example@firstbusiness.com, I would like the email to be automatically labeled first business. If someone emails me at my other email address (which also is forwarded to Gmail), example@secondbusiness.com, I would like that email to be automatically labeled second business.

Is there any way to do this?

share|improve this question

Of course there is; that's just basic filters.

Here's one way to make such a filter:

  1. In the Gmail search box, search for messages sent to your email address, like this: to:example@firstbusiness.com
  2. Assuming you got some results, click the small arrow on the right side of the search box. This will bring up the advanced search menu.
  3. Click "Create filter with this search"
  4. Choose what you want to happen to the message when it comes in. One of the options is "apply a label" but there are others you can do. It all depends on your needs.
share|improve this answer

Sure there is!

  1. When you're reading a mail you want to auto label
  2. hit the [More ▼] button
  3. and choose "Filter messages like these"

Set your criteria and click the "Create filter with this search »" link to choose your Label

share|improve this answer

Utilize filters for this. Go to:

Settings > Filters

You can filter on the to: field. Example:

  • Filter: To: example@firstbusiness.com
  • Action: Apply the label: <Create your own label>

Then you would create a second filter to auto-label the second business email.

share|improve this answer
  1. Open mail in Gmail to or from address: name@domainname.com
  2. Click More
  3. Chose Filter messages like this from dropdown list
  4. In the to textfield enter your email address: name@domainname.com
  5. In the from textfield enter your email address again: name@domainname.com (Note: I did this separately)
  6. Click Create filter with this search
  7. Check Apply the label: then chose New label from dropdown
  8. In upper textfield enter your domainname (or whatever you want the label to be called) and click create
  9. Check also Always mark it as important
share|improve this answer

If you are having gmail retrieve the email via pop3, you can have the emails automaticaly labeled and/or archived

  1. Click Gear button /Settings
  2. Accounts and Import
  3. Find the "Check mail from other accounts (using POP3" section
  4. Click on the "edit info" link.
  5. Specify an existing label or create a new label
  6. You can also "Archive incoming messages (Skip the Inbox)"
  7. Save Changes
share|improve this answer

In creating your filters, instead of putting j.r.user@random.com in the from box, put

from:j.r.user@random.com OR to:j.r.user@random.com 

in the has text box.

In doing this your replies to him are also auto tagged.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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