1

I want to read a standalone PST file on Exchange server machine. As Microsoft suggested we can't install the Outlook client on exchange server.I have installed the Exchange client and CDO 1.2 library on server. But still I am not able to open the PST file using redemption library. Here is the sample Perl code. It returns the error "Can't call method "LogonPstStore" on an undefined value".

$session = Win32::OLE->CreateObject("Redemption.RDOSession");
$session->LogonPstStore("C:\test\ssn1.pst"); 

The same code works well if I have the outlook installed on the machine. Any help will be appreciated.

T-Heron
  • 5,385
  • 7
  • 26
  • 52

2 Answers2

0

The error means the $session variable is undefined. Is your code running in 32 bit?

Also note that Outlook can be installed on a server just fine - MS does not recommend using Outlook on a server since there is no interactive user there.

ThisSuitIsBlackNot
  • 23,492
  • 9
  • 63
  • 110
Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78
0

Independent of other problems: Beware of your inadvertently use of metacharacters in the file string: '\t' and '\s' in your doublequoted string are most likely not, what you want, is it?

Either use a singlequoted string or double the backslashes...

$session->LogonPstStore('C:\test\ssn1.pst'); 

or

$session->LogonPstStore("C:\\test\\ssn1.pst"); 
SREagle
  • 251
  • 2
  • 7