http://qs321.pair.com?node_id=900325


in reply to Re: Extracting email messages and attachments from a microsoft outlook .pst file
in thread Extracting email messages and attachments from a microsoft outlook .pst file

Is perl version 5.12.2 required ?

I commented the perl version line and then ran the code which showed the below error:

Can't call method "Folders" on an undefined value at outlook.pl line 57.
  • Comment on Re^2: Extracting email messages and attachments from a microsoft outlook .pst file
  • Download Code

Replies are listed 'Best First'.
Re^3: Extracting email messages and attachments from a microsoft outlook .pst file
by wfsp (Abbot) on Apr 20, 2011 at 12:39 UTC
    Have you got the correct mailbox name? It should be exactly as Outlook displays it. You could add a debug print statement in the seekFolder subs for loop to see which folders are found. Something like
    print "Folder:", $obj->Folders->Item($i)->Name;
    You don't need 5.12.2, when I first used it I was on 5.8.8.
      Actually the input is a *.pst file so the mailbox name is unknown.
      What to do ?