Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

GMail - Filters - Matching a wildcard incoming destination address

Posted on 2014-01-28
5
Medium Priority
?
10,839 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
[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 18

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 18

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
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.
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 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.
Suggested Courses

636 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