Solved

GMail - Filters - Matching a wildcard incoming destination address

Posted on 2014-01-28
5
9,802 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Are you irritated by repeating emails issue in Microsoft Outlook 2016 after recent update ?  Lets’ see how to resolve and prevent duplicate emails in the Outlook 2016 using some simple techniques.
Read this checklist to learn more about the 15 things you should never include in an email signature.
This Micro Tutorial will introduce a Google tool, which is a great way to learn more about dimensions in metrics in Google Analytics, even if you use the interface or the API.
This Micro Tutorial demonstrates in Google Analytics how to create a custom report that shows you traffic over time using the month of year dimensions. There are also instructions on how to fix Google's odd month of year formatting, which Microsoft …

930 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

14 Experts available now in Live!

Get 1:1 Help Now