Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to retrieve filename from MIME:Parser?

Status
Not open for further replies.

SkintStudent

Programmer
Aug 22, 2001
4
GB
Hi I've been using thhe MIME::parser to ouutput incoming emails to a directory.
I've allowed it to randomly select a filename for me,
but I want to be able to find out what this randomly created filename is after is creates it.

My code looks like this:

# Create a new parser object:
my $parser = new MIME::parser;

# Tell it where to put things:
$parser->output_under($pathName);

# Parse an input filehandle:
$entity = $parser->parse(\*ARGV);

# Create a new, empty header, and populate it manually:
$head = MIME::Head->new;

# Parse a new header from a filehandle:
$head = $entity->head;


How would i then found out the filename which was generated?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top