Skip to content

Instantly share code, notes, and snippets.

@adobke
adobke / find_largest_email_groupings.py
Created November 2, 2023 00:05
Parse a gmail .mbox file and find the largest email groupings
#!/usr/bin/env python3
import argparse
import mailbox
import pathlib
import re
import sys
from collections import Counter
EMAIL_PATTERN = r"<(.*?)>"