Ricardo SIGNES > Email-Store > Email::Store::Attachment

Download:
Email-Store-0.257.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  3
View/Report Bugs
Source  

NAME ^

Email::Store::Attachment - Split attachments from mails

SYNOPSIS ^

    my @attachments = $mail->attachments;
    for (@attachments) {
        print $_->filename, $_->content_type, $_->payload;
    }

DESCRIPTION ^

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.

WARNING ^

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.

syntax highlighting: