Author: Ashly Lorenzana
GitHub: https://github.com/monapdx/MailBreak
MailBreak is a lightweight, offline Streamlit application that lets you browse your Gmail messages using data you export from Google Takeout. It’s perfect for people who want fast, local access to their archived inbox—no API, no server, no cloud dependencies.
MailBreak was designed to help you:
- Explore your Gmail inbox offline
- Use custom Gmail labels to create highly specific “data slices”
- Download only the emails you actually care about from Google Takeout
- Navigate your
.mboxfile through a simple Streamlit interface - Optionally use an included .mbox viewer if you prefer a classic browser-style interface
Organizing your inbox before exporting from Google Takeout is key.
Use Gmail labels to segment your inbox into meaningful categories—especially if you plan to export only certain labels at a time. These labels make your life MUCH easier when slicing your inbox into useful datasets.
You can create parent labels and nest sub-labels under them to build powerful structures.
Think of nested labels as filters for your Takeout export:
When you export only the sub-labels you want, your .mbox file becomes cleaner, smaller, and far more relevant.
You can apply your labels manually, but letting Gmail automate this for you is much faster.
Create filters:
- Directly from inside any email
- Using Gmail's powerful search operators
- For senders, subjects, domains, or keywords
This ensures your inbox organizes itself automatically over time.
Once your labels and filters are set up, go to:
Then:
- Select only Gmail
- Expand Gmail’s options
- Select the specific labels or sub-labels you want
This prevents giant, bloated data archives and lets you export only what matters.
Downloading everything under a large parent label like Accounts can:
- Produce enormous
.mboxfiles - Include tons of irrelevant email
- Slow down parsing or viewing
By exporting only the precise slices you want, your email data becomes targeted and clean—for example:
Only emails labeled as affiliate payouts across multiple platforms.
Clone the repo:
git clone https://github.com/monapdx/MailBreak
cd MailBreak
pip install -r requirements.txt
pip install streamlit
streamlit run app.pyIf you prefer a traditional message list, or if typing message IDs isn't your style, use the included MailBreak MBOX Viewer.
It allows you to:
-
Scroll through messages
-
View metadata
-
Read HTML or plaintext content
-
Navigate like a simple offline email client
Great for people who want a more classic mailbox browsing experience.
Contributions are welcome! Feel free to open issues, submit pull requests, or suggest improvements.
Email: ashlylorenzana@gmail.com
GitHub: https://github.com/monapdx/MailBreak
This project is released under the MIT License.
