Solved

GMail - Filters - Matching a wildcard incoming destination address

Posted on 2014-01-28
5
10,315 Views
Last Modified: 2016-11-02
Hi All,

We have a domain set up using Google Apps that we use for receiving test emails from our developers.

I am trying to write a filter in GMail so that we don't have to manually keep finding emails and / or write a separate filter for each one.

What I want to be able to do is match on a prefix string on an incoming address in GMail.

For example:

All emails coming in to a_{anything}@invalid.com will be fowarded to Developer A
All emails coming in to b_{anything}@invalid.com will be fowarded to Developer B

ie:

a_adkhagkh@invalid.com will be forwarded to Developer A
a_we9hu@invalid.com will be forwarded to Developer A
b_978hy3bv@invalid.com will be forwarded to Developer B
b_fljwehibv@invalid.com will be forwarded to Developer B

We have setup a catch-all account for the domain in Google Apps, but I can't work out how to write the filter within that catch-all account to get it to auto forward the emails on using the prefix.

I have tried:

to:(a_*)
to(a_*.*)
to(a_*@invalid.com)

but none of those worked.

I suspect it is trivial, but it escapes me for now!

Thanks,

Alan.
0
Comment
Question by:Alan3285
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 37

Expert Comment

by:Jian An Lim
ID: 39819615
gmail do not support partial match

the only creative way to think about is to change the subject name to include like [testa]  for user a   , [testb] for user b

this way you achieve the same result.
0
 
LVL 12

Author Comment

by:Alan3285
ID: 39819643
Hi limjianan,

Thanks for the idea.  Unfortunately, the subjects are generally system generated by the applications being tested, so that isn't going to be an option for our specific situation.

Not casting aspersions, but how sure are you that GMail won't support matching a prefix on the destination address?  Have you seen or read this somewhere?

Alternatively, is there any other way you can think of to achieve this that doesn't require using the subject, sending address, or message body since those are also system generated out of the application unfortunately.

Thanks again,

Alan.
0
 
LVL 37

Accepted Solution

by:
Jian An Lim earned 500 total points
ID: 39819817
1.  i have tested it myself.
2. i have googled around and they arrive the same conclusion.
my keyword is "gmail filter partial match"

https://productforums.google.com/forum/#!topic/gmail/0zcTe-nMmN8

####

https://support.google.com/mail/answer/7190?hl=en has the support command
0
 
LVL 12

Author Closing Comment

by:Alan3285
ID: 39819940
Hi limjianan,

I found a way to do it!

Instead of using (from my OP):

a_adkhagkh@invalid.com will be forwarded to Developer A
a_we9hu@invalid.com will be forwarded to Developer A
b_978hy3bv@invalid.com will be forwarded to Developer B
b_fljwehibv@invalid.com will be forwarded to Developer B

If we use:

a.adkhagkh@invalid.com will be forwarded to Developer A
a.we9hu@invalid.com will be forwarded to Developer A
b.978hy3bv@invalid.com will be forwarded to Developer B
b.fljwehibv@invalid.com will be forwarded to Developer B

I can then filter on to:(a*) or to:(b*) etc and it will work.

I suspect that GMail regards an underscore as just part of a 'word' but a 'dot' as delimiting words.

I am putting the answer here for any that may follow, and giving you the points for trying to assist including the links that inspired me to try some alternative options :-)

Thanks,

Alan.
1
 

Expert Comment

by:Sudhakar V
ID: 41870841
If the email comes like this with a from and reply-to - how can I filter these.

from:      'JIM (ORACLE)' via Customer Support <support@abc.com>
reply-to:      ORACLE <support+id26749@abc.ayz.com>
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
This Micro Tutorial demonstrates the importance of annotations in Google Analytics and how they should be used to document changes made to a site, Google updates (Ex: Panda & Penguin), marketing campaigns, and any other events that might have contri…
This Micro Tutorial will demonstrate how marketers can use the Mobile Emulation Tool in Chrome Developer Tool. This will let you preview your site on any mobile device.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question