Skip to content

Instantly share code, notes, and snippets.

@dasebasto
dasebasto / extract_mbox_attachments.py
Last active March 17, 2022 10:48 — 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"