Skip to content

Instantly share code, notes, and snippets.

View samuelba's full-sized avatar

Samuel Bachmann samuelba

View GitHub Profile
@samuelba
samuelba / extract_mbox_attachments.py
Created December 14, 2021 15:34 — forked from georgy7/extract_mbox_attachments.py
Extract attachments from mbox file.
# Modified.
# Original script source:
# http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html
# Usage:
# Run the script from a folder with file "all.mbox"
# Attachments will be extracted into subfolder "attachments"
# with prefix "n " where "n" is an order of attachment in mbox file.
# ---------------