in reply to Using MIME::Tools to save attachments
The $m variable is a MIME::Entity object with the message and the attachment(s).for my $p ($m->parts_DFS()) { # Skip 'container' parts next if $p->effective_type() =~ /^multipart/; $sth_insert_bdy->execute($key, $p->stringify_body(), $m->head->multipart_boundary || "", $p->head->mime_type || "", $p->head->mime_encoding || "", $p->head->recommended_filename || ""); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using MIME::Tools to save attachments
by Lanthade (Initiate) on May 14, 2002 at 04:47 UTC |