hi,

ok - i recently started playing around with this neat MIME::Parser module 
for autmotcically detaching attachments from my incoming mails, here goes 
the code (as said in the manual) ...

 my $parser = new MIME::Parser output_dir     => "c:\\temp\\mime",·
                               output_prefix  => "part",·
                               output_to_core => 20000;·
 $MimeFile = new FileHandle($_[0],"r") || die "Unable to readopen 
$_[0]\n";
 binmode($MimeFile);·
 $DumpFile = new FileHandle("+>c:\\temp\\dump".txt) || die "nix ($!)";
 $entity = $parser->read(\*$MimeFile) || warn "Cannot parse ($!)\n";·
 $entity->dump_skeleton(\*$DumpFile);          # for debugging ·

this works perfectly for say 80% of the incoming files, however for some 
mails the parser simply aborts the parsing procedure
 Cannot parse ()
 Can't call method "dump_skeleton" without a package or object reference at 
mime.
pl line 25.
the sender is always the same, always uses the same mailer, and the mails 
are always strucutred the same way (text + 2 or 3 zipfiles coded BASE64)and 
can be opened properly via the mail client (i looked inside with an editor 
an cannot see any difference to the ones who are processed OK, also 
filesizes doesn't matter). did anybody come across something similar 
before, or - at least - can anybody tell me how to debug the mime::parser 
actions (tried passing debug => 1 while creating the object but the process 
is still not verbose)?

TIA
till

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to