ZMPTYWorkPermitting
Email-driven project tracker
Turns a permitting mailbox into a live project tracker: 2,400+ emails filed across 380+ jobs, the day's tasks raised automatically and about an hour a day saved.
The problem
Permitting for fiber-optic construction runs on email. Project owners, designers and a dozen government agencies all write to one mailbox, each with its own subject-line habits. Knowing where every job stood meant reading threads by hand, and a misfiled email simply disappeared from view.
What it does
- Files every email to its project, market, hub and service area. It knows several project naming systems and checks market codes against a list, never a guess.
- Recovers jobs an email doesn’t name through 4 inference passes: same thread, same document number, same permit number and same subject. Each pass only fills blanks and records which rule placed the row.
- Builds 2 workbooks: an output workbook (project tree, what sits with each agency and for how long, documents, unplaced mail) and a curated master (job stories, open issues, blockers and tasks).
- Raises tasks from rules: deliverables to review, returned submittals, bounced emails, new markets that need jurisdiction research, follow-ups that are due.
- Never guesses. Anything it can’t place goes on its own “Unassigned” tab, grouped by topic.
How it’s built
- A read-only Outlook macro exports the mailbox, and a Python pipeline classifies, merges, de-duplicates and infers across messages.
- All rules live in one JSON registry (projects, markets, agencies, task triggers), so adding a rule means editing data and leaves the code alone.
- Computation and judgement are kept apart: the output workbook builds in about 1.5 seconds with no AI; AI-written notes join only in the master.
- A self-test of 1,445 checks, all drawn from real mail, runs before and after every change.
Result
- Running daily since August 2026: 2,452 messages filed across 383 jobs in 24 markets.
- Automatic placement went from 23% to 75% of messages in the first week.
- About an hour a day saved on reading and sorting mail.
The parts
Read-only Outlook exporter
About 3,100 lines of VBA that export the whole mailbox to a timestamped CSV and file attachments (tracker spreadsheets, review comments, route maps, dig tickets) into the right folders. It never sends, moves or edits mail. Reworking its attachment handling cut reads per run from about 6,700 to 1,159.
811 dig-ticket organizer
Files every utility-locate response per ticket and per utility, decides when each ticket is closed, and lists the utilities that never answered. Confirmations that carry their map in the email body are saved as PDFs with headless Edge. 31 tickets across 7 projects so far; about an hour saved per project.
Follow-up clock
Gives every “waiting on” item a clock: a follow-up each week, another before the agency’s own committed date, and an escalation after a miss. It also checks 178 permit forecasts against each jurisdiction’s stated review time. Nothing depends on memory.
Permit forecast tracker
Reads the permit database’s daily exports, reports moved forecasts, new submittals, closures and expiries, and builds 8 permit views. Ported from an older standalone tool and proven row for row before the original was retired; the port also fixed a six-day outage on its first day.
Read-only Smartsheet sync
Pulls 24 project sheets through the Smartsheet API on every export, with only read requests allowed in code. A self-closing reminder appears whenever a permit event in email still needs a sheet update. About 30 to 45 minutes saved per export.
Design delivery forecasts
Reads the delivery tracker spreadsheets that arrive by email and shows what is overdue, due soon, or has had its date moved, per service area.
Shared data feed and test lab
Publishes the tracker’s state as one JSON feed for the 2DO! calendar, and proves every change in a write-guarded lab copy that must match the live output field by field before it goes live.


