Bash script to extract any PDF attachment from an MSG email.
The script follow this steps:
- Convert MSG to EML format using MSGConvert utility
- Extract any attachments from EML file using ripMIME utility
- Check PDF for corruption using Poppler utility
apt-get install libemail-outlook-message-perl
apt-get install ripmime
apt-get install poppler-utils
./msg2pdf.sh