◈ Mail → Excel

Excel export for Insurance brokers

By the Mail → Excel team · Updated 2026-10-20

Renewals fail silently. A table of policy numbers and dates turns renewals into a calendar instead of a memory test. This page lists the exact columns, an example row and the command that produces it.

Columns to keep

ColumnWhy it matters
policyPolicy number — the key for renewals.
clientThe join key for every other report you will build later.
renewalRenewal date; the column that becomes your calendar.
premiumPremium amount with currency and period columns.
statusFixed vocabulary: open / in progress / done / blocked.

Example row

One real-shaped row from this role’s export:

policyclientrenewalpremiumstatus
POL-99321Orion Ltd2026-12-012,400quoted

Export it in one command

python mail_to_excel.py \
  --host imap.example.com --user you@example.com \
  --days 31 --fields policy,client,renewal,premium,status \
  --out insurance-broker.xlsx

The --fields option is what turns a raw dump into a report your role can use.

Provider notes

Corporate Exchange typically requires OAuth; personal Outlook works with an app password.

Two pitfalls that ruin the file

Next step

Step-by-step: export insurance broker email to Excel · all roles · ready script ($3)

FAQ

Can this remind me about renewals?

Export weekly and sort by renewal date; the spreadsheet becomes the reminder list.

Does it read policy numbers from PDFs?

Not yet — it indexes the attachments; extraction from PDF text is a separate step.

Is there a ready script for this?

Yes — the Python script exports any IMAP mailbox with the fields listed above; it costs $3 and runs locally.

Related guides