This is a cli tool to extract attachments from .mbox files.
Install with npm: npm i mbox-attachment-extract -g
The command:
mbox-attachment-extract <<path-to-mbox-file>> <<path-to-extracted-files>>
Parameters:
--pattern, -p
Regex to filter attachments. Default: ''
--filenameAsSubject, -s
Create the attachment with the subject as the filename. Example: fromdomain_subject.zip
--help
Show the help message
Run the command: npm t