Email::Store::Attachment - Split attachments from mails
my @attachments = $mail->attachments; for (@attachments) { print $_->filename, $_->content_type, $_->payload; }
This plug-in adds the concept of an attachment. At index time, it removes all attachments from the mail, and stores them in a separate attachments table. This records the filename, content_type and payload of the attachments, and each mail's attachments can be reached through the attachments accessor. The text of the mail, sans attachments, is replaced into the mail table.
filename
content_type
payload
attachments
If your database requires you to turn on some attribute for encoding binary nulls, you need to do this in your call to use Email::Store.
use Email::Store
To install Email::Store, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::Store
CPAN shell
perl -MCPAN -e shell install Email::Store
For more information on module installation, please visit the detailed CPAN module installation guide.