Skip to content

Instantly share code, notes, and snippets.

@manthisthe
manthisthe / extract_mbox_attachments.py
Created April 20, 2025 14:23 — forked from georgy7/extract_mbox_attachments.py
Extract attachments from mbox file.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Modified.
# Original script source:
# http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html
# https://web.archive.org/web/20150312172727/http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html
# Usage:
# Run the script from a folder with file "all.mbox"