Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1019 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 1019 Bytes

📫 E-Mail Attachment Extractor 📎

This is a forked Google Gmail Mailbox attachment extractor script and extracts specified attachments (*.doc, *.docx, *.odt, *.pdf, *.rtf) from email boxes in mbox format. It will work with MBOX files from Google Takeout and other Mailbox Backups in MBOX Format. In contrast to other scripts, this will also include attachments that were in the inline format. Inline attachments are particularly relevent if your mbox includes emails sent from Apple Mail users. If a PDF is dragged into the body of Apple Mail, it will be attached inline (similar to a Picture) and not coded as a regular file attachment.

Particularly useful for Google Takeout, which exports email from Gmail in mbox format.

The script will extract attachments (and inline files) with the following file types:

  • DOC
  • DOCX
  • ODT
  • PDF
  • RTF

Usage:

mbox-extract-attachments <mbox-file> [extraction-directory]

Requirements

  • Python 3 (tested on 3.5) 🐍
  • tqdm (optional)