← All projects

Tracking incoming mail automatically

Important mail lands in one log automatically, colleagues get tagged and receive a summary by email. The administration manages the settings itself.

Category
Document management & internal tools
Stack
Google Apps Script · Google Sheets · Google Drive · Gmail
What it delivers
  • All mail in one overview
  • Changes without a developer

Starting point

Important mail spread across dozens of folders, with no overview.

An umbrella organisation received important mail every day for its different units, including letters from the tax authority. Everything ended up in a large number of cloud folders. There was no central overview: who needs to read this letter, what follow-up belongs to it, and has it been done?

The problem

No overview, and a structure that keeps changing.

Beyond the overview problem there was something more fundamental. Unit names and folder structures change regularly. If all of that lives in code, every change needs a developer, and the system itself becomes the bottleneck it was meant to remove.

In practice that meant:

  • mail sat too long because nobody knew it was there;
  • follow-up actions weren’t visible and could be forgotten;
  • every organisational change became a job for IT.

The approach

One log, follow-up inside the log, and settings in a tab.

A script checks the configured folders on a schedule, recognises from the filename which unit a document belongs to, and adds it with a link to a central log. Staff work in that log: they tag colleagues and tick off what they’ve read. A background process collects those tags and sends a personal summary by email at set times.

  1. Mail arrives in the foldersscanned or received digitally
  2. Script checks the folders on a schedule
  3. Recognise the ownerfrom the filename
  4. Row in the central logwith a link to the document
  5. Tag colleagues and tick offright in the log
  6. Scheduled summary by emailnew mail and open actions
Folders, categories and send times live in a configuration tab. The script reads it once and caches it, so it stays fast.

All settings, such as which folders, which categories and when the summary goes out, live in a configuration tab that the administration manages itself.

Key decisions

Four choices that made the difference.

  • Configure instead of program. The central decision. Adding a category or changing the send time is a row in the configuration tab, with no code. The script does validate those settings strictly, because a typo is now a runtime problem rather than a build-time one.
  • Summaries instead of an email per document. An email per letter teaches everyone to ignore notifications within a week. A summary at set moments respects people’s attention.
  • Staying fast. The script reads the configuration once and caches it briefly, so every check and every click in the log stays quick.
  • Dropdowns that follow the settings. The dropdowns in the log come from the configuration, so an invalid category or status is hard to enter. Pollution is prevented rather than cleaned up afterwards.

What made it hard

Safely handing the keys to non-technical colleagues.

The naive version, “put the folder IDs in a spreadsheet”, breaks the first time someone pastes a full link instead of an ID or leaves a row half filled in. The robust version validates every row, gives a clear error pointing at the right cell, and handles settings that change mid-day. Making a system less fragile while making it easier for non-technical colleagues to change: that was the real work.

The result

Mail that no longer sits unnoticed.

  • New documents appear in the right log within a short time, with the right link and owner, without manual entry.
  • The administration changes folders, send times and recipients itself in the configuration tab, without a developer.
  • Follow-up on important government mail is structurally faster: tagged actions stay in the morning summary until they’re handled.
  • Invalid entries in the log are nearly impossible thanks to the linked dropdowns.
Technical write-up on GitHub ↗Architecture, trade-offs and limitations, for those who want the details.

Built at organisations in finance, operations and business services. Client names and confidential details are left out.

Case studies

More projects

Free intro call, no strings attached

Stop repeating.
Start automating.

Want to know where automation could add value to your process? Book a free intro call and I’ll think it through with you.

Book a free call →Take the free check first