Filter for email with suffix

1,861 views
Skip to first unread message

Pavis Limsira

unread,
Mar 14, 2016, 11:43:05 AM3/14/16
to GMail Power Users
Hello,
I want to create a filter for email with suffix.
now I got many mail from hotel booking site.
I just want officail mail from them which is tra...@domain.com
and I want to get rid all of no-reply-[some number]@domain.com

I try no-reply-*@domain.com and it wont work 

how could I set up a filter for this?

Yatin Rao

unread,
Mar 14, 2016, 1:59:15 PM3/14/16
to gmail-po...@googlegroups.com
How about using the following conditions in the same filter:
- does have "@domain.com"
- does not have "no-reply-"

Cheers,
-Yatin

"It is not enough to be busy; so are the ants. The question is: What are we busy about?"Henry David Thoreau

--
--
You received this message because you are subscribed to the Google Groups "GMail Power Users" group.
To post to this group, send email to gmail-po...@googlegroups.com
To unsubscribe from this group, send email to gmail-power-us...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/gmail-power-users?hl=en
To send a message to the owner, visit the following page:
http://groups.google.com/group/gmail-power-users/post?sendowner=1&hl=en

---
You received this message because you are subscribed to the Google Groups "GMail Power Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gmail-power-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andy

unread,
Mar 14, 2016, 2:15:30 PM3/14/16
to [gmail-power-users]
On Mon, Mar 14, 2016 at 2:21 AM, Pavis Limsira <pav...@esp-group.asia> wrote:

I try no-reply-*@domain.com and it wont work 

​That's because Gmail doesn't use Wildcards.  '*' is a wildcard character.

But it does recognize parts of email addresses.  I have many Filters that look for "@domain.com", and they all work.

Yatin's reply should do it for you.  In the Filter's "From" field, try using this:

"@domain.com"  -"no-reply-"

so that both of them are tested against the "from:" address.  Don't use the Filter's "Doesn't have" box because that checks the entire body of the message.

The first '-' says to look for the absence of "no-reply-".  The minus sign is Gmail's operator meaning "not".  https://support.google.com/mail/answer/7190?hl=en

Andy


Yatin Rao

unread,
Mar 14, 2016, 2:39:45 PM3/14/16
to gmail-po...@googlegroups.com
Cool. 👍🏼

Andy, thanks for pointing out that the "Doesn't have" checks for the body of the message; I missed that. 

Best.

"It is not enough to be busy; so are the ants. The question is: What are we busy about?"Henry David Thoreau

Reply all
Reply to author
Forward
0 new messages