GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - monapdx/Inbox-Archeology: Inbox Archeology is a local-first tool that analyzes your Gmail Takeout export to reconstruct the social history of your inbox.

BranchesTags
Open more actions menu

Latest commit

 

History

60 Commits
60 Commits

Folders and files

NameName
Last commit message
Last commit date
inbox_archeology
inbox_archeology
 
 
instructions
instructions
 
 
steps
steps
 
 
tests
tests
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
ChatGPT Image Mar 22, 2026, 06_16_18 AM.png
ChatGPT Image Mar 22, 2026, 06_16_18 AM.png
 
 
Dashboard.png
Dashboard.png
 
 
Inbox_Archeology_README.md
Inbox_Archeology_README.md
 
 
README.md
README.md
 
 
analytics.png
analytics.png
 
 
app.py
app.py
 
 
dashboard.png
dashboard.png
 
 
dashboard.py
dashboard.py
 
 
diagram (1).png
diagram (1).png
 
 
graphs.png
graphs.png
 
 
ia_constants.py
ia_constants.py
 
 
launch_inbox_archeology.bat
launch_inbox_archeology.bat
 
 
newplot.png
newplot.png
 
 
package-lock.json
package-lock.json
 
 
pipeline.py
pipeline.py
 
 
pyproject.toml
pyproject.toml
 
 
relationship_graph.png
relationship_graph.png
 
 
requirements-dev.txt
requirements-dev.txt
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Inbox Archeology

Explore your exported message data like a personal time machine.

Inbox Archeology transforms your Google Takeout .mbox into a local, visual archive so you can explore relationship patterns over time.

Analyze your Gmail history and uncover patterns in your communication.

🎥 Watch the walkthrough

Inbox Archeology Demo


What it does

  • Parses Gmail Takeout mailbox exports
  • Builds relationship-level tables through a multi-step pipeline
  • Renders a Streamlit dashboard with:
    • relationship graph
    • timeline views
    • reciprocity analysis
    • lifecycle metrics
    • CORE relationship density by year

Everything runs on your machine.


Requirements

  • Python 3.10+
  • A Gmail Takeout .mbox file (for real analysis)

Install dependencies:

python -m venv .venv

Activate:

  • macOS / Linux: source .venv/bin/activate
  • Windows (cmd): .venv\Scripts\activate.bat
  • Windows (PowerShell): .venv\Scripts\Activate.ps1

Then:

pip install -r requirements.txt

Run

streamlit run app.py

The app creates/uses local folders in this repo:

  • input/ for source .mbox files
  • workspaces/ for per-run outputs

Current app flow

1) Add Gmail Takeout

Recommended path (for real exports):

  1. Download your Gmail Takeout export
  2. Locate the mailbox file (often All Mail.mbox)
  3. Copy the .mbox into input/
  4. Click Refresh list in the app

Optional path:

  • Upload a small test .mbox directly in the app
  • Intended for small files only (about 200 MB browser upload limit)

2) Choose workspace

  • Pick the detected .mbox
  • Set a run name (used for workspaces/<run-name>/)
  • Reopen previous completed runs from Open Existing Workspace

3) Run analysis

  • Click Run Inbox Archeology
  • Progress is shown live as pipeline steps complete
  • Open dashboard automatically (toggle in sidebar) or manually after run

Output location

For each run:

  • Workspace: workspaces/<run-name>/
  • Output files: workspaces/<run-name>/output/

Typical generated artifacts:

  • inbox_metadata.csv
  • relationships_raw.csv
  • relationships_filtered.csv
  • relationships_clean.csv
  • core_timeline.csv
  • core_timeline.png
  • extract_headers_progress.json (message count while the first step runs; useful for large mailboxes)

Environment variables (.env)

Copy .env.example to .env in the project root, then edit values.

Identify your own addresses

SELF_EMAILS=[email protected],[email protected],[email protected]

This is important for accurate sent/received attribution.

Ignore automated/bulk senders

AUTOMATED_DOMAINS=facebookmail.com,google.com,linkedin.com,substack.com
AUTOMATED_PREFIXES=no-reply@,noreply@,notifications@,donotreply@
  • AUTOMATED_DOMAINS: filters addresses ending in @domain
  • AUTOMATED_PREFIXES: filters addresses starting with those prefixes

After changing .env, rerun analysis for affected workspaces.

Tests (optional)

pip install -r requirements-dev.txt
pytest

Privacy

Inbox Archeology is local-first:

  • no cloud processing in this app flow
  • no external API requirement for analysis
  • no mailbox upload to third-party services by default

Your archive stays on your machine unless you move it.


Project structure

  • app.py - Streamlit UI and run workflow
  • pipeline.py - orchestrates step scripts
  • ia_constants.py - shared CORE / RECURRING message thresholds
  • steps/ - modular processing steps
  • dashboard.py - dashboard rendering
  • tests/ - pytest checks (optional; install via requirements-dev.txt)
  • input/ - source mailbox files
  • workspaces/ - saved run outputs

Contributing

See CONTRIBUTING.md.


License

MIT

About

Inbox Archeology is a local-first tool that analyzes your Gmail Takeout export to reconstruct the social history of your inbox.

Topics

data-explorerdata-portabilitydata-visualizationdigital-archeologyemail-analysisgmail-mboxgmail-takeoutmboxpersonal-analyticspersonal-archivepythonrelationship-analysisstreamlittimeline-analysis

Resources

Readme

Contributing

Contributing
Activity

Stars

7 stars

Watchers

0 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.