Prob w/ MIME::Body, MIME::Parser 
Author Message
 Prob w/ MIME::Body, MIME::Parser

I'm getting the following error using MIME::Parser:

open >./msg-416-1.doc: Permission denied at
/usr/lib/perl5/site_perl/MIME/ line 349.

Here's the code that I'm using - it fails on $parser->read($buffer):

   die "$input_file doesn't exist" unless (-e $input_file);
   open(INPUT, "< $input_file") or die "Unable to read INPUT
$input_file: $!";
   read(INPUT, $buffer, 1000000);
   close INPUT;
   my $parser = new MIME::Parser        output_dir      => "/tmp",
                                        output_prefix   => "part",
                                        output_to_core  => 20000;
   my $entity = $parser->read($buffer) or die "couldn't parse INPUT mime

Any suggestions would be appreciated,

Chip Castle
Interactive Consulting, Inc.

tel: 504.412.8002
fax: 504.412.8003

Sat, 24 Mar 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Please help with MIME::Parser and MIME::Entity

2. Access to body in multipart MIME::Entity

3. MIME::Body error -- No such file or directory

4. MIME plain text body extraction

5. Perl script for sending mime html in body of mail

6. MIME::Lite Header data in body

7. MD5::Digest and MIME::Body

8. MIME::Entity - Updating just the Body Text

9. email address prob w/MIME::Lite

10. Problem with MIME::Lite and MIME-tools

11. MIME::Parse and MIME::Entity

12. MIME-Tools - MIME::Entity - extra newline problem


Powered by phpBB® Forum Software