2

I need to write a Gmail filter that deletes any email that comes into my Gmail inbox addressed to that Gmail address. I need to make an exception for responses that come from accepting or declining a calendar invitation.

This is what I have so far (I'm using an example Gmail address and domain, hence the use of .invalid):

Matches: {to:[email protected] to:[email protected]} -from:google -filename:ics -filename:vcs
Do this: Delete it

Is there a better way to do this?

Further information / Rationale

I own my own domain (richard.invalid) which has a number of email aliases set up. One of them ([email protected]) points to my Gmail address ([email protected]). When I reply to any email, I have Gmail configured so that it sends emails from [email protected].

This works great.

However there are at least 10 people in the world who blindly give out [email protected] or [email protected] as their own email address even though they don't actually have access to it. After years of responding to emails and trying to educate those individuals, I've given up and would like to delete anything sent to those addresses.

The only issue I have is that Google Calendar always sends invitations from my Gmail address, so I need to add an exception to my filter to ensure that responses to those aren't accidentally deleted. This isn't ideal, but I only ever send invitations to my other half.

As I've owned the domain for many years, I never send any emails from [email protected] - so I don't expect any legitimate email to ever go to it.

I'm using the free version of Gmail, not GSuite.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.