| Email-Store documentation | view source | Contained in the Email-Store distribution. |
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.
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.
| Email-Store documentation | view source | Contained in the Email-Store distribution. |