MT-Import-Mbox

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

           - Cc

    * Attachments
        Multi-part MIME attachments are parsed using the Email::MIME
        package. In the event that no attachments are found it returns the
        body of the orginal message as a 'part', or attachment.

        If only one attachment exists it is used to generate the body of the
        entry.

        If the first attachment content-type is determined to be either
        plain-text or HTML it is used to generate the body of the entry.

        All other attachments are written to disk. Attachments are written
        to disk as :

         /your/static/weblog/attachments/$YYYY/$MM/$DD/$MSG_ID/$FNAME

        $YYYY is the four digit year for the message as determined by its
        'Date' header. $MM and $DD the two digit month and day respectively.

        $MSG_ID is an MD5 digest of a normalized form of the message's
        Message-ID header.

        $FNAME is an MD5 digest of the attachment's body. If it is possible
        to determine the attachment's content-type then a suitable extension
        is appended to $FNAME.

        A messsage's headers are stored as a separate attachment in :

         /your/static/weblog/attachments/$YYYY/$MM/$DD/$MSG_ID/headers.txt

SETUP
  Versioning
    This package is designed to be used with Movable Type 3.2

lib/MT/Import/Mbox.pm  view on Meta::CPAN

   - Cc

=item * B<Attachments>

Multi-part MIME attachments are parsed using the Email::MIME package. In the
event that no attachments are found it returns the body of the orginal message
as a 'part', or attachment.

If only one attachment exists it is used to generate the body of the entry.

If the first attachment content-type is determined to be either plain-text 
or HTML it is used to generate the body of the entry.

All other attachments are written to disk. Attachments are written to disk as :

 /your/static/weblog/attachments/$YYYY/$MM/$DD/$MSG_ID/$FNAME

$YYYY is the four digit year for the message as determined by its 'Date' header.
$MM and $DD the two digit month and day respectively.

$MSG_ID is an MD5 digest of a normalized form of the message's Message-ID
header.

$FNAME is an MD5 digest of the attachment's body. If it is possible to 
determine the attachment's content-type then a suitable extension is
appended to $FNAME.

A messsage's headers are stored as a separate attachment in :

 /your/static/weblog/attachments/$YYYY/$MM/$DD/$MSG_ID/headers.txt

=back

=head1 SETUP



( run in 0.967 second using v1.01-cache-2.11-cpan-d7f47b0818f )