Simon Cozens

NAME

Mail::Miner::Attachment - Backend methods for Mail::Miner attachments

DESCRIPTION

This module implements some backend functionality for dealing with Mail::Miner attachments.

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.

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.