I have an issue with one of my emails where it gets too many spam emails. The emails clearly have me BCC'd as the recipient email is always David{some string of characters}@aol.com and the CC email is David{some different string of characters}@aol.com.

I believe it is possible via Google's app scripting to write an advanced filter to delete these emails with this pattern. The issue is, I'm not sure what site to write this on.

My first two thoughts would be Overflow or Super User, but usually Overflow wants some first attempt at coding to critique and I have no clue how to approach this. As for Super User, my experience is that they work mostly with the Windows system and programs, and this question might not be appropriate.

This is not a duplicate of Which site answers questions on Google services? because the answer to that question is incomplete an obsolete.

By one side suggest to ask question about Gmail in Web Applications but Gmail is a complex service. For one side is an email service offering IMAP /POP3 / SMTP protocols, it is a cross-platform app, its a service for email administratrors, can be used by programmers / developers, etc. Questions about using the Web app might be on-topic in [webapps.se]. The answer doesn't mentions about the focus of this quesiton that is about Gmail filtering. It doesn't clarify about using Google Apps Script for this purpose.


1 Answer 1


First check out Web Applications. [gmail] has 4,321 questions [gmail-filters] has 472 questions, but you might try searching https://stackexchange.com

By the way, in Gmail a filter is a built-in feature. You might be thinking on using code to automatically delete email messages periodically, this will require of a related feature, search.

Related from Web Applications

Related from Stack Overflow

Most questions about using Gmail in the Web (by using a web browser) are on-topic in Web Applications.

Overall questions about Gmail might be on-topic while the question doesn't make too much emphasis on caveats of:

  • installable app,
  • email clients,
  • email protocols (IMAP, SMTP, and POP3)
  • Gmail API,
  • Google Apps Script,
  • "too localized" uses cases (requires an answer that will not be helpful for anyone else)

do not go too deep on how the Gmail algorithms internally works.

Questions about Google Apps Script might be on-topic in Web Applications while the question be about about using it to create user defined functions like scripts, i.e. scripts for personal use or to be shared with small groups, not requiring advanced programming skills or engineering knowledge.

Questions about Google Apps Script or the Gmail API might be on-topic in Stack Overflow while they are focused on programming. [gmail] has 10,511 questions

Questions about Gmail might be on-topic in Super User while they be focused on using software and hardware for personal / domestic use, no matter of the operating system, it could be Windows, Mac, Linux, etc. with exception of smart phones, smart devices among others. Questions about scripts to be executed locally, i.e. writing scripts for batch files, might be on-topic. [gmail] has 1,329 questions

  • You might use an email client to handle your Gmail mailbox through IMAP, i.e., Microsoft Outlook you could set a rule to delete email messages.

Questions about Gmail might be on-topic in AskĀ Ubuntu while they be about using an desktop Ubuntu applications. [gmail] has 275 questions.

Questions about Gmail might be on-topic in Android Enthusiasts while they be about using Gmail by using an Android app. [gmail] has 674 questions.

Questions about Gmail might be on-topic in Ask Different while they be about using Gmail by using a macOS or an iOS app. [gmail] has 707 questions.

Not the answer you're looking for? Browse other questions tagged .