[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

GMail - Filters - Matching a wildcard incoming destination address

Posted on 2014-01-28
5
Medium Priority
?
11,039 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:Alan
  • 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 21

Author Comment

by:Alan
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 2000 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 21

Author Closing Comment

by:Alan
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Ransomware continues to be a growing problem for both personal and business users alike and Antivirus companies are still struggling to find a reliable way to protect you from this dangerous threat.
An analysis of the phishing scam that has been affecting Google users, along with steps to take for protection, as well as what to do if you receive one of the emails.
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.
This Micro Tutorial demonstrates in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Suggested Courses
Course of the Month18 days, 14 hours left to enroll

834 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