frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: I'm killing AI slop spam with a simple Google script

3•apparent•1h ago
As a founder, I've been getting an increasing amount of useless unsolicited outreach, all of which is clearly generated using AI. For some reason, Google's spam filter doesn't flag these emails as spam, so my phone buzzes throughout the day (especially in the morning) when one of these AI-generated messages arrives.

I know there are some subscription tools I could use to filter these out, and there are some friction-creating tools I can use to keep them out of my inbox (like the ones that force senders to prove they're human 1x before their emails are delivered).

But I figured there had to be a better solution that is (1) free and (2) not a hassle to people I correspond with.

After a chat with Gemini, I ended up creating a Google script that works very well for my purposes.

It simply takes any email that's in my Inbox and if it's from a sender that I've never emailed before, it moves it to a purgatory folder that I can review later. The script runs once a minute.

Pros: this is simple and deterministic. Gemini tried to get me to build a script that used AI to process emails, but I didn't want to send all my emails to an LLM, and the efficacy could vary over time, as the cat-and-mouse game of AI-spam versus AI-detection plays out.

Cons: it does not prevent emails from landing in your Inbox in the first place, possibly triggering a notification. For me, this is OK because I use the gmail app on my phone and have it set to only notify for Important emails. Gmail is pretty good at recognizing unimportant emails, so when the emails that will be filtered first land, they most likely won't trigger a notification

It's possible this will be over-inclusive, and I will be annoyed not to have seen a time-sensitive email about a conference I'm at, or some such thing. Time will tell, but so far I'm really glad to have these useless and frequent emails swept out of my Inbox.

If you have found any other free/innovative ways to get rid of AI-generated spam, please share! I'm sure there are better ideas than what I've come up with (and which Gemini wrote for me).

I've included the Google script I use below. Note that you have to turn on the option (in Settings / General) to automatically add email recipients to your Other Contacts.

Create a new script at https://script.google.com using this for the body:

  function filterUnknownSenders() {
  // Label to hold unknown emails for easy reviewing
  const LABEL_NAME = "Review/Unknown";
  let unknownLabel = GmailApp.getUserLabelByName(LABEL_NAME);
  if (!unknownLabel) {
    unknownLabel = GmailApp.createLabel(LABEL_NAME);
  }

  // Find unread messages currently sitting in your primary inbox
const threads = GmailApp.search("is:unread in:inbox", 0, 15);

  for (const thread of threads) {
    const message = thread.getMessages()[0];
    const sender = message.getFrom();
    const senderEmail = extractEmail(sender);

    // Check if you have ever sent an email to this address
    const sentHistory = GmailApp.search(`to:${senderEmail}`, 0, 1);

    // If you have NEVER emailed this person, archive and label the message
    if (sentHistory.length === 0) {
      thread.moveToArchive();
      thread.addLabel(unknownLabel);
      GmailApp.markThreadUnimportant(thread); // Prevents "Important" notifications
      Logger.log(`Archived unknown sender: ${senderEmail}`);
    }
  }
}

// Helper to pull clean email address from "Name <email@domain.com>" sender strings function extractEmail(senderString) { const match = senderString.match(/<([^>]+)>/); return match ? match[1] : senderString; }

The N64's GPU Is a Technical Marvel [video]

https://www.youtube.com/watch?v=WEoRgQH08MA
1•zdw•1m ago•0 comments

The Thaura Constitution

https://thaura.ai/constitution
1•conferza•5m ago•0 comments

Somoene bets $10M on Reddit stock anad loses half of it

https://old.reddit.com/r/wallstreetbets/s/LWYApzWCQH
1•paulpauper•5m ago•0 comments

The Ground Beneath Them Was Dry

https://lagomor.ph/2026/10/the-ground-beneath-them-was-dry/
1•jfil•6m ago•0 comments

Sndstation will transform cheap gaming consoles into music handhelds

https://cdm.link/sndstation-linux-distro-for-game-handhelds/
1•Blackthorn•6m ago•0 comments

The Commanding Heights

https://commanding-heights.com/
1•emersonmacro•9m ago•0 comments

$20 plans, $1 of Sol costs 7x what $1 of Opus does. A task, only 1.3x

https://twitter.com/AdamHoltererer/status/2115879037893534195
1•marcellosso•9m ago•0 comments

Assure – your AI agent says "done." This checks if it's lying

https://github.com/mgasparin67-cmd/Agent-verification_Assure
1•spaghetti0•10m ago•0 comments

Ukrainian arms manufacturer Fire Point has overcome Starlink restrictions

https://www.reuters.com/business/aerospace-defense/ukrainian-arms-maker-fire-point-says-its-syste...
3•uxhacker•12m ago•0 comments

AI's Bill Is Due – Intelligence or Brand? – Cold Logic – EP01

https://www.youtube.com/undefined
1•LebToki•17m ago•0 comments

Zinc creep in cable spelter sockets brought down the Arecibo telescope in 2020

https://maketecheasier.com/arecibo-zinc-creep-collapse/
1•ohjeez•17m ago•0 comments

The reasons embedded projects get into trouble (2002)

https://www.ganssle.com/articles/jackstoptenlist.htm
1•ohjeez•20m ago•0 comments

Show HN: Fastbrowse, Browser agent that picks clicks with a System One model

https://www.fastbrowse.ai/
3•furqanrydhan•21m ago•2 comments

Defining AI

https://ali-alkhatib.com/blog/defining-ai
1•bediger4000•21m ago•0 comments

Now what? After the AI crash

https://sorathompson.substack.com/p/now-what
3•SorasTuff•22m ago•0 comments

Compromised eMudhra Certificates: Update Your JetBrains IDEs, ReSharper, etc.

https://blog.jetbrains.com/security/2026/10/compromised-emudhra-certificates-ides/
3•MattGaiser•23m ago•0 comments

Show HN

https://www.gallerismuseum.com/
1•Dharkstranger•27m ago•0 comments

Some Memories of Early Anthropic

https://nothinghuman.substack.com/p/some-memories-of-early-anthropic
3•Nition•32m ago•0 comments

CVE 10.0: CVE-2026-112816, no emudhra required

https://www.cve.org/CVERecord?id=CVE-2026-112816
21•paaloeye•32m ago•2 comments

Google's $500B bloodbath reflects the danger it faces from AI

https://www.economist.com/business/2026/10/29/googles-500bn-bloodbath-reflects-the-danger-it-face...
4•andsoitis•33m ago•1 comments

CVE-2026-112816: Improper certificate validation in the HTTPS listener in LXD

https://cve.now/CVE-2026-112816
3•paaloeye•33m ago•1 comments

Supersonic airliner in doubt as company shifts to powering AI data centers

https://arstechnica.com/gadgets/2026/10/united-airlines-ceo-doubts-supersonic-airliner-from-boom-...
3•fedpost•36m ago•0 comments

INTC and ORCL to Collab Around Agentic AI on OCI

https://www.intel.com/content/www/us/en/newsroom/news/corporate/intel-oracle-collaborate-on-enter...
1•paaloeye•39m ago•0 comments

Show HN: SkillWire, a searchable catalog for coding-agent skills

https://skillwire.net
2•Oscalemor•40m ago•0 comments

Alabama Is Sued over App Store Age Verification Law

https://reclaimthenet.org/alabama-is-sued-over-app-store-age-verification-law
3•latein•41m ago•0 comments

Ignore AI and ask for that pay rise

https://www.economist.com/finance-and-economics/2026/10/29/ignore-ai-and-ask-for-that-pay-rise
3•andsoitis•42m ago•0 comments

Update and Self-Correction: Unlocking Zero-Point Energy (coming soon)

https://zenodo.org/records/23629786
1•AbdulrahmanAhme•48m ago•0 comments

France is getting download tax for content providers (€0.055/GB)

https://www.resetera.com/threads/france-is-getting-download-tax-for-content-providers-%E2%82%AC0-...
25•bko•48m ago•4 comments

Free to Think

https://www.scholarsatrisk.org/resources/free-to-think-2026/
2•jruohonen•52m ago•0 comments

Amem MCP on Mcprush

https://mcprush.com/slaven-s/amem-mcp
2•slugics•52m ago•0 comments