Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: MIME Problem with Email

by dree (Monsignor)
on Jun 11, 2002 at 09:51 UTC ( #173413=note: print w/ replies, xml ) Need Help??


in reply to MIME Problem with Email

Use MIME::Tools.
In particular try:

use strict; use MIME::Parser; my $parser = new MIME::Parser; $parser->output_under("./"); #directory where to store the components my $entity = $parser->parse(\*STDIN) or die "parse failed\n"; $entity->dump_skeleton;
and from the console, write:
$perl abovecode.pl < mail.txt
So in ./ you'll find a directory like "msg-10237 (cut) 2055-0" in which you have the components.


Comment on Re: MIME Problem with Email
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2015-07-02 21:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (45 votes), past polls