Ask a Question related to PERL Miscellaneous, Design and Development.
-
Brian Rankin #1
Redemption, SafeMailItem and ActivePerl
Trying to import an RFC822 message into a PST message store results in
the error "Can't modify non-lvalue subroutine call" when I set the
Redemption item equal to the new message item. My code (the line
where the error occurs is tagged):
## redemption testing
Win32::OLE::CreateObject("Redemption.SafeMailItem" ,
$RedemptionSession);
$MAPISession->Logon("tester1",undef,"False",undef);
$cnt = $MAPISession->Infostores->Count;
STORES: for ($i = 1; $i<$cnt + 1; $i++) {
$pststore = $MAPISession->Infostores($i);
$namer = $pststore->Name;
print "$namer\n";
if ($namer eq "Personal Folders") { last STORES; }
}
$pstinbox = $pststore->RootFolder->Folders->Item("DEFAULT");
$newmsg = $pstinbox->messages->Add;
$newmsg->update;
ERROR: $RedemptionSession->Item = $newmsg;
$RedemptionSession->Import("c:\pstconverter\tester.eml",olRFC822);
$RedemptionSession->save;
As far as I can tell, the $RedemptionSession object is fine...any
suggestions appreciated.
Regards, Brian
Brian Rankin Guest
-
Term::ReadLine and ActivePerl
In Cygwin the readline() call in the following script #!/usr/bin/perl use Term::ReadLine; use strict; use warnings; my $term = new... -
PPM through Proxy (Activeperl / Activestate)
hi, i have just installed the latest Activeperl from activestate.com and need to add some modules through PPM. I am behind a firewall and forced to... -
ActivePerl & Apache
Hi all I ahve installed Active perl & Apache2 on win2k. Everything works fine. My problem how can I ask Apache to execute .cgi with perl.exe.... -
ActiveState ActivePerl 5.8 - system call
Hi, We have a perl/cgi script (ActivePerl 5.8) which calls a executable (C code) using the system command. Ex: ...... @args =... -
Problems with PPM and ActivePerl
I recently installed the ActivePerl 5.8.0.806 on my Win2k box. I installed it in the default location "C:\Perl" and have not moved it or done... -
Jay Tilton #2
Re: Redemption, SafeMailItem and ActivePerl
[email]brankin@enbonline.net[/email] (Brian Rankin) wrote:
: Trying to import an RFC822 message into a PST message store results in
: the error "Can't modify non-lvalue subroutine call" when I set the
: Redemption item equal to the new message item.
: ERROR: $RedemptionSession->Item = $newmsg;
I'm not familiar with that library, but the error message and a gloss of
the docs suggest that Item is a property of the object, not a method.
$RedemptionSession->{Item} = $newmsg;
Jay Tilton Guest



Reply With Quote

