Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: One-off mime splitter

by $code or die (Deacon)
on Aug 20, 2001 at 04:51 UTC ( #106107=note: print w/replies, xml ) Need Help??


in reply to Re: One-off mime splitter
in thread One-off mime splitter

$entity would be the single email with lots of attachments - each one is an individual email (possibly with attachments)- phew!

So... I think you want to add something like this:
foreach my $email ($entity->parts()) { # $email is now a MIME::Entity # I.e. one of the original emails that # was mistakenly combined into one. # either print the email, or capture it with # one of the "as_string" methods and use OLE # to stuff it back into Outlook. $email->print(\*STDOUT) }
This is all from memory - I wrote a mail filter last week to do some virus scanning. But might help.

Error: Keyboard not attached. Press F1 to continue.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://106107]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2022-06-30 15:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (98 votes). Check out past polls.

    Notices?