Solved

GMail - Filters - Matching a wildcard incoming destination address

Posted on 2014-01-28
5
9,696 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
  • 2
  • 2
5 Comments
 
LVL 36

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 36

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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This Micro Tutorial  demonstrates whether your site uses one subdomain or multiple subdomains, how to create full URLs from Google Analytics content reports. This procedure is called concatenation and can also be done with the CONCATENTATE function.…
This Micro Tutorial demonstrates how to create custom reports and the secrets of determine the metrics and dimensions for your data that works best with your needs.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now