Mail::Miner::Attachment - Backend methods for Mail::Miner attachments
This module implements some backend functionality for dealing with Mail::Miner attachments.
Mail::Miner
detach_attachments
detach_attachments($entity, $messageid);
This subroutine takes a MIME::Entity object, and flattens it, storing any parts which are non-text, or have a recommended filename, into the database. The textual body of the message is updated to alert the user to how to extract the attachments.
MIME::Entity
detach
detach($msgid)
This implements the front-end detach option to mm, the Mail::Miner command-line tool. It saves a message's attachments to the current directory, interactively.
mm
To install Mail::Miner, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Miner
CPAN shell
perl -MCPAN -e shell install Mail::Miner
For more information on module installation, please visit the detailed CPAN module installation guide.